/* ============================================================
   GoTo Connect for Odoo — marketing site
   ============================================================ */

/* Self-hosted Inter (latin subset, woff2) — removes the render-blocking
   cross-origin fetch to fonts.googleapis.com + fonts.gstatic.com on first
   paint. font-display: swap keeps text visible during font load. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/inter-400.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/inter-500.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/inter-600.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/inter-700.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("fonts/inter-800.woff2") format("woff2");
}

/* Fallback font shaped to MATCH Inter's metrics: when the system shows Arial
   first and then swaps to Inter, the swap doesn't move text (~0 CLS). Values
   from the maintained fontaine / fontsource override table for Inter. */
@font-face {
  font-family: "InterFallback";
  size-adjust: 107.4%;
  ascent-override: 90%;
  descent-override: 22.43%;
  line-gap-override: 0%;
  src: local("Arial");
}

:root {
  --bg: #0b1020;
  --bg-soft: #0f1530;
  --panel: #ffffff;
  --ink: #0f172a;
  --ink-soft: #475569;
  --muted: #94a3b8;
  --line: #e6e8f0;
  --brand: #10b981;
  --brand-2: #06b6d4;
  --brand-3: #6366f1;
  --grad: linear-gradient(115deg, #10b981 0%, #06b6d4 48%, #6366f1 100%);
  --grad-soft: linear-gradient(115deg, rgba(16,185,129,.16), rgba(99,102,241,.16));
  --shadow: 0 24px 60px -20px rgba(8, 15, 40, .35);
  --shadow-sm: 0 8px 24px -12px rgba(8, 15, 40, .25);
  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1140px;
  --font: "Inter", "InterFallback", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

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

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: #fff; color: var(--ink); padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { left: 16px; top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 15px; padding: 13px 20px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer; min-height: 44px;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 14px 24px; font-size: 16px; }
/* Text is #fff (not #06231c) so contrast >= 4.7:1 across the WHOLE gradient,
   including the indigo end where dark text fails AA. */
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 24px -10px rgba(16,185,129,.7); }
.btn-primary:hover { box-shadow: 0 14px 30px -10px rgba(16,185,129,.8); transform: translateY(-1px); }
.btn-ghost { background: rgba(255,255,255,.06); color: #e7ecf5; border-color: rgba(255,255,255,.18); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.section .btn-ghost, .cta .btn-ghost { color: #e7ecf5; }

/* Keyboard focus indicator. The defaults are nearly invisible against the
   gradient on .btn-primary; this gives every interactive element a clear,
   brand-matching ring on keyboard-only focus (mouse clicks unaffected). */
.btn:focus-visible,
.nav a:focus-visible,
.mobile-nav a:focus-visible,
.foot-links a:focus-visible,
.brand:focus-visible,
.nav-toggle:focus-visible,
.faq summary:focus-visible {
  outline: 2px solid #67e8f9;
  outline-offset: 3px;
  border-radius: 12px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 16, 32, .72);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header-inner { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: var(--grad); color: #06231c; box-shadow: var(--shadow-sm);
}
.brand-text { font-size: 17px; letter-spacing: -0.01em; }
.brand-text em { font-style: normal; color: var(--brand); font-weight: 600; }
.nav { display: flex; gap: 26px; margin-left: 12px; }
.nav a { color: #c7cfde; font-weight: 500; font-size: 15px; }
.nav a:hover { color: #fff; }
.header-cta { margin-left: auto; display: flex; gap: 10px; }

.nav-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 10px; cursor: pointer; min-width: 44px; min-height: 44px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #e7ecf5; margin: 5px 0; border-radius: 2px; transition: .25s; }
.mobile-nav { display: none; flex-direction: column; padding: 8px 24px 18px; background: var(--bg); border-bottom: 1px solid rgba(255,255,255,.08); }
.mobile-nav a { color: #d7deea; padding: 14px 4px; min-height: 44px; display: flex; align-items: center; border-bottom: 1px solid rgba(255,255,255,.06); font-weight: 500; }
.mobile-nav.open { display: flex; }

/* ---------- Hero ---------- */
.hero { position: relative; background: radial-gradient(120% 120% at 80% -10%, #15224a 0%, var(--bg) 55%); color: #eaf0fb; overflow: hidden; }
.hero-glow {
  position: absolute; inset: -20% 0 auto -10%; height: 600px; pointer-events: none;
  background: radial-gradient(50% 60% at 20% 30%, rgba(16,185,129,.22), transparent 60%),
              radial-gradient(50% 60% at 75% 10%, rgba(99,102,241,.25), transparent 60%);
  filter: blur(8px);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding: 84px 24px 64px; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .02em;
  color: #b9c4da; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(34px, 5vw, 58px); font-weight: 800; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { margin-top: 18px; font-size: clamp(16px, 2vw, 19px); color: #c3cce0; max-width: 33em; }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-actions.center { justify-content: center; }
.trust-chips { display: flex; gap: 10px; flex-wrap: wrap; list-style: none; padding: 0; margin: 26px 0 0; }
.trust-chips li { font-size: 13px; color: #cdd6e8; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); padding: 7px 13px; border-radius: 999px; }
.trust-chips li::before { content: "✓"; color: var(--brand); font-weight: 700; margin-right: 7px; }
.price-note { margin: 16px 0 0; font-size: 14px; color: #cdd6e8; }
.price-note b { color: var(--brand); }

/* Hero mockup */
.hero-art { position: relative; min-height: 360px; }
.window {
  background: #0c1330; border: 1px solid rgba(255,255,255,.12); border-radius: 16px;
  box-shadow: var(--shadow); overflow: hidden;
}
.window-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; background: #0a1029; border-bottom: 1px solid rgba(255,255,255,.08); }
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.red { background: #ff5f57; } .dot.amber { background: #febc2e; } .dot.green { background: #28c840; }
.window-url { margin-left: 10px; font-size: 12.5px; color: #8ea0c2; }
.window-body { padding: 16px; display: grid; gap: 10px; }
.record { display: flex; align-items: center; gap: 12px; background: #111a3d; border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 12px; }
.avatar { width: 40px; height: 40px; border-radius: 10px; background: var(--grad); color: #06231c; font-weight: 800; display: grid; place-items: center; font-size: 14px; }
.record-meta { display: grid; line-height: 1.3; }
.record-meta strong { color: #eaf0fb; font-size: 15px; }
.record-meta span { color: #8ea0c2; font-size: 12.5px; }
.call-pill { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; background: var(--grad); color: #06231c; border: 0; font-weight: 700; font-size: 13px; padding: 9px 14px; border-radius: 999px; cursor: pointer; }
.log-line { font-size: 13px; color: #b6c1da; background: #0e1638; border: 1px solid rgba(255,255,255,.06); border-radius: 10px; padding: 10px 12px; }
.log-line.muted { color: #7e8db0; }
.tag { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; margin-right: 8px; }
.tag.in { background: rgba(6,182,212,.18); color: #67e8f9; }
.tag.out { background: rgba(99,102,241,.2); color: #a5b4fc; }
.tag.miss { background: rgba(244,114,114,.18); color: #fca5a5; }

.popup-card {
  position: absolute; right: -14px; bottom: 22px; width: 232px;
  background: #fff; color: var(--ink); border-radius: 16px; padding: 16px; box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.popup-top { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-soft); font-weight: 600; }
.ring { width: 10px; height: 10px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 0 rgba(16,185,129,.55); animation: ring 1.8s infinite; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(16,185,129,.5);} 70% { box-shadow: 0 0 0 12px rgba(16,185,129,0);} 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0);} }
.popup-name { font-weight: 800; font-size: 18px; margin-top: 8px; }
.popup-num { color: var(--ink-soft); font-size: 14px; }
.popup-actions { display: flex; gap: 8px; margin-top: 14px; }
.mini { flex: 1; border: 1px solid var(--line); background: #f6f7fb; color: var(--ink); font-weight: 600; font-size: 12.5px; padding: 8px; border-radius: 9px; cursor: pointer; }
.mini.primary { background: var(--grad); color: #06231c; border: 0; }

.dialer-chip {
  position: absolute; left: -18px; top: 14px; display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--ink); font-weight: 700; font-size: 13px; padding: 10px 14px; border-radius: 999px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
}
.dialer-chip svg { color: var(--brand-3); }
.float { animation: float 6s ease-in-out infinite; }
.float-2 { animation: float 7s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@media (prefers-reduced-motion: reduce) { .float, .float-2, .ring { animation: none; } }

/* Marquee */
.marquee { border-top: 1px solid rgba(255,255,255,.08); border-bottom: 1px solid rgba(255,255,255,.08); overflow: hidden; background: rgba(255,255,255,.02); }
.marquee-track { display: flex; gap: 26px; white-space: nowrap; padding: 14px 0; width: max-content; animation: scroll 30s linear infinite; color: #9fb0cf; font-weight: 600; font-size: 14px; }
.marquee-track span { opacity: .85; }
@keyframes scroll { from { transform: translateX(0);} to { transform: translateX(-50%);} }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---------- Sections ---------- */
.section { padding: 92px 0; }
.section.alt { background: #f7f8fc; }
.section-head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.kicker { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-3); margin-bottom: 12px; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; }
.section-head p { margin-top: 14px; color: var(--ink-soft); font-size: 18px; }

.grid { display: grid; gap: 22px; }
.features { grid-template-columns: repeat(3, 1fr); }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #dfe3f0; }
.icon { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; color: #fff; margin-bottom: 16px; }
.icon svg { width: 24px; height: 24px; }
.i-phone { background: linear-gradient(135deg,#10b981,#06b6d4); }
.i-log { background: linear-gradient(135deg,#06b6d4,#6366f1); }
.i-bell { background: linear-gradient(135deg,#6366f1,#8b5cf6); }
.i-user { background: linear-gradient(135deg,#0ea5e9,#10b981); }
.i-gauge { background: linear-gradient(135deg,#f59e0b,#ef4444); }
.i-shield { background: linear-gradient(135deg,#10b981,#6366f1); }
.card h3 { font-size: 19px; font-weight: 700; }
.card p { margin-top: 8px; color: var(--ink-soft); font-size: 15px; }

/* Steps */
.steps { grid-template-columns: repeat(3, 1fr); }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow-sm); }
.step-num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--grad); color: #06231c; font-weight: 800; font-size: 18px; margin-bottom: 16px; }
.step h3 { font-size: 20px; }
.step p { margin-top: 8px; color: var(--ink-soft); }

/* Showcase */
.showcase-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px; }
.show-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.show-head { padding: 14px 18px; font-weight: 700; border-bottom: 1px solid var(--line); background: #fbfcfe; }
.table { padding: 8px 10px 12px; }
.trow { display: grid; grid-template-columns: 1.4fr 1fr 1fr .6fr; gap: 10px; align-items: center; padding: 11px 10px; border-radius: 10px; font-size: 14px; }
.trow:nth-child(even) { background: #f7f8fc; }
.trow.th { color: var(--ink-soft); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
.pill { font-style: normal; font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.pill.in { background: #e0f7fb; color: #0e7490; }
.pill.out { background: #ecedfd; color: #4338ca; }
.pill.ok { background: #dcfce7; color: #15803d; }
.pill.warn { background: #fee2e2; color: #b91c1c; }
.checklist { list-style: none; margin: 0; padding: 14px 18px; display: grid; gap: 10px; }
.checklist li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--ink); }
.chk { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.checklist li.ok .chk { background: #dcfce7; color: #15803d; }
.checklist li.pending .chk { background: #fef3c7; color: #b45309; }
.checklist li.pending { color: var(--ink-soft); }
.selftest { margin: 4px 18px 18px; text-align: center; font-weight: 700; font-size: 13.5px; color: #06231c; background: var(--grad); padding: 11px; border-radius: 11px; }

/* Security */
.security-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.muted-p { margin-top: 14px; color: var(--ink-soft); font-size: 17px; }
.sec-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.sec-list li { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; font-size: 15px; color: var(--ink-soft); box-shadow: var(--shadow-sm); position: relative; padding-left: 46px; }
.sec-list li b { color: var(--ink); }
.sec-list li::before { content: "✓"; position: absolute; left: 16px; top: 15px; width: 20px; height: 20px; border-radius: 6px; background: var(--grad); color: #06231c; font-weight: 800; font-size: 12px; display: grid; place-items: center; }

/* CTA */
.cta { background: radial-gradient(120% 140% at 50% 0%, #16224a, var(--bg) 60%); color: #eaf0fb; padding: 92px 0; text-align: center; }
.cta-inner h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; }
.cta-inner p { margin: 14px auto 0; color: #c3cce0; max-width: 36em; font-size: 18px; }
.cta-inner .hero-actions { margin-top: 28px; }

/* Footer */
.site-footer { background: var(--bg); color: #c2cbdd; padding: 60px 0 30px; border-top: 1px solid rgba(255,255,255,.08); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 32px; }
.foot-note { margin-top: 14px; color: #8b97b3; font-size: 14px; max-width: 30em; }
.foot-links h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 14px; }
.foot-links a { display: block; color: #aab4cc; padding: 5px 0; font-size: 14.5px; }
.foot-links a:hover { color: #fff; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08); font-size: 12.5px; color: #7e8aa6; }
.disclaimer { max-width: 46em; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .nav, .header-cta { display: none; }
  .nav-toggle { display: block; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; padding-top: 56px; }
  .hero-art { max-width: 460px; }
  .features, .steps { grid-template-columns: 1fr 1fr; }
  .showcase-grid, .security-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .section { padding: 64px 0; }
  .features, .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .popup-card { right: 0; }
  .dialer-chip { left: 0; }
  .foot-bottom { flex-direction: column; }
}
