/* ==========================================================================
   Smarqio Flex Gateway — site styles
   Palette matches the product collateral: deep teal-navy + seafoam accents.
   ========================================================================== */

:root {
  --ink: #0E2A38;
  --ink-2: #0B2028;
  --card-dark: #123A4C;
  --teal: #0E8C86;
  --teal-dk: #0A6E69;
  --sea: #34D1BF;
  --sea-dk: #17B3AB;
  --slate: #2B3A44;
  --muted: #5B6B75;
  --line: #DCE7E7;
  --tint: #EAF4F3;
  --tint-2: #F3F9F8;
  --amber: #B26B00;
  --green: #1B7A43;
  --red: #9B2C2C;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(14, 42, 56, .10);
  --shadow-sm: 0 4px 14px rgba(14, 42, 56, .08);
  --radius: 14px;
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  color: var(--slate);
  background: var(--white);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }

a { color: var(--teal-dk); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.2; color: var(--ink); margin: 0 0 .6rem; }

.eyebrow {
  color: var(--teal);
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: .5rem;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(14, 42, 56, .96);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.site-header .nav { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: baseline; gap: .5rem; }
.brand-mark { color: var(--sea); font-weight: 800; letter-spacing: .12em; font-size: .95rem; }
.brand-sub { color: var(--white); font-weight: 600; font-size: .95rem; }
.navlinks { display: flex; gap: .35rem; }
.navlink {
  color: #C7D9DD; font-weight: 600; font-size: .92rem;
  padding: .45rem .8rem; border-radius: 8px; text-decoration: none;
}
.navlink:hover { color: var(--white); background: rgba(255, 255, 255, .06); text-decoration: none; }
.navlink.active { color: var(--ink); background: var(--sea); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-weight: 700; font-size: .95rem;
  padding: .72rem 1.35rem; border-radius: 10px; cursor: pointer;
  border: 1px solid transparent; transition: transform .05s ease, box-shadow .2s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--sea); color: var(--ink); }
.btn-primary:hover { box-shadow: 0 8px 22px rgba(52, 209, 191, .35); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .35); }
.btn-ghost:hover { border-color: var(--sea); color: var(--sea); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--ink-2); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 420px at 82% -10%, rgba(52, 209, 191, .16), transparent 60%),
    radial-gradient(700px 380px at 0% 120%, rgba(14, 140, 134, .18), transparent 55%),
    var(--ink);
  color: var(--white);
  padding: 5rem 0 5.5rem;
}
.hero .eyebrow { color: var(--sea); }
.hero h1 { color: var(--white); font-size: clamp(2rem, 4.6vw, 3.15rem); max-width: 15ch; }
.hero p.lead { color: #C7D9DD; font-size: 1.12rem; max-width: 60ch; margin: .8rem 0 1.8rem; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2.2rem; }
.chip {
  border: 1px solid rgba(52, 209, 191, .45); color: var(--sea);
  border-radius: 20px; padding: .32rem .85rem; font-size: .82rem; font-weight: 600;
}

/* ---------- Sections ---------- */
.section { padding: 4rem 0; }
.section.alt { background: var(--tint-2); }
.section-head { max-width: 62ch; margin-bottom: 2rem; }
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2.05rem); }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* ---------- Card grids ---------- */
.grid { display: grid; gap: 1.1rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow-sm);
}
.card h3 { font-size: 1.12rem; color: var(--teal-dk); }
.card p { color: var(--slate); margin: 0; font-size: .97rem; }
.card .num { font-size: 1.5rem; font-weight: 800; color: var(--sea-dk); margin-bottom: .2rem; }

/* Dark feature band */
.band-dark { background: var(--ink); color: var(--white); }
.band-dark .section-head h2 { color: var(--white); }
.band-dark .section-head p { color: #A9C3C7; }
.card-dark {
  background: var(--card-dark); border: 1px solid rgba(255, 255, 255, .06);
  border-radius: var(--radius); padding: 1.4rem; box-shadow: none;
}
.card-dark h3 { color: var(--sea); font-size: 1.05rem; }
.card-dark p, .card-dark li { color: #C7D9DD; }
.card-dark ul { margin: .4rem 0 0; padding-left: 1.1rem; }
.card-dark li { margin: .2rem 0; }

/* Split callout */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 1.5rem; align-items: center; }
.stat { font-size: 2.4rem; font-weight: 800; color: var(--sea-dk); line-height: 1; }

/* ---------- CTA ---------- */
.cta {
  background:
    radial-gradient(700px 300px at 90% 10%, rgba(52, 209, 191, .18), transparent 60%),
    var(--ink);
  color: var(--white); border-radius: 18px; padding: 3rem 2.5rem; text-align: center;
}
.cta h2 { color: var(--white); font-size: 1.7rem; }
.cta p { color: #C7D9DD; max-width: 52ch; margin: .5rem auto 1.5rem; }

/* ---------- Tables (protocol matrix) ---------- */
.table-wrap { overflow-x: auto; }
table.matrix { width: 100%; border-collapse: collapse; font-size: .94rem; }
table.matrix th, table.matrix td { text-align: left; padding: .7rem .85rem; border-bottom: 1px solid var(--line); }
table.matrix thead th { background: var(--ink); color: var(--white); font-weight: 700; }
table.matrix tbody tr:nth-child(even) { background: var(--tint-2); }

/* ---------- Contact form ---------- */
.form-wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 2rem; align-items: start; }
.field { margin-bottom: 1.05rem; }
.field label { display: block; font-weight: 600; font-size: .9rem; color: var(--ink); margin-bottom: .35rem; }
.field .req { color: var(--red); }
.field input, .field textarea {
  width: 100%; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; color: var(--slate); background: var(--white); transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--sea-dk); box-shadow: 0 0 0 3px rgba(52, 209, 191, .18);
}
.field textarea { min-height: 150px; resize: vertical; }
.field.has-error input, .field.has-error textarea { border-color: var(--red); }
.field .err-msg { color: var(--red); font-size: .82rem; margin-top: .3rem; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* honeypot — hidden from real users */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert { border-radius: 10px; padding: .9rem 1.1rem; margin-bottom: 1.2rem; font-size: .95rem; }
.alert-success { background: #E4F3E9; color: #14532d; border: 1px solid #B7E0C4; }
.alert-error { background: #FBE9E9; color: #7f1d1d; border: 1px solid #F0C4C4; }

.contact-aside { background: var(--tint); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.contact-aside h3 { color: var(--teal-dk); font-size: 1.05rem; }
.contact-aside p { color: var(--slate); font-size: .95rem; margin: .3rem 0; }
.contact-aside .label { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; margin-top: 1rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-2); color: #A9C3C7; padding: 2.4rem 0; margin-top: 3rem; }
.footer-grid { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.footer-grid .brand-mark { font-size: 1rem; }
.footer-grid .brand-mark span { color: var(--white); font-weight: 600; }
.site-footer p { margin: .3rem 0; font-size: .88rem; }
.muted { color: var(--muted); }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 5rem 0; }
.notfound .big { font-size: 4rem; font-weight: 800; color: var(--sea-dk); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .form-wrap { grid-template-columns: 1fr; }
  .row-2 { grid-template-columns: 1fr; }
  .navlinks { gap: .1rem; }
  .navlink { padding: .4rem .6rem; font-size: .85rem; }
  .hero { padding: 3.5rem 0 4rem; }
}
