/* ============================================================
   Agilint — Enterprise Website Shared Styles
   Design tokens match dashboard/index.html exactly
   ============================================================ */

:root {
  --primary:    #10B981;
  --primary-h:  #059669;
  --cyan:       #06B6D4;
  --teal:       #38BDF8;
  --magenta:    #F97316;
  --bg:         #F6FFFB;
  --bg-2:       #EFFAF1;
  --bg-3:       #E6F9EC;
  --surface:    #E8FFF0;
  --surface-2:  #F1FFF7;
  --surface-3:  #DFF7E8;
  --border:     #CFF3D6;
  --border-2:   #9DE3B8;
  --text:       #022C22;
  --text-2:     #0A4A34;
  --text-3:     #1A5C42;
  --nav-bg-1:   #0A2F23;
  --nav-bg-2:   #0F4C36;
  --nav-text:   #E8FFF4;
  --nav-muted:  rgba(232,255,244,0.85);
  --success:    #10B981;
  --warning:    #F59E0B;
  --danger:     #EF4444;
  --glow-v:     0 0 32px rgba(16,185,129,.22);
  --glow-c:     0 0 32px rgba(6,182,212,.22);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  color: var(--text);
  background: var(--bg);
}

/* ── Animations ──────────────────────────────────────── */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
@keyframes pulse-slow {
  0%, 100% { opacity: 1; }
  50%       { opacity: .45; }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ── Typography ──────────────────────────────────────── */
.t-h1    { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.t-h2    { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
.t-h3    { font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
.t-body  { font-size: 1.0625rem; line-height: 1.7; color: var(--text-2); }
.t-small { font-size: .875rem; color: var(--text-3); }
.t-label { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

.gradient-text {
  background: linear-gradient(90deg, #FF00FF, #00FFFF, #FFFF00, #FF00FF);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s linear infinite;
}
.emerald-text { color: var(--primary); }
.cyan-text    { color: var(--cyan); }
.muted-text   { color: var(--text-3); }

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .7rem 1.5rem; border-radius: 10px;
  font-size: .9375rem; font-weight: 600; cursor: pointer;
  border: none; text-decoration: none; transition: all .15s;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, #34D399, #10B981);
  color: #fff;
  box-shadow: 0 4px 18px rgba(16,185,129,.25);
}
.btn-primary:hover { opacity: .92; box-shadow: 0 6px 24px rgba(16,185,129,.35); transform: translateY(-1px); }

.btn-cyan {
  background: linear-gradient(135deg, #06B6D4, #38BDF8);
  color: #fff;
  box-shadow: 0 4px 18px rgba(6,182,212,.22);
}
.btn-cyan:hover { opacity: .92; transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--cyan);
  border: 1.5px solid var(--cyan);
}
.btn-outline:hover { background: rgba(6,182,212,.08); }

.btn-outline-dark {
  background: transparent;
  color: var(--nav-text);
  border: 1.5px solid rgba(232,255,244,.3);
}
.btn-outline-dark:hover { border-color: var(--cyan); color: var(--cyan); }

.btn-lg { padding: 1rem 2.5rem; font-size: 1.0625rem; border-radius: 12px; }
.btn-sm { padding: .45rem 1rem; font-size: .8125rem; border-radius: 8px; }
.btn-full { width: 100%; justify-content: center; }

/* ── Cards ───────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  transition: border-color .25s, box-shadow .25s;
}
.card:hover { border-color: var(--border-2); box-shadow: var(--glow-v); }

.card-dark {
  background: rgba(6,182,212,.06);
  border: 1px solid rgba(6,182,212,.18);
  border-radius: 14px;
  padding: 1.5rem;
}

/* ── Badges / Tags ───────────────────────────────────── */
.tag {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .25rem .75rem; border-radius: 999px;
  font-size: .75rem; font-weight: 700; letter-spacing: .03em;
  white-space: nowrap;
}
.tag-cyan    { background: rgba(6,182,212,.14);  color: var(--cyan); }
.tag-green   { background: rgba(16,185,129,.14); color: var(--primary); }
.tag-magenta { background: rgba(249,115,22,.12); color: var(--magenta); }
.tag-dark-cyan { background: rgba(6,182,212,.18); color: #67E8F9; }
.tag-dark-green { background: rgba(52,211,153,.18); color: #6EE7B7; }

/* ── Navigation ──────────────────────────────────────── */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center;
  padding: 0 2rem; height: 64px;
  transition: box-shadow .25s;
}
.site-nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.12); }

.nav-light { background: rgba(246,255,251,.95); border-bottom: 1px solid var(--border); backdrop-filter: blur(12px); }
.nav-dark  { background: linear-gradient(90deg, var(--nav-bg-1), var(--nav-bg-2)); border-bottom: 1px solid rgba(16,185,129,.1); }

.nav-logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.nav-logo img { height: 32px; width: auto; }
.nav-wordmark { font-size: 1.125rem; font-weight: 800; }
.nav-wordmark-light { color: var(--text); }
.nav-wordmark-dark  { color: var(--nav-text); }

.nav-links { display: flex; align-items: center; gap: .25rem; margin: 0 auto; }
.nav-link {
  padding: .5rem .875rem; border-radius: 8px;
  font-size: .9rem; font-weight: 500; text-decoration: none;
  transition: background .15s, color .15s;
}
.nav-link-light { color: var(--text-2); }
.nav-link-light:hover { background: var(--surface); color: var(--text); }
.nav-link-dark { color: var(--nav-muted); }
.nav-link-dark:hover { color: var(--nav-text); background: rgba(255,255,255,.06); }

.nav-actions { display: flex; align-items: center; gap: .75rem; margin-left: auto; }

/* ── Section Layout ──────────────────────────────────── */
.section { padding: 5rem 2rem; }
.section-sm { padding: 3rem 2rem; }
.container { max-width: 1100px; margin: 0 auto; }
.container-wide { max-width: 1280px; margin: 0 auto; }

.section-label {
  display: inline-block; margin-bottom: .75rem;
  font-size: .75rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--primary);
}
.section-title { margin-bottom: .75rem; }
.section-sub { color: var(--text-3); margin-bottom: 2.5rem; max-width: 52ch; }

/* ── Grid helpers ────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }

/* ── Stat number ─────────────────────────────────────── */
.stat-number { font-size: 2.5rem; font-weight: 800; line-height: 1; }
.stat-label  { font-size: .875rem; margin-top: .35rem; }

/* ── Feature step ────────────────────────────────────── */
.step-num {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, #34D399, #10B981);
  color: #fff; font-size: 1.125rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; box-shadow: 0 4px 14px rgba(16,185,129,.3);
}

/* ── Tab system (matches dashboard) ─────────────────── */
.tab-list {
  display: flex; gap: .25rem; border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}
.tab-btn {
  padding: .75rem 1.25rem; font-size: .9rem; font-weight: 600;
  border: none; background: none; cursor: pointer; color: var(--text-3);
  border-bottom: 3px solid transparent; margin-bottom: -1px;
  transition: color .12s;
}
.tab-btn:hover { color: var(--text-2); }
.tab-btn.active { color: var(--text); border-bottom-color: var(--cyan); }

.tab-panel { display: none; animation: fadeIn .2s ease; }
.tab-panel.active { display: block; }

/* ── Browser mockup ──────────────────────────────────── */
.browser-chrome {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,.08);
}
.browser-bar {
  background: var(--surface-3);
  padding: .6rem 1rem;
  display: flex; align-items: center; gap: .5rem;
  border-bottom: 1px solid var(--border);
}
.browser-dot { width: 10px; height: 10px; border-radius: 50%; }
.browser-content { padding: 1.5rem; min-height: 220px; }

/* ── Testimonial card ────────────────────────────────── */
.testimonial-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 1.75rem; }
.testimonial-quote { font-size: 2.5rem; line-height: 1; color: var(--cyan); font-family: Georgia, serif; margin-bottom: .5rem; }
.testimonial-text  { font-size: .9375rem; line-height: 1.65; color: var(--text-2); margin-bottom: 1.25rem; font-style: italic; }
.testimonial-attr  { font-size: .8125rem; font-weight: 600; color: var(--text-3); }

/* ── Pull quote ──────────────────────────────────────── */
.pull-quote {
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  font-weight: 600; font-style: italic;
  color: var(--nav-text); line-height: 1.5;
  max-width: 780px; margin: 0 auto 3rem;
  text-align: center;
}

/* ── Avatar circle ───────────────────────────────────── */
.avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, #34D399, #10B981);
  color: #fff; font-size: 1.125rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* ── Integration logos ───────────────────────────────── */
.integration-strip { display: flex; align-items: center; justify-content: center; gap: 3rem; flex-wrap: wrap; }
.integration-item  { display: flex; align-items: center; gap: .6rem; opacity: .5; transition: opacity .2s; cursor: default; }
.integration-item:hover { opacity: 1; }
.integration-item svg { width: 28px; height: 28px; }
.integration-label { font-size: .9rem; font-weight: 600; color: var(--text-2); }

/* ── Supported Stack grid ────────────────────────────── */
.stack-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.stack-cat  { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 1.25rem 1.5rem; }
.stack-cat-title { font-size: .7rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--text-3); margin-bottom: .75rem; }
.stack-badges { display: flex; flex-wrap: wrap; gap: .35rem; }
.stack-badge { display: inline-block; background: var(--bg-3); border: 1px solid var(--border); border-radius: 999px; padding: .18rem .6rem; font-size: .7rem; font-weight: 500; color: var(--text-2); white-space: nowrap; }
.stack-badge.sb-primary { background: rgba(16,185,129,.12); border-color: rgba(16,185,129,.35); color: var(--primary); }
.stack-badge.sb-cyan    { background: rgba(6,182,212,.1);   border-color: rgba(6,182,212,.3);   color: var(--cyan); }
@media (max-width: 900px) { .stack-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .stack-grid { grid-template-columns: 1fr; } }

/* ── Pricing philosophy note ─────────────────────────── */
.pricing-philosophy { display: grid; grid-template-columns: 1fr auto 1fr; gap: 2rem; align-items: start; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 1.5rem 2rem; margin-bottom: 2.5rem; }
.pricing-philo-label { font-size: .7rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--primary); margin-bottom: .45rem; }
.pricing-philo-text  { font-size: .855rem; color: var(--text-2); line-height: 1.7; }
.pricing-philo-divider { width: 1px; background: var(--border); align-self: stretch; }
@media (max-width: 680px) { .pricing-philosophy { grid-template-columns: 1fr; } .pricing-philo-divider { display: none; } }

/* ── Pricing table ───────────────────────────────────── */
.pricing-card { background: var(--surface); border: 1.5px solid var(--border); border-radius: 16px; padding: 2rem; }
.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: 0 0 32px rgba(16,185,129,.2);
  background: var(--surface-2);
}
.pricing-amount { font-size: 2.5rem; font-weight: 800; color: var(--text); }
.pricing-period { font-size: .875rem; color: var(--text-3); }
.pricing-feature { display: flex; align-items: flex-start; gap: .6rem; font-size: .9rem; color: var(--text-2); padding: .4rem 0; border-bottom: 1px solid var(--border); }
.pricing-feature:last-child { border-bottom: none; }
.pricing-feature .check { color: var(--primary); font-size: 1rem; flex-shrink: 0; margin-top: .1rem; }
.pricing-feature .dash  { color: var(--text-3); font-size: 1rem; flex-shrink: 0; }

/* ── Form ────────────────────────────────────────────── */
.form-group { margin-bottom: 1rem; }
.form-label { display: block; font-size: .8125rem; font-weight: 600; color: var(--text-2); margin-bottom: .4rem; }
.form-input, .form-select {
  width: 100%; padding: .7rem .9rem;
  background: var(--surface-2); border: 1.5px solid var(--border-2);
  border-radius: 9px; font-size: .9375rem; color: var(--text);
  transition: border-color .15s, box-shadow .15s;
  appearance: none;
}
.form-input:focus, .form-select:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(16,185,129,.12);
}
.form-input.error, .form-select.error { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(239,68,68,.1); }
.form-error { font-size: .75rem; color: var(--danger); margin-top: .3rem; display: none; }
.form-error.visible { display: block; }

/* ── CTA banner ──────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, #34D399, #10B981);
  border-radius: 20px; padding: 3.5rem 2rem; text-align: center;
}
.cta-banner-title { color: #fff; margin-bottom: .75rem; }
.cta-banner-sub   { color: rgba(255,255,255,.85); margin-bottom: 2rem; font-size: 1.0625rem; }

/* ── Stat pill ───────────────────────────────────────── */
.stat-pill {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .35rem .85rem; border-radius: 999px;
  font-size: .8125rem; font-weight: 700;
}
.stat-pill-cyan  { background: rgba(6,182,212,.15);  color: #67E8F9; }
.stat-pill-green { background: rgba(52,211,153,.15); color: #6EE7B7; }

/* ── Compliance badges ───────────────────────────────── */
.compliance-badges { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }

/* ── Divider ─────────────────────────────────────────── */
.divider { height: 1px; background: var(--border); margin: 0; }
.divider-dark { height: 1px; background: rgba(255,255,255,.06); margin: 0; }

/* ── Footer ──────────────────────────────────────────── */
.footer { background: var(--nav-bg-1); color: var(--nav-muted); padding: 4rem 2rem 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 2.5rem; margin-bottom: 3rem; }
.footer-brand p { font-size: .875rem; line-height: 1.6; margin-top: .75rem; max-width: 28ch; }
.footer-col h4 { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--nav-text); margin-bottom: 1rem; }
.footer-col a  { display: block; font-size: .875rem; color: var(--nav-muted); text-decoration: none; padding: .25rem 0; transition: color .15s; }
.footer-col a:hover { color: var(--nav-text); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.06); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .75rem; font-size: .8125rem; }
.footer-bottom a { color: var(--nav-muted); text-decoration: none; }
.footer-bottom a:hover { color: var(--nav-text); }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .site-nav { padding: 0 1rem; }
  .nav-links { display: none; }
  .section { padding: 3.5rem 1.25rem; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .compare-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .integration-strip { gap: 1.5rem; }
}
