/* ─────────────────────────────────────────────────
   KRYEX — Design System v2.0 (Premium Tech)
───────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@400;600;700;800;900&display=swap');

:root {
  --bg-void:    #020508;
  --bg-dark:    #060a10;
  --bg-card:    #0b1120;
  --bg-card2:   #0e1729;
  --border:     rgba(255,255,255,0.07);
  --border-hi:  rgba(255,255,255,0.14);
  --yellow:     #FFD600;
  --yellow-rgb: 255,214,0;
  --cyan:       #00c6ff;
  --blue:       #0ea5e9;
  --blue-rgb:   14,165,233;
  --orange:     #f97316;
  --white:      #ffffff;
  --muted:      #64748b;
  --muted-hi:   #94a3b8;
  --radius-sm:  10px;
  --radius-md:  18px;
  --radius-lg:  28px;
  --ease:       cubic-bezier(0.4,0,0.2,1);
}

/* ─── Reset ────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; font-size: 16px; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-void);
  color: var(--white);
  line-height: 1.6;
  overflow-x: clip;
  cursor: none;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ─── Scrollbar ─────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-void); }
::-webkit-scrollbar-thumb { background: rgba(255,214,0,0.25); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--yellow); }

/* ─── Cursor ────────────────────────────────────── */
.cur-dot {
  position: fixed; width: 7px; height: 7px;
  background: var(--yellow); border-radius: 50%;
  pointer-events: none; z-index: 99999;
  transform: translate(-50%,-50%);
}
.cur-ring {
  position: fixed; width: 36px; height: 36px;
  border: 1.5px solid rgba(255,214,0,0.45); border-radius: 50%;
  pointer-events: none; z-index: 99998;
  transform: translate(-50%,-50%);
  transition: width .3s, height .3s, border-color .3s, background .3s;
}
.cur-ring.hovered {
  width: 56px; height: 56px;
  border-color: var(--yellow);
  background: rgba(255,214,0,0.06);
}

/* ─── Scroll progress ───────────────────────────── */
.scroll-bar {
  position: fixed; top: 0; left: 0; height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--yellow));
  z-index: 10000; width: 0; transition: width .1s linear;
}

/* ─── Container ─────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 28px; }

/* ─── Navbar ────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000; height: 76px;
  display: flex; align-items: center;
  transition: background .4s, border-color .4s, backdrop-filter .4s;
}
.navbar.solid {
  background: rgba(6,10,16,0.92);
  backdrop-filter: blur(28px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  width: 100%; max-width: 1200px;
  margin: 0 auto; padding: 0 28px;
}
.nav-logo img { height: 46px; filter: drop-shadow(0 0 12px rgba(255,214,0,0.2)); }
.nav-links { display: flex; gap: 36px; align-items: center; }
.nav-links a {
  font-size: .88rem; font-weight: 500;
  color: rgba(255,255,255,.55);
  transition: color .2s; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute;
  bottom: -4px; left: 0; width: 0; height: 1px;
  background: var(--yellow); transition: width .3s var(--ease);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { display: flex; gap: 12px; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: none; padding: 4px; }
.hamburger span { width: 22px; height: 1.5px; background: rgba(255,255,255,.65); border-radius: 2px; transition: all .3s; }

/* ─── Buttons ───────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center;
  gap: 8px; padding: 12px 26px;
  border-radius: var(--radius-sm);
  font-weight: 700; font-size: .88rem;
  letter-spacing: .02em; cursor: none;
  border: none; position: relative; overflow: hidden;
  transition: transform .25s, box-shadow .25s;
  white-space: nowrap;
}
.btn-yellow {
  background: var(--yellow); color: #000;
  box-shadow: 0 4px 24px rgba(var(--yellow-rgb),.3);
}
.btn-yellow::before {
  content: ''; position: absolute;
  top: -50%; left: -100%; width: 50%; height: 200%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,.4), transparent);
  transform: rotate(30deg); transition: left .7s;
}
.btn-yellow:hover::before { left: 150%; }
.btn-yellow:hover { transform: translateY(-3px); box-shadow: 0 8px 40px rgba(var(--yellow-rgb),.5); }
.btn-ghost {
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.7);
  border: 1px solid var(--border-hi);
}
.btn-ghost:hover { background: rgba(255,255,255,.09); color: var(--white); border-color: rgba(255,255,255,.25); transform: translateY(-2px); }
.btn-lg { padding: 16px 36px; font-size: 1rem; border-radius: 12px; }

/* ─── HERO ──────────────────────────────────────── */
#hero {
  min-height: 100vh; position: relative;
  display: flex; align-items: center;
  overflow: hidden; padding-top: 76px;
}
#hero-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%; z-index: 0;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(ellipse 80% 70% at 50% 40%, rgba(14,165,233,.10) 0%, transparent 65%),
              radial-gradient(ellipse 40% 50% at 80% 80%, rgba(255,214,0,.07) 0%, transparent 55%);
}
.hero-noise {
  position: absolute; inset: 0; z-index: 1;
  opacity: .025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; max-width: 820px; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(14,165,233,.1); border: 1px solid rgba(14,165,233,.25);
  color: var(--cyan); font-size: .74rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 7px 18px; border-radius: 50px; margin-bottom: 32px;
  opacity: 0; transform: translateY(16px);
}
.hero-pill .pulse-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--cyan); animation: cpulse 2s infinite;
}
@keyframes cpulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(0,198,255,.6); }
  50%      { box-shadow: 0 0 0 7px rgba(0,198,255,0); }
}
.hero-h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(3rem, 7vw, 5.8rem);
  font-weight: 900; line-height: 1.04;
  letter-spacing: -.04em; color: var(--white);
  margin-bottom: 28px; opacity: 0;
}
.hero-h1 .line { display: block; overflow: hidden; }
.hero-h1 .glow {
  background: linear-gradient(120deg, var(--cyan) 0%, var(--yellow) 55%, var(--orange) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; background-size: 200%;
  animation: hglow 5s ease infinite;
}
@keyframes hglow {
  0%,100% { background-position: 0%; }
  50%      { background-position: 100%; }
}
.hero-sub {
  font-size: 1.15rem; color: rgba(255,255,255,.50);
  line-height: 1.8; max-width: 580px;
  margin-bottom: 48px; opacity: 0; transform: translateY(20px);
}
.hero-btns {
  display: flex; gap: 16px; flex-wrap: wrap;
  opacity: 0; transform: translateY(20px);
}
.hero-scroll {
  position: absolute; bottom: 40px; left: 50%;
  transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,.25); font-size: .7rem;
  letter-spacing: .12em; text-transform: uppercase; opacity: 0;
}
.scroll-wire {
  width: 1px; height: 48px;
  background: linear-gradient(180deg, rgba(255,255,255,.3), transparent);
  animation: wire 2s ease-in-out infinite;
}
@keyframes wire {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 0; }
  40%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  60%  { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ─── Stats strip ───────────────────────────────── */
.stats-strip {
  background: rgba(255,255,255,.02);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 44px 0;
}
.stats-strip .container { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 32px; }
.stat-box { text-align: center; }
.stat-n {
  font-family: 'Outfit', sans-serif;
  font-size: 2.8rem; font-weight: 900;
  color: var(--yellow); letter-spacing: -.03em;
  line-height: 1;
}
.stat-l { font-size: .74rem; color: rgba(255,255,255,.35); text-transform: uppercase; letter-spacing: .08em; margin-top: 6px; }

/* ─── Section base ──────────────────────────────── */
.section { padding: 120px 0; }
.tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .72rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 18px;
}
.tag::before { content: ''; width: 20px; height: 1px; background: var(--blue); display: block; }
.stitle {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  font-weight: 800; line-height: 1.15;
  letter-spacing: -.025em; color: var(--white);
  margin-bottom: 18px;
}
.sdesc { font-size: 1.05rem; color: rgba(255,255,255,.45); line-height: 1.8; max-width: 580px; }

/* ─── Features ──────────────────────────────────── */
#features { background: var(--bg-dark); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px; margin-top: 64px;
}
.feat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 36px 32px;
  transition: all .4s var(--ease);
  position: relative; overflow: hidden;
  cursor: none;
}
.feat-card::before {
  content: ''; position: absolute;
  inset: 0; opacity: 0;
  background: linear-gradient(135deg, rgba(14,165,233,.07), rgba(255,214,0,.04));
  transition: opacity .4s;
}
.feat-card:hover { border-color: rgba(14,165,233,.35); transform: translateY(-6px); box-shadow: 0 24px 48px rgba(0,0,0,.5); }
.feat-card:hover::before { opacity: 1; }
.feat-card::after {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(14,165,233,.4), transparent);
  opacity: 0; transition: opacity .4s;
}
.feat-card:hover::after { opacity: 1; }
.feat-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: rgba(14,165,233,.1); border: 1px solid rgba(14,165,233,.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue); font-size: 1.3rem; margin-bottom: 24px;
  transition: all .4s;
}
.feat-card:hover .feat-icon {
  background: rgba(14,165,233,.18);
  color: var(--cyan);
  box-shadow: 0 0 20px rgba(14,165,233,.3);
}
.feat-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--white); margin-bottom: 10px; }
.feat-card p { font-size: .86rem; color: rgba(255,255,255,.40); line-height: 1.65; }

/* ─── Pricing ───────────────────────────────────── */
#pricing { background: var(--bg-void); position: relative; }
#pricing::before {
  content: ''; position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 900px; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,214,0,.3), transparent);
}
/* ─── Orbital Pricing UI ─── */
.orbital-container {
  position: relative; width: 100%; height: 300vh;
  margin-top: 48px;
}
.orbital-sticky {
  position: sticky; top: 0; left: 0;
  width: 100%; height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
#orbital-canvas {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%; z-index: 1; outline: none; cursor: none;
}
.orbital-panels-wrapper {
  position: relative; z-index: 2; width: 100%; max-width: 1000px; height: 100%;
  pointer-events: none;
}
.price-card {
  position: absolute; top: 50%; right: 20px; width: 380px;
  transform: translateY(-50%) translateX(20px);
  opacity: 0; pointer-events: none; transition: all 0.5s var(--ease);
  background: rgba(11, 17, 32, 0.4);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg); padding: 40px 36px; overflow: hidden;
  cursor: none;
}
.price-card.active {
  opacity: 1; pointer-events: auto; transform: translateY(-50%) translateX(0);
}
.price-card.featured {
  border-color: rgba(255,214,0,.35);
  background: linear-gradient(160deg, rgba(11, 17, 32, 0.55), rgba(18, 26, 48, 0.55));
}
.price-card.featured::before {
  content: ''; position: absolute; inset: -1px; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255,214,0,.4), rgba(255,214,0,.1), transparent, rgba(14,165,233,.2));
  background-size: 300%; animation: pflow 6s ease infinite; z-index: -1;
}
@keyframes pflow {
  0%,100% { background-position: 0%; }
  50%      { background-position: 100%; }
}
.price-card.featured::after {
  content: ''; position: absolute; inset: 0; border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(11,17,32,.75), rgba(18,26,48,.75));
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); z-index: -1;
}
.popular-badge {
  position: absolute; top: -1px; left: 50%;
  transform: translateX(-50%);
  background: var(--yellow); color: #000;
  font-size: .68rem; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 18px; border-radius: 0 0 10px 10px;
}
.price-name { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-hi); margin-bottom: 12px; }
.price-amount { font-family: 'Outfit', sans-serif; font-size: 3.2rem; font-weight: 900; color: var(--white); line-height: 1; }
.price-amount sup { font-size: 1.2rem; vertical-align: top; margin-top: 8px; display: inline-block; color: var(--muted-hi); font-weight: 500; }
.price-amount .period { font-size: .9rem; font-weight: 500; color: var(--muted); margin-left: 4px; }
.price-desc { font-size: .84rem; color: rgba(255,255,255,.35); margin: 12px 0 28px; line-height: 1.6; }
.price-divider { height: 1px; background: var(--border); margin-bottom: 28px; }
.price-features { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.price-feat { display: flex; align-items: center; gap: 10px; font-size: .86rem; color: rgba(255,255,255,.60); transition: color 0.3s, transform 0.3s; }
.price-feat:hover { color: var(--white); transform: translateX(6px); }
.price-feat i { color: var(--yellow); font-size: .8rem; width: 16px; transition: transform 0.3s, filter 0.3s; }
.price-feat:hover i { transform: scale(1.2); filter: drop-shadow(0 0 6px rgba(255,214,0,0.6)); }
.price-feat.off { opacity: .35; }
.price-feat.off i { color: var(--muted); }
.price-feat.off:hover { color: rgba(255,255,255,0.7); transform: none; }
.price-feat.off:hover i { transform: none; filter: none; }

/* ─── FAQ ───────────────────────────────────────── */
#faq { background: var(--bg-dark); }
.faq-list { max-width: 760px; margin: 64px auto 0; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden; transition: border-color .3s;
}
.faq-item.open { border-color: rgba(255,214,0,.25); }
.faq-q {
  padding: 22px 24px; display: flex;
  justify-content: space-between; align-items: center;
  font-weight: 600; font-size: .95rem; cursor: none;
  transition: color .2s;
}
.faq-q:hover { color: var(--yellow); }
.faq-q .ico {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--border-hi);
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; flex-shrink: 0; transition: all .3s;
}
.faq-item.open .faq-q .ico {
  background: var(--yellow); border-color: var(--yellow);
  color: #000; transform: rotate(45deg);
}
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .4s var(--ease), padding .4s;
  padding: 0 24px; color: rgba(255,255,255,.45);
  font-size: .9rem; line-height: 1.75;
}
.faq-item.open .faq-a { max-height: 300px; padding: 0 24px 22px; }

/* ─── CTA Banner ────────────────────────────────── */
#cta {
  position: relative; padding: 120px 0;
  text-align: center; overflow: hidden;
  background: var(--bg-void);
}
#cta::before {
  content: ''; position: absolute;
  width: 700px; height: 400px;
  border-radius: 50%; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  background: radial-gradient(ellipse, rgba(255,214,0,.08) 0%, transparent 65%);
  pointer-events: none;
}
#cta .stitle { font-size: clamp(2.4rem, 5vw, 4rem); }
#cta .sdesc { margin: 0 auto 48px; text-align: center; }
.cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; position: relative; }

/* ─── Footer ────────────────────────────────────── */
footer {
  background: var(--bg-void);
  border-top: 1px solid var(--border);
  padding: 72px 0 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 56px;
}
.footer-brand img { height: 44px; margin-bottom: 16px; }
.footer-brand p { font-size: .84rem; color: rgba(255,255,255,.30); line-height: 1.75; max-width: 220px; }
.footer-col h5 { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.40); margin-bottom: 20px; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col ul a { font-size: .84rem; color: rgba(255,255,255,.30); transition: color .2s; }
.footer-col ul a:hover { color: var(--yellow); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 28px; display: flex;
  justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}
.footer-bottom p { font-size: .80rem; color: rgba(255,255,255,.22); }
.footer-bottom a { color: var(--yellow); font-weight: 600; transition: opacity .2s; }
.footer-bottom a:hover { opacity: .8; }
.socials { display: flex; gap: 10px; }
.soc-btn {
  width: 36px; height: 36px; border-radius: 9px;
  border: 1px solid var(--border); display: flex;
  align-items: center; justify-content: center;
  color: rgba(255,255,255,.30); font-size: .86rem;
  transition: all .25s;
}
.soc-btn:hover { background: var(--yellow); border-color: var(--yellow); color: #000; transform: translateY(-3px); }

/* ─── Reveal ────────────────────────────────────── */
[data-r] {
  opacity: 0; transform: translateY(36px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
[data-r].on { opacity: 1; transform: translateY(0); }
[data-d="1"] { transition-delay: .1s; }
[data-d="2"] { transition-delay: .2s; }
[data-d="3"] { transition-delay: .3s; }
[data-d="4"] { transition-delay: .4s; }
[data-d="5"] { transition-delay: .5s; }
[data-d="6"] { transition-delay: .6s; }

/* ─── Mobile ────────────────────────────────────── */
.mobile-menu {
  display: none; position: fixed;
  top: 76px; left: 0; right: 0;
  background: rgba(6,10,16,.97);
  backdrop-filter: blur(28px);
  border-bottom: 1px solid var(--border);
  padding: 20px 28px; z-index: 999;
}
.mobile-menu a {
  display: block; padding: 14px 0;
  color: rgba(255,255,255,.65);
  border-bottom: 1px solid rgba(255,255,255,.04);
  font-weight: 500;
}

@media (max-width: 1024px) {
  .features-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid  { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
  .footer-grid   { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .section { padding: 80px 0; }
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .hamburger { display: flex; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  body { cursor: auto; }
  .cur-dot, .cur-ring { display: none; }
}
@media (max-width: 480px) {
  .hero-btns { flex-direction: column; }
  .cta-btns  { flex-direction: column; align-items: center; }
}
