/* =============================================
   CYBERDOMENE — Design Tokens & Styles
   ============================================= */

:root {
  /* Type Scale */
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Font families */
  --font-display: 'Cabinet Grotesk', 'Inter', sans-serif;
  --font-body: 'Satoshi', 'Inter', sans-serif;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
  --content-full: 100%;
}

/* =============================================
   CUSTOM PALETTE — Cyber Dark + Professional Light
   Dark hero with teal/emerald accent, light sections below
   ============================================= */

:root, [data-theme="light"] {
  /* Surfaces */
  --color-bg:             #f5f5f0;
  --color-surface:        #ffffff;
  --color-surface-2:      #fafaf8;
  --color-surface-offset: #eeedea;
  --color-surface-dynamic: #e4e3df;
  --color-divider:        #d5d4d0;
  --color-border:         #c8c7c2;

  /* Text */
  --color-text:           #1a1a1a;
  --color-text-muted:     #6b6b66;
  --color-text-faint:     #a3a29d;
  --color-text-inverse:   #f5f5f0;

  /* Primary Accent — Cyber Teal */
  --color-primary:        #0d9488;
  --color-primary-hover:  #0a7a70;
  --color-primary-active: #065f58;
  --color-primary-highlight: #ccfbf1;

  /* Hero dark section (used via classes) */
  --hero-bg:              #0f1117;
  --hero-surface:         #1a1d26;
  --hero-text:            #e8e8e6;
  --hero-text-muted:      #8b8d94;
  --hero-accent:          #2dd4bf;
  --hero-accent-dim:      #14b8a6;

  /* Shadows */
  --shadow-sm: 0 1px 2px oklch(0.2 0.01 80 / 0.06);
  --shadow-md: 0 4px 12px oklch(0.2 0.01 80 / 0.08);
  --shadow-lg: 0 12px 32px oklch(0.2 0.01 80 / 0.12);
}

[data-theme="dark"] {
  --color-bg:             #0f1117;
  --color-surface:        #1a1d26;
  --color-surface-2:      #1f2231;
  --color-surface-offset: #161923;
  --color-surface-dynamic: #252838;
  --color-divider:        #2a2d3a;
  --color-border:         #353848;
  --color-text:           #e8e8e6;
  --color-text-muted:     #8b8d94;
  --color-text-faint:     #5a5c64;
  --color-text-inverse:   #0f1117;
  --color-primary:        #2dd4bf;
  --color-primary-hover:  #14b8a6;
  --color-primary-active: #0d9488;
  --color-primary-highlight: #1a3a38;
  --hero-bg:              #0f1117;
  --hero-surface:         #1a1d26;
  --hero-text:            #e8e8e6;
  --hero-text-muted:      #8b8d94;
  --hero-accent:          #2dd4bf;
  --hero-accent-dim:      #14b8a6;
  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.2);
  --shadow-md: 0 4px 12px oklch(0 0 0 / 0.3);
  --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.4);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg:             #0f1117;
    --color-surface:        #1a1d26;
    --color-surface-2:      #1f2231;
    --color-surface-offset: #161923;
    --color-surface-dynamic: #252838;
    --color-divider:        #2a2d3a;
    --color-border:         #353848;
    --color-text:           #e8e8e6;
    --color-text-muted:     #8b8d94;
    --color-text-faint:     #5a5c64;
    --color-text-inverse:   #0f1117;
    --color-primary:        #2dd4bf;
    --color-primary-hover:  #14b8a6;
    --color-primary-active: #0d9488;
    --color-primary-highlight: #1a3a38;
    --hero-bg:              #0f1117;
    --hero-surface:         #1a1d26;
    --hero-text:            #e8e8e6;
    --hero-text-muted:      #8b8d94;
    --hero-accent:          #2dd4bf;
    --hero-accent-dim:      #14b8a6;
    --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.2);
    --shadow-md: 0 4px 12px oklch(0 0 0 / 0.3);
    --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.4);
  }
}

/* =============================================
   LAYOUT
   ============================================= */

.container {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

@media (min-width: 768px) {
  .container { padding-inline: var(--space-8); }
}

/* =============================================
   HEADER / NAV
   ============================================= */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-4) 0;
  transition: background 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.header--scrolled {
  background: oklch(from var(--color-bg) l c h / 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  color: var(--hero-text);
}

.logo svg {
  width: 36px;
  height: 36px;
}

.logo-text {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.header--scrolled .logo {
  color: var(--color-text);
}

.nav-links {
  display: none;
  list-style: none;
  gap: var(--space-6);
  align-items: center;
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
}

.nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  color: var(--hero-text-muted);
  transition: color var(--transition-interactive);
}

.nav-links a:hover {
  color: var(--hero-accent);
}

.header--scrolled .nav-links a {
  color: var(--color-text-muted);
}

.header--scrolled .nav-links a:hover {
  color: var(--color-primary);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.lang-toggle {
  font-size: var(--text-xs);
  font-weight: 600;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  color: var(--hero-text-muted);
  border: 1px solid oklch(from var(--hero-text) l c h / 0.15);
  transition: all var(--transition-interactive);
  cursor: pointer;
  background: transparent;
  letter-spacing: 0.04em;
}

.lang-toggle:hover {
  color: var(--hero-accent);
  border-color: var(--hero-accent);
}

.header--scrolled .lang-toggle {
  color: var(--color-text-muted);
  border-color: var(--color-border);
}

.header--scrolled .lang-toggle:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.theme-toggle {
  padding: var(--space-1);
  color: var(--hero-text-muted);
  border-radius: var(--radius-sm);
  transition: color var(--transition-interactive);
}

.theme-toggle:hover { color: var(--hero-accent); }

.header--scrolled .theme-toggle { color: var(--color-text-muted); }
.header--scrolled .theme-toggle:hover { color: var(--color-primary); }

/* Mobile menu */
.mobile-menu-btn {
  display: flex;
  padding: var(--space-1);
  color: var(--hero-text-muted);
}

@media (min-width: 768px) {
  .mobile-menu-btn { display: none; }
}

.header--scrolled .mobile-menu-btn { color: var(--color-text-muted); }

.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-bg);
  z-index: 99;
  padding: var(--space-20) var(--space-6);
}

.mobile-nav.is-open { display: flex; flex-direction: column; gap: var(--space-6); }

.mobile-nav a {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  text-decoration: none;
  color: var(--color-text);
  transition: color var(--transition-interactive);
}

.mobile-nav a:hover { color: var(--color-primary); }

.mobile-nav-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  padding: var(--space-2);
  color: var(--color-text-muted);
}

/* =============================================
   HERO SECTION
   ============================================= */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--hero-bg);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 80%, oklch(0.55 0.15 172 / 0.08), transparent),
    radial-gradient(ellipse 60% 50% at 80% 20%, oklch(0.45 0.12 240 / 0.06), transparent);
  pointer-events: none;
}

/* Animated grid */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(oklch(0.5 0.02 240 / 0.06) 1px, transparent 1px),
    linear-gradient(90deg, oklch(0.5 0.02 240 / 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding-top: var(--space-24);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  border: 1px solid oklch(from var(--hero-accent) l c h / 0.2);
  background: oklch(from var(--hero-accent) l c h / 0.06);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--hero-accent);
  margin-bottom: var(--space-6);
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--hero-accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--hero-text);
  letter-spacing: -0.03em;
  margin-bottom: var(--space-4);
}

.hero h1 .accent {
  color: var(--hero-accent);
}

.hero-subtitle {
  font-size: var(--text-base);
  color: var(--hero-text-muted);
  max-width: 540px;
  line-height: 1.7;
  margin-bottom: var(--space-8);
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--transition-interactive);
  cursor: pointer;
}

.btn-primary {
  background: var(--hero-accent);
  color: var(--hero-bg);
}

.btn-primary:hover {
  background: var(--hero-accent-dim);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px oklch(from var(--hero-accent) l c h / 0.3);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  background: transparent;
  color: var(--hero-text-muted);
  border: 1px solid oklch(from var(--hero-text) l c h / 0.15);
}

.btn-outline:hover {
  color: var(--hero-text);
  border-color: oklch(from var(--hero-text) l c h / 0.3);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: var(--hero-text-muted);
  font-size: var(--text-xs);
  opacity: 0.6;
}

.scroll-indicator-line {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, var(--hero-accent), transparent);
  animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  50.01% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* =============================================
   SECTIONS — Light theme below hero
   ============================================= */

.section {
  padding: clamp(var(--space-12), 8vw, var(--space-24)) 0;
}

.section-dark {
  background: var(--hero-bg);
  color: var(--hero-text);
}

.section-alt {
  background: var(--color-surface-offset);
}

.section-header {
  margin-bottom: clamp(var(--space-8), 4vw, var(--space-16));
}

.section-label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}

.section-dark .section-label {
  color: var(--hero-accent);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-3);
}

.section-desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 580px;
}

.section-dark .section-desc {
  color: var(--hero-text-muted);
}

/* =============================================
   SERVICES
   ============================================= */

.services-grid {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.06);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: box-shadow var(--transition-interactive),
              transform var(--transition-interactive);
}

.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.service-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.service-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* =============================================
   APPROACH / WHY US
   ============================================= */

.approach-grid {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .approach-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }
}

.approach-item {
  display: flex;
  gap: var(--space-4);
}

.approach-number {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--hero-accent);
  line-height: 1;
  flex-shrink: 0;
  opacity: 0.6;
}

.approach-item h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--hero-text);
  margin-bottom: var(--space-2);
}

.approach-item p {
  font-size: var(--text-sm);
  color: var(--hero-text-muted);
  line-height: 1.6;
}

/* =============================================
   ABOUT
   ============================================= */

.about-layout {
  display: grid;
  gap: var(--space-8);
  align-items: center;
}

@media (min-width: 768px) {
  .about-layout {
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-12);
  }
}

.about-image {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface-dynamic);
  position: relative;
}

.about-image-inner {
  width: 100%;
  height: 100%;
  background:
    linear-gradient(135deg, oklch(0.35 0.08 172 / 0.6), oklch(0.25 0.06 240 / 0.6)),
    repeating-linear-gradient(45deg, transparent, transparent 20px, oklch(0.5 0.02 172 / 0.05) 20px, oklch(0.5 0.02 172 / 0.05) 21px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-image-inner svg {
  width: 80px;
  height: 80px;
  color: oklch(0.8 0.05 172);
  opacity: 0.4;
}

.about-content h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
}

.about-content p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
  line-height: 1.7;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.about-tag {
  padding: var(--space-1) var(--space-3);
  background: var(--color-surface-offset);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text-muted);
}

/* =============================================
   CONTACT
   ============================================= */

.contact-layout {
  display: grid;
  gap: var(--space-8);
}

@media (min-width: 768px) {
  .contact-layout {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
  }
}

.contact-info h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-3);
}

.contact-info > p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.contact-method {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.contact-method-icon {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-method-label {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-bottom: 2px;
}

.contact-method-value {
  font-weight: 500;
}

.contact-method a {
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--transition-interactive);
}

.contact-method a:hover {
  color: var(--color-primary);
}

/* Contact form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.form-group label {
  font-size: var(--text-sm);
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  padding: var(--space-3);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  transition: border-color var(--transition-interactive),
              box-shadow var(--transition-interactive);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px oklch(from var(--color-primary) l c h / 0.12);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.btn-submit {
  align-self: flex-start;
  background: var(--color-primary);
  color: white;
  padding: var(--space-3) var(--space-8);
  font-size: var(--text-sm);
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-interactive);
}

.btn-submit:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-submit:active {
  transform: translateY(0);
}

/* =============================================
   FOOTER
   ============================================= */

.footer {
  background: var(--hero-bg);
  color: var(--hero-text-muted);
  padding: var(--space-12) 0 var(--space-6);
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.footer-brand .logo {
  margin-bottom: var(--space-3);
  color: var(--hero-text);
}

.footer-brand p {
  font-size: var(--text-sm);
  max-width: 300px;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: var(--space-12);
}

.footer-col h4 {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--hero-text);
  margin-bottom: var(--space-3);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-col a {
  font-size: var(--text-sm);
  color: var(--hero-text-muted);
  text-decoration: none;
  transition: color var(--transition-interactive);
}

.footer-col a:hover {
  color: var(--hero-accent);
}

.footer-bottom {
  margin-top: var(--space-8);
  padding-top: var(--space-4);
  border-top: 1px solid oklch(from var(--hero-text) l c h / 0.08);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  align-items: center;
  text-align: center;
  font-size: var(--text-xs);
}

.footer-bottom a {
  color: var(--hero-text-muted);
  text-decoration: none;
  transition: color var(--transition-interactive);
}

.footer-bottom a:hover {
  color: var(--hero-accent);
}

/* =============================================
   SCROLL ANIMATIONS
   ============================================= */

.fade-in {
  opacity: 1;
}

@supports (animation-timeline: scroll()) {
  .fade-in {
    opacity: 0;
    animation: revealFade linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 100%;
  }
}

@keyframes revealFade {
  to { opacity: 1; }
}

/* =============================================
   SKIP LINK
   ============================================= */

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  background: var(--color-primary);
  color: white;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  z-index: 200;
  font-size: var(--text-sm);
  text-decoration: none;
}

.skip-link:focus {
  top: var(--space-4);
}

/* =============================================
CONTACT FORM — BUTTON STATES
============================================= */
.btn-submit.btn-loading {
  opacity: 0.7;
  cursor: wait;
}
.btn-submit.btn-success {
  background: #059669 !important;
  cursor: default;
}
.btn-submit.btn-error {
  background: #dc2626 !important;
  cursor: default;
}
.btn-submit:disabled {
  pointer-events: none;
}

/* =============================================
INTRO ANIMATION OVERLAY
============================================= */
#intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #0f1117;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
#intro-overlay.intro-hide {
  opacity: 0;
  pointer-events: none;
  transform: scale(1.03);
}
.intro-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  width: min(460px, 90vw);
}
.intro-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #2dd4bf;
}
.intro-logo svg {
  width: 48px;
  height: 48px;
  animation: introLogoPulse 1.4s ease-in-out infinite alternate;
}
@keyframes introLogoPulse {
  from { filter: drop-shadow(0 0 4px #2dd4bf66); }
  to   { filter: drop-shadow(0 0 18px #2dd4bfcc); }
}
.intro-logo-text {
  font-family: 'Cabinet Grotesk', 'Inter', sans-serif;
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 800;
  letter-spacing: 0.18em;
  color: #e8e8e6;
}
.intro-terminal {
  font-family: 'Courier New', monospace;
  font-size: clamp(0.72rem, 1.8vw, 0.85rem);
  color: #2dd4bf;
  background: #1a1d26;
  border: 1px solid #2a2d3a;
  border-radius: 0.5rem;
  padding: 1rem 1.25rem;
  width: 100%;
  min-height: 5.5rem;
  line-height: 1.8;
  white-space: pre-wrap;
}
.intro-terminal .cursor {
  display: inline-block;
  width: 0.55em;
  height: 1.1em;
  background: #2dd4bf;
  vertical-align: text-bottom;
  animation: introBlinkCursor 0.7s steps(1) infinite;
}
@keyframes introBlinkCursor {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}
.intro-bar-wrap {
  width: 100%;
  height: 3px;
  background: #1a1d26;
  border-radius: 9999px;
  overflow: hidden;
}
.intro-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #0d9488, #2dd4bf);
  border-radius: 9999px;
  transition: width 0.3s ease;
  box-shadow: 0 0 8px #2dd4bf88;
}
.intro-status {
  font-family: 'Cabinet Grotesk', 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5a5c64;
  height: 1em;
}
