/* Byteloft website — dark, glassy, gradient. No build step needed. */

:root {
  --bg: #07080f;
  --bg-2: #0d0f1c;
  --card: rgba(255, 255, 255, 0.045);
  --card-strong: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.09);
  --text: #f3f4fb;
  --muted: #9aa0b8;
  --dim: #6b7190;
  --teal: #2ecbd1;
  --indigo: #5c61f7;
  --violet: #9e5cf5;
  --orange: #ff9f43;
  --green: #34d399;
  --red: #fb7185;
  --brand: linear-gradient(120deg, var(--teal), var(--indigo) 55%, var(--violet));
  --radius: 22px;
  --max: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(var(--max), 100% - 32px); margin-inline: auto; }

h1, h2, h3 { font-family: "Space Grotesk", "Inter", sans-serif; letter-spacing: -0.02em; line-height: 1.08; }
h1 { font-size: clamp(42px, 7vw, 82px); font-weight: 700; }
h2 { font-size: clamp(32px, 4.6vw, 54px); font-weight: 700; }
h3 { font-size: 21px; font-weight: 600; }
.gradient-text {
  background: var(--brand);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.muted { color: var(--muted); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--teal);
}

/* ---------- Background glow ---------- */
.glow {
  position: absolute; border-radius: 50%; filter: blur(110px); opacity: 0.55; pointer-events: none; z-index: 0;
}
.glow.a { width: 620px; height: 620px; background: var(--indigo); top: -220px; left: -160px; }
.glow.b { width: 520px; height: 520px; background: var(--teal); top: 60px; right: -200px; opacity: 0.35; }
.glow.c { width: 700px; height: 400px; background: var(--violet); top: 620px; left: 30%; opacity: 0.25; }
.grid-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 20%, black 20%, transparent 70%);
  opacity: 0.5;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px);
  background: rgba(7, 8, 15, 0.6);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.nav.scrolled { border-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 20px; }
.logo img { width: 34px; height: 34px; }
.nav-links { display: flex; gap: 30px; font-size: 15px; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; gap: 10px; align-items: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; font-weight: 600; font-size: 16px;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  cursor: pointer; border: 0; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 40px -10px rgba(92, 97, 247, 0.8); }
.btn-primary:hover { box-shadow: 0 16px 50px -10px rgba(92, 97, 247, 0.95); }
.btn-ghost { background: var(--card-strong); border: 1px solid var(--line); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn svg { width: 18px; height: 18px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 90px 0 60px; text-align: center; overflow: hidden; }
.hero > .container { position: relative; z-index: 1; }
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 8px 6px 16px; border-radius: 999px;
  background: var(--card-strong); border: 1px solid var(--line);
  font-size: 14px; color: var(--muted); margin-bottom: 28px;
}
.pill b { color: var(--text); font-weight: 600; }
.pill .tag { white-space: nowrap; background: var(--brand); color: #fff; border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 700; }
.hero p.lead { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 660px; margin: 24px auto 36px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--dim); display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.hero-note span::before { content: "✓ "; color: var(--green); font-weight: 700; }

/* ---------- App mockup ---------- */
.mockup-wrap { position: relative; margin: 70px auto 0; max-width: 1040px; perspective: 1800px; }
.mockup {
  border-radius: 18px; overflow: hidden; text-align: left;
  background: #14151f; border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 50px 120px -30px rgba(92, 97, 247, 0.55), 0 0 0 1px rgba(0, 0, 0, 0.6);
  transform: rotateX(12deg) scale(0.96); transform-origin: top center;
  transition: transform 1.2s cubic-bezier(.2, .8, .2, 1);
}
.mockup.in { transform: rotateX(0) scale(1); }
.win-bar { height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 16px; background: #1b1c28; border-bottom: 1px solid rgba(255,255,255,.06); }
.win-bar i { width: 12px; height: 12px; border-radius: 50%; display: block; }
.win-bar i:nth-child(1) { background: #ff5f57; } .win-bar i:nth-child(2) { background: #febc2e; } .win-bar i:nth-child(3) { background: #28c840; }
.win-bar .title { margin-left: 14px; font-size: 13px; font-weight: 600; color: #cfd2e6; }
.win-body { display: grid; grid-template-columns: 230px 1fr; min-height: 470px; }
.side { background: #181926; border-right: 1px solid rgba(255,255,255,.06); padding: 14px 10px; font-size: 13px; }
.side .sec { color: var(--dim); font-size: 11px; font-weight: 600; margin: 14px 8px 6px; }
.side .row { display: flex; align-items: center; gap: 9px; padding: 6px 8px; border-radius: 8px; color: #dfe1ee; }
.side .row.active { background: var(--indigo); color: #fff; }
.side .row .ic { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; font-size: 11px; color: #fff; }
.side .row .sz { margin-left: auto; color: var(--dim); font-size: 11px; font-variant-numeric: tabular-nums; }
.side .row.active .sz { color: rgba(255,255,255,.8); }
.main { padding: 26px 28px; }
.main h4 { font-family: "Space Grotesk", sans-serif; font-size: 24px; margin-bottom: 4px; }
.main .sub { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.m-grid { display: grid; grid-template-columns: 200px 1fr; gap: 16px; }
.m-card { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); border-radius: 14px; padding: 16px; }
.ring { position: relative; width: 150px; height: 150px; margin: 4px auto; }
.ring svg { transform: rotate(-90deg); }
.ring .center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring .center b { font-family: "Space Grotesk", sans-serif; font-size: 24px; }
.ring .center small { font-size: 11px; color: var(--muted); }
.bar { display: flex; height: 16px; border-radius: 6px; overflow: hidden; background: rgba(255,255,255,.06); margin: 10px 0 14px; gap: 2px; }
.bar span { height: 100%; width: 0; transition: width 1.4s cubic-bezier(.2,.8,.2,1); }
.legend { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 12px; font-size: 12px; }
.legend div { display: flex; align-items: center; gap: 8px; }
.legend i { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font-style: normal; font-size: 11px; }
.legend b { display: block; font-weight: 600; font-size: 12px; }
.legend small { color: var(--muted); font-size: 11px; }
.shortcuts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px; }
.shortcuts .m-card { padding: 12px; font-size: 12px; }
.shortcuts .m-card b { display: block; font-family: "Space Grotesk", sans-serif; font-size: 18px; margin-top: 6px; }
.clean-chip {
  position: absolute; right: -34px; top: -34px; z-index: 3;
  background: rgba(20, 21, 31, 0.85); backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.14); border-radius: 16px; padding: 14px 18px;
  box-shadow: 0 20px 60px -20px rgba(0,0,0,.8); text-align: left; animation: float 6s ease-in-out infinite;
}
.clean-chip small { color: var(--muted); font-size: 12px; }
.clean-chip b { display: block; font-family: "Space Grotesk", sans-serif; font-size: 26px; }
.clean-chip.left { left: -34px; right: auto; top: auto; bottom: -30px; animation-delay: -3s; }
.clean-chip .ok { color: var(--green); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------- Stats strip ---------- */
.strip { border-block: 1px solid var(--line); background: rgba(255,255,255,.015); }
.strip .container { display: grid; grid-template-columns: repeat(4, 1fr); padding: 34px 0; text-align: center; }
.strip b { display: block; font-family: "Space Grotesk", sans-serif; font-size: 38px; }
.strip span { color: var(--muted); font-size: 14px; }

/* ---------- Sections ---------- */
section { position: relative; padding: 110px 0; }
.section-head { text-align: center; max-width: 880px; margin: 0 auto 60px; }
.section-head p { color: var(--muted); font-size: 19px; margin-top: 18px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  position: relative; padding: 30px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line); overflow: hidden;
  transition: transform 0.3s, border-color 0.3s, background 0.3s;
}
.feature:hover { transform: translateY(-6px); border-color: rgba(255,255,255,.18); background: var(--card-strong); }
.feature::after {
  content: ""; position: absolute; inset: auto -40% -60% auto; width: 260px; height: 260px; border-radius: 50%;
  background: var(--accent, var(--indigo)); filter: blur(80px); opacity: 0; transition: opacity 0.4s;
}
.feature:hover::after { opacity: 0.3; }
.feature .icon {
  width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 22px;
  background: var(--accent, var(--indigo)); box-shadow: 0 10px 30px -10px var(--accent, var(--indigo));
}
.feature .icon svg { width: 26px; height: 26px; color: #fff; }
.feature p { color: var(--muted); margin-top: 10px; font-size: 16px; }
.feature.wide { grid-column: span 2; }

/* ---------- Developer split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split ul { list-style: none; margin-top: 28px; display: grid; gap: 14px; }
.split li { display: flex; gap: 12px; color: var(--muted); }
.split li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--brand); mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2a10 10 0 100 20 10 10 0 000-20zm-1.2 14.2l-4-4 1.4-1.4 2.6 2.6 5.6-5.6 1.4 1.4-7 7z"/></svg>') center/contain no-repeat; }
.split li b { color: var(--text); }
.terminal {
  border-radius: 18px; background: #0c0d16; border: 1px solid var(--line); overflow: hidden;
  font-family: "JetBrains Mono", ui-monospace, Menlo, monospace; font-size: 14px;
  box-shadow: 0 40px 100px -40px rgba(46, 203, 209, 0.5);
}
.terminal .win-bar { background: #12131d; }
.terminal .rows { padding: 18px 22px; display: grid; gap: 12px; }
.t-row { display: grid; grid-template-columns: 26px 1fr auto auto; gap: 12px; align-items: center; opacity: 0; transform: translateX(-10px); transition: all 0.5s; }
.t-row.in { opacity: 1; transform: none; }
.t-row .dot { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; font-size: 12px; }
.t-row .name { color: #e6e8f5; }
.t-row .name small { display: block; color: var(--dim); font-size: 12px; }
.t-row .risk { font-size: 11px; padding: 2px 8px; border-radius: 999px; }
.t-row .size { font-weight: 700; color: #fff; min-width: 76px; text-align: right; }
.risk.safe { color: var(--green); background: rgba(52, 211, 153, .12); }
.risk.review { color: var(--orange); background: rgba(255, 159, 67, .12); }
.t-total { border-top: 1px dashed var(--line); padding: 16px 22px; display: flex; justify-content: space-between; align-items: center; }
.t-total b { font-family: "Space Grotesk", sans-serif; font-size: 26px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { padding: 30px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: var(--brand); font-weight: 700; margin-bottom: 20px;
}
.step p { color: var(--muted); margin-top: 8px; font-size: 16px; }

/* ---------- Safety ---------- */
.safety { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.safety div { padding: 24px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.safety b { display: block; margin: 12px 0 6px; }
.safety p { color: var(--muted); font-size: 15px; }
.safety .em { font-size: 28px; }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: 1fr 1.15fr; gap: 24px; max-width: 900px; margin: 0 auto; align-items: stretch; }
.plan { padding: 36px; border-radius: 26px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; }
.plan h3 { font-size: 24px; }
.plan .price { display: flex; align-items: baseline; gap: 12px; margin: 18px 0 4px; }
.plan .price b { font-family: "Space Grotesk", sans-serif; font-size: 60px; line-height: 1; }
.plan .price s { color: var(--dim); font-size: 22px; }
.plan .per { color: var(--muted); font-size: 15px; }
.plan ul { list-style: none; display: grid; gap: 12px; margin: 26px 0 32px; flex: 1; }
.plan li { display: flex; gap: 10px; color: #d3d6e8; font-size: 16px; }
.plan li::before { content: "✓"; color: var(--green); font-weight: 700; }
.plan li.no { color: var(--dim); }
.plan li.no::before { content: "—"; color: var(--dim); }
.plan.pro {
  position: relative; background:
    linear-gradient(var(--bg-2), var(--bg-2)) padding-box,
    var(--brand) border-box;
  border: 2px solid transparent;
  box-shadow: 0 40px 100px -40px rgba(158, 92, 245, 0.7);
}
.badge-off {
  position: absolute; top: -15px; right: 28px; background: linear-gradient(120deg, #ff5f6d, #ff9f43);
  color: #fff; font-weight: 800; font-size: 13px; padding: 6px 14px; border-radius: 999px; letter-spacing: .02em;
  box-shadow: 0 10px 30px -8px rgba(255, 95, 109, 0.8);
}
.countdown { display: flex; gap: 8px; margin-top: 10px; font-size: 13px; color: var(--orange); align-items: center; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border-radius: 16px; background: var(--card); border: 1px solid var(--line); padding: 4px 24px; transition: background 0.2s; }
.faq details[open] { background: var(--card-strong); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 600; font-size: 17px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--muted); transition: transform 0.25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 20px; font-size: 16px; }

/* ---------- Final CTA ---------- */
.final {
  text-align: center; border-radius: 32px; padding: 80px 30px; position: relative; overflow: hidden;
  background: radial-gradient(ellipse at top, rgba(92, 97, 247, .45), transparent 60%), var(--bg-2);
  border: 1px solid var(--line);
}
.final h2 { max-width: 720px; margin: 0 auto 20px; }
.final p { color: var(--muted); margin-bottom: 34px; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 50px 0 40px; color: var(--muted); font-size: 14px; }
.foot { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; align-items: flex-start; }
.foot-links { display: flex; gap: 26px; flex-wrap: wrap; }
.foot-links a:hover { color: var(--text); }
.foot small { display: block; margin-top: 12px; color: var(--dim); max-width: 420px; }

/* ---------- Legal pages ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 70px 0 100px; }
.legal h1 { font-size: clamp(36px, 5vw, 52px); margin-bottom: 10px; }
.legal .updated { color: var(--dim); margin-bottom: 40px; font-size: 15px; }
.legal h2 { font-size: 24px; margin: 38px 0 12px; }
.legal p, .legal li { color: #c4c7da; margin-bottom: 12px; }
.legal ul { padding-left: 22px; }
.legal a { color: var(--teal); text-decoration: underline; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s, transform 0.8s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .mockup, .t-row { opacity: 1 !important; transform: none !important; transition: none !important; }
  .clean-chip { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .features, .steps { grid-template-columns: 1fr 1fr; }
  .feature.wide { grid-column: span 2; }
  .split { grid-template-columns: 1fr; }
  .safety { grid-template-columns: 1fr 1fr; }
  .clean-chip { display: none; }
  .win-body { grid-template-columns: 1fr; }
  .side { display: none; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  section { padding: 76px 0; }
  .nav-links { display: none; }
  .features, .steps, .safety, .pricing { grid-template-columns: 1fr; }
  .feature.wide { grid-column: auto; }
  .strip .container { grid-template-columns: 1fr 1fr; gap: 24px; }
  .m-grid { grid-template-columns: 1fr; }
  .shortcuts { grid-template-columns: 1fr 1fr; }
  .legend { grid-template-columns: 1fr 1fr; }
  .hero { padding-top: 60px; }
  .nav-cta .btn-ghost { display: none; }
  .pill { font-size: 13px; white-space: nowrap; }
  .pill .pill-label { display: none; }
}

/* Hero appears on load (not on scroll), so the first screen is never empty. */
.hero .reveal { opacity: 1; transform: none; animation: fadeUp 0.8s cubic-bezier(.2,.8,.2,1) both; }
.hero .reveal:nth-of-type(2) { animation-delay: .08s; }
.hero .lead.reveal { animation-delay: .16s; }
.hero .hero-cta.reveal { animation-delay: .24s; }
.hero .hero-note.reveal { animation-delay: .32s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero .reveal { animation: none; } }
