/* Fix-It Security Agent — styled after daytona.io
   Fonts: Geist (sans) + IBM Plex Mono (code)
   Palette pulled from daytona.io design tokens. */

:root {
  --bg:        #0a0a0a;
  --bg-2:      #0d0d0f;
  --bg-3:      #121214;
  --surface:   #161616;
  --surface-2: #1b1b1e;
  --border:    #252525;
  --border-2:  #2f2f2f;
  --text:      #ededed;
  --text-2:    #c5c5c5;
  --muted:     #999999;
  --muted-2:   #6a6a6a;

  --accent:    #0099ff;
  --accent-2:  #00bbff;
  --accent-3:  #0080ff;
  --pink:      #ff3366;
  --purple:    #bb88ff;
  --green:     #2ecc71;
  --teal:      #77dddd;
  --yellow:    #ffcc66;

  --font-sans: "Geist", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --maxw: 1120px;
  --radius: 14px;
  --radius-sm: 10px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

code { font-family: var(--font-mono); font-size: 0.9em; color: var(--text); }

/* ---------- ambient glow ---------- */
.glow { position: fixed; border-radius: 50%; filter: blur(120px); z-index: 0; pointer-events: none; opacity: 0.5; }
.glow-a { top: -220px; left: 50%; transform: translateX(-50%); width: 900px; height: 520px;
  background: radial-gradient(circle, rgba(0,153,255,0.28), transparent 65%); }
.glow-b { top: 620px; right: -200px; width: 620px; height: 520px;
  background: radial-gradient(circle, rgba(187,136,255,0.14), transparent 65%); }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(160%) blur(14px);
  background: rgba(10,10,10,0.72);
  border-bottom: 1px solid var(--border);
}
.nav-inner { max-width: var(--maxw); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -0.02em; }
.brand-mark { display: inline-flex; }
.brand-dim { color: var(--muted); font-weight: 500; }
.nav-links { display: flex; gap: 26px; margin-left: 12px; margin-right: auto; }
.nav-links a { color: var(--text-2); font-size: 14.5px; font-weight: 450; transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; gap: 10px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-sans); font-weight: 550; font-size: 14.5px; letter-spacing: -0.01em;
  padding: 9px 16px; border-radius: 10px; border: 1px solid transparent; cursor: pointer;
  transition: transform .12s ease, background .15s, border-color .15s, box-shadow .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #04121f; font-weight: 600;
  box-shadow: 0 0 0 1px rgba(0,153,255,.35), 0 8px 26px -10px rgba(0,153,255,.7); }
.btn-primary:hover { background: var(--accent-2); box-shadow: 0 0 0 1px rgba(0,187,255,.5), 0 10px 32px -8px rgba(0,187,255,.75); }
.btn-ghost { background: rgba(255,255,255,0.02); color: var(--text); border-color: var(--border-2); }
.btn-ghost:hover { background: rgba(255,255,255,0.06); border-color: #3a3a3a; }
.btn-lg { padding: 13px 24px; font-size: 15.5px; border-radius: 12px; }

/* ---------- hero ---------- */
.hero { position: relative; z-index: 1; padding: 96px 0 40px; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-mono);
  font-size: 12.5px; letter-spacing: 0.02em; color: var(--text-2);
  background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: 999px;
  padding: 6px 14px; margin-bottom: 30px; transition: border-color .15s; }
.eyebrow:hover { border-color: var(--accent); }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 0 rgba(46,204,113,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(46,204,113,.55)} 70%{box-shadow:0 0 0 8px rgba(46,204,113,0)} 100%{box-shadow:0 0 0 0 rgba(46,204,113,0)} }

.hero-title { font-size: clamp(38px, 6vw, 68px); line-height: 1.04; font-weight: 700;
  letter-spacing: -0.035em; margin-bottom: 24px; }
.grad { background: linear-gradient(100deg, #00bbff 0%, #0099ff 40%, #bb88ff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { max-width: 680px; margin: 0 auto 34px; color: var(--text-2);
  font-size: clamp(16px, 2vw, 19px); line-height: 1.6; font-weight: 400; }
.hero-sub em { color: var(--text); font-style: normal; font-weight: 550; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- terminal ---------- */
.terminal { margin: 56px auto 0; max-width: 860px; text-align: left;
  background: linear-gradient(180deg, #101012, #0c0c0e);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 40px 90px -40px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.02) inset;
  overflow: hidden; }
.term-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px;
  background: rgba(255,255,255,0.02); border-bottom: 1px solid var(--border); }
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot-r { background: #ff5f57; } .dot-y { background: #febc2e; } .dot-g { background: #28c840; }
.term-title { margin-left: 10px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.term-body { padding: 20px 22px; overflow-x: auto; }
.term-body code { display: block; font-family: var(--font-mono); font-size: 13px; line-height: 1.85;
  color: var(--text-2); white-space: pre; }
.terminal-tall .term-body { max-height: 520px; overflow-y: auto; }
.c-dim { color: var(--muted-2); } .c-cmd { color: var(--accent-2); font-weight: 500; }
.c-blue { color: var(--accent); } .c-white { color: #fff; font-weight: 500; }
.c-red { color: var(--pink); } .c-green { color: var(--green); }

/* ---------- stats ---------- */
.stats { position: relative; z-index: 1; padding: 30px 0 20px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 22px; }
.stat-num { font-size: 34px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; margin-bottom: 12px; }
.stat-num .unit { font-size: 20px; color: var(--muted); font-weight: 600; }
.stat-lbl { font-size: 13.5px; color: var(--muted); line-height: 1.45; }

/* ---------- sections ---------- */
.section { position: relative; z-index: 1; padding: 96px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 720px; margin-bottom: 52px; }
.kicker { display: inline-block; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.section-head h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.section-lede { margin-top: 18px; color: var(--text-2); font-size: 17px; max-width: 620px; }

/* ---------- feature grid ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 26px; overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease; }
.card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: var(--accent); opacity: .0; transition: opacity .2s; z-index: 2; }
.card::after { content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .2s ease;
  pointer-events: none; z-index: 0;
  background: radial-gradient(120% 70% at 50% 0%,
    color-mix(in srgb, var(--accent) 15%, transparent), transparent 68%); }
.card:hover { transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--accent) 60%, var(--border));
  background: var(--surface-2);
  box-shadow: 0 18px 44px -20px color-mix(in srgb, var(--accent) 70%, transparent),
              0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent) inset; }
.card:hover::before { opacity: .9; }
.card:hover::after { opacity: 1; }
.card > * { position: relative; z-index: 1; }
.card-ic { font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; transition: box-shadow .2s ease, background .2s ease; }
.card:hover .card-ic { background: color-mix(in srgb, var(--accent) 20%, transparent);
  box-shadow: 0 0 20px -2px color-mix(in srgb, var(--accent) 55%, transparent); }
.card h3 { font-size: 19px; font-weight: 650; letter-spacing: -0.02em; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.card p { color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.card p code, .card code { color: var(--text-2); background: rgba(255,255,255,.05); padding: 1px 6px; border-radius: 5px; }
.tag { font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em;
  padding: 2px 8px; border-radius: 6px; }
.tag-red { color: var(--pink); background: rgba(255,51,102,.12); border: 1px solid rgba(255,51,102,.3); }
.tag-green { color: var(--green); background: rgba(46,204,113,.12); border: 1px solid rgba(46,204,113,.3); }

/* ---------- loop rail ---------- */
.loop-rail { display: flex; align-items: stretch; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.loop-step { position: relative; flex: 1; min-width: 140px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 20px; text-align: center;
  overflow: hidden; cursor: default;
  transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease; }
.loop-step::before { content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .2s ease;
  background: radial-gradient(120% 80% at 50% 0%,
    color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%); }
.loop-step:hover { transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--accent) 60%, var(--border));
  background: var(--surface-2);
  box-shadow: 0 18px 40px -20px color-mix(in srgb, var(--accent) 70%, transparent),
              0 0 0 1px color-mix(in srgb, var(--accent) 25%, transparent) inset; }
.loop-step:hover::before { opacity: 1; }
.loop-i { display: inline-block; font-family: var(--font-mono); font-weight: 600; font-size: 15px;
  color: var(--accent); border-bottom: 2px solid var(--accent); padding-bottom: 6px; margin-bottom: 12px;
  position: relative; transition: text-shadow .2s ease; }
.loop-step:hover .loop-i { text-shadow: 0 0 18px color-mix(in srgb, var(--accent) 55%, transparent); }
.loop-step p { color: var(--muted); font-size: 13.5px; position: relative; transition: color .2s ease; }
.loop-step:hover p { color: var(--text-2); }
.loop-arrow { align-self: center; color: var(--muted-2); font-size: 20px; }

/* ---------- demo split ---------- */
.demo-split { display: grid; grid-template-columns: 0.95fr 1.15fr; gap: 48px; align-items: center; }
.demo-copy h2 { font-size: clamp(26px, 3.5vw, 38px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.12; margin-bottom: 16px; }
.run-line { font-family: var(--font-mono); font-size: 14px; background: var(--bg-3);
  border: 1px solid var(--border); border-radius: 8px; padding: 10px 14px; margin: 8px 0; color: var(--text); }
.checklist { list-style: none; margin: 24px 0 28px; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 28px; color: var(--text-2); font-size: 15px; }
.checklist li::before { content: "\2713"; position: absolute; left: 0; top: 1px; color: var(--green);
  font-weight: 700; }

/* ---------- stack ---------- */
.stack-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 64px; }
.stack-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 22px; }
.stack-item h4 { font-size: 13px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--accent); margin-bottom: 8px; font-weight: 600; }
.stack-item p { color: var(--text-2); font-size: 14.5px; }
.stack-item code { color: var(--text); background: rgba(255,255,255,.05); padding: 1px 5px; border-radius: 4px; }
.principles { border-top: 1px solid var(--border); padding-top: 40px; }
.principle-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 16px; }
.principle { background: var(--bg-3); border: 1px solid var(--border); border-left: 2px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 18px 20px; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.principle strong { color: var(--text); font-weight: 600; }

/* ---------- CTA ---------- */
.cta { position: relative; z-index: 1; padding: 110px 0; text-align: center;
  background: radial-gradient(circle at 50% 0%, rgba(0,153,255,0.10), transparent 60%); }
.cta-inner h2 { font-size: clamp(32px, 5vw, 54px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; margin-bottom: 20px; }
.cta-inner p { max-width: 560px; margin: 0 auto 32px; color: var(--text-2); font-size: 18px; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 40px 0; position: relative; z-index: 1; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.footer-note { color: var(--muted); font-size: 13.5px; }
.footer-note a { color: var(--text-2); border-bottom: 1px solid var(--border-2); }
.footer-note a:hover { color: var(--accent); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .feature-grid, .stack-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .demo-split { grid-template-columns: 1fr; gap: 32px; }
  .principle-grid { grid-template-columns: 1fr; }
  .loop-arrow { display: none; }
}
@media (max-width: 560px) {
  .hero { padding: 60px 0 20px; }
  .feature-grid, .stack-grid, .stat-grid { grid-template-columns: 1fr; }
  .nav-cta .btn-ghost { display: none; }
  .section { padding: 64px 0; }
}
