/* Ambient Agent — ambientagent.co.uk | Brand Identity v4 */
:root {
  --navy: #0B0F1A;
  --deep: #050810;
  --slate: #1F2937;
  --line: #1E293B;
  --grey: #4B5563;
  --text2: #94A3B8;
  --light: #F1F5F9;
  --blue: #2563EB;
  --blue2: #60A5FA;
  --blue-dark: #1D4ED8;
  --green: #16A34A;
  --amber: #F59E0B;
  --white: #FFFFFF;
  --border-light: #E2E8F0;
  --maxw: 1200px;
  --textw: 680px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--white);
  background: var(--navy);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: 'Montserrat', Arial, sans-serif; font-weight: 700; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--blue2); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11, 15, 26, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.nav-brand {
  display: flex; align-items: center; gap: 12px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700; font-size: 18px; letter-spacing: 1px;
  color: var(--white);
}
.nav-brand img { height: 32px; width: auto; }
.nav-brand:hover { text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a {
  color: var(--text2); font-size: 15px; font-weight: 500;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); text-decoration: none; }
.nav-cta {
  background: var(--blue); color: var(--white) !important;
  padding: 10px 20px; border-radius: 8px; font-weight: 600;
}
.nav-cta:hover { background: var(--blue-dark); text-decoration: none; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--white); font-size: 22px; padding: 4px 12px; border-radius: 6px; cursor: pointer; }

/* ---------- Sections ---------- */
.section { padding: 120px 0; }
.section.dark { background: var(--navy); color: var(--white); }
.section.deep { background: var(--deep); }
.section.light { background: var(--light); color: #111827; }
.section.light .eyebrow { color: var(--blue); }
.section.light h2 { color: #0B0F1A; }
.section.light p { color: #374151; }

.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--blue2); margin-bottom: 16px;
}
.section h2 { font-size: 44px; line-height: 1.1; margin-bottom: 28px; max-width: 800px; }
.section p { max-width: var(--textw); color: var(--text2); margin-bottom: 20px; }
.section.dark p, .section.deep p { color: var(--text2); }
.lede { font-size: 21px; }
.closing-line {
  font-family: 'Montserrat', Arial, sans-serif; font-weight: 700;
  font-size: 26px; color: var(--blue2); max-width: 760px; margin-top: 36px;
}

/* ---------- Hero ---------- */
.hero { min-height: calc(100vh - 72px); display: flex; align-items: center; position: relative; padding: 80px 0; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }
.hero h1 { font-size: 68px; line-height: 1.05; letter-spacing: -0.02em; margin: 20px 0 28px; }
.hero .sub { font-size: 20px; color: var(--text2); max-width: 620px; margin-bottom: 36px; }
.hero-visual { opacity: 0.95; }
.strapline { position: absolute; bottom: 32px; left: 24px; font-style: italic; font-size: 14px; color: var(--grey); }

/* Page hero (inner pages) */
.page-hero { padding: 100px 0 60px; }
.page-hero h1 { font-size: 52px; line-height: 1.08; letter-spacing: -0.02em; margin: 16px 0 24px; max-width: 900px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; background: var(--blue); color: var(--white);
  font-family: 'Inter', Arial, sans-serif; font-size: 16px; font-weight: 600;
  padding: 16px 32px; border-radius: 8px; border: none; cursor: pointer;
  transition: background 0.2s ease;
}
.btn:hover { background: var(--blue-dark); text-decoration: none; }
.btn-note { display: block; margin-top: 12px; font-size: 14px; color: var(--text2); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 32px; margin-top: 48px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--slate); border-radius: 8px; padding: 32px;
  border: 1px solid transparent; position: relative; overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: var(--blue); transform: translateY(-4px); }
.section.light .card { background: var(--white); border: 1px solid var(--border-light); box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.section.light .card:hover { border-color: var(--blue); }
.card h3 { font-size: 22px; color: var(--blue2); margin-bottom: 12px; }
.section.light .card h3 { color: var(--blue); }
.card p { font-size: 15px; margin: 0; max-width: none; }
.card .num {
  position: absolute; top: 8px; right: 16px;
  font-family: 'Montserrat', Arial, sans-serif; font-weight: 700;
  font-size: 72px; opacity: 0.06; line-height: 1;
}

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip {
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
  border: 1px solid var(--blue); color: var(--blue2);
  border-radius: 999px; padding: 4px 12px;
}
.section.light .chip { color: var(--blue); }

/* ---------- Metrics ---------- */
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 48px; }
.metric .value {
  font-family: 'Montserrat', Arial, sans-serif; font-weight: 700;
  font-size: 56px; color: var(--green); line-height: 1.1;
}
.metric .label { font-size: 15px; color: var(--text2); margin-top: 8px; }

/* ---------- Pricing ---------- */
.price-card { display: flex; flex-direction: column; }
.price-card.featured { border: 2px solid var(--blue); }
.price-card .price {
  font-family: 'Montserrat', Arial, sans-serif; font-weight: 700;
  font-size: 30px; color: var(--white); margin: 10px 0 6px;
}
.section.light .price-card .price { color: #0B0F1A; }
.price-card .credit { color: var(--green); font-size: 15px; font-weight: 600; margin-bottom: 14px; }
.reassure { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 56px; }
.reassure h4 { font-size: 17px; color: var(--blue2); margin-bottom: 8px; }
.section.light .reassure h4 { color: var(--blue); }
.reassure p { font-size: 15px; margin: 0; }

/* ---------- Comparison ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 48px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.compare > div { padding: 36px; }
.compare .is { border-right: 1px solid var(--line); }
.compare h3 { font-size: 20px; margin-bottom: 20px; }
.compare ul { list-style: none; }
.compare li { padding: 8px 0 8px 28px; position: relative; font-size: 16px; color: var(--text2); }
.compare .is li::before { content: ""; position: absolute; left: 0; top: 16px; width: 14px; height: 2px; background: var(--blue); }
.compare .not li::before { content: ""; position: absolute; left: 0; top: 16px; width: 14px; height: 2px; background: var(--grey); }

/* ---------- Statement ---------- */
.statement { padding: 140px 0; text-align: center; background: var(--deep); }
.statement p {
  font-family: 'Montserrat', Arial, sans-serif; font-weight: 700;
  font-size: 44px; line-height: 1.2; color: var(--white);
  max-width: 900px; margin: 0 auto;
}

/* ---------- Figure ---------- */
.figure { margin: 48px 0 0; }
.figure figcaption { font-size: 14px; color: var(--grey); margin-top: 16px; text-align: center; }

/* ---------- Pull quote ---------- */
.pullquote {
  background: var(--slate); border-left: 4px solid var(--blue);
  border-radius: 8px; padding: 40px; margin-top: 48px;
}
.pullquote p {
  font-family: 'Montserrat', Arial, sans-serif; font-weight: 700;
  font-size: 28px; color: var(--white); margin: 0; max-width: none;
}

/* ---------- CTA band ---------- */
.cta-band { background: var(--deep); padding: 100px 0; text-align: center; }
.cta-band h2 { font-size: 40px; margin-bottom: 16px; }
.cta-band p { margin: 0 auto 32px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; margin-top: 48px; }
.contact-email { font-family: 'Montserrat', Arial, sans-serif; font-weight: 700; font-size: 24px; }
form label { display: block; font-size: 14px; font-weight: 600; color: var(--text2); margin: 18px 0 6px; }
form input, form select, form textarea {
  width: 100%; background: var(--slate); border: 1px solid var(--line);
  border-radius: 8px; padding: 13px 15px; color: var(--white);
  font-family: 'Inter', Arial, sans-serif; font-size: 15px;
}
form input:focus, form select:focus, form textarea:focus { outline: none; border-color: var(--blue); }
form button { margin-top: 24px; }

/* ---------- Footer ---------- */
.footer { background: var(--deep); border-top: 1px solid var(--line); padding: 56px 0; }
.footer .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; }
.footer h4 { font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue2); margin-bottom: 14px; }
.footer p, .footer a, .footer li { font-size: 14px; color: var(--text2); }
.footer ul { list-style: none; }
.footer li { margin-bottom: 8px; }
.footer .legal { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 24px; margin-top: 16px; font-size: 13px; color: var(--grey); }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.4s ease-out, transform 0.4s ease-out; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Utilities ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .section { padding: 72px 0; }
  .hero { min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero h1 { font-size: 40px; }
  .page-hero h1 { font-size: 34px; }
  .section h2 { font-size: 30px; }
  .statement p { font-size: 28px; }
  .grid.cols-3, .grid.cols-2, .metrics, .reassure, .contact-grid { grid-template-columns: 1fr; }
  .compare { grid-template-columns: 1fr; }
  .compare .is { border-right: none; border-bottom: 1px solid var(--line); }
  .footer .wrap { grid-template-columns: 1fr; }
  .nav-links {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--deep); flex-direction: column; padding: 24px;
    gap: 18px; border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
}
