/* =============================================
   JUSTZILLION — Design System 2027
   "The Stack" — a solo founder's build,
   rendered as layered, tactile 3D panels.
   ============================================= */

/* ---------- TOKENS ---------- */
:root {
  --bg:            #060912;
  --bg-1:          #090d18;
  --surface:       #0e1422;
  --surface-2:     #131a2b;
  --border:        rgba(148,163,255,0.10);
  --border-strong: rgba(148,163,255,0.22);
  --accent:        #4f8cff;
  --accent-2-raw:  #2563eb;
  --accent-ink:    #04070f;
  --accent-dim:    rgba(79,140,255,0.14);
  --accent-glow:   rgba(79,140,255,0.45);
  --accent-2:      #22d3ee;
  --accent-2-dim:  rgba(34,211,238,0.14);
  --text:          #eef1fb;
  --text-muted:    rgba(238,241,251,0.62);
  --text-dim:      rgba(238,241,251,0.38);
  --radius-sm:     8px;
  --radius:        16px;
  --radius-lg:     24px;
  --shadow:        0 10px 40px rgba(2,4,12,0.55);
  --shadow-accent: 0 10px 40px rgba(79,140,255,0.22);
  --font-display:  'Space Grotesk', system-ui, sans-serif;
  --font-body:     'Inter', system-ui, sans-serif;
  --font-mono:     'JetBrains Mono', ui-monospace, monospace;
  --ease:          cubic-bezier(0.22,1,0.36,1);
  --ease-spring:   cubic-bezier(0.34,1.56,0.64,1);
}

.light-mode {
  --bg:            #f5f7fc;
  --bg-1:          #eef1fa;
  --surface:       #ffffff;
  --surface-2:     #f8f9fe;
  --border:        rgba(20,30,70,0.09);
  --border-strong: rgba(20,30,70,0.18);
  --accent-ink:    #04070f;
  --text:          #0d1224;
  --text-muted:    rgba(13,18,36,0.62);
  --text-dim:      rgba(13,18,36,0.40);
  --shadow:        0 10px 40px rgba(20,30,70,0.10);
  --shadow-accent: 0 10px 40px rgba(79,140,255,0.18);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font-family: var(--font-body); cursor: pointer; }
::selection { background: var(--accent); color: #fff; }

h1, h2, h3, h4 { font-family: var(--font-display); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- AMBIENT BACKGROUND ---------- */
.bg-blobs {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.22;
}

.blob-a {
  width: 560px; height: 560px;
  top: -180px; left: -140px;
  background: var(--accent);
  animation: blob-drift-a 22s ease-in-out infinite alternate;
}

.blob-b {
  width: 480px; height: 480px;
  bottom: -190px; right: -110px;
  background: var(--accent-2);
  animation: blob-drift-b 26s ease-in-out infinite alternate;
}

@keyframes blob-drift-a {
  0%   { transform: translate(0,0) scale(1); }
  100% { transform: translate(60px,40px) scale(1.15); }
}
@keyframes blob-drift-b {
  0%   { transform: translate(0,0) scale(1); }
  100% { transform: translate(-50px,-30px) scale(1.1); }
}

.light-mode .blob { opacity: 0.13; }

.bg-blobs::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148,163,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,255,0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 0%, black, transparent 70%);
}
.light-mode .bg-blobs::after { opacity: 0.5; }

/* ---------- HEADER ---------- */
#site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(6,9,18,0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  transition: background 0.4s var(--ease), box-shadow 0.3s var(--ease);
}

.light-mode #site-header { background: rgba(245,247,252,0.82); }

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.logo img { width: 32px; height: 32px; border-radius: 8px; transition: transform 0.4s var(--ease-spring); }
.logo:hover img { transform: rotate(-8deg) scale(1.08); }
.logo-text { font-family: var(--font-display); font-size: 17px; font-weight: 700; letter-spacing: -0.02em; color: var(--text); }

nav { display: flex; align-items: center; gap: 4px; flex: 1; }

.nav-link {
  position: relative;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 14px; right: 14px; bottom: 2px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 176px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 20px 45px rgba(2,4,15,0.4);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  z-index: 20;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown-item {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav-dropdown-item:hover { color: var(--text); background: rgba(79,140,255,0.08); }

.mobile-nav-sublink { padding-left: 24px; font-size: 13.5px; color: var(--text-muted); opacity: 0.85; }

.header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }

.theme-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 13px;
  color: var(--text-muted);
  transition: border-color 0.25s, color 0.25s, transform 0.25s var(--ease-spring);
  display: flex; align-items: center; gap: 4px;
}
.theme-btn:hover { border-color: var(--accent); color: var(--accent); transform: rotate(-8deg); }
.theme-icon { font-style: normal; }
body:not(.light-mode) .theme-icon--light { display: none; }
.light-mode .theme-icon--dark { display: none; }

.mobile-menu-btn { display: none; flex-direction: column; gap: 5px; padding: 8px; background: none; border: none; }
.mobile-menu-btn span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.mobile-menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-btn.open span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu { display: none; flex-direction: column; padding: 12px 24px 16px; border-top: 1px solid var(--border); gap: 2px; }
.mobile-menu.open { display: flex; }
.mobile-nav-link { padding: 11px 12px; font-size: 15px; font-weight: 500; text-decoration: none; color: var(--text-muted); border-radius: var(--radius-sm); transition: color 0.2s, background 0.2s; }
.mobile-nav-link:hover { color: var(--text); background: rgba(79,140,255,0.08); }

/* ---------- SECTION BASE ---------- */
.section { position: relative; z-index: 1; padding: 120px 24px; }
.section-alt { background: var(--bg-1); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-inner { max-width: 1120px; margin: 0 auto; }

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px;
}
.section-eyebrow::before { content: '//'; opacity: 0.6; }

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 18px;
}

.section-sub { font-size: 17px; color: var(--text-muted); max-width: 540px; line-height: 1.7; margin-bottom: 56px; }
.section-head-center { text-align: center; }
.section-head-center .section-eyebrow { justify-content: center; }
.section-head-center .section-sub { margin-left: auto; margin-right: auto; }

/* ---------- BUTTONS ---------- */
.btn-primary {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2-raw));
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 10px;
  text-decoration: none;
  border: none;
  overflow: hidden;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s var(--ease);
}
.btn-primary::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.45), transparent);
  transform: translateX(-120%);
  transition: transform 0.6s var(--ease);
}
.btn-primary:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 10px 32px var(--accent-glow); }
.btn-primary:hover::before { transform: translateX(120%); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 15px;
  padding: 13px 20px;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid var(--border);
  transition: color 0.2s, border-color 0.2s, transform 0.25s var(--ease-spring), background 0.2s;
}
.btn-ghost:hover { color: var(--text); border-color: var(--border-strong); transform: translateY(-1px); background: var(--surface); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 96vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  padding: 150px 24px 90px;
  z-index: 1;
  perspective: 1400px;
  background: linear-gradient(180deg, var(--bg-1) 0%, var(--bg) 100%);
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 40%, var(--accent-dim) 0%, transparent 70%);
  opacity: 0.5;
  pointer-events: none;
}

.light-mode .hero {
  background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
}
.light-mode .hero::after { opacity: 0.35; }

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  pointer-events: none;
}


.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 7px 16px;
  margin-bottom: 30px;
  opacity: 0;
  animation: rise-in 0.7s var(--ease) 0.05s both;
}

.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); flex-shrink: 0; animation: dot-blink 2s ease-in-out infinite; }
@keyframes dot-blink { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

.hero-headline { font-size: clamp(38px, 6vw, 66px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.06; margin-bottom: 22px; }
.hero-headline .line { display: block; overflow: hidden; }
.hero-headline .line span { display: block; opacity: 0; transform: translateY(110%); animation: line-rise 0.8s var(--ease) both; }
.hero-headline .line:nth-child(1) span { animation-delay: 0.15s; }
.hero-headline .line:nth-child(2) span { animation-delay: 0.3s; }

@keyframes line-rise { to { opacity: 1; transform: translateY(0); } }

.headline-accent {
  font-style: normal;
  background: linear-gradient(100deg, var(--accent) 10%, var(--accent-2) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: 18px; color: var(--text-muted); max-width: 560px; margin: 0 auto 36px; line-height: 1.7;
  opacity: 0; animation: rise-in 0.8s var(--ease) 0.5s both;
}

.hero-cta { display: flex; gap: 14px; justify-content: center; margin-bottom: 70px; flex-wrap: wrap; opacity: 0; animation: rise-in 0.8s var(--ease) 0.62s both; }

@keyframes rise-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

.hero-icons {
  position: relative;
  height: 180px;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; animation: rise-in 0.9s var(--ease) 0.75s both;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.hero-icon-tile {
  position: absolute;
  width: 88px; height: 88px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: 0 20px 45px rgba(2,4,15,0.5), 0 2px 0 rgba(255,255,255,0.06) inset;
  background: var(--surface);
  transition: transform 0.5s var(--ease-spring), box-shadow 0.4s var(--ease);
  transform-style: preserve-3d;
  will-change: transform;
}
.hero-icon-tile img { width: 100%; height: 100%; object-fit: cover; }

.tile-1 { transform: translate3d(-172px, 10px, -50px) rotateY(18deg) rotate(-6deg); animation: float-1 6s ease-in-out infinite; z-index: 1; }
.tile-2 { width: 108px; height: 108px; z-index: 3; transform: translate3d(-58px,0,20px); animation: float-2 5.5s ease-in-out infinite; }
.tile-3 { transform: translate3d(58px, 0, 10px) rotate(3deg); animation: float-3 6.2s ease-in-out infinite; z-index: 2; }
.tile-4 { transform: translate3d(172px, 10px, -50px) rotateY(-18deg) rotate(6deg); animation: float-4 6.5s ease-in-out infinite; z-index: 1; }

.hero-icon-tile:hover { box-shadow: 0 28px 60px var(--accent-glow), 0 2px 0 rgba(255,255,255,0.1) inset; }

@keyframes float-1 { 0%,100% { transform: translate3d(-172px,10px,-50px) rotateY(18deg) rotate(-6deg); } 50% { transform: translate3d(-172px,-6px,-40px) rotateY(18deg) rotate(-4deg); } }
@keyframes float-2 { 0%,100% { transform: translate3d(-58px,0,20px) rotate(0deg); } 50% { transform: translate3d(-58px,-18px,30px) rotate(2deg); } }
@keyframes float-4 { 0%,100% { transform: translate3d(172px,10px,-50px) rotateY(-18deg) rotate(6deg); } 50% { transform: translate3d(172px,-6px,-40px) rotateY(-18deg) rotate(4deg); } }
@keyframes float-3 { 0%,100% { transform: translate3d(58px,0,10px) rotate(3deg); } 50% { transform: translate3d(58px,-16px,20px) rotate(1deg); } }

.hero-stats { display: flex; align-items: center; justify-content: center; gap: 40px; margin-top: 56px; flex-wrap: wrap; opacity: 0; animation: rise-in 0.8s var(--ease) 0.9s both; }
.stat { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.stat-num { font-family: var(--font-display); font-size: 30px; font-weight: 700; letter-spacing: -0.02em; }
.stat-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; color: var(--text-dim); text-transform: uppercase; }
.stat-divider { width: 1px; height: 32px; background: var(--border); }

/* ---------- MARQUEE ---------- */
.marquee-section { position: relative; z-index: 1; padding: 26px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); overflow: hidden; }
.marquee-track { display: flex; width: max-content; animation: marquee-scroll 26s linear infinite; }
.marquee-section:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: flex; align-items: center; gap: 14px; font-family: var(--font-mono); font-size: 14px; color: var(--text-dim); padding: 0 28px; white-space: nowrap; }
.marquee-item .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
@keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- FEATURES ---------- */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; perspective: 1200px; }
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  transition: transform 0.35s var(--ease-spring), border-color 0.3s, box-shadow 0.35s;
  transform-style: preserve-3d;
  will-change: transform;
}
.feature-card:hover { border-color: var(--border-strong); box-shadow: 0 26px 60px rgba(2,4,15,0.5); }
.feature-icon { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--accent-dim); color: var(--accent); font-size: 19px; margin-bottom: 20px; transition: transform 0.4s var(--ease-spring); }
.feature-card:hover .feature-icon { transform: rotate(-8deg) scale(1.08) translateZ(10px); }
.feature-card h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 10px; }
.feature-card p { font-size: 14.5px; color: var(--text-muted); line-height: 1.7; }

/* ---------- PRODUCTS ---------- */
.apps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; perspective: 1200px; }
.app-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.35s var(--ease-spring), border-color 0.3s, box-shadow 0.4s;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
}
.app-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 85% -10%, var(--accent-dim), transparent 60%);
  opacity: 0; transition: opacity 0.4s var(--ease);
}
.app-card:hover { border-color: var(--border-strong); box-shadow: 0 30px 70px rgba(2,4,15,0.55); }
.app-card:hover::before { opacity: 1; }
.app-card-img-wrap { width: 76px; height: 76px; border-radius: 18px; overflow: hidden; margin-bottom: 22px; border: 1px solid var(--border); transition: transform 0.4s var(--ease-spring); box-shadow: 0 10px 24px rgba(2,4,15,0.4); }
.app-card:hover .app-card-img-wrap { transform: rotate(-6deg) scale(1.06) translateZ(14px); }
.app-card-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.app-tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--accent-2); background: var(--accent-2-dim); padding: 4px 10px; border-radius: 6px; display: inline-block; margin-bottom: 14px; }
.app-card h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px; }
.app-card p { font-size: 14.5px; color: var(--text-muted); line-height: 1.65; margin-bottom: 20px; }
.app-cta { position: relative; z-index: 1; font-size: 13.5px; font-weight: 600; color: var(--text); display: inline-flex; align-items: center; gap: 6px; transition: gap 0.25s var(--ease); }
.app-card:hover .app-cta { gap: 10px; color: var(--accent); }

/* ---------- UPCOMING ---------- */
.upcoming-slider { position: relative; padding: 20px 0; }

.upcoming-carousel { position: relative; }

.upcoming-viewport {
  position: relative;
  overflow: visible;
  border-radius: var(--radius-lg);
  outline: none;
}
.upcoming-viewport:focus-visible { box-shadow: 0 0 0 3px var(--accent-dim); border-radius: var(--radius-lg); }

.upcoming-card {
  display: flex;
  align-items: center;
  gap: 44px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  position: relative;
  overflow: visible;
  box-shadow: var(--shadow);
  transition: transform 0.3s var(--ease-spring), border-color 0.3s, box-shadow 0.3s;
  transform-style: preserve-3d;
  will-change: transform, opacity;
}
.upcoming-card::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: radial-gradient(circle at 12% 15%, var(--accent-dim), transparent 60%);
  opacity: 0.7;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.upcoming-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 30px 70px rgba(2,4,15,0.55);
}
.upcoming-card:hover::before { opacity: 1; }

.upcoming-icon-tile {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 128px; height: 128px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  box-shadow: 0 24px 55px rgba(2,4,15,0.5), 0 2px 0 rgba(255,255,255,0.06) inset;
  transition: transform 0.5s var(--ease-spring), box-shadow 0.4s var(--ease);
  transform-style: preserve-3d;
  will-change: transform;
  transform: rotate(-4deg) rotateY(6deg);
  animation: upcoming-float 5.5s ease-in-out infinite;
}
.upcoming-icon-tile img { width: 100%; height: 100%; object-fit: cover; }
.upcoming-card:hover .upcoming-icon-tile {
  animation-play-state: paused;
  transform: rotate(0deg) rotateY(0deg) scale(1.06) translateZ(16px);
  box-shadow: 0 30px 65px var(--accent-glow), 0 2px 0 rgba(255,255,255,0.1) inset;
}

@keyframes upcoming-float {
  0%, 100% { transform: rotate(-4deg) rotateY(6deg) translateY(0); }
  50% { transform: rotate(-2deg) rotateY(6deg) translateY(-10px); }
}

.upcoming-info { position: relative; z-index: 1; min-width: 0; }
.upcoming-status {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-2);
  background: var(--accent-2-dim);
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 16px;
}
.upcoming-info h3 { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px; }
.upcoming-meta { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12.5px; color: var(--text-muted); margin-bottom: 18px; }
.upcoming-meta-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--text-dim); flex-shrink: 0; }
.upcoming-desc { font-size: 15px; color: var(--text-muted); line-height: 1.75; margin-bottom: 30px; max-width: 520px; }
.upcoming-btn { cursor: default; }
.upcoming-btn:hover { transform: none; box-shadow: none; }
.upcoming-btn::before { display: none; }

.upcoming-track {
  position: relative;
  width: 100%;
  transition: height 0.4s var(--ease);
}

.upcoming-track .upcoming-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateX(0);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1), transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.upcoming-track .upcoming-card.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}
.upcoming-track .upcoming-card.slide-in-right { opacity: 0; transform: translateX(28px); }
.upcoming-track .upcoming-card.slide-in-left  { opacity: 0; transform: translateX(-28px); }
.upcoming-track .upcoming-card.slide-out-left  { opacity: 0; transform: translateX(-28px); }
.upcoming-track .upcoming-card.slide-out-right { opacity: 0; transform: translateX(28px); }

.upcoming-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(2,4,15,0.4);
  transition: border-color 0.25s, color 0.25s, transform 0.25s var(--ease-spring), opacity 0.25s;
  z-index: 3;
}
.upcoming-nav:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-50%) scale(1.08); }
.upcoming-nav:active { transform: translateY(-50%) scale(0.94); }
.upcoming-nav-prev { left: 12px; }
.upcoming-nav-next { right: 12px; }

.upcoming-dots { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
.upcoming-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border-strong); border: none; padding: 0; cursor: pointer; transition: background 0.25s, transform 0.25s var(--ease-spring), width 0.25s var(--ease-spring); }
.upcoming-dot:hover { background: var(--border-strong); transform: scale(1.2); }
.upcoming-dot.active { background: var(--accent); width: 22px; border-radius: 999px; transform: scale(1); }

@media (min-width: 700px) {
  .upcoming-nav-prev { left: -22px; }
  .upcoming-nav-next { right: -22px; }
}

@media (prefers-reduced-motion: reduce) {
  .upcoming-track .upcoming-card,
  .upcoming-track { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

@media (max-width: 960px) {
  .upcoming-card { flex-direction: column; text-align: center; gap: 28px; padding: 40px 32px; }
  .upcoming-meta { justify-content: center; }
  .upcoming-desc { max-width: none; }
  .upcoming-nav-prev { left: 12px; }
  .upcoming-nav-next { right: 12px; }
}

@media (max-width: 680px) {
  .upcoming-card { padding: 32px 24px; }
  .upcoming-icon-tile { width: 100px; height: 100px; }
  .upcoming-nav-prev { left: 6px; }
  .upcoming-nav-next { right: 6px; }
  .upcoming-nav { width: 38px; height: 38px; font-size: 18px; }
}

/* ---------- PROCESS ---------- */
.process-list { position: relative; display: flex; flex-direction: column; gap: 0; }
.process-line {
  position: absolute; left: 27px; top: 14px; bottom: 14px; width: 2px;
  background: var(--border);
  overflow: hidden;
}
.process-line::after {
  content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, var(--accent), var(--accent-2));
  transform: scaleY(0); transform-origin: top; transition: transform 1.4s var(--ease);
}
.process-line.grow::after { transform: scaleY(1); }

.process-step { position: relative; display: flex; gap: 28px; padding: 28px 0; }
.process-num {
  flex-shrink: 0; width: 56px; height: 56px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 15px; font-weight: 600; color: var(--accent);
  position: relative; z-index: 1;
  box-shadow: 0 8px 20px rgba(2,4,15,0.4);
  transition: transform 0.4s var(--ease-spring), border-color 0.3s;
}
.process-step:hover .process-num { transform: scale(1.08) translateZ(8px); border-color: var(--accent); }
.process-body h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; letter-spacing: -0.02em; }
.process-body p { font-size: 14.5px; color: var(--text-muted); line-height: 1.7; max-width: 460px; }

/* ---------- WHY ---------- */
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; perspective: 1200px; }
.why-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px 28px; transition: transform 0.35s var(--ease-spring), border-color 0.3s; transform-style: preserve-3d; will-change: transform; }
.why-card:hover { border-color: var(--border-strong); box-shadow: 0 24px 55px rgba(2,4,15,0.45); }
.why-num { font-family: var(--font-mono); font-size: 12px; color: var(--accent-2); margin-bottom: 14px; }
.why-card h3 { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px; }
.why-card p { font-size: 14px; color: var(--text-muted); line-height: 1.65; }

/* ---------- COUNTERS ---------- */
.counters-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.counter-block { text-align: center; padding: 32px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); transition: transform 0.35s var(--ease-spring), border-color 0.3s; }
.counter-block:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.counter-num { font-family: var(--font-display); font-size: 38px; font-weight: 700; background: linear-gradient(100deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: -0.02em; }
.counter-label { font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.04em; margin-top: 8px; }

/* ---------- FAQ ---------- */
.faq-inner { display: grid; grid-template-columns: 0.9fr 1.4fr; gap: 60px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: none; border: none; padding: 22px 0; font-size: 15.5px; font-weight: 600; color: var(--text); text-align: left; transition: color 0.2s; line-height: 1.4; }
.faq-q:hover { color: var(--accent); }
.faq-chevron { font-size: 20px; font-weight: 300; color: var(--text-dim); flex-shrink: 0; transition: transform 0.35s var(--ease-spring), color 0.2s; }
.faq-q[aria-expanded="true"] .faq-chevron { transform: rotate(45deg); color: var(--accent); }
.faq-a { overflow: hidden; max-height: 0; transition: max-height 0.4s var(--ease); }
.faq-a p { font-size: 14.5px; color: var(--text-muted); line-height: 1.7; padding-bottom: 22px; }

/* ---------- CTA ---------- */
.cta-section { position: relative; z-index: 1; text-align: center; }
.cta-box {
  position: relative;
  max-width: 780px; margin: 0 auto;
  padding: 64px 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(2,4,15,0.5);
}
.cta-box::before {
  content: '';
  position: absolute; inset: -40%;
  background: conic-gradient(from 0deg, transparent, var(--accent-dim), transparent 30%);
  animation: cta-spin 8s linear infinite;
}
.cta-box-inner { position: relative; z-index: 1; }
@keyframes cta-spin { to { transform: rotate(360deg); } }
.cta-section .section-title { margin-bottom: 14px; }
.cta-section .section-sub { margin: 0 auto 32px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- CONTACT INFO CARD ---------- */
.contact-info-card {
  display: flex;
  align-items: center;
  gap: 20px;
  text-align: left;
  margin: 16px auto 0;
  max-width: 560px;
  padding: 24px 28px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.3s var(--ease), transform 0.35s var(--ease-spring);
}
.contact-info-card:first-of-type { margin-top: 28px; }
.contact-info-card:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.contact-info-icon {
  flex-shrink: 0;
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  color: var(--accent);
  background: var(--accent-dim);
  border-radius: 14px;
}
.contact-info-text { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.contact-info-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.contact-info-email {
  font-family: var(--font-mono);
  font-size: 15.5px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  word-break: break-all;
  transition: color 0.2s;
}
.contact-info-email:hover { color: var(--accent); }
.contact-info-btn { flex-shrink: 0; border: none; white-space: nowrap; }
.contact-info-note {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-dim);
}

@media (max-width: 560px) {
  .contact-info-card { flex-direction: column; text-align: center; gap: 14px; padding: 28px 22px; }
  .contact-info-text { align-items: center; }
  .contact-info-btn { width: 100%; text-align: center; }
}

/* ---------- FOOTER ---------- */
.site-footer { position: relative; z-index: 1; background: var(--bg-1); border-top: 1px solid var(--border); }
.footer-inner { max-width: 1120px; margin: 0 auto; padding: 64px 24px 48px; display: grid; grid-template-columns: 1.5fr 1fr; gap: 60px; }
.footer-brand .logo { margin-bottom: 14px; }
.footer-brand p { font-size: 14px; color: var(--text-muted); max-width: 260px; line-height: 1.6; }
.footer-links { display: flex; gap: 60px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h4 { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 4px; }
.footer-col a { font-size: 14px; color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { max-width: 1120px; margin: 0 auto; padding: 20px 24px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-bottom p { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-dim); }

/* ---------- ABOUT PAGE ---------- */
.about-hero { position: relative; z-index: 1; min-height: 78vh; display: flex; align-items: center; justify-content: center; padding: 150px 24px 80px; }
.about-hero-inner { max-width: 1040px; margin: 0 auto; display: flex; align-items: center; gap: 80px; flex-wrap: wrap; justify-content: center; }
.about-photo-wrap { position: relative; flex-shrink: 0; perspective: 900px; }
.about-photo-ring { position: absolute; inset: -14px; border-radius: 30px; background: conic-gradient(var(--accent) 0deg, transparent 60deg, transparent 300deg, var(--accent-2) 360deg); opacity: 0.32; animation: ring-spin 14s linear infinite; }
@keyframes ring-spin { to { transform: rotate(360deg); } }
.about-photo { width: 260px; height: 260px; object-fit: cover; border-radius: 22px; border: 1px solid var(--border); position: relative; z-index: 1; box-shadow: 0 30px 70px rgba(2,4,15,0.55); transition: transform 0.4s var(--ease-spring); transform-style: preserve-3d; }
.about-photo:hover { transform: scale(1.03) rotateY(-6deg) rotate(-1deg); }
.about-hero-text { max-width: 520px; }
.about-hero-text h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.1; margin: 10px 0 8px; }
.about-title-sub { font-family: var(--font-mono); font-size: 14.5px; color: var(--accent); margin-bottom: 20px; font-weight: 500; }
.about-bio { font-size: 17px; color: var(--text-muted); line-height: 1.75; margin-bottom: 24px; }
.about-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; }
.about-badge { font-family: var(--font-mono); font-size: 12px; color: var(--accent-2); background: var(--accent-2-dim); padding: 6px 12px; border-radius: 99px; border: 1px solid var(--border); }

.vision-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 80px; align-items: center; }
.vision-text p { font-size: 16px; color: var(--text-muted); line-height: 1.8; margin-bottom: 16px; }
.vision-text .section-title { margin-bottom: 20px; }
.vision-stat-block { display: flex; flex-direction: column; gap: 32px; }
.vision-stat .stat-num { font-size: 36px; }
.vision-stat .stat-label { font-size: 12px; }

.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; perspective: 1200px; }
.value-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px 28px; transition: transform 0.35s var(--ease-spring), border-color 0.3s; transform-style: preserve-3d; will-change: transform; }
.value-card:hover { border-color: var(--border-strong); box-shadow: 0 26px 60px rgba(2,4,15,0.5); }
.value-icon { font-size: 22px; color: var(--accent); margin-bottom: 18px; }
.value-card h3 { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 10px; }
.value-card p { font-size: 14px; color: var(--text-muted); line-height: 1.65; }

.skills-section .section-inner { max-width: 1120px; }
.skills-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.skill-chip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 18px;
  text-align: center;
  transition: transform 0.3s var(--ease-spring), border-color 0.3s;
}
.skill-chip:hover { transform: translateY(-5px); border-color: var(--accent); }
.skill-chip-label { font-family: var(--font-mono); font-size: 13px; font-weight: 500; color: var(--text); }

.timeline { position: relative; display: flex; flex-direction: column; gap: 0; max-width: 720px; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(180deg, var(--accent), var(--accent-2), transparent); }
.timeline-item { position: relative; padding: 0 0 36px 34px; }
.timeline-item::before { content: ''; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); }
.timeline-item h4 { font-size: 15.5px; font-weight: 700; margin-bottom: 4px; }
.timeline-item p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.timeline-year { font-family: var(--font-mono); font-size: 12px; color: var(--accent-2); display: block; margin-bottom: 6px; }

/* ---------- MARQUEE VARIANTS ---------- */
.marquee-alt { background: var(--bg-1); }
.marquee-track-reverse { animation-direction: reverse; }

/* ---------- BRAND STORY ---------- */
.story-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: start; }
.story-text p { color: var(--text-muted); font-size: 15px; line-height: 1.75; margin-bottom: 16px; max-width: 52ch; }
.story-link { margin-top: 8px; display: inline-flex; }
.story-highlights { display: flex; flex-direction: column; gap: 16px; }
.story-highlight-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  transition: transform 0.35s var(--ease-spring), border-color 0.3s, box-shadow 0.35s;
}
.story-highlight-card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: 0 20px 46px rgba(2,4,15,0.4); }
.story-highlight-num { font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--accent); flex-shrink: 0; padding-top: 2px; }
.story-highlight-card h4 { font-size: 15.5px; font-weight: 700; margin-bottom: 6px; letter-spacing: -0.01em; }
.story-highlight-card p { font-size: 13.5px; color: var(--text-muted); line-height: 1.6; }

/* ---------- TRUST / COMMITMENTS ---------- */
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 44px; }
.trust-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: transform 0.35s var(--ease-spring), border-color 0.3s, box-shadow 0.35s;
}
.trust-card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: 0 22px 50px rgba(2,4,15,0.45); }
.trust-icon {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 18px;
}
.trust-card h3 { font-size: 15.5px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.01em; }
.trust-card p { font-size: 13.5px; color: var(--text-muted); line-height: 1.65; }

/* ---------- REVEAL ANIMATIONS ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-headline .line span, .hero-eyebrow, .hero-sub, .hero-cta, .hero-icons, .hero-stats { opacity: 1; transform: none; animation: none; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 960px) {
  .section { padding: 84px 24px; }
  .features-grid, .apps-grid, .values-grid { grid-template-columns: repeat(2, 1fr); }
  .counters-band { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .faq-inner { grid-template-columns: 1fr; gap: 40px; }
  .faq-left .section-sub { margin-bottom: 0; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .vision-inner { grid-template-columns: 1fr; gap: 48px; }
  .vision-stat-block { flex-direction: row; gap: 32px; flex-wrap: wrap; }
  .story-inner { grid-template-columns: 1fr; gap: 40px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .upcoming-card { flex-direction: column; text-align: center; gap: 28px; padding: 40px 32px; }
  .upcoming-meta { justify-content: center; }
  .upcoming-desc { max-width: none; }
  .upcoming-nav-prev { left: 12px; }
  .upcoming-nav-next { right: 12px; }
  .about-hero-inner { flex-direction: column; text-align: center; gap: 48px; }
  .about-hero-text { text-align: center; }
  .about-hero-text .btn-primary { margin: 0 auto; }
  .about-title-sub { text-align: center; }
  .about-badges { justify-content: center; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  nav { display: none; }
  .mobile-menu-btn { display: flex; }
  .hero-headline { font-size: clamp(32px, 9vw, 48px); }
  .hero-sub { font-size: 16px; }
  .hero-cta { flex-direction: column; align-items: center; }
  .hero-icons { transform: scale(0.8); }
  .hero-stats { gap: 24px; }
  .stat-divider { display: none; }
  .section-title { font-size: clamp(24px, 6vw, 32px); }
  .footer-links { flex-direction: column; gap: 32px; }
  .features-grid, .apps-grid, .values-grid, .counters-band, .trust-grid { grid-template-columns: 1fr; }
  .process-step { gap: 18px; }
  .process-line { left: 22px; }
  .process-num { width: 46px; height: 46px; font-size: 13px; }
  .cta-box { padding: 44px 24px; }
  .form-row { grid-template-columns: 1fr; }
  .timeline-item { padding-left: 28px; }
  .upcoming-card { padding: 32px 24px; }
  .upcoming-icon-tile { width: 100px; height: 100px; }
  .upcoming-nav-prev { left: 6px; }
  .upcoming-nav-next { right: 6px; }
  .upcoming-nav { width: 38px; height: 38px; font-size: 18px; }
}

@media (max-width: 420px) {
  .hero { padding: 110px 16px 60px; }
  .section { padding: 64px 16px; }
  .header-inner { padding: 0 16px; }
}