/* Agent Basin — global styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --navy: #0A1628;
  --navy-mid: #0D1E38;
  --navy-light: #132240;
  --slate: #1E3A5F;
  --slate-mid: #2A4D7A;
  --accent: #3B7BE8;
  --accent-hover: #5590F0;
  --accent-light: #EBF2FF;
  --white: #FFFFFF;
  --off-white: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-400: #94A3B8;
  --gray-600: #475569;
  --gray-800: #1E293B;
  --green: #10B981;
  --text-on-dark: rgba(255,255,255,0.9);
  --text-muted-dark: rgba(255,255,255,0.55);
  --mono: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
  --radius: 8px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
  --shadow: 0 4px 16px rgba(0,0,0,0.14);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.22);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--white);
  color: var(--gray-800);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

img { max-width: 100%; height: auto; }

/* ─── NAV ─────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,22,40,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 0 2rem;
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  color: var(--white); font-weight: 700; font-size: 1.15rem;
  letter-spacing: -0.3px;
}
.nav-logo svg { flex-shrink: 0; }
.nav-links {
  display: flex; align-items: center; gap: 1.8rem;
  list-style: none;
}
.nav-links a {
  color: rgba(255,255,255,0.7); font-size: 0.88rem; font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }
.nav-cta {
  background: var(--accent); color: var(--white) !important;
  padding: 0.45rem 1.1rem; border-radius: var(--radius);
  font-weight: 600 !important; transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--accent-hover) !important; color: var(--white) !important; }

/* ─── HERO ────────────────────────────────────────────── */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-mid) 55%, #0F2744 100%);
  padding: 5rem 2rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(59,123,232,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(59,123,232,0.18); border: 1px solid rgba(59,123,232,0.35);
  color: #7EB8FF; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.5px;
  padding: 0.3rem 0.85rem; border-radius: 100px; margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800; color: var(--white);
  line-height: 1.12; letter-spacing: -1.5px;
  max-width: 820px; margin: 0 auto 1.1rem;
}
.hero h1 span { color: #7EB8FF; }
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted-dark);
  max-width: 560px; margin: 0 auto 2rem;
  line-height: 1.65;
}
.hero-actions {
  display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap;
  margin-bottom: 3rem;
}
.btn-primary {
  background: var(--accent); color: var(--white);
  padding: 0.85rem 2rem; border-radius: var(--radius);
  font-weight: 700; font-size: 1rem; border: none; cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(59,123,232,0.4);
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover {
  background: var(--accent-hover); color: var(--white);
  transform: translateY(-1px); box-shadow: 0 6px 28px rgba(59,123,232,0.5);
}
.btn-ghost {
  background: transparent; color: rgba(255,255,255,0.8);
  padding: 0.85rem 1.8rem; border-radius: var(--radius);
  font-weight: 600; font-size: 1rem; cursor: pointer;
  border: 1px solid rgba(255,255,255,0.2);
  transition: border-color 0.2s, color 0.2s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.5); color: var(--white); }

/* ─── CODE BLOCK IN HERO ──────────────────────────────── */
.hero-code-wrap {
  max-width: 680px; margin: 0 auto;
  background: rgba(0,0,0,0.45); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg); overflow: hidden;
  text-align: left; box-shadow: var(--shadow-lg);
}
.code-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.04); border-bottom: 1px solid rgba(255,255,255,0.07);
}
.code-dot { width: 10px; height: 10px; border-radius: 50%; }
.code-dot.red { background: #FF5F57; }
.code-dot.yellow { background: #FFBD2E; }
.code-dot.green { background: #28CA42; }
.code-bar-title { font-size: 0.72rem; color: rgba(255,255,255,0.35); margin-left: auto; font-family: var(--mono); }
.hero-code {
  padding: 1.4rem 1.6rem;
  font-family: var(--mono); font-size: 0.82rem; line-height: 1.75;
  color: #CDD9E5; overflow-x: auto;
}
.c-keyword { color: #7EB8FF; }
.c-string  { color: #A8D5A2; }
.c-comment { color: #5C7A9E; font-style: italic; }
.c-fn      { color: #E8B86D; }
.c-num     { color: #F78C6C; }

/* ─── SOCIAL PROOF STRIP ──────────────────────────────── */
.proof-strip {
  background: var(--navy-mid);
  padding: 1rem 2rem;
  display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap;
}
.proof-item {
  display: flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.65); font-size: 0.85rem;
}
.proof-num {
  font-size: 1.25rem; font-weight: 700;
  color: var(--white); letter-spacing: -0.5px;
}

/* ─── SECTIONS ────────────────────────────────────────── */
.section { padding: 5rem 2rem; }
.section-dark { background: var(--navy); }
.section-navy-mid { background: var(--navy-mid); }
.section-alt { background: var(--off-white); }
.container { max-width: 1100px; margin: 0 auto; }
.section-tag {
  display: inline-block;
  background: var(--accent-light); color: var(--accent);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.8px;
  text-transform: uppercase; padding: 0.3rem 0.8rem; border-radius: 100px;
  margin-bottom: 1rem;
}
.section-tag.on-dark {
  background: rgba(59,123,232,0.2); color: #7EB8FF;
}
h2.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 800; letter-spacing: -0.8px; line-height: 1.2;
  margin-bottom: 1rem;
}
h2.section-title.on-dark { color: var(--white); }
.section-lead {
  font-size: 1.08rem; color: var(--gray-600); max-width: 560px; line-height: 1.7;
  margin-bottom: 2.5rem;
}
.section-lead.on-dark { color: var(--text-muted-dark); }

/* ─── FEATURE GRID ────────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem; margin-top: 2rem;
}
.feature-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 1.8rem;
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.feature-card.dark {
  background: var(--navy-light); border-color: rgba(255,255,255,0.08);
}
.feature-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--accent-light); display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem; font-size: 1.3rem;
}
.feature-card.dark .feature-icon { background: rgba(59,123,232,0.2); }
.feature-card h3 {
  font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--gray-800);
}
.feature-card.dark h3 { color: var(--white); }
.feature-card p { font-size: 0.9rem; color: var(--gray-600); line-height: 1.6; }
.feature-card.dark p { color: var(--text-muted-dark); }

/* ─── HOW IT WORKS ────────────────────────────────────── */
.steps { display: flex; flex-direction: column; gap: 2rem; margin-top: 2rem; }
.step { display: flex; gap: 1.5rem; align-items: flex-start; }
.step-num {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.95rem;
}
.step-body h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.4rem; color: var(--white); }
.step-body p { font-size: 0.9rem; color: var(--text-muted-dark); line-height: 1.6; }

/* ─── PRICING ─────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem; margin-top: 2rem; align-items: start;
}
.pricing-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 2rem;
  transition: box-shadow 0.2s;
}
.pricing-card:hover { box-shadow: var(--shadow); }
.pricing-card.featured {
  border: 2px solid var(--accent);
  position: relative;
}
.pricing-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: var(--white);
  font-size: 0.72rem; font-weight: 700; padding: 0.25rem 0.9rem;
  border-radius: 100px; white-space: nowrap;
}
.plan-name { font-size: 0.85rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 0.5rem; }
.plan-price { font-size: 2.4rem; font-weight: 800; color: var(--gray-800); letter-spacing: -1px; line-height: 1; }
.plan-price span { font-size: 1rem; font-weight: 500; color: var(--gray-400); }
.plan-desc { font-size: 0.88rem; color: var(--gray-600); margin: 0.6rem 0 1.2rem; line-height: 1.5; }
.plan-features { list-style: none; padding: 0; margin-bottom: 1.5rem; }
.plan-features li {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 0.88rem; color: var(--gray-600); padding: 0.35rem 0;
  border-bottom: 1px solid var(--gray-100);
}
.plan-features li:last-child { border: none; }
.check { color: var(--green); font-weight: 700; flex-shrink: 0; }
.btn-plan {
  display: block; width: 100%; padding: 0.8rem;
  border-radius: var(--radius); font-weight: 700; font-size: 0.95rem;
  text-align: center; cursor: pointer; border: none;
  transition: background 0.2s, color 0.2s;
}
.btn-plan.primary { background: var(--accent); color: var(--white); }
.btn-plan.primary:hover { background: var(--accent-hover); color: var(--white); }
.btn-plan.outline {
  background: transparent; color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn-plan.outline:hover { background: var(--accent); color: var(--white); }
.btn-plan.dark-outline {
  background: transparent; color: var(--gray-600);
  border: 1.5px solid var(--gray-200);
}
.btn-plan.dark-outline:hover { border-color: var(--accent); color: var(--accent); }

/* ─── SIGNUP FORM ─────────────────────────────────────── */
.signup-section {
  min-height: calc(100vh - 60px);
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-mid) 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 4rem 2rem;
}
.signup-card {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg); padding: 2.5rem;
  max-width: 460px; width: 100%;
  backdrop-filter: blur(8px);
}
.signup-card h1 {
  font-size: 1.7rem; font-weight: 800; color: var(--white);
  letter-spacing: -0.5px; margin-bottom: 0.5rem;
}
.signup-card p { color: var(--text-muted-dark); font-size: 0.93rem; margin-bottom: 1.8rem; }
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 600; color: rgba(255,255,255,0.7); margin-bottom: 0.4rem; }
.form-group input, .form-group select {
  width: 100%; padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius); color: var(--white); font-size: 0.92rem;
  font-family: var(--sans); transition: border-color 0.2s;
}
.form-group input::placeholder { color: rgba(255,255,255,0.3); }
.form-group select option { background: var(--navy); color: var(--white); }
.form-group input:focus, .form-group select:focus {
  outline: none; border-color: var(--accent);
}
.form-submit {
  width: 100%; padding: 0.9rem; background: var(--accent);
  color: var(--white); font-weight: 700; font-size: 1rem;
  border: none; border-radius: var(--radius); cursor: pointer;
  transition: background 0.2s; margin-top: 0.5rem;
}
.form-submit:hover { background: var(--accent-hover); }
.form-note { font-size: 0.78rem; color: rgba(255,255,255,0.35); text-align: center; margin-top: 1rem; }
.form-success {
  display: none; background: rgba(16,185,129,0.15);
  border: 1px solid rgba(16,185,129,0.4); border-radius: var(--radius);
  padding: 1rem; color: var(--green); font-size: 0.9rem; margin-top: 1rem; text-align: center;
}

/* ─── BLOG ────────────────────────────────────────────── */
.blog-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem; margin-top: 2rem;
}
.blog-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.blog-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.blog-card-body { padding: 1.5rem; }
.blog-tag {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.7px;
  color: var(--accent); margin-bottom: 0.6rem; display: block;
}
.blog-card h3 { font-size: 1rem; font-weight: 700; line-height: 1.4; margin-bottom: 0.5rem; color: var(--gray-800); }
.blog-card p { font-size: 0.87rem; color: var(--gray-600); line-height: 1.6; }
.blog-meta { font-size: 0.78rem; color: var(--gray-400); margin-top: 0.8rem; }

/* ─── ARTICLE ─────────────────────────────────────────── */
.article-hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 4rem 2rem 3rem; text-align: center;
}
.article-hero h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800; color: var(--white); letter-spacing: -0.5px;
  max-width: 760px; margin: 0 auto 1rem; line-height: 1.25;
}
.article-hero .article-meta { color: var(--text-muted-dark); font-size: 0.88rem; }
.article-body {
  max-width: 720px; margin: 3rem auto; padding: 0 2rem 4rem;
}
.article-body h2 { font-size: 1.4rem; font-weight: 700; margin: 2rem 0 0.8rem; color: var(--gray-800); }
.article-body p { margin-bottom: 1.2rem; color: var(--gray-600); line-height: 1.78; font-size: 1rem; }
.article-body ul { margin: 0 0 1.2rem 1.5rem; color: var(--gray-600); }
.article-body ul li { margin-bottom: 0.4rem; line-height: 1.7; }
.article-body blockquote {
  border-left: 3px solid var(--accent);
  margin: 1.5rem 0; padding: 0.8rem 1.2rem;
  background: var(--accent-light); border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--slate); font-style: italic;
}

/* ─── FOOTER ──────────────────────────────────────────── */
.footer {
  background: var(--navy);
  padding: 3rem 2rem 2rem;
  color: rgba(255,255,255,0.5);
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
}
.footer-brand .nav-logo { margin-bottom: 0.7rem; }
.footer-brand p { font-size: 0.85rem; line-height: 1.6; max-width: 240px; }
.footer-col h4 {
  font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px;
  color: rgba(255,255,255,0.7); margin-bottom: 0.8rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.45rem; }
.footer-col ul li a { font-size: 0.85rem; color: rgba(255,255,255,0.45); transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom {
  max-width: 1100px; margin: 2rem auto 0;
  padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.07);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 0.5rem;
  font-size: 0.8rem;
}

/* ─── COOKIE BANNER ───────────────────────────────────── */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 999;
  background: var(--navy-mid); border-top: 1px solid rgba(255,255,255,0.1);
  padding: 0.9rem 2rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  flex-wrap: wrap; font-size: 0.82rem; color: rgba(255,255,255,0.65);
}
.cookie-banner a { color: #7EB8FF; }
.cookie-actions { display: flex; gap: 0.6rem; }
.cookie-btn {
  padding: 0.4rem 1rem; border-radius: var(--radius);
  font-size: 0.8rem; font-weight: 600; cursor: pointer; border: none;
  transition: background 0.2s;
}
.cookie-btn.accept { background: var(--accent); color: var(--white); }
.cookie-btn.accept:hover { background: var(--accent-hover); }
.cookie-btn.decline { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.7); }
.cookie-btn.decline:hover { background: rgba(255,255,255,0.18); }

/* ─── PAGE HERO (inner pages) ─────────────────────────── */
.page-hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 4rem 2rem 3rem; text-align: center;
}
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; color: var(--white); letter-spacing: -0.8px; margin-bottom: 0.8rem; }
.page-hero p { color: var(--text-muted-dark); font-size: 1.05rem; max-width: 520px; margin: 0 auto; }

/* ─── CONTENT PAGE ────────────────────────────────────── */
.content-page {
  max-width: 760px; margin: 0 auto; padding: 3rem 2rem 5rem;
}
.content-page h2 { font-size: 1.3rem; font-weight: 700; margin: 2rem 0 0.7rem; color: var(--gray-800); }
.content-page p { color: var(--gray-600); line-height: 1.78; margin-bottom: 1.1rem; }
.content-page ul { margin: 0 0 1.2rem 1.5rem; color: var(--gray-600); }
.content-page ul li { margin-bottom: 0.4rem; }
.content-page a { color: var(--accent); }

/* ─── ABOUT ───────────────────────────────────────────── */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
  align-items: center; margin: 2rem 0;
}
.value-list { list-style: none; margin-top: 1rem; }
.value-list li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 0.7rem 0; border-bottom: 1px solid var(--gray-200);
  font-size: 0.93rem; color: var(--gray-700);
}
.value-list li:last-child { border: none; }
.value-icon { color: var(--accent); font-size: 1.1rem; margin-top: 1px; flex-shrink: 0; }

/* ─── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .hero { padding: 3.5rem 1.2rem 2.5rem; }
  .hero h1 { letter-spacing: -0.5px; }
  .proof-strip { gap: 1.5rem; }
}
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
}
