/* ============================================
   ORBITA STUDIO — Premium CSS
   ============================================ */

/* ---- Variables ---- */
:root {
  --bg: #020617;
  --surface: #070f1f;
  --surface-2: #0c1a30;
  --card: rgba(255,255,255,0.04);
  --card-hover: rgba(255,255,255,0.07);
  --primary: #38BDF8;
  --primary-dim: rgba(56,189,248,0.15);
  --secondary: #8B5CF6;
  --secondary-dim: rgba(139,92,246,0.15);
  --accent: #F472B6;
  --text: #F1F5F9;
  --text-2: #94A3B8;
  --text-3: #475569;
  --line: rgba(255,255,255,0.08);
  --line-bright: rgba(255,255,255,0.16);
  --radius: 20px;
  --radius-sm: 12px;
  --radius-lg: 32px;
  --shadow: 0 20px 60px rgba(0,0,0,0.4);
  --glow-primary: 0 0 40px rgba(56,189,248,0.3);
  --glow-secondary: 0 0 40px rgba(139,92,246,0.3);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Instrument Sans', system-ui, sans-serif;
  overflow-x: hidden;
  line-height: 1.6;
}
body.loading { overflow: hidden; }
h1, h2, h3, h4, .brand, .stat-num { font-family: 'Syne', system-ui, sans-serif; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }

/* ---- Background ---- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 70% -10%, rgba(56,189,248,0.12), transparent),
    radial-gradient(ellipse 60% 40% at 10% 60%, rgba(139,92,246,0.1), transparent),
    radial-gradient(ellipse 50% 50% at 90% 90%, rgba(244,114,182,0.05), transparent);
  z-index: -3;
  pointer-events: none;
}

/* ---- Stars Canvas ---- */
#stars {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

/* ---- Cursor ---- */
.cursor-glow {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56,189,248,0.1), transparent 65%);
  pointer-events: none;
  z-index: -1;
  transform: translate(-50%, -50%);
  transition: transform 0.08s;
  will-change: transform;
}
.cursor-dot {
  position: fixed;
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 100;
  transform: translate(-50%, -50%);
  transition: transform 0.05s, width 0.2s, height 0.2s, opacity 0.2s;
  mix-blend-mode: screen;
}
@media (pointer: coarse) {
  .cursor-dot, .cursor-glow { display: none; }
}

/* ---- Loader ---- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
.loader.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.loader-orbit {
  width: 100px;
  height: 100px;
  animation: loader-spin 2s linear infinite;
}
@keyframes loader-spin {
  to { transform: rotate(360deg); }
}
.loader-text {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.3em;
  color: var(--text);
}
.loader-text span {
  color: var(--primary);
  margin-left: 8px;
}

/* ---- Navbar ---- */
.navbar {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1160px, calc(100% - 32px));
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: rgba(2,6,23,0.5);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.navbar.scrolled {
  background: rgba(2,6,23,0.9);
  border-color: var(--line-bright);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.04), var(--shadow);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.05em;
}
.brand em { color: var(--primary); font-style: normal; }
.brand-icon { flex-shrink: 0; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a {
  color: var(--text-2);
  font-size: 14px;
  padding: 7px 12px;
  border-radius: 100px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.06); }
.nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
  color: white !important;
  padding: 8px 18px !important;
  border-radius: 100px !important;
  font-weight: 600;
  font-size: 13px;
  transition: opacity 0.2s, transform 0.2s !important;
  box-shadow: 0 0 30px rgba(56,189,248,0.2);
}
.nav-cta:hover { opacity: 0.9; transform: translateY(-1px) !important; }
.nav-cta-dot {
  width: 7px;
  height: 7px;
  background: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 8px #4ade80;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.8); }
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 6px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---- Layout ---- */
.section {
  width: min(1160px, calc(100% - 32px));
  margin: auto;
  padding: 120px 0;
}
.section-head {
  margin-bottom: 56px;
  max-width: 700px;
}
.section-head h2, .calculator-section h2, .ba-section h2 {
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.05;
  margin: 14px 0;
}
.section-head p { color: var(--text-2); font-size: 18px; }

/* ---- Eyebrow ---- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  padding: 6px 14px;
  background: var(--primary-dim);
  border: 1px solid rgba(56,189,248,0.25);
  border-radius: 100px;
}
.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--primary);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 15px;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background 0.2s;
}
.btn:hover::after { background: rgba(255,255,255,0.08); }
.btn.primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  box-shadow: 0 0 30px rgba(56,189,248,0.25), 0 4px 20px rgba(0,0,0,0.3);
}
.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 50px rgba(56,189,248,0.4), 0 8px 30px rgba(0,0,0,0.4);
}
.btn.ghost {
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border: 1px solid var(--line-bright);
}
.btn.ghost:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

/* ---- Gradient Text ---- */
.gradient-text { color: var(--primary); }
.gradient-text .line {
  background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Reveal Animations ---- */
.reveal-fade {
  opacity: 0;
  transition: opacity 0.8s ease;
}
.reveal-fade.visible { opacity: 1; }

.reveal-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* ---- Line Wrap (hero text) ---- */
.line-wrap { display: block; overflow: hidden; }
.line-wrap .line {
  display: block;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.6s ease;
}
.line-wrap .line.visible {
  transform: translateY(0);
  opacity: 1;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding-top: 120px;
  position: relative;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-2);
  padding: 8px 16px;
  background: rgba(74,222,128,0.06);
  border: 1px solid rgba(74,222,128,0.2);
  border-radius: 100px;
  margin-bottom: 28px;
}
.badge-dot {
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 12px #4ade80;
}
.pulse { animation: pulse-green 2s infinite; }
@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 8px #4ade80; }
  50% { box-shadow: 0 0 20px #4ade80; }
}
.hero-h1 {
  font-size: clamp(52px, 7vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.hero-sub {
  font-size: 18px;
  color: var(--text-2);
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: 36px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: 24px;
}
.meta-item { display: flex; flex-direction: column; }
.meta-num {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 28px;
  color: var(--text);
  line-height: 1;
}
.meta-label {
  font-size: 12px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 2px;
}
.meta-sep {
  width: 1px;
  height: 36px;
  background: var(--line-bright);
}

/* ---- Planet System ---- */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 560px;
}
.planet-system {
  position: relative;
  width: 460px;
  height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.planet-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56,189,248,0.2), rgba(139,92,246,0.1), transparent 70%);
  filter: blur(30px);
  animation: planet-pulse 4s ease-in-out infinite;
}
@keyframes planet-pulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; }
}
.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(56,189,248,0.2);
  transform-style: preserve-3d;
  transform: rotateX(72deg);
  animation: ring-spin 20s linear infinite;
}
.ring-outer {
  inset: 20px;
  border-color: rgba(56,189,248,0.15);
  animation-duration: 25s;
}
.ring-middle {
  inset: 60px;
  border-color: rgba(139,92,246,0.25);
  animation-duration: 18s;
  animation-direction: reverse;
}
.ring-inner {
  inset: 100px;
  border-color: rgba(244,114,182,0.2);
  animation-duration: 12s;
}
@keyframes ring-spin {
  to { transform: rotateX(72deg) rotateZ(360deg); }
}
.ring-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  top: 50%;
  left: -5px;
  transform: translateY(-50%);
}
.ring-dot-1 { background: var(--primary); box-shadow: 0 0 20px var(--primary); }
.ring-dot-2 { background: var(--accent); box-shadow: 0 0 20px var(--accent); left: auto; right: -5px; }

.planet {
  position: relative;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #e0f2fe, #7dd3fc 25%, #3b82f6 55%, #1e3a5f 80%, #0f172a 100%);
  box-shadow:
    -30px -20px 60px rgba(255,255,255,0.15) inset,
    0 0 80px rgba(56,189,248,0.4),
    0 30px 100px rgba(0,0,0,0.6);
  animation: planet-float 7s ease-in-out infinite;
  overflow: hidden;
  z-index: 2;
}
@keyframes planet-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-18px) rotate(1.5deg); }
}
.planet-surface {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 60% 70%, rgba(139,92,246,0.15), transparent 40%),
    radial-gradient(circle at 20% 80%, rgba(56,189,248,0.1), transparent 30%);
}
.crater {
  position: absolute;
  border-radius: 50%;
  background: rgba(0,0,0,0.15);
  box-shadow: inset 2px 2px 6px rgba(0,0,0,0.3);
}
.c1 { width: 44px; height: 44px; top: 22%; left: 20%; }
.c2 { width: 66px; height: 66px; top: 42%; right: 18%; }
.c3 { width: 28px; height: 28px; bottom: 22%; left: 44%; }
.planet-shine {
  position: absolute;
  top: 12%;
  left: 14%;
  width: 60%;
  height: 50%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255,255,255,0.25), transparent 70%);
  filter: blur(4px);
}
.planet-shadow {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: transparent;
  box-shadow: 30px 20px 80px rgba(0,0,0,0.8);
  z-index: 1;
  pointer-events: none;
}

/* ---- Floating Cards ---- */
.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(7,15,31,0.8);
  border: 1px solid var(--line-bright);
  border-radius: 16px;
  backdrop-filter: blur(16px);
  font-size: 13px;
  white-space: nowrap;
  box-shadow: var(--shadow);
  animation: float-card 5s ease-in-out infinite;
}
.fc-1 {
  top: 10%;
  right: -10%;
  animation-delay: 0s;
}
.fc-2 {
  bottom: 12%;
  left: -12%;
  animation-delay: 1.5s;
  animation-duration: 6s;
}
.fc-3 {
  bottom: 30%;
  right: -8%;
  animation-delay: 0.8s;
  animation-duration: 7s;
}
@keyframes float-card {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.fc-icon { font-size: 20px; }
.fc-title { font-weight: 600; color: var(--text); font-size: 12px; }
.fc-sub { color: var(--text-2); font-size: 11px; }
.fc-stars { color: #FBBF24; font-size: 13px; }

/* ---- Scroll Hint ---- */
.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-3);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--primary));
  animation: scroll-line 2s ease-in-out infinite;
}
@keyframes scroll-line {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  50.01% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============================================
   MARQUEE
   ============================================ */
.marquee-wrap {
  width: 100%;
  overflow: hidden;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
  margin-bottom: 0;
}
.marquee-track {
  display: flex;
  gap: 40px;
  width: max-content;
  animation: marquee 28s linear infinite;
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--text-3);
  text-transform: uppercase;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-track .sep { color: var(--primary); }
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ============================================
   STATS
   ============================================ */
.stats-section { padding-top: 80px; padding-bottom: 80px; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.stat-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color 0.3s, background 0.3s;
}
.stat-card:hover {
  border-color: var(--line-bright);
  background: var(--card-hover);
}
.stat-num {
  display: block;
  font-size: 52px;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  display: block;
  font-size: 13px;
  color: var(--text-2);
  margin-top: 6px;
  margin-bottom: 16px;
}
.stat-bar {
  height: 3px;
  background: var(--line);
  border-radius: 100px;
  overflow: hidden;
}
.stat-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 100px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.3s;
}
.stat-card.visible .stat-fill { transform: scaleX(1); }

/* ============================================
   SERVICES
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.service-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  cursor: default;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.service-card:hover {
  border-color: rgba(56,189,248,0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), var(--glow-primary);
}
.service-card:hover::before { opacity: 1; }
.service-num {
  font-family: 'Syne', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  opacity: 0.5;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.service-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}
.service-card p {
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
}
.service-price {
  display: inline-flex;
  padding: 6px 14px;
  background: var(--primary-dim);
  border: 1px solid rgba(56,189,248,0.2);
  border-radius: 100px;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--primary);
}

/* ============================================
   CALCULATOR
   ============================================ */
.calculator-section { background: transparent; }
.calc-wrapper {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 60px;
}
.calc-info h2 {
  font-size: clamp(32px, 4vw, 48px);
  margin: 14px 0;
}
.calc-info p {
  color: var(--text-2);
  font-size: 16px;
  margin-bottom: 28px;
}
.calc-features { display: flex; flex-direction: column; gap: 10px; }
.cf-item {
  font-size: 14px;
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: 8px;
}
.cf-item::before { content: '•'; color: var(--primary); }
.calc-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.calc-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--text-2);
  font-weight: 500;
}
.calc-select, .calc-input {
  width: 100%;
  padding: 13px 16px;
  background: rgba(2,6,23,0.6);
  border: 1px solid var(--line-bright);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}
.calc-select:focus, .calc-input:focus {
  outline: none;
  border-color: var(--primary);
}
.calc-options { display: flex; flex-direction: column; gap: 12px; }
.calc-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-2);
}
.calc-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.toggle-track {
  width: 40px;
  height: 22px;
  background: var(--line-bright);
  border-radius: 100px;
  position: relative;
  flex-shrink: 0;
  transition: background 0.2s;
}
.toggle-thumb {
  position: absolute;
  width: 16px;
  height: 16px;
  background: white;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: transform 0.2s;
}
.calc-toggle input:checked ~ .toggle-track { background: var(--primary); }
.calc-toggle input:checked ~ .toggle-track .toggle-thumb { transform: translateX(18px); }
.calc-toggle em { color: var(--primary); font-style: normal; }
.estimate-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: var(--primary-dim);
  border: 1px solid rgba(56,189,248,0.2);
  border-radius: var(--radius-sm);
}
.estimate-box span { color: var(--text-2); font-size: 14px; }
.estimate-price {
  font-family: 'Syne', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  transition: transform 0.15s;
}
.estimate-price.bump { transform: scale(1.1); }

/* ============================================
   PORTFOLIO
   ============================================ */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.portfolio-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.portfolio-card:hover {
  border-color: var(--line-bright);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.portfolio-img-wrap {
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--surface-2);
  position: relative;
}
.portfolio-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.portfolio-card:hover .portfolio-img-wrap img { transform: scale(1.04); }
.portfolio-body { padding: 24px; }
.portfolio-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  background: var(--primary-dim);
  color: var(--primary);
  border: 1px solid rgba(56,189,248,0.2);
  border-radius: 100px;
}
.tag.featured {
  background: var(--secondary-dim);
  color: var(--secondary);
  border-color: rgba(139,92,246,0.2);
}
.portfolio-body h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}
.portfolio-body p {
  font-size: 14px;
  color: var(--text-2);
  margin-bottom: 18px;
  line-height: 1.6;
}

/* ============================================
   WHY
   ============================================ */
.why-section { padding-top: 0; }
.why-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  align-items: start;
}
.why-head h2 {
  font-size: clamp(32px, 4vw, 48px);
  margin: 14px 0;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.why-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.3s, background 0.3s;
}
.why-card:hover {
  border-color: var(--line-bright);
  background: var(--card-hover);
}
.why-icon { font-size: 28px; margin-bottom: 14px; }
.why-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.why-card p { font-size: 13px; color: var(--text-2); line-height: 1.6; }

/* ============================================
   PROCESS
   ============================================ */
.process-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.process-line {
  position: absolute;
  top: 28px;
  left: 60px;
  right: 60px;
  height: 1px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent), var(--secondary));
  opacity: 0.3;
}
.process-step {
  padding: 24px 20px;
  position: relative;
}
.step-num {
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: var(--primary);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-dim);
  border: 1px solid rgba(56,189,248,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  letter-spacing: 0.05em;
}
.step-body h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}
.step-body p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
}

/* ============================================
   BEFORE / AFTER
   ============================================ */
.ba-section { padding-top: 0; }
.ba-inner {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 60px;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: center;
}
.ba-text h2 {
  font-size: clamp(28px, 4vw, 44px);
  margin: 14px 0;
}
.ba-text p {
  color: var(--text-2);
  font-size: 16px;
  margin-bottom: 28px;
}
.ba-compare {
  display: flex;
  align-items: center;
  gap: 20px;
}
.ba-before, .ba-after {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ba-label {
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--card);
  display: inline-block;
}
.ba-label.after { color: var(--primary); background: var(--primary-dim); }
.ba-arrow {
  font-family: 'Syne', sans-serif;
  font-size: 24px;
  color: var(--primary);
  flex-shrink: 0;
}
.ba-mockup {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-2);
}
.mock-nav {
  height: 32px;
  background: var(--surface);
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 6px;
}
.mock-nav::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
}
.mock-nav.ugly { background: #1a1a2e; }
.mock-nav.clean { background: rgba(2,6,23,0.8); }
.mock-nav.clean::before { background: var(--primary); }
.ugly-hero {
  padding: 16px;
  background: #16213e;
}
.uh-title {
  height: 14px;
  width: 70%;
  background: rgba(255,255,255,0.2);
  border-radius: 3px;
  margin-bottom: 8px;
}
.uh-text {
  height: 8px;
  width: 90%;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  margin-bottom: 5px;
}
.uh-text.short { width: 60%; }
.ugly-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 10px;
}
.ugly-grid div {
  height: 40px;
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
}
.clean-hero {
  padding: 16px;
  background: linear-gradient(135deg, rgba(56,189,248,0.05), rgba(139,92,246,0.05));
}
.ch-badge {
  height: 14px;
  width: 50%;
  background: var(--primary-dim);
  border-radius: 100px;
  margin-bottom: 10px;
}
.ch-title {
  height: 16px;
  width: 85%;
  background: rgba(255,255,255,0.25);
  border-radius: 4px;
  margin-bottom: 8px;
}
.ch-text {
  height: 8px;
  width: 75%;
  background: rgba(255,255,255,0.12);
  border-radius: 2px;
  margin-bottom: 12px;
}
.ch-btns { display: flex; gap: 6px; }
.ch-btn {
  height: 22px;
  width: 60px;
  border-radius: 100px;
}
.ch-btn.primary { background: linear-gradient(135deg, var(--primary), var(--secondary)); }
.ch-btn.ghost { background: rgba(255,255,255,0.1); border: 1px solid var(--line); }
.mock-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 10px;
}
.mock-cards div {
  height: 40px;
  background: rgba(56,189,248,0.08);
  border: 1px solid rgba(56,189,248,0.15);
  border-radius: 8px;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.testimonial-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.3s;
}
.testimonial-card:hover { border-color: var(--line-bright); }
.t-stars {
  color: #FBBF24;
  font-size: 14px;
  margin-bottom: 14px;
  letter-spacing: 2px;
}
.t-content {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 18px;
}
.t-author {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
}
.testimonials-empty {
  grid-column: 1/-1;
  text-align: center;
  padding: 60px 24px;
  color: var(--text-2);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* ============================================
   CONTACT
   ============================================ */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  align-items: start;
}
.contact-head h2 {
  font-size: clamp(32px, 4vw, 52px);
  margin: 14px 0 16px;
}
.contact-head p {
  color: var(--text-2);
  font-size: 16px;
  margin-bottom: 32px;
}
.contact-channels { display: flex; flex-direction: column; gap: 12px; }
.channel-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.3s, background 0.3s, transform 0.2s;
}
.channel-card:hover {
  border-color: var(--line-bright);
  background: var(--card-hover);
  transform: translateX(4px);
}
.channel-icon { font-size: 24px; }
.channel-name { font-weight: 600; font-size: 14px; }
.channel-handle { font-size: 13px; color: var(--text-2); }
.channel-arrow { margin-left: auto; color: var(--text-3); transition: color 0.2s; }
.channel-card:hover .channel-arrow { color: var(--primary); }

/* Lead Form */
.lead-form {
  display: grid;
  gap: 14px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group.full { grid-column: 1/-1; }
.form-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.lead-form input,
.lead-form textarea,
.lead-form select {
  width: 100%;
  padding: 13px 16px;
  background: rgba(2,6,23,0.6);
  border: 1px solid var(--line-bright);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}
.lead-form input:focus,
.lead-form textarea:focus,
.lead-form select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(56,189,248,0.1);
}
.lead-form input::placeholder,
.lead-form textarea::placeholder {
  color: var(--text-3);
}
.lead-form textarea { resize: vertical; min-height: 100px; }
.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}
.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  color: var(--text-2);
  cursor: pointer;
}
.consent-label input { margin-top: 2px; flex-shrink: 0; accent-color: var(--primary); }
.submit-btn { width: 100%; justify-content: center; margin-top: 4px; }
.form-status {
  font-size: 14px;
  text-align: center;
  min-height: 22px;
  transition: color 0.3s;
}
.form-status.success { color: #4ade80; }
.form-status.error { color: #f87171; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
}
.footer-inner {
  width: min(1160px, calc(100% - 32px));
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-brand { gap: 8px; }
.footer-copy {
  font-size: 13px;
  color: var(--text-3);
}
.footer-cta {
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
  transition: opacity 0.2s;
}
.footer-cta:hover { opacity: 0.7; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; padding-top: 140px; min-height: auto; gap: 40px; }
  .hero-visual { min-height: 380px; order: -1; }
  .planet-system { width: 360px; height: 360px; }
  .planet { width: 160px; height: 160px; }
  .planet-shadow { width: 160px; height: 160px; }
  .ring-middle { inset: 50px; }
  .ring-inner { inset: 80px; }
  .fc-1, .fc-2, .fc-3 { display: none; }
  .why-inner { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .ba-inner { grid-template-columns: 1fr; padding: 40px; }
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 72px;
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: stretch;
    background: rgba(2,6,23,0.95);
    border: 1px solid var(--line-bright);
    border-radius: var(--radius);
    padding: 12px;
    display: none;
    backdrop-filter: blur(24px);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; border-radius: var(--radius-sm); }
  .nav-cta { text-align: center; justify-content: center; }
  .section { padding: 80px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .process-track { grid-template-columns: repeat(2, 1fr); }
  .process-line { display: none; }
  .calc-wrapper { grid-template-columns: 1fr; padding: 32px; gap: 32px; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .hero-meta { gap: 16px; }
  .why-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .hero-h1 { font-size: clamp(40px, 12vw, 60px); }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .form-row { grid-template-columns: 1fr; }
  .process-track { grid-template-columns: 1fr; }
  .ba-compare { flex-direction: column; }
  .ba-arrow { transform: rotate(90deg); }
  .footer-inner { flex-direction: column; text-align: center; }
  .float-card { display: none; }
}

@media (max-width: 375px) {
  .hero-h1 { font-size: 36px; }
  .stat-num { font-size: 40px; }
  .stats-grid { grid-template-columns: 1fr; }
}

/* ---- Misc ---- */
.magnetic { transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1); }

/* ---- Favicon SVG (inline ref) ---- */


/* Clean premium icon system — replaces colorful emoji with minimal line marks */
.clean-icon,
.clean-line-icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(56,189,248,.28);
  background: linear-gradient(180deg, rgba(56,189,248,.10), rgba(139,92,246,.06));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 12px 34px rgba(2,6,23,.28);
  color: var(--primary);
}
.clean-icon::before,
.clean-line-icon::before,
.clean-line-icon::after {
  content: '';
  position: absolute;
  display: block;
}
.icon-speed::before {
  width: 13px;
  height: 18px;
  clip-path: polygon(58% 0, 18% 50%, 50% 50%, 34% 100%, 84% 38%, 53% 38%);
  background: currentColor;
}
.icon-target::before {
  width: 18px;
  height: 18px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}
.icon-target::after {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  position: absolute;
}
.icon-design::before {
  width: 16px;
  height: 16px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  box-shadow: -7px -2px 0 -4px currentColor, 6px -3px 0 -4px currentColor, 1px 7px 0 -4px currentColor;
}
.icon-mobile::before {
  width: 12px;
  height: 19px;
  border: 1.5px solid currentColor;
  border-radius: 4px;
}
.icon-mobile::after {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  bottom: 7px;
}
.icon-lock::before {
  width: 17px;
  height: 13px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
  bottom: 8px;
}
.icon-lock::after {
  width: 10px;
  height: 9px;
  border: 1.5px solid currentColor;
  border-bottom: 0;
  border-radius: 9px 9px 0 0;
  top: 7px;
}
.icon-support::before {
  width: 18px;
  height: 18px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}
.icon-support::after {
  width: 13px;
  height: 1.5px;
  background: currentColor;
  transform: rotate(-45deg);
}
.icon-custom::before {
  width: 14px;
  height: 14px;
  border: 1.5px solid currentColor;
  transform: rotate(45deg);
}
.icon-telegram::before {
  width: 17px;
  height: 14px;
  clip-path: polygon(0 44%, 100% 0, 72% 100%, 48% 62%, 30% 82%, 34% 57%);
  background: currentColor;
}
.icon-discord::before {
  width: 18px;
  height: 13px;
  border: 1.5px solid currentColor;
  border-radius: 7px;
}
.icon-discord::after {
  width: 11px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: -5px 0 0 -1px currentColor, 5px 0 0 -1px currentColor;
}
.icon-mail::before {
  width: 18px;
  height: 13px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
}
.icon-mail::after {
  width: 12px;
  height: 12px;
  border-left: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg) translateY(-3px);
}
.fc-icon,
.why-icon,
.channel-icon {
  font-size: 0 !important;
  flex: 0 0 auto;
}
.why-icon { margin-bottom: 16px; }
.fc-stars {
  font-size: 13px;
  letter-spacing: .08em;
  color: var(--primary);
  font-weight: 800;
}


/* ---- Mobile performance pass ---- */
@media (max-width: 700px) {
  html { scroll-behavior: auto; }
  body { text-rendering: optimizeSpeed; }
  #stars { opacity: .38; }
  .navbar,
  .nav-links,
  .service-card,
  .why-card,
  .channel-card,
  .contact-form,
  .calc-wrapper,
  .ba-inner {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  .hero { padding-top: 112px; gap: 28px; }
  .hero-visual { min-height: 300px; }
  .planet-system { width: 270px; height: 270px; }
  .planet, .planet-shadow { width: 124px; height: 124px; }
  .planet-glow { width: 190px; height: 190px; filter: blur(14px); animation: none; }
  .ring { animation-duration: 52s; }
  .ring-middle { inset: 42px; }
  .ring-inner { inset: 72px; }
  .ring-dot,
  .scroll-hint,
  .float-card { display: none !important; }
  .planet { animation: none; transform: translateZ(0); }
  .marquee-track { animation-duration: 46s; }
  .reveal-up,
  .reveal-fade,
  .line-wrap .line,
  .stat-card {
    transition-duration: .42s !important;
    transition-delay: 0s !important;
  }
  .service-card:hover,
  .why-card:hover,
  .channel-card:hover {
    transform: none;
  }
}
