/*
TemplateMo 621 Luminary
https://templatemo.com/tm-621-luminary
*/

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

:root {
  --base-deep: #0F1115;
  --base-mid: #161A20;
  --base-soft: #1C2128;
  --slate-warm: #6B7280;
  --slate-light: #9CA3AF;
  --graphite: #2A2E35;
  --graphite-soft: #3D424A;
  --ivory: #E5E7EB;
  --ivory-muted: #C9CDD4;
  --silver: #B0B8C4;
  --panel-bg: rgba(22, 26, 32, 0.55);
  --panel-border: rgba(156, 163, 175, 0.08);
  --silk-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; font-size: 16px; scroll-padding-top: 80px; }

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--base-deep);
  color: var(--ivory);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Grain ── */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 9999;
  opacity: 0.028; mix-blend-mode: overlay;
}

/* ── BG ── */
.atmosphere {
  position: fixed; inset: 0; z-index: 0;
  background: linear-gradient(180deg, #0F1115 0%, #131720 30%, #1a1e2e 60%, #0D0F13 100%);
  overflow: hidden;
}

/* ── Aurora / Color shifting glow ── */
.aurora {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 80% 50% at 20% 40%, rgba(56, 189, 248, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(139, 92, 246, 0.05) 0%, transparent 60%),
    radial-gradient(ellipse 70% 40% at 50% 80%, rgba(16, 185, 129, 0.04) 0%, transparent 60%);
  animation: auroraMove 25s ease-in-out infinite alternate;
  pointer-events: none;
}

.aurora-2 {
  background: 
    radial-gradient(ellipse 60% 40% at 70% 60%, rgba(236, 72, 153, 0.04) 0%, transparent 60%),
    radial-gradient(ellipse 80% 50% at 30% 50%, rgba(251, 191, 36, 0.025) 0%, transparent 60%);
  animation: auroraMove2 30s ease-in-out infinite alternate;
}

@keyframes auroraMove {
  0% { opacity: 0.7; transform: scale(1) translateY(0); }
  100% { opacity: 1; transform: scale(1.05) translateY(-2%); }
}

@keyframes auroraMove2 {
  0% { opacity: 0.6; transform: scale(1.05) translateX(0); }
  100% { opacity: 1; transform: scale(1) translateX(-2%); }
}

/* ── Orbs ── */
.orbs { position: absolute; inset: 0; pointer-events: none; }

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.5;
}

.orb-1 {
  width: 500px; height: 500px;
  background: rgba(56, 189, 248, 0.08);
  top: -10%; left: -8%;
  animation: orbDrift1 20s ease-in-out infinite;
}

.orb-2 {
  width: 550px; height: 550px;
  background: rgba(139, 92, 246, 0.07);
  top: 30%; right: -10%;
  animation: orbDrift2 25s ease-in-out infinite;
}

.orb-3 {
  width: 400px; height: 400px;
  background: rgba(16, 185, 129, 0.06);
  bottom: -5%; left: 30%;
  animation: orbDrift3 18s ease-in-out infinite;
}

@keyframes orbDrift1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, 20px) scale(1.08); }
}

@keyframes orbDrift2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-40px, -25px) scale(1.06); }
}

@keyframes orbDrift3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(25px, -30px) scale(1.1); }
}

/* ── Nav ── */
.top-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 600;
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 40px;
  transition: background 0.8s var(--silk-ease), padding 0.8s var(--silk-ease), box-shadow 0.8s var(--silk-ease);
}
.top-nav.scrolled {
  background: rgba(15, 17, 21, 0.85);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  padding: 16px 40px;
  box-shadow: 0 1px 40px rgba(0,0,0,0.3), 0 0 80px rgba(56, 189, 248, 0.02);
}
.nav-brand { display: flex; align-items: center; text-decoration: none; }
.nav-logo { height: 32px; width: auto; object-fit: contain; }
.nav-brand span { font-weight: 300; color: var(--slate-warm); margin-left: 4px; }
.nav-links { display: flex; gap: 32px; list-style: none; align-items: center; }
.nav-links a {
  font-size: 10px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--slate-warm); text-decoration: none; position: relative; padding: 14px 0 6px;
  transition: color 0.8s var(--silk-ease);
}
.nav-links a::after {
  content: ''; position: absolute; top: 0; left: 50%;
  width: 6px; height: 6px;
  border-right: 1px solid var(--silver); border-bottom: 1px solid var(--silver);
  transform: translateX(-50%) rotate(45deg) translateY(-8px);
  opacity: 0; transition: transform 0.8s var(--silk-ease), opacity 0.6s var(--silk-ease);
  pointer-events: none;
}
.nav-links a:hover { color: var(--ivory); }
.nav-links a:hover::after { opacity: 0.7; transform: translateX(-50%) rotate(45deg) translateY(0); }
.nav-links a.active { color: var(--ivory-muted); }
.nav-links a.active::after { opacity: 0.4; transform: translateX(-50%) rotate(45deg) translateY(0); }
.nav-cta {
  padding: 10px 28px; border-radius: 100px; font-family: inherit;
  font-size: 10px; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase;
  background: linear-gradient(135deg, var(--silver), var(--slate-light));
  color: var(--base-deep); border: none; cursor: pointer; text-decoration: none;
  position: relative;
  transition: transform 0.6s var(--silk-ease), box-shadow 0.6s var(--silk-ease);
}
.nav-cta:hover { transform: scale(1.05); box-shadow: 0 6px 30px rgba(56,189,248,0.15), 0 0 40px rgba(56,189,248,0.08); }

/* Language Switch */
.lang-switch {
  display: flex; gap: 2px; background: var(--panel-bg); border: 1px solid var(--panel-border);
  border-radius: 100px; padding: 3px; margin-left: 12px;
}
.lang-btn {
  padding: 6px 12px; border-radius: 100px; border: none; background: transparent;
  font-family: inherit; font-size: 10px; font-weight: 600; letter-spacing: 0.1em;
  color: var(--slate-warm); cursor: pointer; transition: all 0.3s var(--silk-ease);
}
.lang-btn.active {
  background: rgba(56,189,248,0.15); color: #38bdf8;
}
.lang-btn:hover:not(.active) { color: var(--ivory); }

/* ── Hamburger ── */
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 32px; height: 24px; position: relative; padding: 0;
}
.toggle-bar {
  display: block; width: 100%; height: 1.5px; background: var(--ivory);
  position: absolute; left: 0;
  transition: transform 0.6s var(--silk-ease), top 0.6s var(--silk-ease);
}
.toggle-bar:nth-child(1) { top: 6px; }
.toggle-bar:nth-child(2) { top: 16px; }
.nav-toggle.active .toggle-bar:nth-child(1) { top: 11px; transform: rotate(45deg); }
.nav-toggle.active .toggle-bar:nth-child(2) { top: 11px; transform: rotate(-45deg); }

/* ── Mobile Menu ── */
.mobile-menu {
  position: fixed; inset: 0; z-index: 550;
  pointer-events: none; opacity: 0; visibility: hidden;
  transition: opacity 0.6s var(--silk-ease), visibility 0.6s var(--silk-ease);
}
.mobile-menu.open { opacity: 1; visibility: visible; pointer-events: auto; }
.mobile-menu-inner {
  position: absolute; inset: 0;
  background: rgba(15, 17, 21, 0.94);
  backdrop-filter: blur(40px); -webkit-backdrop-filter: blur(40px);
  display: flex; flex-direction: column; justify-content: center;
  padding: 100px 40px 60px; overflow-y: auto;
}
.mobile-menu-links { display: flex; flex-direction: column; flex: 1; justify-content: center; }
.mobile-menu-link {
  display: flex; align-items: baseline; gap: 16px;
  font-size: clamp(1.6rem, 5vw, 2.6rem); font-weight: 300; letter-spacing: -0.02em;
  color: var(--ivory); text-decoration: none; padding: 14px 0;
  border-bottom: 1px solid rgba(156,163,175,0.06); position: relative;
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease, color 0.6s var(--silk-ease);
}
.mobile-menu.open .mobile-menu-link {
  opacity: 1; transform: translateY(0);
  transition: opacity 0.5s var(--silk-ease), transform 0.5s var(--silk-ease), color 0.6s var(--silk-ease);
}
.mobile-menu.open .mobile-menu-link:nth-child(1) { transition-delay: 0.06s; }
.mobile-menu.open .mobile-menu-link:nth-child(2) { transition-delay: 0.12s; }
.mobile-menu.open .mobile-menu-link:nth-child(3) { transition-delay: 0.18s; }
.mobile-menu.open .mobile-menu-link:nth-child(4) { transition-delay: 0.24s; }
.mobile-menu.open .mobile-menu-link:nth-child(5) { transition-delay: 0.30s; }
.mobile-menu.open .mobile-menu-link:nth-child(6) { transition-delay: 0.36s; }
.mobile-menu.open .mobile-menu-link:nth-child(7) { transition-delay: 0.42s; }
.mobile-menu-link::before {
  content: attr(data-index); font-size: 10px; font-weight: 500;
  letter-spacing: 0.15em; color: var(--slate-warm); opacity: 0.4;
  min-width: 24px; font-variant-numeric: tabular-nums;
}
.mobile-menu-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid rgba(156,163,175,0.06);
  opacity: 0; transition: opacity 0.3s ease;
}
.mobile-menu.open .mobile-menu-footer {
  opacity: 1; transition: opacity 0.5s var(--silk-ease) 0.45s;
}
.mobile-menu-footer a {
  font-size: 10px; font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--slate-warm); opacity: 0.4; text-decoration: none;
}
body.menu-open { overflow: hidden; }
body.menu-open .top-nav { background: rgba(15,17,21,0.95); backdrop-filter: blur(20px); }

/* ── Side Panels ── */
.side-panel {
  position: fixed; top: 50%; transform: translateY(-50%);
  width: 56px; z-index: 100;
  display: flex; flex-direction: column; align-items: center;
  gap: 14px; padding: 24px 0;
}
.side-panel.left { left: 20px; }
.side-panel.right { right: 20px; }
.side-label {
  writing-mode: vertical-rl; text-orientation: mixed;
  font-size: 9px; font-weight: 500; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--slate-warm); opacity: 0.5;
}
.side-track {
  width: 1px; height: 160px;
  background: rgba(156,163,175,0.06); position: relative; border-radius: 1px;
}
.side-track-fill {
  position: absolute; top: 0; left: 0; width: 100%; height: 0%;
  background: linear-gradient(to bottom, var(--silver), rgba(176,184,196,0.15));
  border-radius: 1px; transition: height 1.2s var(--silk-ease);
}
.side-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--slate-warm); opacity: 0.15;
  transition: opacity 0.8s var(--silk-ease), transform 0.8s var(--silk-ease), box-shadow 0.8s var(--silk-ease);
}
.side-dot.active {
  opacity: 0.8; background: var(--silver);
  box-shadow: 0 0 12px rgba(176,184,196,0.3); transform: scale(1.3);
}
.side-readout {
  font-size: 9px; font-weight: 400; letter-spacing: 0.1em;
  color: var(--slate-warm); opacity: 0.35;
  font-variant-numeric: tabular-nums;
}

/* ── Container ── */
.main { position: relative; z-index: 10; max-width: 1120px; margin: 0 auto; padding: 0 40px; }

/* ── Shared ── */
.section { padding: 120px 0; position: relative; }
.section-tag {
  font-size: 9px; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--slate-warm); opacity: 0.6; margin-bottom: 20px;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 300;
  letter-spacing: -0.04em; line-height: 1.15; color: var(--ivory); margin-bottom: 20px;
}
.section-title strong { font-weight: 600; }
.section-body {
  font-size: 0.95rem; font-weight: 300; line-height: 1.8; color: var(--slate-light); max-width: 540px;
}
.section-center { text-align: center; }
.section-center .section-body { margin: 0 auto; }

.silk-divider { 
  width: 200px; height: 1px; margin: 0 auto; position: relative;
  background: linear-gradient(90deg, transparent, rgba(56,189,248,0.2), rgba(139,92,246,0.2), transparent);
  overflow: visible;
}
.silk-divider::after {
  content: ''; position: absolute; top: -1px; left: 0; width: 40px; height: 3px;
  background: linear-gradient(90deg, rgba(56,189,248,0.6), transparent);
  border-radius: 2px; filter: blur(1px);
  animation: dividerGlow 4s ease-in-out infinite;
}
@keyframes dividerGlow {
  0%, 100% { left: 0; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { left: calc(100% - 40px); opacity: 0; }
}

.btn-primary {
  display: inline-block; padding: 16px 44px; border-radius: 100px;
  background: linear-gradient(135deg, var(--silver), var(--slate-light));
  color: var(--base-deep); font-family: inherit; font-size: 11px; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase; border: none; cursor: pointer;
  text-decoration: none; position: relative; overflow: hidden;
  transition: transform 0.8s var(--silk-ease), box-shadow 0.8s var(--silk-ease);
}
.btn-primary::before {
  content: ''; position: absolute; inset: -2px; border-radius: inherit;
  background: linear-gradient(135deg, rgba(56,189,248,0.4), rgba(139,92,246,0.4), rgba(16,185,129,0.4));
  z-index: -1; opacity: 0; filter: blur(12px);
  transition: opacity 0.6s var(--silk-ease);
}
.btn-primary:hover { transform: scale(1.04) translateY(-2px); box-shadow: 0 8px 40px rgba(176,184,196,0.2), 0 0 60px rgba(56,189,248,0.1); }
.btn-primary:hover::before { opacity: 1; }
.btn-secondary {
  display: inline-block; padding: 16px 44px; border-radius: 100px; background: transparent;
  color: var(--ivory-muted); font-family: inherit; font-size: 11px; font-weight: 500;
  letter-spacing: 0.15em; text-transform: uppercase;
  border: 1px solid var(--panel-border); cursor: pointer; text-decoration: none;
  position: relative; overflow: hidden;
  transition: transform 0.8s var(--silk-ease), border-color 0.8s var(--silk-ease), background 0.8s var(--silk-ease), box-shadow 0.8s var(--silk-ease);
}
.btn-secondary:hover { transform: scale(1.04) translateY(-2px); border-color: rgba(56,189,248,0.3); background: rgba(56,189,248,0.04); box-shadow: 0 4px 30px rgba(56,189,248,0.08); }

/* ── Reveal ── */
.reveal {
  opacity: 0; transform: translateY(36px);
  transition: opacity 1.2s var(--silk-ease), transform 1.2s var(--silk-ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }

/* ══════════════════════════════════
   HERO
   ══════════════════════════════════ */
.hero {
  min-height: 100vh; display: flex; flex-direction: column;
  justify-content: center; align-items: center; text-align: center;
  padding: 120px 0 80px; position: relative;
}
.hero-grid {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(56,189,248,0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(56,189,248,0.08) 1px, transparent 1px);
  background-size: 80px 80px;
  background-position: 0 0;
  animation: gridPulse 6s ease-in-out infinite;
}

/* Grid intersection dots - pulse at intersections */
.hero-grid::after {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle 2px at center, rgba(56,189,248,0.3) 0%, transparent 100%);
  background-size: 80px 80px;
  background-position: 0 0;
}

/* Node flash at intersections */
.grid-node {
  position: absolute;
  width: 4px; height: 4px;
  border-radius: 50%;
  pointer-events: none;
}
.grid-node::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: rgba(56,189,248,0.3);
  box-shadow: 0 0 4px rgba(56,189,248,0.4), 0 0 10px rgba(56,189,248,0.2);
  animation: nodePulse 1s ease-in-out 2;
}
.grid-node.purple::before {
  background: rgba(139,92,246,0.3);
  box-shadow: 0 0 4px rgba(139,92,246,0.4), 0 0 10px rgba(139,92,246,0.2);
}
.grid-node.green::before {
  background: rgba(16,185,129,0.3);
  box-shadow: 0 0 4px rgba(16,185,129,0.4), 0 0 10px rgba(16,185,129,0.2);
}
@keyframes nodePulse {
  0%, 100% { transform: scale(1); opacity: 0.2; }
  50% { transform: scale(2); opacity: 0.6; }
}

@keyframes gridPulse {
  0%, 100% { 
    background-image:
      linear-gradient(to right, rgba(56,189,248,0.06) 1px, transparent 1px),
      linear-gradient(to bottom, rgba(56,189,248,0.06) 1px, transparent 1px);
  }
  50% { 
    background-image:
      linear-gradient(to right, rgba(139,92,246,0.1) 1px, transparent 1px),
      linear-gradient(to bottom, rgba(56,189,248,0.09) 1px, transparent 1px);
  }
}

.grid-glow {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
  background:
    radial-gradient(circle 200px at 15% 25%, rgba(56,189,248,0.06) 0%, transparent 100%),
    radial-gradient(circle 180px at 75% 55%, rgba(139,92,246,0.05) 0%, transparent 100%),
    radial-gradient(circle 150px at 45% 80%, rgba(16,185,129,0.04) 0%, transparent 100%);
  animation: glowMove 10s ease-in-out infinite alternate;
}

@keyframes glowMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(30px, -20px); }
}

/* Grid Runners - light traveling along grid lines */
.grid-runners {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  z-index: 2; pointer-events: none; overflow: hidden;
}
.grid-runner {
  position: absolute;
  border-radius: 2px;
}
.grid-runner.horizontal {
  height: 2px;
  width: 80px;
  background: linear-gradient(90deg, transparent, rgba(56,189,248,0.5), transparent);
  box-shadow: 0 0 6px rgba(56,189,248,0.3);
  animation: runH linear infinite;
}
.grid-runner.vertical {
  width: 2px;
  height: 80px;
  background: linear-gradient(180deg, transparent, rgba(139,92,246,0.4), transparent);
  box-shadow: 0 0 6px rgba(139,92,246,0.3);
  animation: runV linear infinite;
}
.grid-runner.horizontal.green {
  background: linear-gradient(90deg, transparent, rgba(16,185,129,0.4), transparent);
  box-shadow: 0 0 6px rgba(16,185,129,0.3);
}
@keyframes runH {
  0% { left: -100px; }
  100% { left: 100vw; }
}
@keyframes runV {
  0% { top: -100px; }
  100% { top: 100vh; }
}
.hero > *:not(.hero-grid):not(.hero-floating) { position: relative; z-index: 1; }

/* Floating shapes */
.hero-floating {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.rain-drop {
  position: absolute;
  bottom: -80px;
  width: 1.5px;
  height: 60px;
  background: linear-gradient(to top, transparent, rgba(56,189,248,0.15), rgba(139,92,246,0.1), transparent);
  animation: rainUp linear infinite;
  opacity: 0;
  border-radius: 1px;
}
.rain-drop:nth-child(3n) {
  background: linear-gradient(to top, transparent, rgba(139,92,246,0.15), rgba(56,189,248,0.08), transparent);
}
.rain-drop:nth-child(5n) {
  background: linear-gradient(to top, transparent, rgba(16,185,129,0.12), transparent);
  width: 1px;
}
.rain-drop:nth-child(1) { left: 5%; animation-duration: 6s; animation-delay: 0s; height: 50px; }
.rain-drop:nth-child(2) { left: 10%; animation-duration: 7s; animation-delay: 0.5s; height: 70px; }
.rain-drop:nth-child(3) { left: 18%; animation-duration: 6.5s; animation-delay: 1s; height: 40px; }
.rain-drop:nth-child(4) { left: 25%; animation-duration: 8s; animation-delay: 1.5s; height: 80px; }
.rain-drop:nth-child(5) { left: 30%; animation-duration: 6.2s; animation-delay: 2s; height: 55px; }
.rain-drop:nth-child(6) { left: 38%; animation-duration: 7.5s; animation-delay: 0.3s; height: 65px; }
.rain-drop:nth-child(7) { left: 42%; animation-duration: 6.8s; animation-delay: 2.5s; height: 45px; }
.rain-drop:nth-child(8) { left: 50%; animation-duration: 7.2s; animation-delay: 1.2s; height: 75px; }
.rain-drop:nth-child(9) { left: 55%; animation-duration: 6.3s; animation-delay: 3s; height: 50px; }
.rain-drop:nth-child(10) { left: 62%; animation-duration: 8.5s; animation-delay: 0.8s; height: 60px; }
.rain-drop:nth-child(11) { left: 68%; animation-duration: 6.7s; animation-delay: 2.2s; height: 70px; }
.rain-drop:nth-child(12) { left: 72%; animation-duration: 7.8s; animation-delay: 1.8s; height: 45px; }
.rain-drop:nth-child(13) { left: 78%; animation-duration: 6.1s; animation-delay: 3.5s; height: 55px; }
.rain-drop:nth-child(14) { left: 82%; animation-duration: 7.3s; animation-delay: 0.6s; height: 80px; }
.rain-drop:nth-child(15) { left: 88%; animation-duration: 6.6s; animation-delay: 2.8s; height: 40px; }
.rain-drop:nth-child(16) { left: 92%; animation-duration: 8.2s; animation-delay: 1.4s; height: 65px; }
.rain-drop:nth-child(17) { left: 95%; animation-duration: 6.9s; animation-delay: 3.2s; height: 50px; }
.rain-drop:nth-child(18) { left: 15%; animation-duration: 7.6s; animation-delay: 2.6s; height: 75px; }
.rain-drop:nth-child(19) { left: 45%; animation-duration: 6.4s; animation-delay: 0.9s; height: 60px; }
.rain-drop:nth-child(20) { left: 75%; animation-duration: 7.1s; animation-delay: 3.8s; height: 55px; }

@keyframes rainUp {
  0% { bottom: -80px; opacity: 0; }
  10% { opacity: 0.4; }
  50% { opacity: 0.6; }
  90% { opacity: 0.3; }
  100% { bottom: 100vh; opacity: 0; }
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 24px; border-radius: 100px;
  background: var(--panel-bg); border: 1px solid rgba(56,189,248,0.15);
  backdrop-filter: blur(20px); margin-bottom: 40px;
  opacity: 0; transform: translateY(16px);
  animation: fadeUp 1.2s var(--silk-ease) 0.2s forwards;
  box-shadow: 0 0 30px rgba(56,189,248,0.05);
}
.hero-badge-dot {
  width: 6px; height: 6px; border-radius: 50%; background: #38bdf8;
  box-shadow: 0 0 12px rgba(56,189,248,0.6); animation: pulse 3s ease-in-out infinite;
}
.hero-badge span { font-size: 10px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--slate-light); }

.hero h1 {
  font-size: clamp(2.8rem, 6.5vw, 5.5rem); font-weight: 300;
  letter-spacing: -0.05em; line-height: 1;
  opacity: 0; transform: translateY(24px);
  animation: fadeUp 1.4s var(--silk-ease) 0.4s forwards;
}
.hero h1 em {
  font-style: normal; font-weight: 600;
  background: linear-gradient(135deg, #e0e7ff, #38bdf8, #a78bfa, #34d399, #38bdf8);
  background-size: 300% 300%;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  animation: fadeUp 1.4s var(--silk-ease) 0.4s forwards, gradientShift 8s ease-in-out infinite;
}
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.hero-sub {
  font-size: clamp(0.85rem, 1.2vw, 1rem); font-weight: 300; line-height: 1.7;
  color: var(--slate-light); max-width: 520px; margin: 28px auto 48px;
  opacity: 0; transform: translateY(16px);
  animation: fadeUp 1.4s var(--silk-ease) 0.6s forwards;
}
.hero-ctas {
  display: flex; gap: 14px;
  opacity: 0; transform: translateY(16px);
  animation: fadeUp 1.4s var(--silk-ease) 0.8s forwards;
}
.hero-metrics {
  display: flex; justify-content: center; gap: 56px; margin-top: 72px;
  opacity: 0; transform: translateY(16px);
  animation: fadeUp 1.4s var(--silk-ease) 1s forwards;
}
.metric { text-align: center; }
.metric-value {
  font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 300; letter-spacing: -0.04em;
  color: var(--ivory); line-height: 1; font-variant-numeric: tabular-nums;
}
.metric-value span { font-size: 0.5em; font-weight: 400; color: var(--slate-warm); vertical-align: super; margin-left: 2px; }
.metric-label { font-size: 9px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--slate-warm); margin-top: 8px; }

@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ══════════════════════════════════
   LOGO TICKER
   ══════════════════════════════════ */
.logo-ticker {
  padding: 60px 0; border-top: 1px solid rgba(56,189,248,0.08); border-bottom: 1px solid rgba(56,189,248,0.08);
  overflow: hidden; position: relative; z-index: 10;
  width: 100vw; margin-left: calc(-50vw + 50%);
}
.logo-ticker::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 10%, rgba(56,189,248,0.15) 50%, transparent 90%);
}
.logo-ticker::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 10%, rgba(139,92,246,0.12) 50%, transparent 90%);
}
.logo-ticker-label {
  text-align: center; font-size: 9px; font-weight: 500; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--slate-warm); opacity: 0.5; margin-bottom: 32px;
}
.ticker-track {
  display: flex; width: max-content;
  animation: tickerScroll 30s linear infinite;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-item {
  flex-shrink: 0; padding: 0 40px; display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--slate-warm); opacity: 0.4;
  transition: opacity 0.6s var(--silk-ease), color 0.6s var(--silk-ease), text-shadow 0.6s var(--silk-ease);
}
.ticker-item svg { flex-shrink: 0; opacity: 0.7; }
.ticker-item:hover { opacity: 0.9; color: #38bdf8; text-shadow: 0 0 20px rgba(56,189,248,0.3); }
.ticker-item:hover svg { opacity: 1; }
.ticker-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--slate-warm); opacity: 0.2; margin: 0 40px; flex-shrink: 0; }

@keyframes tickerScroll { to { transform: translateX(-50%); } }

/* ══════════════════════════════════
   FEATURE SHOWCASE
   ══════════════════════════════════ */
.feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
  padding: 72px 0;
}
.feature.reverse { direction: rtl; }
.feature.reverse > * { direction: ltr; }

.feature-visual {
  position: relative; height: 320px; border-radius: 32px; overflow: hidden;
  background: var(--panel-bg); border: 1px solid var(--panel-border);
  transition: transform 0.6s var(--silk-ease), box-shadow 0.6s var(--silk-ease), border-color 0.6s var(--silk-ease);
}
.feature-visual::before {
  content: ''; position: absolute; inset: 0; z-index: 1; border-radius: inherit;
  background: linear-gradient(135deg, rgba(56,189,248,0.05) 0%, transparent 50%);
  opacity: 0; transition: opacity 0.6s var(--silk-ease);
}
.feature-visual:hover { transform: translateY(-4px); box-shadow: 0 12px 60px rgba(0,0,0,0.3), 0 0 80px rgba(56,189,248,0.05); border-color: rgba(56,189,248,0.12); }
.feature-visual:hover::before { opacity: 1; }
.feature-visual img {
  width: 100%; height: 100%; object-fit: cover; border-radius: inherit;
  transition: transform 0.8s var(--silk-ease);
}
.feature-visual:hover img { transform: scale(1.03); }
.feature-content {}
.feature-number {
  font-size: 3rem; font-weight: 200; letter-spacing: -0.04em;
  color: rgba(176,184,196,0.08); line-height: 1; margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
}

/* ══════════════════════════════════
   PRICING
   ══════════════════════════════════ */
.pricing-toggle {
  display: flex; justify-content: center; align-items: center; gap: 16px;
  margin: 40px 0 56px;
}
.pricing-toggle-label {
  font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--slate-warm); transition: color 0.6s var(--silk-ease);
}
.pricing-toggle-label.active { color: var(--ivory); }
.toggle-switch {
  width: 48px; height: 26px; border-radius: 100px; background: var(--graphite);
  border: 1px solid var(--panel-border); position: relative; cursor: pointer;
  transition: background 0.6s var(--silk-ease);
}
.toggle-switch::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--silver); transition: transform 0.6s var(--silk-ease);
}
.toggle-switch.annual::after { transform: translateX(22px); }
.save-badge {
  font-size: 9px; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--silver); opacity: 0; transition: opacity 0.4s var(--silk-ease);
}
.save-badge.show { opacity: 1; }

.pricing-hint {
  font-size: 0.75rem; font-weight: 400; letter-spacing: 0.1em;
  color: var(--slate-warm); opacity: 0.5; margin-top: 16px;
}

.pricing-grid {
  display: flex; gap: 20px;
  margin-top: 48px;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 20px;
  scrollbar-width: none;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  padding-left: 40px;
  padding-right: 40px;
}
.pricing-grid::-webkit-scrollbar { display: none; }
.pricing-card {
  background: var(--panel-bg); border: 1px solid var(--panel-border); border-radius: 36px;
  padding: 44px 36px; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  min-width: 320px; flex: 1 0 0;
  scroll-snap-align: start;
  transition: transform 0.6s var(--silk-ease), box-shadow 0.6s var(--silk-ease), border-color 0.6s var(--silk-ease);
}
.pricing-card::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(160deg, rgba(56,189,248,0.03) 0%, transparent 40%);
  pointer-events: none; transition: opacity 0.8s var(--silk-ease); opacity: 0;
}
.pricing-card::after {
  content: ''; position: absolute; top: 0; left: -100%; width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(56,189,248,0.04), transparent);
  pointer-events: none; transition: left 0.8s var(--silk-ease);
}
.pricing-card:hover::after { left: 100%; }
.pricing-card.featured {
  border-color: rgba(56,189,248,0.15);
  box-shadow: 0 0 60px rgba(56,189,248,0.05), 0 0 120px rgba(139,92,246,0.03);
  padding-top: 60px;
  --glow-x: 50%; --glow-y: 50%;
}
.pricing-card.featured::before { 
  opacity: 1;
  background: radial-gradient(300px circle at var(--glow-x) var(--glow-y), rgba(56,189,248,0.06), transparent 60%);
}
.pricing-card.featured .pricing-badge { display: inline-block; }

.pricing-badge {
  display: none; position: absolute; top: 12px; right: 20px;
  font-size: 8px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 100px;
  background: rgba(56,189,248,0.1); border: 1px solid rgba(56,189,248,0.2);
  color: #38bdf8;
  box-shadow: 0 0 12px rgba(56,189,248,0.1);
}

.pricing-tier {
  font-size: 10px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--slate-warm); margin-bottom: 24px;
}

.pricing-prices { margin-bottom: 24px; }

.price-option {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 14px 0; border-bottom: 1px solid rgba(156,163,175,0.05);
  transition: opacity 0.6s var(--silk-ease);
  opacity: 0.35;
}
.price-option.active { opacity: 1; }

.price-option-left { display: flex; align-items: baseline; gap: 3px; }
.price-currency {
  font-size: 0.9rem; font-weight: 300; color: var(--slate-warm);
  transition: color 0.6s var(--silk-ease);
}
.price-amount {
  font-size: 2rem; font-weight: 300; letter-spacing: -0.04em; color: var(--slate-light);
  font-variant-numeric: tabular-nums;
  transition: font-size 0.6s var(--silk-ease), color 0.6s var(--silk-ease);
}
.price-period {
  font-size: 0.75rem; font-weight: 300; color: var(--slate-warm); margin-left: 2px;
  transition: color 0.6s var(--silk-ease);
}
.price-yearly {
  font-size: 0.72rem; font-weight: 400; color: var(--slate-warm);
  font-variant-numeric: tabular-nums;
  transition: color 0.6s var(--silk-ease);
}

/* Active state — emphasized */
.price-option.active .price-currency { color: var(--slate-light); }
.price-option.active .price-amount { font-size: 2.6rem; color: var(--ivory); }
.price-option.active .price-period { color: var(--slate-light); }
.price-option.active .price-yearly { color: var(--slate-light); }

.price-label {
  font-size: 8px; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--slate-warm); margin-bottom: 2px;
  transition: color 0.6s var(--silk-ease);
}
.price-option.active .price-label { color: var(--silver); }

.pricing-desc {
  font-size: 0.85rem; font-weight: 300; line-height: 1.6; color: var(--slate-light);
  margin-bottom: 28px;
}
.pricing-features { list-style: none; margin-bottom: 32px; flex: 1; }
.pricing-features li {
  font-size: 0.82rem; font-weight: 400; color: var(--slate-light);
  padding: 8px 0; border-bottom: 1px solid rgba(156,163,175,0.05);
  display: flex; align-items: center; gap: 10px;
}
.pricing-features li::before {
  content: ''; width: 4px; height: 4px; border-radius: 50%;
  background: var(--silver); opacity: 0.5; flex-shrink: 0;
}
.pricing-card .btn-primary, .pricing-card .btn-secondary { width: 100%; text-align: center; padding: 14px; }

/* ══════════════════════════════════
   TESTIMONIALS
   ══════════════════════════════════ */
.testimonials-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin-top: 56px;
}
.testimonial-card {
  background: var(--panel-bg); border: 1px solid var(--panel-border);
  border-radius: 28px; padding: 36px; backdrop-filter: blur(20px);
  position: relative; overflow: hidden;
  transition: transform 0.6s var(--silk-ease), border-color 0.6s var(--silk-ease), box-shadow 0.6s var(--silk-ease);
}
.testimonial-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56,189,248,0.3), transparent);
  opacity: 0; transition: opacity 0.6s var(--silk-ease);
}
.testimonial-card:hover::before { opacity: 1; }
.testimonial-card:hover { border-color: rgba(56,189,248,0.12); box-shadow: 0 8px 40px rgba(0,0,0,0.2), 0 0 60px rgba(56,189,248,0.04); }
.testimonial-quote {
  font-size: 0.9rem; font-weight: 300; line-height: 1.75; color: var(--slate-light);
  margin-bottom: 24px; font-style: italic;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--graphite); border: 1px solid var(--panel-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; color: var(--slate-warm);
}
.testimonial-name { font-size: 0.8rem; font-weight: 500; color: var(--ivory); }
.testimonial-role { font-size: 0.72rem; font-weight: 300; color: var(--slate-warm); margin-top: 2px; }
.testimonial-card:nth-child(2) { transform: translateY(24px); }

/* ══════════════════════════════════
   INTEGRATIONS
   ══════════════════════════════════ */
.integrations-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 56px;
}
.integration-item {
  background: var(--panel-bg); border: 1px solid var(--panel-border);
  border-radius: 20px; padding: 28px 16px; text-align: center;
  backdrop-filter: blur(16px); position: relative; overflow: hidden;
  transition: transform 0.6s var(--silk-ease), border-color 0.6s var(--silk-ease), box-shadow 0.6s var(--silk-ease);
}
.integration-item::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(circle at 50% 0%, rgba(56,189,248,0.08) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.6s var(--silk-ease);
}
.integration-item:hover::before { opacity: 1; }
.integration-item:hover { border-color: rgba(56,189,248,0.2); box-shadow: 0 4px 20px rgba(56,189,248,0.06); }
.integration-icon {
  width: 40px; height: 40px; margin: 0 auto 12px;
  border-radius: 10px; background: var(--graphite); border: 1px solid var(--panel-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--slate-light);
  transition: transform 0.6s var(--silk-ease), box-shadow 0.6s var(--silk-ease), border-color 0.6s var(--silk-ease);
}
.integration-item:hover .integration-icon {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(56,189,248,0.15);
  border-color: rgba(56,189,248,0.2);
}
.integration-name {
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.05em;
  color: var(--slate-light); text-transform: uppercase;
}

/* ══════════════════════════════════
   FAQ
   ══════════════════════════════════ */
.faq-list { max-width: 720px; margin: 48px auto 0; }
.faq-controls {
  display: flex; justify-content: flex-end; margin-bottom: 8px;
}
.faq-toggle-all {
  background: none; border: 1px solid var(--panel-border); border-radius: 100px;
  padding: 8px 20px; font-family: inherit;
  font-size: 9px; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--slate-warm); cursor: pointer;
  transition: color 0.6s var(--silk-ease), border-color 0.6s var(--silk-ease);
}
.faq-toggle-all:hover { color: var(--ivory); border-color: rgba(156,163,175,0.2); }
.faq-item {
  border-bottom: 1px solid var(--panel-border); overflow: hidden;
}
.faq-question {
  width: 100%; background: none; border: none; padding: 24px 0;
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; font-family: inherit;
  font-size: 0.95rem; font-weight: 400; color: var(--ivory);
  text-align: left;
  transition: color 0.6s var(--silk-ease);
}
.faq-question:hover { color: var(--silver); }
.faq-icon {
  width: 20px; height: 20px; position: relative; flex-shrink: 0; margin-left: 20px;
}
.faq-icon::before, .faq-icon::after {
  content: ''; position: absolute; background: var(--slate-warm);
  transition: transform 0.6s var(--silk-ease), opacity 0.4s ease;
}
.faq-icon::before { width: 12px; height: 1px; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.faq-icon::after { width: 1px; height: 12px; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.faq-item.open .faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 1s var(--silk-ease);
}
.faq-answer-inner {
  overflow: hidden;
  padding: 0;
  font-size: 0.88rem; font-weight: 300; line-height: 1.8; color: var(--slate-light);
  transition: padding 0.8s var(--silk-ease);
}
.faq-item.open .faq-answer { grid-template-rows: 1fr; }
.faq-item.open .faq-answer-inner { padding: 0 0 24px; }

/* ══════════════════════════════════
   FOOTER CTA
   ══════════════════════════════════ */
.footer-cta { padding: 120px 0 80px; text-align: center; }
.footer-ctas { display: flex; justify-content: center; gap: 14px; margin-top: 40px; }
.footer-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 40px; border-top: 1px solid rgba(156,163,175,0.06);
}
.footer-brand { font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--slate-light); opacity: 0.5; }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-links a {
  font-size: 10px; font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--slate-light); opacity: 0.5; text-decoration: none;
  transition: opacity 0.6s var(--silk-ease);
}
.footer-links a:hover { opacity: 0.8; }
.footer-credit {
  font-size: 10px; font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--slate-light); opacity: 0.5;
}
.footer-credit a {
  color: var(--slate-light); text-decoration: none; text-transform: none; letter-spacing: 0.05em;
  transition: opacity 0.6s var(--silk-ease);
}
.footer-credit a:hover { opacity: 0.8; }

/* ══════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════ */
@media (max-width: 1024px) {
  .main { padding: 0 32px; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .side-panel { display: none; }
  .feature { grid-template-columns: 1fr; gap: 40px; }
  .feature.reverse { direction: ltr; }
  .feature-visual { height: 260px; }
  .pricing-grid { padding-left: 20px; padding-right: 20px; }
  .pricing-card { min-width: 85vw; }
  .testimonials-grid { grid-template-columns: 1fr; max-width: 520px; margin: 48px auto 0; }
  .testimonial-card:nth-child(2) { transform: none; }
  .integrations-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .main { padding: 0 20px; }
  .top-nav { padding: 18px 20px; }
  .top-nav.scrolled { padding: 14px 20px; }
  .hero { min-height: 100svh; padding: 100px 0 60px; }
  .hero-metrics { flex-direction: column; gap: 28px; }
  .hero-ctas { flex-direction: column; align-items: center; }
  .btn-primary, .btn-secondary { width: 100%; max-width: 280px; text-align: center; }
  .section { padding: 80px 0; }
  .feature-visual { height: 240px; border-radius: 24px; }
  .pricing-card { padding: 32px 24px; border-radius: 28px; }
  .pricing-card.featured { padding-top: 52px; }
  .integrations-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-bar { flex-direction: column; gap: 20px; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
  .footer-ctas { flex-direction: column; align-items: center; }
  .mobile-menu-inner { padding: 90px 20px 40px; }
}

@media (max-width: 420px) {
  .hero h1 { font-size: 2.4rem; }
  .section-title { font-size: 1.7rem; }
  .integrations-grid { grid-template-columns: repeat(2, 1fr); }
  .mobile-menu-link { font-size: 1.4rem; }
}

@media (max-height: 540px) and (orientation: landscape) {
  .hero { min-height: auto; padding: 80px 0 40px; }
  .hero-metrics { flex-direction: row; gap: 36px; margin-top: 40px; }
  .section { padding: 60px 0; }
  .mobile-menu-inner { padding: 64px 32px 24px; justify-content: flex-start; }
  .mobile-menu-link { font-size: 1.2rem; padding: 8px 0; }
}

@media (hover: hover) and (pointer: fine) {
  .pricing-card:hover { transform: translateY(-6px) scale(1.01); box-shadow: 0 16px 60px rgba(0,0,0,0.2), 0 0 80px rgba(56,189,248,0.05); border-color: rgba(56,189,248,0.12); }
  .pricing-card:hover::before { opacity: 1; }
  .testimonial-card:hover { transform: translateY(-4px) scale(1.01); }
  .testimonial-card:nth-child(2):hover { transform: translateY(20px) scale(1.01); }
  .integration-item:hover { transform: translateY(-4px) scale(1.02); }
}
@media (hover: none) {
  .pricing-card:hover, .testimonial-card:hover, .integration-item:hover { transform: none; }
}

/* Focus */
.btn-primary:focus-visible, .btn-secondary:focus-visible,
.nav-links a:focus-visible, .nav-toggle:focus-visible,
.mobile-menu-link:focus-visible, .faq-question:focus-visible,
.toggle-switch:focus-visible, .faq-toggle-all:focus-visible {
  outline: 2px solid var(--silver); outline-offset: 3px;
}


/* ══════════════════════════════════
   FEATURE ILLUSTRATIONS
   ══════════════════════════════════ */
.feature-illustration {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(22,26,32,0.95), rgba(15,17,21,0.98));
}
.illus-svg {
  width: 85%; height: 85%; max-width: 100%; max-height: 100%;
}


/* ══════════════════════════════════
   PORTFOLIO
   ══════════════════════════════════ */
.portfolio-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  margin-top: 56px;
}
.portfolio-card {
  background: var(--panel-bg); border: 1px solid var(--panel-border);
  border-radius: 24px; overflow: hidden; text-decoration: none;
  display: flex; flex-direction: column;
  transition: transform 0.6s var(--silk-ease), border-color 0.6s var(--silk-ease), box-shadow 0.6s var(--silk-ease);
}
.portfolio-card:hover {
  transform: translateY(-6px);
  border-color: rgba(56,189,248,0.2);
  box-shadow: 0 12px 60px rgba(0,0,0,0.3), 0 0 60px rgba(56,189,248,0.05);
}
.portfolio-thumbnail {
  position: relative; width: 100%; height: 200px; overflow: hidden;
}
.portfolio-svg { width: 100%; height: 100%; display: block; }
.portfolio-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.8s var(--silk-ease); }
.portfolio-card:hover .portfolio-img { transform: scale(1.05); }
.portfolio-overlay {
  position: absolute; inset: 0;
  background: rgba(15,17,21,0.7);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.4s var(--silk-ease);
}
.portfolio-card:hover .portfolio-overlay { opacity: 1; }
.portfolio-view {
  font-size: 12px; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase;
  color: #38bdf8; padding: 10px 24px; border-radius: 100px;
  border: 1px solid rgba(56,189,248,0.3); background: rgba(56,189,248,0.05);
}
.portfolio-info { padding: 24px; }
.portfolio-title {
  font-size: 1rem; font-weight: 600; color: var(--ivory); margin-bottom: 8px;
}
.portfolio-desc {
  font-size: 0.82rem; font-weight: 300; line-height: 1.6; color: var(--slate-light); margin-bottom: 16px;
}
.portfolio-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.portfolio-tags span {
  font-size: 9px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 100px;
  background: rgba(56,189,248,0.06); border: 1px solid rgba(56,189,248,0.12);
  color: var(--slate-light);
}

@media (max-width: 1024px) {
  .portfolio-grid { grid-template-columns: 1fr; max-width: 480px; margin: 56px auto 0; }
}
