/* ==========================================================================
   Infiniti Systems — corporate design system
   Palette: Slate + Teal
   ========================================================================== */

:root {
  /* Slate */
  --slate-950: #060b16;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50:  #f8fafc;

  /* Teal accent */
  --teal-600: #0d9488;
  --teal-500: #14b8a6;
  --teal-400: #2dd4bf;
  --teal-300: #5eead4;

  --white: #ffffff;

  --bg: var(--white);
  --bg-muted: var(--slate-50);
  --text: var(--slate-800);
  --heading: var(--slate-900);
  --muted: var(--slate-500);
  --border: var(--slate-200);
  --accent: var(--teal-500);
  --accent-strong: var(--teal-600);

  --radius: 14px;
  --radius-lg: 22px;
  --radius-sm: 9px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .05);
  --shadow: 0 10px 30px -12px rgba(15, 23, 42, .18);
  --shadow-lg: 0 30px 60px -20px rgba(15, 23, 42, .28);
  --ring: 0 0 0 4px rgba(20, 184, 166, .18);

  --container: 1180px;
  --nav-h: 72px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ------------------------------ Base ------------------------------------- */
* { box-sizing: border-box; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 {
  color: var(--heading);
  line-height: 1.15;
  margin: 0 0 .5em;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1rem; }

a { color: var(--accent-strong); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--teal-500); }

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: clamp(64px, 9vw, 116px) 0; }
.section-tight { padding: clamp(48px, 6vw, 76px) 0; }
.bg-muted { background: var(--bg-muted); }
.bg-dark { background: var(--slate-900); color: var(--slate-300); }
.bg-dark h1, .bg-dark h2, .bg-dark h3 { color: #fff; }

/* ---------------------------- Utilities ---------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--accent-strong);
  background: rgba(20, 184, 166, .1);
  padding: .4rem .8rem;
  border-radius: 100px;
  margin-bottom: 1.1rem;
}
.bg-dark .eyebrow { color: var(--teal-300); background: rgba(45, 212, 191, .12); }

.section-head { max-width: 720px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.lead { font-size: 1.16rem; color: var(--muted); }
.bg-dark .lead { color: var(--slate-400); }

.text-center { text-align: center; }

/* ----------------------------- Buttons ----------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  font-family: inherit;
  font-size: .98rem;
  font-weight: 600;
  line-height: 1;
  padding: .85rem 1.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }

.btn-primary { background: var(--accent-strong); color: #fff; box-shadow: 0 10px 22px -10px rgba(13, 148, 136, .6); }
.btn-primary:hover { background: var(--teal-500); color: #fff; box-shadow: 0 16px 30px -12px rgba(13, 148, 136, .7); }

.btn-ghost { background: transparent; color: var(--heading); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--slate-400); background: var(--white); color: var(--heading); }

.btn-light { background: #fff; color: var(--slate-900); }
.btn-light:hover { background: var(--slate-100); color: var(--slate-900); }

.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.28); }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; }

.btn-lg { padding: 1rem 1.8rem; font-size: 1.03rem; }
.arrow { transition: transform .18s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ----------------------------- Navbar ------------------------------------ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-weight: 800;
  font-size: 1.28rem;
  letter-spacing: -.02em;
  color: var(--slate-900);
}
.brand:hover { color: var(--slate-900); }
.brand-mark {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--teal-400), var(--teal-600));
  display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 1.05rem;
  box-shadow: 0 6px 16px -6px rgba(13,148,136,.7);
}
.brand-sub { color: var(--accent-strong); }

.nav-menu { display: flex; align-items: center; gap: 2rem; }
.nav-links {
  display: flex;
  align-items: center;
  gap: .35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--slate-600);
  font-weight: 500;
  font-size: .96rem;
  padding: .5rem .85rem;
  border-radius: 8px;
  transition: color .18s ease, background .18s ease;
}
.nav-links a:hover { color: var(--slate-900); background: var(--slate-100); }
.nav-links a.active { color: var(--accent-strong); }

.nav-cta { display: flex; align-items: center; gap: .75rem; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 9px;
  width: 44px; height: 44px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  display: block;
  width: 20px; height: 2px;
  background: var(--slate-800);
  border-radius: 2px;
  position: relative;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* ------------------------------ Hero ------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 10vw, 130px) 0 clamp(64px, 8vw, 110px);
  background:
    radial-gradient(60% 55% at 78% 8%, rgba(20, 184, 166, .16), transparent 60%),
    radial-gradient(50% 50% at 8% 100%, rgba(15, 23, 42, .06), transparent 60%),
    linear-gradient(180deg, var(--slate-50), var(--white));
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero h1 { margin-bottom: 1.1rem; }
.hero .lead { font-size: 1.22rem; max-width: 40ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.9rem; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 1.6rem;
  margin-top: 2.4rem; padding-top: 1.6rem;
  border-top: 1px solid var(--border);
}
.hero-meta .stat strong { display: block; font-size: 1.7rem; color: var(--heading); letter-spacing: -.02em; }
.hero-meta .stat span { font-size: .86rem; color: var(--muted); }

/* Hero visual */
.hero-visual { position: relative; }
.hero-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.4rem;
  position: relative;
  z-index: 2;
}
.hero-card .win-dots { display: flex; gap: .4rem; margin-bottom: 1rem; }
.hero-card .win-dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--slate-200); }
.hero-card .win-dots i:nth-child(1){ background:#ef8f8f;} .hero-card .win-dots i:nth-child(2){ background:#f2cd7f;} .hero-card .win-dots i:nth-child(3){ background:#8fd6a9;}
.hero-bars { display: grid; gap: .7rem; }
.hero-bar { height: 42px; border-radius: 10px; background: var(--slate-100); display: flex; align-items: center; gap: .7rem; padding: 0 .8rem; }
.hero-bar .dot { width: 26px; height: 26px; border-radius: 7px; background: linear-gradient(135deg, var(--teal-400), var(--teal-600)); flex: none; }
.hero-bar .fill { height: 8px; border-radius: 5px; background: var(--slate-200); flex: 1; }
.hero-bar .fill.accent { background: linear-gradient(90deg, var(--teal-400), var(--teal-300)); max-width: 60%; }
.hero-float {
  position: absolute; z-index: 3;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: .8rem 1rem; display: flex; align-items: center; gap: .7rem;
  font-weight: 600; font-size: .9rem; color: var(--heading);
}
.hero-float .ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: rgba(20,184,166,.12); color: var(--accent-strong); }
.hero-float.one { bottom: -18px; left: -22px; }
.hero-float.two { top: -18px; right: -14px; }
.hero-float small { display: block; font-weight: 500; color: var(--muted); font-size: .78rem; }

/* --------------------------- Logo strip ---------------------------------- */
.logos { padding: 2.6rem 0; border-bottom: 1px solid var(--border); }
.logos p { text-align: center; color: var(--muted); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1.3rem; }
.logo-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: clamp(1.6rem, 5vw, 3.6rem); }
.logo-row span { font-weight: 700; font-size: 1.25rem; color: var(--slate-400); letter-spacing: -.01em; }

/* ------------------------------ Cards ------------------------------------ */
.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--slate-300); }
.card .ic {
  width: 52px; height: 52px; border-radius: 13px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(45,212,191,.16), rgba(13,148,136,.12));
  color: var(--accent-strong);
  margin-bottom: 1.15rem;
}
.card .ic svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--muted); margin-bottom: 0; font-size: .97rem; }
.card-link { margin-top: 1.1rem; font-weight: 600; font-size: .92rem; display: inline-flex; align-items: center; gap: .4rem; }

/* --------------------------- Feature split ------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.feature-list { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: 1.15rem; }
.feature-list li { display: flex; gap: .9rem; align-items: flex-start; }
.feature-list .tick {
  flex: none; width: 26px; height: 26px; border-radius: 8px;
  background: rgba(20,184,166,.14); color: var(--accent-strong);
  display: grid; place-items: center; margin-top: 2px;
}
.feature-list .tick svg { width: 15px; height: 15px; }
.feature-list h4 { margin: 0 0 .15rem; font-size: 1.02rem; }
.feature-list p { margin: 0; color: var(--muted); font-size: .95rem; }

.panel {
  background: linear-gradient(160deg, var(--slate-900), var(--slate-800));
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  color: var(--slate-300);
  box-shadow: var(--shadow-lg);
}
.panel .stat-line { display: flex; justify-content: space-between; align-items: center; padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.panel .stat-line:last-child { border-bottom: 0; }
.panel .stat-line strong { color: #fff; font-size: 1.05rem; }
.panel .stat-line .val { color: var(--teal-300); font-weight: 700; font-size: 1.4rem; }

/* ------------------------------ Stats band ------------------------------- */
.stats-band { text-align: center; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.stats-grid .num { font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 800; color: #fff; letter-spacing: -.03em; }
.stats-grid .num em { color: var(--teal-300); font-style: normal; }
.stats-grid .lbl { color: var(--slate-400); font-size: .95rem; }

/* ------------------------------ Steps ------------------------------------ */
.steps { counter-reset: step; display: grid; gap: 1.5rem; grid-template-columns: repeat(4, 1fr); }
.step { position: relative; padding: 1.6rem; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-weight: 800; font-size: 1.6rem; color: var(--teal-500);
  display: block; margin-bottom: .7rem; letter-spacing: -.02em;
}
.step h4 { margin: 0 0 .3rem; }
.step p { margin: 0; color: var(--muted); font-size: .93rem; }

/* ------------------------------ CTA band --------------------------------- */
.cta-band {
  position: relative; overflow: hidden;
  background: linear-gradient(140deg, var(--teal-600), #0b7d73 55%, var(--slate-900));
  border-radius: var(--radius-lg);
  padding: clamp(2.4rem, 6vw, 4rem);
  text-align: center;
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.cta-band::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(50% 120% at 80% 0%, rgba(255,255,255,.18), transparent 60%);
  pointer-events: none;
}
.cta-band h2 { color: #fff; position: relative; }
.cta-band p { color: rgba(255,255,255,.85); max-width: 560px; margin: 0 auto 1.7rem; position: relative; }
.cta-band .hero-actions { justify-content: center; position: relative; }

/* ------------------------------ Page hero -------------------------------- */
.page-hero {
  padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 5vw, 60px);
  background:
    radial-gradient(55% 60% at 85% 0%, rgba(20,184,166,.14), transparent 60%),
    linear-gradient(180deg, var(--slate-50), var(--white));
  text-align: center;
}
.page-hero .lead { max-width: 640px; margin-left: auto; margin-right: auto; }
.breadcrumbs { font-size: .85rem; color: var(--muted); margin-bottom: 1rem; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--accent-strong); }

/* ------------------------------ Values ----------------------------------- */
.value { padding: 1.6rem; }
.value .ic { width: 46px; height: 46px; border-radius: 12px; background: rgba(20,184,166,.12); color: var(--accent-strong); display: grid; place-items: center; margin-bottom: 1rem; }
.value h3 { font-size: 1.12rem; }
.value p { color: var(--muted); margin: 0; font-size: .96rem; }

/* ------------------------------ Contact ---------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-info .info-item { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.6rem; }
.contact-info .ic { flex: none; width: 44px; height: 44px; border-radius: 11px; background: rgba(20,184,166,.12); color: var(--accent-strong); display: grid; place-items: center; }
.contact-info h4 { margin: 0 0 .15rem; font-size: 1rem; }
.contact-info p, .contact-info a { margin: 0; color: var(--muted); font-size: .96rem; }

.form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(1.6rem, 3vw, 2.4rem); box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .4rem; color: var(--slate-700); }
.field input, .field textarea, .field select {
  width: 100%;
  font-family: inherit; font-size: .98rem; color: var(--text);
  padding: .8rem .95rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--slate-50);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--teal-400); background: #fff; box-shadow: var(--ring);
}
.field .val-error, .text-danger { color: #dc2626; font-size: .85rem; }

.alert-success {
  background: rgba(20,184,166,.1);
  border: 1px solid rgba(20,184,166,.35);
  color: var(--teal-600);
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
  margin-bottom: 1.4rem;
  font-weight: 500;
  display: flex; gap: .6rem; align-items: center;
}

/* ------------------------------ Prose ------------------------------------ */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { margin-top: 2rem; }
.prose h3 { margin-top: 1.5rem; }
.prose ul { color: var(--muted); padding-left: 1.2rem; }
.prose li { margin-bottom: .4rem; }

/* ------------------------------ Footer ----------------------------------- */
.site-footer { background: var(--slate-950); color: var(--slate-400); padding: clamp(56px, 7vw, 80px) 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; }
.site-footer .brand { color: #fff; margin-bottom: 1rem; }
.site-footer .brand:hover { color: #fff; }
.footer-about { max-width: 34ch; font-size: .95rem; color: var(--slate-400); }
.footer-col h5 { color: #fff; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1.1rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }
.footer-col a { color: var(--slate-400); font-size: .95rem; }
.footer-col a:hover { color: var(--teal-300); }
.footer-bottom {
  margin-top: 3rem; padding-top: 1.6rem;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
  font-size: .88rem; color: var(--slate-500);
}
.footer-bottom a { color: var(--slate-500); }
.footer-bottom a:hover { color: var(--teal-300); }
.social { display: flex; gap: .6rem; }
.social a { width: 36px; height: 36px; border-radius: 9px; border: 1px solid rgba(255,255,255,.12); display: grid; place-items: center; color: var(--slate-400); }
.social a:hover { color: #fff; border-color: var(--teal-500); background: rgba(20,184,166,.12); }
.social svg { width: 17px; height: 17px; }

/* --------------------------- Cookie banner ------------------------------- */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  z-index: 200;
  width: min(920px, calc(100% - 32px));
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transition: opacity .3s ease, transform .3s ease;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.cookie-inner {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding: 1.1rem 1.3rem;
  flex-wrap: wrap;
}
.cookie-text { margin: 0; font-size: .93rem; color: var(--slate-600); flex: 1; min-width: 240px; }
.cookie-actions { display: flex; gap: .6rem; flex: none; }
.cookie-actions .btn { padding: .6rem 1.2rem; font-size: .92rem; }

@media (max-width: 560px) {
  .cookie-actions { width: 100%; }
  .cookie-actions .btn { flex: 1; }
}

/* ---------------------------- Responsive --------------------------------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 460px; margin-top: 1rem; }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 1.5rem; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .5rem 24px 1.2rem;
    display: none;
  }
  .nav-open .nav-menu { display: flex; }
  .nav-links { flex-direction: column; align-items: stretch; gap: .1rem; }
  .nav-links a { padding: .8rem .6rem; border-radius: 8px; }
  .nav-cta { margin-top: .6rem; }
  .nav-cta .btn { width: 100%; }
  .hero-float { display: none; }
}

@media (max-width: 560px) {
  .grid-3, .grid-2, .steps, .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn { width: 100%; }
}
