/* ===== DESIGN TOKENS (Active Theory aesthetic) ===== */
:root {
  --bg: #000000;
  --bg-secondary: #0a0a0a;
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.7);
  --text-subtle: rgba(255, 255, 255, 0.4);
  --accent: #00ffff;
  --accent-glow: rgba(0, 255, 255, 0.3);
  --accent-muted: rgba(200, 255, 255, 0.2);
  --lavender: rgba(156, 165, 255, 0.333);
  --border: rgba(255, 255, 255, 0.1);
  --border-hover: rgba(255, 255, 255, 0.3);
  --overlay: rgba(0, 0, 0, 0.5);
  --overlay-dark: rgba(0, 0, 0, 0.8);
  --card-bg: rgba(255, 255, 255, 0.05);
  --gradient-top: #001a1a;
  --gradient-bottom: #000d0d;
  --font: "Space Mono", monospace;
  --radius: 24px;
  --radius-sm: 12px;
  --radius-pill: 100px;
  --glow: 0 0 30px rgba(0, 255, 255, 0.15);
  --glow-strong: 0 0 60px rgba(0, 255, 255, 0.25);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
  --ease-page: cubic-bezier(0.445, 0.05, 0.55, 0.95);
  --ease-nav: cubic-bezier(0.17, 0.4, 0.02, 0.99);
  --section-pad: clamp(80px, 12vw, 160px);
  --side-gutter: clamp(24px, 5vw, 60px);
  --max-w: 1400px;
}

/* ===== RESET ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  overflow-x: hidden;
  opacity: 0;
  animation: page-fade-in 2s var(--ease-page) forwards;
}
a { color: var(--accent); text-decoration: none; transition: transform 0.4s var(--ease-nav), opacity 0.3s ease-out; }
a:hover { transform: translateX(8px); opacity: 0.85; }
img { max-width: 100%; height: auto; display: block; }

/* ===== PAGE FADE-IN ===== */
@keyframes page-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ===== CURSOR BLINK ===== */
@keyframes cursor-blink {
  0%, 25% { background: transparent; }
  50%, 75% { background: var(--accent); }
  100% { background: transparent; }
}
.cursor-blink {
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 4px;
  vertical-align: text-bottom;
  animation: cursor-blink 1.2s step-end infinite;
}

/* ===== DOT FLASHING ===== */
@keyframes dot-flashing {
  0% { background-color: var(--accent); box-shadow: 0 1px 6px var(--accent); }
  50%, 100% { background-color: var(--accent-muted); }
}

/* ===== TICKER MARQUEE ===== */
@keyframes ticker {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

/* ===== PARTICLE FLOAT ===== */
@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.4; }
  50% { transform: translateY(-30px) scale(1.3); opacity: 0.8; }
}

/* ===== SCROLL REVEAL ===== */
.section {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-nav), transform 0.8s var(--ease-nav);
}
.section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== NAVIGATION ===== */
.header-nav {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-pill);
  padding: 10px 28px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(0, 0, 0, 0.4);
}
.header-nav a {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  padding: 4px 8px;
  transform: none;
}
.header-nav a:hover { color: var(--text); transform: none; opacity: 1; }
.header-nav a.active { color: var(--accent); }
.nav-divider {
  width: 40px;
  height: 1px;
  background: rgba(255, 255, 255, 0.3);
  margin: 0 12px;
}
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 20px; height: 1px; background: var(--text); margin: 5px 0; transition: all 0.3s ease; }

/* ===== HERO ===== */
.hero {
  height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(0, 255, 255, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(156, 165, 255, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(0, 30, 30, 0.5) 0%, transparent 70%);
  z-index: 0;
}
.hero-content { position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.1;
  margin-bottom: 16px;
  text-wrap: balance;
}
.hero-tagline {
  font-size: clamp(11px, 1.2vw, 14px);
  color: var(--text-subtle);
  letter-spacing: 0.2em;
  margin-bottom: 48px;
}
.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  color: var(--text-subtle);
  letter-spacing: 0.2em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-scroll-hint::after {
  content: '';
  width: 8px;
  height: 8px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  animation: dot-flashing 1.5s infinite;
}

/* ===== PARTICLES ===== */
.particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  animation: float 6s infinite ease-in-out;
}
.particle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; animation-duration: 7s; }
.particle:nth-child(2) { left: 25%; top: 60%; animation-delay: 1s; animation-duration: 5s; }
.particle:nth-child(3) { left: 45%; top: 80%; animation-delay: 2s; animation-duration: 8s; width: 2px; height: 2px; }
.particle:nth-child(4) { left: 65%; top: 30%; animation-delay: 0.5s; animation-duration: 6s; }
.particle:nth-child(5) { left: 80%; top: 70%; animation-delay: 3s; animation-duration: 7s; width: 4px; height: 4px; }
.particle:nth-child(6) { left: 15%; top: 45%; animation-delay: 1.5s; animation-duration: 9s; background: var(--lavender); }
.particle:nth-child(7) { left: 55%; top: 15%; animation-delay: 2.5s; animation-duration: 6s; }
.particle:nth-child(8) { left: 90%; top: 50%; animation-delay: 0.8s; animation-duration: 5s; width: 2px; height: 2px; }
.particle:nth-child(9) { left: 35%; top: 35%; animation-delay: 4s; animation-duration: 8s; background: var(--lavender); }
.particle:nth-child(10) { left: 70%; top: 90%; animation-delay: 1.2s; animation-duration: 7s; }

/* ===== TICKER ===== */
.ticker-wrap {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  white-space: nowrap;
}
.ticker-content {
  display: inline-flex;
  animation: ticker 30s linear infinite;
}
.ticker-content span {
  font-size: 12px;
  color: var(--text-subtle);
  letter-spacing: 0.15em;
  padding: 0 40px;
}
.ticker-content span::before {
  content: '\2192';
  margin-right: 12px;
  color: var(--accent);
}

/* ===== SECTIONS ===== */
.content-section {
  padding: var(--section-pad) var(--side-gutter);
  max-width: var(--max-w);
  margin: 0 auto;
}
.section-label {
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.2em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title {
  font-size: clamp(1.5rem, 4vw, 3rem);
  font-weight: 400;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
  text-wrap: balance;
}
.section-description {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.8;
  max-width: 700px;
  text-transform: none;
  letter-spacing: 0.02em;
}

/* ===== STATS ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.stat-item {
  text-align: center;
  padding: 32px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  background: var(--card-bg);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.stat-item:hover {
  border-color: var(--accent-glow);
  box-shadow: var(--glow);
}
.stat-number {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 11px;
  color: var(--text-subtle);
  letter-spacing: 0.15em;
}

/* ===== SERVICES ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.service-card {
  padding: 40px 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: var(--card-bg);
  transition: border-color 0.4s var(--ease-nav), box-shadow 0.4s var(--ease-nav), transform 0.4s var(--ease-nav);
}
.service-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--glow);
  transform: translateY(-4px);
}
.service-icon {
  width: 40px;
  height: 40px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--accent);
  margin-bottom: 24px;
}
.service-card h3 {
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.service-card p {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: none;
  letter-spacing: 0.02em;
  line-height: 1.7;
}

/* ===== PROJECTS ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.project-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 16 / 10;
  transition: border-color 0.4s var(--ease-nav), box-shadow 0.4s var(--ease-nav);
}
.project-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--glow);
}
.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-nav), opacity 0.4s ease;
}
.project-card:hover img { transform: scale(1.05); opacity: 0.7; }
.project-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
}
.project-info h3 {
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.project-info p {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: none;
  letter-spacing: 0.02em;
  line-height: 1.6;
}

/* ===== PROCESS ===== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.process-step {
  padding: 32px 24px;
  border-left: 1px solid var(--border);
  transition: border-color 0.3s ease;
}
.process-step:hover { border-color: var(--accent); }
.process-number {
  font-size: 32px;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1;
}
.process-step h3 {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.process-step p {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: none;
  letter-spacing: 0.02em;
  line-height: 1.7;
}

/* ===== TESTIMONIALS ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.testimonial-card {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card-bg);
  backdrop-filter: blur(8px);
}
.testimonial-quote {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: none;
  letter-spacing: 0.02em;
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 24px;
}
.testimonial-quote::before {
  content: '\201C';
  font-size: 48px;
  color: var(--accent);
  line-height: 0;
  display: block;
  margin-bottom: 16px;
  font-style: normal;
}
.testimonial-author {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--text);
}
.testimonial-role {
  font-size: 11px;
  color: var(--text-subtle);
  letter-spacing: 0.1em;
  margin-top: 4px;
}

/* ===== CTA ===== */
.cta-section {
  text-align: center;
  padding: var(--section-pad) var(--side-gutter);
  position: relative;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(0, 255, 255, 0.04) 0%, transparent 60%);
  pointer-events: none;
}
.cta-button {
  display: inline-block;
  padding: 16px 48px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-pill);
  color: var(--accent);
  font-family: var(--font);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.4s var(--ease-nav);
  background: transparent;
  margin-top: 32px;
}
.cta-button:hover {
  background: var(--accent);
  color: var(--bg);
  box-shadow: var(--glow-strong);
  transform: translateX(0) scale(1.02);
}

/* ===== FOOTER ===== */
.footer {
  padding: 48px var(--side-gutter);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-w);
  margin: 0 auto;
}
.footer-left { display: flex; flex-direction: column; gap: 8px; }
.footer-links { display: flex; gap: 16px; }
.footer-links a {
  font-size: 11px;
  color: var(--text-subtle);
  letter-spacing: 0.1em;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-links a:hover { color: var(--text); transform: none; }
.footer-email {
  font-size: 14px;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 4px;
  letter-spacing: 0.08em;
}
.footer-email:hover { color: var(--accent); transform: none; }
.footer-copyright {
  font-size: 11px;
  color: var(--text-subtle);
  letter-spacing: 0.1em;
}

/* ===== MOBILE ===== */
@media (max-width: 1024px) {
  .header-nav {
    top: 16px;
    right: 16px;
    padding: 8px 16px;
  }
  .header-nav a.nav-link { display: none; }
  .nav-divider { display: none; }
  .hamburger { display: block; }
  .header-nav.open {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    border-radius: 0;
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
  }
  .header-nav.open a.nav-link { display: block; font-size: 16px; color: var(--text); }
  .header-nav.open .nav-divider { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer { flex-direction: column; gap: 24px; text-align: center; }
}

@media (max-width: 640px) {
  .hero h1 { font-size: clamp(2rem, 10vw, 3.5rem); }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .process-grid { grid-template-columns: 1fr; }
  .stat-item { padding: 20px 12px; }
  .content-section { padding: clamp(48px, 8vw, 80px) 20px; }
}
