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

:root {
  --orange:      #F5A85C;
  --orange-dark: #e8913e;
  --orange-glow: rgba(245, 168, 92, 0.14);
  --bg:          #111113;
  --bg-card:     #1c1c1f;
  --bg-card2:    #242428;
  --text:        #f0f0f0;
  --muted:       #888;
  --border:      rgba(255, 255, 255, 0.08);
  --radius:      16px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 52px;
  transition: background .35s, backdrop-filter .35s, border-color .35s;
  border-bottom: 1px solid transparent;
}
nav.scrolled {
  background: rgba(17, 17, 19, 0.82);
  backdrop-filter: blur(18px) saturate(1.4);
  border-color: var(--border);
}

.logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 20px; font-weight: 700; color: var(--text);
  text-decoration: none; letter-spacing: -.01em;
}
.logo-icon {
  width: 34px; height: 34px;
  background: var(--orange); border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.logo-icon svg { width: 18px; height: 18px; }

.btn-app {
  background: var(--orange); color: #fff;
  font-size: 14px; font-weight: 600;
  padding: 10px 26px; border-radius: 100px;
  text-decoration: none;
  transition: background .2s, transform .2s, box-shadow .2s;
  box-shadow: 0 0 0 0 rgba(245,168,92,0);
}
.btn-app:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 24px rgba(245,168,92,.35);
}

/* ─── HERO ─── */
#hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 140px 24px 60px;
  overflow: hidden;
}

#canvas-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none;
}

.hero-content { position: relative; z-index: 2; }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--orange-glow);
  border: 1px solid rgba(245, 168, 92, .28);
  color: var(--orange); font-size: 13px; font-weight: 500;
  padding: 6px 18px; border-radius: 100px; margin-bottom: 36px;
}
.badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--orange);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .5; transform: scale(.7); }
}

h1 {
  font-size: clamp(42px, 7.5vw, 92px);
  font-weight: 800; line-height: 1.04;
  letter-spacing: -.035em; margin-bottom: 26px;
}
h1 .accent { color: var(--orange); }

.hero-sub {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--muted); max-width: 520px;
  line-height: 1.65; margin: 0 auto 48px;
}

.hero-btns {
  display: flex; gap: 14px; flex-wrap: wrap;
  justify-content: center; margin-bottom: 80px;
}

.btn-primary {
  background: var(--orange); color: #fff;
  font-size: 16px; font-weight: 600;
  padding: 15px 36px; border-radius: 100px;
  text-decoration: none;
  box-shadow: 0 0 36px rgba(245,168,92,.3);
  transition: background .2s, transform .2s, box-shadow .2s;
}
.btn-primary:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 48px rgba(245,168,92,.45);
}

.btn-outline {
  background: transparent; color: var(--text);
  font-size: 16px; font-weight: 500;
  padding: 15px 36px; border-radius: 100px;
  border: 1px solid var(--border); text-decoration: none;
  transition: border-color .2s, transform .2s;
}
.btn-outline:hover { border-color: rgba(255,255,255,.25); transform: translateY(-2px); }

/* ─── MOCKUP ─── */
.mockup-wrap {
  position: relative; z-index: 2;
  width: 100%; max-width: 860px; margin: 0 auto;
}
.mockup-halo {
  position: absolute; inset: -60px;
  background: radial-gradient(ellipse at 50% 40%, rgba(245,168,92,.18) 0%, transparent 65%);
  pointer-events: none;
}
.mockup-window {
  background: #18181b;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.04) inset;
}
.titlebar {
  background: #242428; padding: 14px 20px;
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid var(--border);
}
.dot-w { width: 12px; height: 12px; border-radius: 50%; }
.dot-r { background: #ff5f57; }
.dot-y { background: #febc2e; }
.dot-g { background: #28c840; }

.mockup-inner {
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 300px;
}
.m-sidebar {
  background: #222226; border-right: 1px solid var(--border);
  padding: 20px 12px;
}
.m-label {
  font-size: 10px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: #555; padding: 14px 10px 6px;
}
.m-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: 8px;
  font-size: 13px; color: var(--muted); cursor: default;
  margin-bottom: 2px;
}
.m-item.active { background: var(--orange-glow); color: var(--orange); }
.m-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--orange); }

.m-content { padding: 32px 36px; }
.m-note-title { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.m-date { font-size: 12px; color: #555; margin-bottom: 24px; }
.m-line {
  height: 11px; border-radius: 4px; margin-bottom: 11px;
  background: linear-gradient(90deg, #2a2a2e 25%, #32323a 50%, #2a2a2e 75%);
  background-size: 400% 100%;
  animation: shimmer 2.2s ease-in-out infinite;
}
@keyframes shimmer {
  0%   { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* ─── SECTIONS COMMON ─── */
section { padding: 110px 24px; }
.container { max-width: 1080px; margin: 0 auto; }

.s-label {
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .13em;
  color: var(--orange); text-align: center; margin-bottom: 14px;
}
.s-title {
  font-size: clamp(28px, 4vw, 50px);
  font-weight: 700; line-height: 1.12;
  letter-spacing: -.025em; text-align: center; margin-bottom: 16px;
}
.s-sub {
  font-size: 18px; color: var(--muted);
  text-align: center; max-width: 480px;
  margin: 0 auto 64px; line-height: 1.65;
}

/* ─── FEATURES ─── */
#features { background: #0f0f11; }

.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}

.f-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px;
  transition: border-color .3s, transform .35s, box-shadow .35s;
}
.f-card:hover {
  border-color: rgba(245,168,92,.3);
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0,0,0,.4), 0 0 0 1px rgba(245,168,92,.08) inset;
}

.f-icon {
  width: 50px; height: 50px;
  background: var(--orange-glow);
  border: 1px solid rgba(245,168,92,.18);
  border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 22px;
}
.f-title { font-size: 17px; font-weight: 600; margin-bottom: 10px; }
.f-text { font-size: 14px; color: var(--muted); line-height: 1.7; }

/* ─── HOW IT WORKS ─── */
#how {
  background: linear-gradient(180deg, #111113 0%, #0d0d0f 100%);
}
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px;
  position: relative; padding-top: 8px;
}
.steps::before {
  content: '';
  position: absolute; top: 40px;
  left: calc(50% / 3 + 24px); right: calc(50% / 3 + 24px);
  height: 1px;
  background: linear-gradient(90deg, var(--orange), rgba(245,168,92,.1), var(--orange));
  opacity: .4;
}
.step { text-align: center; }
.step-num {
  width: 64px; height: 64px; border-radius: 50%;
  margin: 0 auto 24px;
  background: var(--orange-glow);
  border: 1px solid rgba(245,168,92,.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800; color: var(--orange);
}
.step-title { font-size: 17px; font-weight: 600; margin-bottom: 10px; }
.step-text { font-size: 14px; color: var(--muted); line-height: 1.7; }

/* ─── STATS ─── */
#stats { padding: 0 24px 110px; }
.stats-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; background: var(--border); gap: 1px;
}
.stat {
  background: var(--bg-card); padding: 52px 32px; text-align: center;
}
.stat-num {
  font-size: 52px; font-weight: 800; color: var(--orange);
  letter-spacing: -.04em; margin-bottom: 8px; line-height: 1;
}
.stat-label { font-size: 14px; color: var(--muted); }

/* ─── CTA ─── */
#cta { padding: 60px 24px 120px; }
.cta-box {
  background: linear-gradient(135deg, #1e1a14 0%, #1d1d21 60%, #111113 100%);
  border: 1px solid rgba(245,168,92,.2);
  border-radius: 24px; padding: 90px 48px;
  text-align: center; position: relative; overflow: hidden;
}
.cta-box::before {
  content: '';
  position: absolute; top: -40%; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 500px;
  background: radial-gradient(ellipse, rgba(245,168,92,.13) 0%, transparent 68%);
  pointer-events: none;
}
.cta-box h2 {
  font-size: clamp(28px, 4vw, 50px);
  font-weight: 700; letter-spacing: -.025em; margin-bottom: 16px;
  position: relative;
}
.cta-box p { font-size: 18px; color: var(--muted); margin-bottom: 44px; position: relative; }

/* ─── FOOTER ─── */
footer {
  border-top: 1px solid var(--border);
  padding: 36px 52px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 14px; color: var(--muted);
}
footer a { color: var(--orange); text-decoration: none; font-weight: 500; }
footer a:hover { text-decoration: underline; }

/* ─── SCROLL ANIMATIONS ─── */
.fade-up {
  opacity: 0; transform: translateY(32px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-up.in { opacity: 1; transform: translateY(0); }
.fade-up:nth-child(2) { transition-delay: .1s; }
.fade-up:nth-child(3) { transition-delay: .2s; }
.fade-up:nth-child(4) { transition-delay: .05s; }
.fade-up:nth-child(5) { transition-delay: .15s; }
.fade-up:nth-child(6) { transition-delay: .25s; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  nav { padding: 18px 24px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .steps::before { display: none; }
  .stats-grid { grid-template-columns: 1fr; }
  footer { flex-direction: column; gap: 14px; text-align: center; }
}
@media (max-width: 640px) {
  .features-grid { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; align-items: center; }
  .btn-primary, .btn-outline { width: 100%; text-align: center; max-width: 320px; }
  .mockup-inner { grid-template-columns: 1fr; }
  .m-sidebar { display: none; }
  .cta-box { padding: 56px 24px; }
}
