/* HF Solutions — Cloud Server Landing */
:root {
  --bg-deep: #050810;
  --cyan: #00f2ff;
  --cyan-dim: rgba(0, 242, 255, 0.35);
  --blue: #3d8bff;
  --orange: #ff9a3c;
  --glass: rgba(6, 14, 28, 0.72);
  --border: rgba(0, 242, 255, 0.25);
  --text: #e8f4ff;
  --text-muted: #8ba8c4;
  --glow: 0 0 20px rgba(0, 242, 255, 0.4), 0 0 60px rgba(0, 242, 255, 0.15);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Rajdhani", "Segoe UI", sans-serif;
  background: var(--bg-deep);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Background layers ── */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  contain: strict;
  will-change: auto;
}

.bg-image {
  background: url("../assets/background.png") center / cover no-repeat;
  opacity: 0.55;
}

.bg-vignette {
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(255, 154, 60, 0.12), transparent 55%),
    radial-gradient(ellipse 100% 80% at 50% 50%, transparent 30%, var(--bg-deep) 85%),
    linear-gradient(180deg, rgba(5, 8, 16, 0.3) 0%, var(--bg-deep) 100%);
}

.bg-grid {
  background-image:
    linear-gradient(rgba(0, 242, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 242, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 20%, transparent 75%);
}

.scanlines {
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.08) 2px,
    rgba(0, 0, 0, 0.08) 4px
  );
  opacity: 0.4;
}

#particles-canvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  contain: strict;
}

/* ── Gears ── */
.gear {
  position: fixed;
  z-index: 2;
  opacity: 0.12;
  pointer-events: none;
  will-change: transform;
  transform: translateZ(0);
}

.gear svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--cyan);
  stroke-width: 1.5;
}

.gear-1 { width: 140px; height: 140px; top: 8%; left: 4%; animation: spin 24s linear infinite; }
.gear-2 { width: 90px; height: 90px; top: 18%; right: 8%; animation: spin-rev 16s linear infinite; opacity: 0.08; }
.gear-3 { width: 110px; height: 110px; bottom: 12%; left: 6%; animation: spin-rev 20s linear infinite; }
.gear-4 { width: 70px; height: 70px; bottom: 22%; right: 5%; animation: spin 12s linear infinite; opacity: 0.1; }
.gear-5 { width: 50px; height: 50px; top: 42%; right: 3%; animation: spin 8s linear infinite; opacity: 0.06; }

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes spin-rev {
  to { transform: rotate(-360deg); }
}

/* ── Layout ── */
.page {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Header ── */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(5, 8, 16, 0.95), rgba(5, 8, 16, 0.6));
}

.brand-mini {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-mini img {
  height: 40px;
  width: auto;
}

.brand-mini span {
  font-family: "Orbitron", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--cyan);
  text-transform: uppercase;
}

.status-bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-family: "Share Tech Mono", monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.status-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00ff88;
  box-shadow: 0 0 10px #00ff88;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

/* ── Hero ── */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem 4rem;
  text-align: center;
}

.logo-wrap {
  position: relative;
  margin-bottom: 2rem;
}

.logo-ring {
  position: absolute;
  inset: -24px;
  border: 1px solid var(--border);
  border-radius: 50%;
  animation: ring-pulse 4s ease-in-out infinite;
}

.logo-ring::before {
  content: "";
  position: absolute;
  inset: -12px;
  border: 1px dashed rgba(0, 242, 255, 0.15);
  border-radius: 50%;
  animation: spin 30s linear infinite reverse;
}

.logo-wrap img {
  width: min(220px, 45vw);
  height: auto;
  position: relative;
  z-index: 1;
  animation: float-logo 6s ease-in-out infinite;
  will-change: transform;
}

@keyframes float-logo {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes ring-pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.02); }
}

.hero-tag {
  font-family: "Share Tech Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  opacity: 0.9;
  animation: flicker-tag 4s ease-in-out infinite;
}

@keyframes flicker-tag {
  0%, 100% { opacity: 0.9; }
  92% { opacity: 0.9; }
  93% { opacity: 0.4; }
  94% { opacity: 0.9; }
}

.hero h1 {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(1.75rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #fff 0%, var(--cyan) 50%, var(--blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 2rem;
  line-height: 1.6;
  font-weight: 500;
}

/* ── Info cards ── */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  max-width: 900px;
  width: 100%;
  margin-bottom: 2.5rem;
  padding: 0 0.5rem;
}

.info-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.25rem 1rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.info-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0.6;
}

.info-card:hover {
  border-color: rgba(0, 242, 255, 0.5);
  box-shadow: 0 0 16px rgba(0, 242, 255, 0.2);
  transform: translateY(-2px);
}

.info-card .icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  display: block;
}

.info-card h3 {
  font-family: "Orbitron", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.info-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ── CTA ── */
.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2rem;
  font-family: "Orbitron", sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, rgba(0, 242, 255, 0.15), rgba(61, 139, 255, 0.2));
  border: 1px solid var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 20px rgba(0, 242, 255, 0.2);
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(0, 242, 255, 0.15), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s;
}

.btn-primary:hover {
  background: rgba(0, 242, 255, 0.2);
  box-shadow: var(--glow);
  color: #fff;
  transform: translateY(-2px);
}

.btn-primary:hover::after {
  transform: translateX(100%);
}

.btn-secondary {
  background: transparent;
  border: 1px solid rgba(139, 168, 196, 0.35);
  color: var(--text-muted);
}

.btn-secondary:hover {
  border-color: var(--text-muted);
  color: var(--text);
}

/* ── Terminal strip ── */
.terminal {
  max-width: 640px;
  width: 100%;
  margin-top: 2.5rem;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  text-align: left;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.5rem 0.75rem;
  background: rgba(0, 242, 255, 0.06);
  border-bottom: 1px solid var(--border);
}

.terminal-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff5f57;
}

.terminal-bar span:nth-child(2) { background: #febc2e; }
.terminal-bar span:nth-child(3) { background: #28c840; }

.terminal-bar p {
  margin-left: auto;
  font-family: "Share Tech Mono", monospace;
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.terminal-body {
  padding: 1rem 1.25rem;
  font-family: "Share Tech Mono", monospace;
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--cyan);
}

.terminal-body .dim { color: var(--text-muted); }
.terminal-body .ok { color: #00ff88; }
.terminal-body .cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: var(--cyan);
  animation: blink 1s step-end infinite;
  vertical-align: middle;
  margin-left: 2px;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* ── Footer ── */
.footer {
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: rgba(5, 8, 16, 0.8);
}

.footer a {
  color: var(--cyan);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* ── Robot corner decoration ── */
.robot-eye {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  z-index: 5;
  opacity: 0.4;
  pointer-events: none;
}

.robot-eye .pupil {
  fill: var(--cyan);
  animation: look 5s ease-in-out infinite;
}

@keyframes look {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(4px, -2px); }
  50% { transform: translate(-3px, 2px); }
  75% { transform: translate(2px, 3px); }
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .header {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  .status-bar {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
  }

  .gear-2,
  .gear-4,
  .gear-5,
  .scanlines,
  .robot-eye {
    display: none;
  }

  .gear-1,
  .gear-3 {
    opacity: 0.06;
  }

  .logo-ring::before {
    animation: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  #particles-canvas,
  .scanlines {
    display: none;
  }
}
