/* Inbex website: shared styles */
:root {
  --bg: #f7f8fe;
  --bg-soft: #eef1fd;
  --surface: #ffffff;
  --surface-2: #f3f5fd;
  --text: #0f172a;
  --text-2: #475569;
  --text-3: #64748b;
  --border: #e3e8f7;
  --primary: #2f5bf5;
  --primary-2: #1d4ed8;
  --violet: #8b3df7;
  --sky: #38bdf8;
  --ok: #16a34a;
  --err: #dc2626;
  --grad: linear-gradient(135deg, #2f4bf5 0%, #6a3bf6 55%, #8b3df7 100%);
  --grad-soft: linear-gradient(135deg, rgba(47, 91, 245, .10), rgba(139, 61, 247, .10));
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05), 0 2px 8px rgba(15, 23, 42, .04);
  --shadow: 0 10px 30px -12px rgba(37, 56, 140, .22), 0 4px 10px -6px rgba(15, 23, 42, .08);
  --shadow-lg: 0 40px 80px -30px rgba(47, 75, 245, .45);
  --radius: 22px;
  --radius-sm: 14px;
  --maxw: 1160px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0e1f;
    --bg-soft: #10162d;
    --surface: #121a33;
    --surface-2: #17213f;
    --text: #eef2ff;
    --text-2: #b6c0de;
    --text-3: #8e99bd;
    --border: #22305a;
    --primary: #6d8dff;
    --primary-2: #8aa4ff;
    --grad-soft: linear-gradient(135deg, rgba(109, 141, 255, .14), rgba(167, 112, 255, .14));
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow: 0 14px 34px -14px rgba(0, 0, 0, .6);
    --shadow-lg: 0 40px 90px -30px rgba(80, 100, 255, .45);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--primary);
  background: var(--grad-soft);
  border: 1px solid var(--border);
  padding: 6px 14px; border-radius: 999px;
}
.eyebrow svg { width: 15px; height: 15px; flex: none; }
.muted { color: var(--text-2); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-weight: 700; font-size: 15px;
  padding: 14px 24px; border-radius: 14px; border: 0; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  text-decoration: none !important; white-space: nowrap;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 12px 24px -10px rgba(76, 61, 246, .65); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 30px -12px rgba(76, 61, 246, .75); }
.btn-ghost { background: var(--surface); color: var(--text); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { transform: translateY(-2px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--border); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 21px; color: var(--text); letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand img { width: 38px; height: 38px; border-radius: 11px; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 8px 14px; border-radius: 10px;
  color: var(--text-2); font-weight: 600; font-size: 15px;
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--primary); background: var(--grad-soft); }
.nav-cta { margin-left: 8px; }
.nav-cta .btn { padding: 10px 18px; font-size: 14px; }
.menu-btn {
  display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); cursor: pointer; align-items: center; justify-content: center;
}
.menu-btn svg { width: 22px; height: 22px; }

@media (max-width: 860px) {
  .menu-btn { display: inline-flex; }
  .nav-links {
    position: absolute; top: 70px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 10px 16px 18px; background: var(--bg);
    border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; font-size: 16px; }
  .nav-cta { margin: 8px 0 0; }
  .nav-cta .btn { width: 100%; padding: 14px; }
}

/* Background decoration */
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; pointer-events: none; z-index: 0; }
.blob.b1 { width: 460px; height: 460px; background: #8fb2ff; top: -140px; left: -120px; }
.blob.b2 { width: 420px; height: 420px; background: #c4a6ff; top: 60px; right: -140px; }
.blob.b3 { width: 340px; height: 340px; background: #9fe3ff; bottom: -160px; left: 35%; opacity: .4; }
@media (prefers-color-scheme: dark) { .blob { opacity: .22; } }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 70px 0 90px; }
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 48px; }
.hero h1 { font-size: clamp(40px, 6.2vw, 68px); font-weight: 800; margin: 20px 0 18px; letter-spacing: -.035em; }
.hero .lead { font-size: clamp(17px, 2vw, 20px); color: var(--text-2); max-width: 540px; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 18px; color: var(--text-3); font-size: 14px; font-weight: 600; }
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust svg { width: 18px; height: 18px; color: var(--ok); }

.hero-visual { position: relative; display: flex; justify-content: center; min-height: 560px; }
.phone {
  position: relative; width: 270px; border-radius: 42px; padding: 10px;
  background: linear-gradient(160deg, #1e293b, #0f172a);
  box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255, 255, 255, .06);
}
.phone img { border-radius: 33px; width: 100%; aspect-ratio: 1080 / 2424; object-fit: cover; object-position: top; background: #fff; }
.phone::before {
  content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 70px; height: 20px; border-radius: 20px; background: #0f172a; z-index: 2;
}
.hero-visual .phone.main { z-index: 2; animation: float 7s ease-in-out infinite; }
.hero-visual .phone.back {
  position: absolute; width: 230px; right: 4%; top: 70px; z-index: 1; opacity: .95;
  transform: rotate(7deg); animation: float2 8s ease-in-out infinite;
}
.float-card {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 18px; padding: 12px 16px; box-shadow: var(--shadow);
  font-size: 14px; font-weight: 700; max-width: 250px;
}
.float-card small { display: block; font-weight: 500; color: var(--text-3); font-size: 12px; }
.float-card .ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; color: #fff; background: var(--grad); }
.float-card .ic svg { width: 20px; height: 20px; }
.float-card.c1 { left: 0; top: 120px; animation: float 6s ease-in-out infinite; }
.float-card.c2 { left: 6%; bottom: 70px; animation: float2 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes float2 { 0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(10px) rotate(var(--r, 0deg)); } }
.hero-visual .phone.back { --r: 7deg; }

@media (max-width: 960px) {
  .hero { padding: 40px 0 70px; }
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-trust { justify-content: center; }
  .hero-visual { min-height: 520px; }
}
@media (max-width: 520px) {
  .phone { width: 230px; }
  .hero-visual .phone.back { display: none; }
  .float-card { font-size: 13px; padding: 10px 12px; max-width: 200px; }
  .float-card.c1 { left: -4px; top: 60px; }
  .float-card.c2 { left: auto; right: -4px; bottom: 40px; }
  .hero-visual { min-height: 480px; }
}

/* Providers strip */
.providers { padding: 10px 0 30px; text-align: center; }
.providers p { font-size: 14px; color: var(--text-3); font-weight: 600; margin-bottom: 18px; }
.provider-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.chip {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--border);
  font-weight: 700; font-size: 15px; box-shadow: var(--shadow-sm);
}
.chip img { width: 22px; height: 22px; object-fit: contain; }
.chip .dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 11px; font-weight: 800; }

/* Sections */
section { position: relative; }
.section { padding: 90px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 54px; }
.section-head h2 { font-size: clamp(30px, 4.2vw, 44px); font-weight: 800; margin-top: 16px; }
.section-head p { color: var(--text-2); font-size: 18px; }
.soft { background: var(--bg-soft); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature .ic {
  width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center;
  background: var(--grad-soft); color: var(--primary); margin-bottom: 18px;
}
.feature .ic svg { width: 25px; height: 25px; }
.feature h3 { font-size: 19px; margin-bottom: 8px; }
.feature p { color: var(--text-2); margin: 0; font-size: 15.5px; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

/* Split showcase */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split + .split { margin-top: 100px; }
.split.reverse .split-media { order: 2; }
.split h2 { font-size: clamp(28px, 3.8vw, 40px); font-weight: 800; margin-top: 14px; }
.split p.lead { color: var(--text-2); font-size: 18px; }
.checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); }
.checks svg { width: 22px; height: 22px; flex: none; color: var(--primary); margin-top: 2px; }
.split-media { position: relative; display: flex; justify-content: center; }
.split-media .art {
  border-radius: 28px; background: var(--grad-soft); border: 1px solid var(--border);
  padding: 30px; width: 100%; max-width: 500px; aspect-ratio: 1 / 1; display: grid; place-items: center;
}
.split-media .art img { max-height: 100%; object-fit: contain; }
.split-media .phone { width: 260px; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .split.reverse .split-media { order: 0; }
  .checks { text-align: left; max-width: 460px; margin-left: auto; margin-right: auto; }
}

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { text-align: center; padding: 26px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.stat strong { display: block; font-size: 34px; font-weight: 800; letter-spacing: -.03em; }
.stat span { color: var(--text-3); font-weight: 600; font-size: 14px; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } }

/* Gallery */
.gallery { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; }
.gallery .phone { width: 210px; }
.gallery .phone:nth-child(even) { transform: translateY(30px); }
@media (max-width: 760px) { .gallery .phone { width: 160px; } .gallery .phone:nth-child(even) { transform: none; } }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq details {
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 0 22px;
  box-shadow: var(--shadow-sm);
}
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 0; font-weight: 700; font-size: 17px;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; color: var(--primary); font-weight: 500; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--text-2); padding-bottom: 18px; margin: 0; }

/* CTA band */
.cta-band {
  position: relative; overflow: hidden; border-radius: 32px; padding: 64px 32px; text-align: center;
  background: var(--grad); color: #fff; box-shadow: var(--shadow-lg);
}
.cta-band h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; }
.cta-band p { opacity: .9; font-size: 18px; max-width: 560px; margin: 0 auto 28px; }
.cta-band .btn-ghost { background: #fff; color: #1e2a78; border: 0; }
.cta-band::before, .cta-band::after {
  content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .12);
}
.cta-band::before { width: 320px; height: 320px; top: -140px; right: -80px; }
.cta-band::after { width: 220px; height: 220px; bottom: -110px; left: -50px; }
.cta-band > * { position: relative; z-index: 1; }

/* Page hero (inner pages) */
.page-hero { position: relative; overflow: hidden; padding: 70px 0 50px; text-align: center; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(36px, 5.4vw, 56px); font-weight: 800; margin: 18px 0 14px; }
.page-hero p { color: var(--text-2); font-size: 18px; max-width: 640px; margin: 0 auto; }

/* Legal / prose */
.prose-wrap { display: grid; grid-template-columns: 240px 1fr; gap: 44px; align-items: start; padding-bottom: 90px; }
.toc {
  position: sticky; top: 94px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 18px; padding: 18px; font-size: 14px;
}
.toc strong { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.toc a { color: var(--text-2); }
.prose {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 44px; box-shadow: var(--shadow-sm); min-width: 0;
}
.prose h2 { font-size: 24px; margin: 38px 0 12px; scroll-margin-top: 90px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 18px; margin: 24px 0 8px; }
.prose p, .prose li { color: var(--text-2); }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--text); }
.prose .updated { display: inline-block; font-size: 14px; font-weight: 600; color: var(--text-3); background: var(--surface-2); padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }
.callout {
  background: var(--grad-soft); border: 1px solid var(--border); border-radius: 18px;
  padding: 20px 22px; margin: 0 0 28px;
}
.callout ul { margin: 8px 0 0; }
@media (max-width: 900px) {
  .prose-wrap { grid-template-columns: 1fr; }
  .toc { position: static; }
  .prose { padding: 26px 20px; }
}

/* About */
.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 700px) { .values { grid-template-columns: 1fr; } }

/* Support */
.support-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 28px; align-items: start; padding-bottom: 90px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 34px; box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field label { font-weight: 700; font-size: 14px; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; color: var(--text); width: 100%;
  background: var(--surface-2); border: 1.5px solid var(--border); border-radius: 14px;
  padding: 13px 15px; transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--primary); background: var(--surface);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent);
}
.field .hint { font-size: 13px; color: var(--text-3); }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: var(--err); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: 14px; font-weight: 600; display: none; }
.form-status.ok { display: block; background: color-mix(in srgb, var(--ok) 12%, transparent); color: var(--ok); }
.form-status.err { display: block; background: color-mix(in srgb, var(--err) 12%, transparent); color: var(--err); }
.success-panel { text-align: center; padding: 30px 10px; }
.success-panel .tick {
  width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 50%;
  display: grid; place-items: center; background: var(--grad); color: #fff;
  box-shadow: 0 16px 30px -12px rgba(76, 61, 246, .6);
}
.success-panel .tick svg { width: 38px; height: 38px; }
.side-list { display: grid; gap: 16px; }
.side-item { display: flex; gap: 14px; align-items: flex-start; }
.side-item .ic { width: 44px; height: 44px; border-radius: 14px; background: var(--grad-soft); color: var(--primary); display: grid; place-items: center; flex: none; }
.side-item .ic svg { width: 22px; height: 22px; }
.side-item h3 { font-size: 16px; margin: 0 0 4px; }
.side-item p { font-size: 14.5px; color: var(--text-2); margin: 0; }
@media (max-width: 900px) { .support-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; gap: 0; } .card { padding: 24px 18px; } }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); padding: 56px 0 30px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.footer-grid h4 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--text-2); font-weight: 500; }
.footer-grid p { color: var(--text-2); font-size: 15px; max-width: 320px; }
.footer-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--text-3); font-size: 14px; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* Header CTA keeps button colours over the nav link styles */
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: #fff; background: var(--grad); }
