/* Aeven — managed service provider demo. Clean, modern, effect.website-inspired. */

:root {
  /* Aeven brand palette — warm, earthy: terracotta + slate on cream */
  --ink: #242424;
  --ink-soft: #44505a;
  --muted: #76726a;
  --line: #e7e1d5;
  --bg: #ffffff;
  --page: #faf8f1;
  --bg-alt: #f4efe3;
  --bg-dark: #2c3e4c;
  --brand: #cd5c4e;        /* terracotta — primary accent */
  --brand-2: #b89f7f;      /* camel/tan — secondary */
  --brand-ink: #31495b;    /* slate blue — headings & active */
  --sage: #5a6053;         /* muted olive — supporting */
  --dusty: #7998ae;        /* dusty blue — supporting */
  --ok: #5a6053;           /* success / ticks use sage */
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(49, 73, 91, .05), 0 8px 24px rgba(49, 73, 91, .08);
  --shadow-lg: 0 24px 64px rgba(49, 73, 91, .16);
  --grad: linear-gradient(120deg, #cd5c4e, #e0896e);
  --maxw: 1140px;
  --font: "Satoshi", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--page);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; color: var(--brand-ink); }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.center { text-align: center; }

.icon { width: 24px; height: 24px; }
.icon-sm { width: 18px; height: 18px; vertical-align: -3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600; font-size: .95rem;
  padding: .65rem 1.1rem; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn-lg { padding: .85rem 1.5rem; font-size: 1rem; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-lg); background: #b94c3f; }
.btn-ghost { background: transparent; color: var(--brand-ink); border-color: var(--line); }
.btn-ghost:hover { color: var(--brand-ink); border-color: var(--brand-ink); background: var(--bg-alt); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 241, .85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.15rem; color: var(--brand-ink); letter-spacing: -0.02em; }
.logo:hover { color: var(--brand-ink); }
.logo-mark { width: 30px; height: 30px; }
.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav a { color: var(--ink-soft); font-weight: 500; padding: .5rem .8rem; border-radius: 8px; }
.nav a:hover { background: var(--bg-alt); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--brand-ink); }
.header-cta { display: flex; gap: 10px; margin-left: auto; align-items: center; }
.header-cta .btn-ghost { border-color: transparent; }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 8vw, 96px) 0; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 60% at 85% 0%, rgba(184, 159, 127, .18), transparent 60%),
    radial-gradient(50% 60% at 10% 10%, rgba(205, 92, 78, .12), transparent 60%);
}
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .82rem; font-weight: 600; color: var(--brand);
  background: #fbeae6; border: 1px solid #f3d4cd;
  padding: .35rem .75rem; border-radius: 999px; margin-bottom: 1.2rem;
}
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 38ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 1.6rem 0 1rem; }
.hero-actions.center { justify-content: center; }
.hero-trust { margin-top: .5rem; }

/* Status panel visual */
.hero-visual { display: flex; justify-content: center; }
.status-panel {
  width: 100%; max-width: 420px;
  background: var(--bg-dark); color: #cdd5ea;
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  overflow: hidden; font-size: .9rem;
  border: 1px solid rgba(255, 255, 255, .08);
}
.status-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: rgba(255,255,255,.04); border-bottom: 1px solid rgba(255,255,255,.07); }
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: #39405e; display: block; }
.dots i:nth-child(1){ background:#ff5f57;} .dots i:nth-child(2){ background:#febc2e;} .dots i:nth-child(3){ background:#28c840;}
.status-title { color: #8b94b3; font-size: .82rem; font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.status-body { padding: 8px 16px 16px; font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.status-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px dashed rgba(255,255,255,.06); }
.status-row .ok { color: #28c840; font-size: .7rem; }
.status-val { margin-left: auto; color: #7d86a6; }
.status-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; }
.badge-live { color: #28c840; font-weight: 600; font-size: .78rem; letter-spacing: .05em; }

/* ---------- Stats band ---------- */
.stats-band { background: var(--bg-dark); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 48px 24px; }
.stat-value { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { color: #aab2cc; font-size: .92rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.kicker { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: .6rem; }
.section-sub { color: var(--muted); font-size: 1.08rem; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Cards ---------- */
.card {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #d7dcea; }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center; margin-bottom: 18px;
  color: #fff; background: var(--grad);
}
.card-tagline { color: var(--brand-ink); font-weight: 600; margin-bottom: .6rem; }
.ticks { margin: 16px 0 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-soft); font-size: .95rem; }
.tick { width: 20px; height: 20px; flex: none; color: var(--ok); margin-top: 2px; }
.card-link { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; margin-top: 18px; }

/* ---------- Split / values ---------- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.value-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 24px; }
.value-grid.stacked { grid-template-columns: 1fr; }
.value { display: flex; gap: 12px; }
.value-tick { width: 32px; height: 32px; flex: none; border-radius: 8px; background: #eceee7; color: var(--ok); display: grid; place-items: center; }
.value h4 { margin: 0 0 .25rem; }
.value p { color: var(--muted); font-size: .92rem; margin: 0; }

.cert-card { background: var(--bg-dark); color: #fff; border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-lg); }
.cert-card h3 { color: #fff; }
.cert-list { display: grid; gap: 2px; margin-top: 14px; }
.cert-list li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.cert-list strong { color: #fff; }
.cert-list span { color: #aab2cc; }

/* ---------- Process ---------- */
.process .step { padding: 28px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); box-shadow: var(--shadow); }
.step-num { font-size: 2rem; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; display: block; margin-bottom: .4rem; }
.step p { color: var(--muted); margin: 0; }

/* ---------- Quotes ---------- */
.quote-card { margin: 0; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 18px; }
.quote-card blockquote { margin: 0; font-size: 1.05rem; color: var(--ink-soft); }
.quote-card figcaption strong { display: block; }
.quote-card figcaption span { color: var(--muted); font-size: .9rem; }

/* ---------- Cert badges ---------- */
.cert-badge { text-align: center; display: flex; flex-direction: column; gap: .35rem; align-items: center; }
.cert-badge strong { font-size: 1.15rem; }
.cert-badge span { color: var(--muted); font-size: .9rem; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--bg-dark); color: #fff; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 120% at 80% 0%, rgba(205,92,78,.30), transparent 55%), radial-gradient(50% 120% at 10% 100%, rgba(184,159,127,.28), transparent 55%); }
.cta-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 64px 24px; flex-wrap: wrap; }
.cta-inner h2 { color: #fff; margin-bottom: .4rem; }
.cta-inner p { color: #c2cae0; margin: 0; max-width: 46ch; }
.cta-band .btn-primary { background: #fff; color: var(--brand-ink); }
.cta-band .btn-primary:hover { background: #f4ece4; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: clamp(48px, 7vw, 88px) 0 0; }
.page-hero.center { text-align: center; padding-bottom: 48px; }
.page-hero .lead { max-width: 52ch; }
.page-hero.center .lead { margin-inline: auto; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: start; }
.contact-form { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .92rem; }
.field input, .field textarea {
  font: inherit; color: var(--ink);
  padding: .7rem .85rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg-alt); transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(205,92,78,.15); }
.field.invalid input, .field.invalid textarea { border-color: #dc2626; }
.field-error { color: #dc2626; font-size: .82rem; min-height: 1em; }
.form-status { font-weight: 600; min-height: 1.4em; margin: 0; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: #dc2626; }

.contact-aside h3 { margin-bottom: 16px; }
.contact-list { display: grid; gap: 16px; }
.contact-list li { display: grid; gap: 2px; }
.aside-note { margin-top: 28px; padding: 20px; background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); }
.aside-note strong { display: block; margin-bottom: .35rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-dark); color: #aab2cc; padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand p { max-width: 34ch; }
.footer-brand .logo { color: #fff; margin-bottom: 14px; }
.footer-brand .logo:hover { color: #fff; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.site-footer ul { display: grid; gap: 10px; }
.site-footer a { color: #aab2cc; }
.site-footer a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero-inner, .split, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .value-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav, .header-cta { display: none; }
  .nav-toggle { display: inline-flex; flex-direction: column; gap: 5px; margin-left: auto; background: none; border: 0; cursor: pointer; padding: 8px; }
  .nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }
  body.nav-open .site-header { background: #fff; }
  body.nav-open .nav {
    display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; padding: 12px 24px 20px; border-bottom: 1px solid var(--line); gap: 2px;
  }
  body.nav-open .header-cta { display: flex; position: absolute; top: 210px; left: 0; right: 0; padding: 0 24px 20px; background: #fff; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
