/* Agent Edge AI — main stylesheet */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #0d1b2e;
  --navy-mid: #162440;
  --blue: #1e6fff;
  --blue-light: #3d8bff;
  --gold: #e8a020;
  --text: #1a1a2e;
  --muted: #5a6478;
  --border: #e2e8f0;
  --bg: #f8fafc;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 48px rgba(0,0,0,.14);
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-logo {
  font-size: 18px; font-weight: 700; color: var(--navy);
  text-decoration: none; letter-spacing: -0.3px;
}
.nav-logo span { color: var(--blue); }
.nav-cta {
  background: var(--blue); color: #fff; font-weight: 600;
  font-size: 14px; padding: 9px 20px; border-radius: 8px;
  text-decoration: none; transition: background .15s;
}
.nav-cta:hover { background: var(--blue-light); }

/* HERO */
.hero {
  position: relative; overflow: hidden;
  background: var(--navy);
  padding: 96px 24px 80px;
  text-align: center;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: .18;
}
.hero-inner { position: relative; max-width: 760px; margin: 0 auto; }
.hero-badge {
  display: inline-block; background: rgba(30,111,255,.18);
  border: 1px solid rgba(30,111,255,.4);
  color: #7eb5ff; font-size: 13px; font-weight: 600;
  padding: 5px 14px; border-radius: 20px; margin-bottom: 28px;
  letter-spacing: .3px;
}
.hero h1 {
  font-size: clamp(36px, 6vw, 60px);
  font-weight: 800; color: #fff; line-height: 1.1;
  letter-spacing: -1px; margin-bottom: 20px;
}
.hero h1 em { font-style: normal; color: var(--gold); }
.hero-sub {
  font-size: 18px; color: #a8b8d0; line-height: 1.65;
  max-width: 600px; margin: 0 auto 40px;
}
.hero-form {
  display: flex; gap: 10px; max-width: 480px; margin: 0 auto;
  flex-wrap: wrap; justify-content: center;
}
.hero-form input {
  flex: 1; min-width: 220px;
  padding: 14px 18px; border-radius: 10px;
  border: 1.5px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.08); color: #fff;
  font-size: 15px; outline: none;
  transition: border-color .15s;
}
.hero-form input::placeholder { color: #7a8fa8; }
.hero-form input:focus { border-color: var(--blue-light); }
.hero-form button {
  padding: 14px 28px; background: var(--blue); color: #fff;
  font-size: 15px; font-weight: 700; border: none;
  border-radius: 10px; cursor: pointer; transition: background .15s, transform .1s;
  white-space: nowrap;
}
.hero-form button:hover { background: var(--blue-light); transform: translateY(-1px); }
.hero-form button:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.hero-note { font-size: 13px; color: #6a7f9a; margin-top: 14px; }
.hero-success {
  display: none; background: rgba(30,111,255,.15);
  border: 1px solid rgba(30,111,255,.4);
  color: #7eb5ff; padding: 16px 24px; border-radius: 10px;
  font-size: 15px; line-height: 1.5; max-width: 480px; margin: 0 auto;
}
.hero-success.visible { display: block; }

/* PAIN SECTION */
.pain {
  background: var(--bg); padding: 80px 24px;
}
.section-label {
  text-align: center; font-size: 12px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--blue); margin-bottom: 12px;
}
.section-title {
  text-align: center; font-size: clamp(26px, 4vw, 40px);
  font-weight: 800; color: var(--navy); letter-spacing: -0.5px;
  margin-bottom: 12px; max-width: 600px; margin-left: auto; margin-right: auto;
}
.section-sub {
  text-align: center; font-size: 17px; color: var(--muted);
  max-width: 540px; margin: 0 auto 56px;
}
.pain-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px; max-width: 980px; margin: 0 auto;
}
.pain-card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 32px 28px;
  box-shadow: var(--shadow);
}
.pain-icon { font-size: 32px; margin-bottom: 16px; }
.pain-card h3 { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.pain-card p { font-size: 15px; color: var(--muted); line-height: 1.65; }

/* FEATURES SECTION */
.features {
  background: var(--white); padding: 80px 24px;
}
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px; max-width: 1060px; margin: 0 auto;
}
.feature-card {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow);
  transition: box-shadow .2s, transform .2s;
}
.feature-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.feature-card-top {
  background: var(--navy-mid); padding: 28px 28px 20px;
}
.feature-tag {
  display: inline-block; font-size: 11px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--blue-light); background: rgba(30,111,255,.15);
  padding: 4px 10px; border-radius: 6px; margin-bottom: 14px;
}
.feature-card-top h3 {
  font-size: 20px; font-weight: 700; color: #fff; line-height: 1.3;
}
.feature-card-body {
  padding: 24px 28px; background: var(--white);
}
.feature-card-body p {
  font-size: 15px; color: var(--muted); line-height: 1.7; margin-bottom: 16px;
}
.feature-stack {
  font-size: 12px; font-weight: 600; color: var(--blue);
  letter-spacing: .3px;
}

/* SOCIAL PROOF */
.proof {
  background: var(--navy); padding: 64px 24px; text-align: center;
}
.proof-quote {
  font-size: clamp(20px, 3vw, 30px); font-weight: 700;
  color: #fff; max-width: 680px; margin: 0 auto 32px;
  line-height: 1.4; letter-spacing: -0.3px;
}
.proof-quote em { color: var(--gold); font-style: normal; }
.proof-logos {
  display: flex; flex-wrap: wrap; gap: 16px 32px;
  justify-content: center; align-items: center;
  margin-top: 32px;
}
.proof-logo-pill {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  border-radius: 8px; padding: 10px 20px;
  font-size: 13px; font-weight: 600; color: #8ba3c0;
  letter-spacing: .3px;
}

/* BOTTOM CTA */
.bottom-cta {
  background: var(--bg); padding: 80px 24px; text-align: center;
}
.bottom-cta h2 {
  font-size: clamp(28px, 4vw, 44px); font-weight: 800;
  color: var(--navy); letter-spacing: -0.5px; margin-bottom: 16px;
}
.bottom-cta p {
  font-size: 17px; color: var(--muted); margin-bottom: 36px;
  max-width: 480px; margin-left: auto; margin-right: auto;
}
.bottom-form {
  display: flex; gap: 10px; max-width: 480px; margin: 0 auto;
  flex-wrap: wrap; justify-content: center;
}
.bottom-form input {
  flex: 1; min-width: 200px; padding: 14px 18px;
  border-radius: 10px; border: 1.5px solid var(--border);
  font-size: 15px; outline: none; color: var(--text);
  transition: border-color .15s; background: #fff;
}
.bottom-form input:focus { border-color: var(--blue); }
.bottom-form button {
  padding: 14px 28px; background: var(--navy); color: #fff;
  font-size: 15px; font-weight: 700; border: none;
  border-radius: 10px; cursor: pointer; transition: background .15s;
  white-space: nowrap;
}
.bottom-form button:hover { background: var(--navy-mid); }
.bottom-form button:disabled { opacity: .6; cursor: not-allowed; }
.bottom-success {
  display: none; color: var(--blue); font-size: 15px;
  font-weight: 600; margin-top: 16px;
}
.bottom-success.visible { display: block; }
.bottom-note { font-size: 13px; color: var(--muted); margin-top: 12px; }

/* FOOTER */
.footer {
  background: var(--navy); padding: 36px 24px;
  text-align: center; border-top: 1px solid rgba(255,255,255,.08);
}
.footer p {
  font-size: 13px; color: #4e6075; line-height: 1.8;
}
.footer a { color: #4e6075; text-decoration: underline; }
.footer a:hover { color: #7a9ab8; }

/* RESPONSIVE */
@media (max-width: 600px) {
  .hero { padding: 72px 20px 64px; }
  .hero-form { flex-direction: column; }
  .hero-form input, .hero-form button { width: 100%; }
  .bottom-form { flex-direction: column; }
  .bottom-form input, .bottom-form button { width: 100%; }
  .pain, .features, .proof, .bottom-cta { padding: 60px 20px; }
}
