/* ===========================================================
   60Seconds — design tokens, base styles, primitives
   Brand: primary #7A52FF (purple), accent #FF5A1F (orange)
   Light + dark with toggle. AI-first / terminal vibe.
   =========================================================== */

:root {
  /* Light by default */
  --ink:        #FAFAF7;
  --ink-2:      #F4F4EE;
  --ink-3:      #EDEDE5;
  --ink-4:      #E4E4DA;
  --line:       rgba(11,11,24,0.08);
  --line-2:     rgba(11,11,24,0.14);
  --text:       #0B0B18;
  --text-dim:   #4A4A60;
  --text-mute:  #7A7A90;
  --surface:    linear-gradient(180deg, rgba(11,11,24,0.02), rgba(11,11,24,0.005));
  --surface-2:  rgba(11,11,24,0.03);
  --surface-hover: rgba(11,11,24,0.05);
  --gradient-text: linear-gradient(110deg, #0B0B18 0%, #7A52FF 45%, #FF5A1F 80%, #FFB000 100%);

  --purple:        #5A2DF4;
  --purple-2:      #7A52FF;
  --purple-glow:   rgba(122,82,255,0.32);
  --orange:        #FF5A1F;
  --orange-2:      #FF7A45;
  --orange-glow:   rgba(255,90,31,0.35);
  --gold:          #FFB000;
  --green:         #2BD974;
  --teal:          #24A1DE;

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;

  --font-sans:    "Inter", "Inter Tight", system-ui, -apple-system, sans-serif;
  --font-display: "Inter Tight", "Inter", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --bg-radial:
    radial-gradient(900px 500px at 85% -10%, rgba(255,90,31,0.06), transparent 60%),
    radial-gradient(1100px 600px at -10% 0%, rgba(122,82,255,0.10), transparent 55%);
}

[data-theme="dark"] {
  --ink:        #08080F;
  --ink-2:      #0E0E1B;
  --ink-3:      #131326;
  --ink-4:      #1A1A33;
  --line:       rgba(255,255,255,0.07);
  --line-2:     rgba(255,255,255,0.14);
  --text:       #ECECF6;
  --text-dim:   #9999AE;
  --text-mute:  #6B6B80;
  --surface:    linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.005));
  --surface-2:  rgba(255,255,255,0.04);
  --surface-hover: rgba(255,255,255,0.07);
  --gradient-text: linear-gradient(110deg, #FFFFFF 0%, #C9BFFF 35%, #FFB89E 70%, #FFD27A 100%);

  --bg-radial:
    radial-gradient(900px 500px at 85% -10%, rgba(255,90,31,0.10), transparent 60%),
    radial-gradient(1100px 600px at -10% 0%, rgba(122,82,255,0.18), transparent 55%);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; max-width: 100vw; }
html { overflow-x: hidden; scrollbar-gutter: stable; }
img, svg, video, canvas { max-width: 100%; }

body {
  font-family: var(--font-sans);
  background: var(--ink);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background .3s ease, color .3s ease;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container        { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 980px;  margin: 0 auto; padding: 0 32px; }

.site-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: var(--bg-radial), var(--ink);
  transition: background .3s ease;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--text);
}
h1 { font-size: clamp(44px, 6vw, 78px); font-weight: 700; line-height: 1.02; letter-spacing: -0.04em; }
h2 { font-size: clamp(34px, 4vw, 54px); font-weight: 680; line-height: 1.05; letter-spacing: -0.03em; }
h3 { font-size: 22px; font-weight: 600; line-height: 1.2; }
p  { margin: 0; color: var(--text-dim); line-height: 1.55; }

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  font-weight: 560;
  font-size: 14px;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(180deg, #8B65FF 0%, var(--purple) 100%);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08) inset, 0 10px 30px -10px var(--purple-glow);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(255,255,255,0.12) inset, 0 16px 40px -10px var(--purple-glow); }
.btn-ghost {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--line);
}
.btn-ghost:hover { background: var(--surface-hover); }
.btn-link {
  color: var(--text); font-size: 14px; font-weight: 560;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn-link:hover { color: var(--purple-2); }

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
}

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 500;
}
.tag .dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(43,217,116,0.18);
  animation: pulse 2s infinite ease-out;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(43,217,116,0.5); }
  60%     { box-shadow: 0 0 0 6px rgba(43,217,116,0); }
}

section { position: relative; z-index: 1; }
.section-pad     { padding: 120px 0; }
.section-pad-sm  { padding: 80px 0; }
.section-head    { max-width: 760px; margin-bottom: 56px; }
.section-head .eyebrow { margin-bottom: 16px; display: inline-block; }
.section-head p { font-size: 18px; margin-top: 16px; max-width: 620px; }

.row     { display: flex; align-items: center; gap: 12px; }
.col     { display: flex; flex-direction: column; gap: 12px; }
.between { display: flex; align-items: center; justify-content: space-between; }
.muted   { color: var(--text-dim); }
.mono    { font-family: var(--font-mono); }
.divider { height: 1px; background: var(--line); width: 100%; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 999px; }
::-webkit-scrollbar-track { background: transparent; }

/* Reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* Page hero */
.page-hero {
  position: relative;
  padding: 168px 0 80px;
  overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask: radial-gradient(900px 600px at 50% 30%, #000 30%, transparent 78%);
  -webkit-mask: radial-gradient(900px 600px at 50% 30%, #000 30%, transparent 78%);
  pointer-events: none;
}
.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.page-hero h1 { font-size: clamp(40px, 5.5vw, 68px); margin-bottom: 22px; }
.page-hero-sub { font-size: 19px; max-width: 560px; }
.page-hero-cta { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }

@media (max-width: 1080px) {
  .page-hero-grid { grid-template-columns: 1fr; }
  .section-pad    { padding: 80px 0; }
  .section-pad-sm { padding: 60px 0; }
  .section-head   { margin-bottom: 36px; }
  .section-head p { font-size: 16px; }
  .page-hero      { padding: 120px 0 60px; }
}
@media (max-width: 700px) {
  .container       { padding: 0 20px; }
  .section-pad     { padding: 60px 0; }
  .section-pad-sm  { padding: 44px 0; }
  .section-head    { margin-bottom: 28px; }
  .section-head p  { font-size: 15px; }
  .page-hero       { padding: 92px 0 40px; }
  .page-hero-cta   { gap: 10px; }
  .page-hero-cta .btn { flex: 1 1 auto; justify-content: center; }
  h1 { font-size: clamp(32px, 8vw, 44px) !important; }
  h2 { font-size: clamp(26px, 6vw, 36px) !important; line-height: 1.15 !important; }
  h3 { font-size: clamp(20px, 5vw, 26px) !important; }
  .btn { font-size: 14px; }
}
