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

:root {
  --bg:       #0d1117;
  --surface:  #161b22;
  --border:   #21262d;
  --text:     #e6edf3;
  --muted:    #8b949e;
  --dim:      #484f58;
  --accent:   #f59e0b;
  --accent2:  #d97706;
  --green:    #3fb950;
  --blue:     #388bfd;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ══════════════════ Nav ══════════════════ */
nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; gap: 32px;
  padding: 0 40px; height: 60px;
  background: #0d1117cc;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 17px; color: var(--text);
  margin-right: auto;
}

.nav-logo-icon {
  width: 28px; height: 28px;
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
}

.nav-logo:hover .nav-logo-icon {
  transform: rotate(-8deg) scale(1.08);
  box-shadow: 0 0 20px #f59e0b55;
}

/* nav links: sliding underline */
.nav-link {
  position: relative;
  font-size: 14px; color: var(--muted);
  transition: color 0.2s;
  padding: 4px 0;
}

.nav-link::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease-out);
}

.nav-link:hover { color: var(--text); }
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }

/* ══════════════════ Buttons ══════════════════ */
.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 8px;
  font-size: 14px; font-weight: 600; cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease-out), box-shadow 0.25s, background 0.2s, border-color 0.2s;
  overflow: hidden;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--accent); color: #0d1117; border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent2); border-color: var(--accent2);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px #f59e0b40;
}

.btn-outline {
  background: transparent; color: var(--text); border-color: var(--border);
}
.btn-outline:hover {
  border-color: var(--muted);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px #0008;
}

.btn-lg { padding: 12px 24px; font-size: 15px; border-radius: 10px; }

/* shine sweep on primary CTAs */
.btn-shine::before {
  content: '';
  position: absolute; top: 0; left: -80%;
  width: 50%; height: 100%;
  background: linear-gradient(100deg, transparent, #ffffff50, transparent);
  transform: skewX(-20deg);
  transition: none;
}

.btn-shine:hover::before {
  animation: shine 0.7s var(--ease-out);
}

@keyframes shine {
  to { left: 130%; }
}

/* ══════════════════ Hero ══════════════════ */
.hero {
  position: relative;
  max-width: 900px; margin: 0 auto;
  padding: 100px 40px 60px;
  text-align: center;
}

/* background: glow orbs + grid */
.hero-bg {
  position: absolute; inset: -60px 0 0;
  pointer-events: none;
  z-index: -1;
}

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

.orb-1 {
  width: 480px; height: 480px;
  background: radial-gradient(circle, #d9770660, transparent 65%);
  top: -140px; left: 50%;
  transform: translateX(-75%);
  animation: drift1 14s ease-in-out infinite alternate;
}

.orb-2 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, #388bfd35, transparent 65%);
  top: 60px; right: -80px;
  animation: drift2 18s ease-in-out infinite alternate;
}

@keyframes drift1 {
  from { transform: translateX(-75%) translateY(0) scale(1); }
  to   { transform: translateX(-55%) translateY(40px) scale(1.12); }
}

@keyframes drift2 {
  from { transform: translateY(0) scale(1); }
  to   { transform: translateY(-50px) translateX(-40px) scale(0.9); }
}

.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(#ffffff05 1px, transparent 1px),
    linear-gradient(90deg, #ffffff05 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}

/* hero entrance: staggered rise */
.hero-anim {
  opacity: 0;
  transform: translateY(24px);
  animation: rise 0.85s var(--ease-out) forwards;
  animation-delay: calc(var(--d) * 0.13s);
}

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--accent);
  background: #f59e0b12; border: 1px solid #f59e0b30;
  padding: 5px 14px; border-radius: 20px;
  margin-bottom: 24px;
}

/* pulsing live dot */
.pulse-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  position: relative;
  flex-shrink: 0;
}

.pulse-dot::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-ring 2s var(--ease-out) infinite;
}

@keyframes pulse-ring {
  0%   { transform: scale(1);   opacity: 0.7; }
  70%  { transform: scale(2.6); opacity: 0; }
  100% { transform: scale(2.6); opacity: 0; }
}

.hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.08;
  color: var(--text); margin-bottom: 20px;
}

/* gradient shimmer sweep on accent line */
.shimmer {
  background: linear-gradient(110deg,
    var(--accent) 0%, var(--accent) 40%,
    #fff7e6 50%,
    var(--accent) 60%, var(--accent) 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer-sweep 4.5s ease-in-out infinite;
}

@keyframes shimmer-sweep {
  0%, 55%  { background-position: 110% 0; }
  85%, 100% { background-position: -110% 0; }
}

.hero p {
  font-size: 18px; color: var(--muted); max-width: 520px; margin: 0 auto 36px;
}

.hero-ctas { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ══════════════════ Terminal ══════════════════ */
.terminal {
  max-width: 560px; margin: 60px auto 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 24px 80px #0006;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s;
}

.terminal:hover {
  transform: translateY(-4px);
  box-shadow: 0 32px 90px #000a, 0 0 0 1px #d9770630;
}

.terminal-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 16px; background: #1c2128; border-bottom: 1px solid var(--border);
}

.terminal-dot { width: 10px; height: 10px; border-radius: 50%; }
.terminal-dot:nth-child(1) { background: #ff5f57; }
.terminal-dot:nth-child(2) { background: #febc2e; }
.terminal-dot:nth-child(3) { background: #28c840; }
.terminal-title { flex: 1; text-align: center; font-size: 12px; color: var(--dim); }

.terminal-body {
  padding: 20px;
  font-family: ui-monospace, 'Cascadia Code', monospace;
  font-size: 13px; line-height: 1.7;
  text-align: left;
  min-height: 148px;
}

.t-line { min-height: 22px; }
.t-gap  { height: 8px; }

.t-prompt   { color: var(--dim); }
.t-cmd      { color: var(--text); }
.t-thinking { color: var(--dim); }

/* animated thinking dots */
.t-dots span {
  animation: dot-blink 1.4s infinite;
  opacity: 0;
}
.t-dots span:nth-child(2) { animation-delay: 0.25s; }
.t-dots span:nth-child(3) { animation-delay: 0.5s; }

@keyframes dot-blink {
  0%, 20%  { opacity: 0; }
  40%, 80% { opacity: 1; }
  100%     { opacity: 0; }
}

/* ad line slides in */
.t-ad-line {
  display: flex; align-items: center; gap: 8px;
  border-left: 2px solid var(--accent2); padding-left: 10px;
  margin: 4px 0;
  min-height: 22px;
}

.t-hidden { visibility: hidden; }

.t-ad-line.t-show {
  visibility: visible;
  animation: ad-slide 0.45s var(--ease-out);
}

.t-line.t-show { visibility: visible; }

@keyframes ad-slide {
  from { opacity: 0; transform: translateX(-10px); }
  to   { opacity: 1; transform: translateX(0); }
}

.t-ad-tag  {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  color: var(--accent);
  animation: tag-glow 2s ease-in-out infinite;
}

@keyframes tag-glow {
  0%, 100% { text-shadow: 0 0 0 transparent; }
  50%      { text-shadow: 0 0 12px #f59e0b99; }
}

.t-ad-text { color: var(--muted); }

/* typing caret */
.t-caret {
  display: none;
  width: 8px; height: 14px;
  background: var(--blue);
  vertical-align: middle;
  margin-left: 1px;
}

.t-caret.t-on {
  display: inline-block;
  animation: blink 1s step-end infinite;
}

@keyframes blink { 50% { opacity: 0; } }

/* ══════════════════ Scroll reveal ══════════════════ */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.7s var(--ease-out);
  transition-delay: calc(var(--rd, 0) * 0.1s);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════ Stats bar ══════════════════ */
.stats-bar {
  display: flex; justify-content: center;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.stat-item {
  flex: 1; max-width: 220px; text-align: center;
  padding: 28px 16px; border-right: 1px solid var(--border);
  transition: background 0.25s;
}
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: #1c2128; }

.stat-num {
  font-size: 32px; font-weight: 800; letter-spacing: -0.02em;
  color: var(--text); margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}
.stat-desc { font-size: 13px; color: var(--dim); }

/* ══════════════════ Sections ══════════════════ */
.section { padding: 80px 40px; max-width: 960px; margin: 0 auto; }

.section-tag {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--accent); margin-bottom: 12px;
}

.section h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800; letter-spacing: -0.02em; line-height: 1.15;
  margin-bottom: 16px;
}

.section p { font-size: 16px; color: var(--muted); max-width: 500px; margin-bottom: 32px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 700px) { .two-col { grid-template-columns: 1fr; } }

/* ══════════════════ Steps ══════════════════ */
.steps { display: flex; flex-direction: column; gap: 20px; }

.step {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 16px 20px;
  transition: transform 0.3s var(--ease-out), border-color 0.3s, box-shadow 0.3s;
}

.step:hover {
  transform: translateX(6px);
  border-color: #f59e0b40;
  box-shadow: -6px 0 24px #f59e0b0d;
}

.step-num {
  width: 28px; height: 28px; border-radius: 8px;
  background: #f59e0b18; border: 1px solid #f59e0b30;
  color: var(--accent); font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}

.step:hover .step-num {
  transform: scale(1.12);
  box-shadow: 0 0 16px #f59e0b40;
}

.step-title { font-weight: 600; font-size: 14px; margin-bottom: 2px; }
.step-desc  { font-size: 13px; color: var(--muted); }

/* ══════════════════ Cards ══════════════════ */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }

.card {
  position: relative;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 20px;
  overflow: hidden;
  transition: border-color 0.4s;
}

/* cursor-tracking spotlight */
.card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(
    200px circle at var(--mx, 50%) var(--my, 50%),
    #f59e0b10, transparent 70%
  );
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}

.card:hover::before { opacity: 1; }

.card:hover { border-color: #3d444d; }

.card-icon {
  font-size: 22px; margin-bottom: 10px;
}

.card-title { font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.card-desc  { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* ══════════════════ Pricing ══════════════════ */
.pricing-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 32px;
  max-width: 400px;
  text-align: left;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
}

.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px #0008;
}

.pricing-card.featured {
  position: relative;
  border-color: var(--accent2);
  background: #f59e0b06;
  animation: featured-glow 3.5s ease-in-out infinite;
}

@keyframes featured-glow {
  0%, 100% { box-shadow: 0 0 0 0 #f59e0b00; }
  50%      { box-shadow: 0 0 42px 0 #f59e0b1e; }
}

.pricing-card.featured:hover {
  animation-play-state: paused;
  box-shadow: 0 24px 60px #000a, 0 0 42px #f59e0b26;
}

.price { font-size: 40px; font-weight: 800; letter-spacing: -0.02em; color: var(--text); }
.price span { font-size: 18px; font-weight: 500; color: var(--muted); }
.price-desc { font-size: 13px; color: var(--muted); margin: 8px 0 24px; }

.price-features { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.price-features li { font-size: 14px; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.price-features li::before { content: '✓'; color: var(--green); font-weight: 700; }

/* ══════════════════ Footer ══════════════════ */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 40px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; color: var(--dim);
}

footer a { color: var(--dim); transition: color 0.15s; }
footer a:hover { color: var(--muted); }
.footer-links { display: flex; gap: 20px; }

.divider { border: none; border-top: 1px solid var(--border); }

/* ══════════════════ Reduced motion ══════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero-anim, [data-reveal] { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
