/*
  Minimal SaaS-style theme.
  Note: keep color system distinct from competitors. This palette uses a neutral + teal accent.
*/

:root {
  --bg: #0b1220;
  --surface: #0f1a2e;
  --surface-2: #0b1528;
  --text: #eaf0ff;
  --muted: #b7c3dd;
  --border: rgba(234, 240, 255, 0.14);

  --accent: #23c1b4;
  --accent-2: #4b7dff;

  --shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
  --radius: 16px;

  --container: 1120px;
  --focus: 0 0 0 3px rgba(35, 193, 180, 0.35);
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: radial-gradient(1200px 600px at 20% 0%, rgba(75, 125, 255, 0.25), transparent 60%),
              radial-gradient(900px 450px at 80% 20%, rgba(35, 193, 180, 0.20), transparent 55%),
              var(--bg);
  color: var(--text);
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  padding: 10px 14px;
  background: #fff;
  color: #000;
  border-radius: 10px;
  z-index: 9999;
}

.skip-link:focus {
  left: 12px;
  outline: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(11, 18, 32, 0.65);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand { display: inline-flex; align-items: center; gap: 10px; }

/* Brand mark variants: image logo preferred, gradient fallback available */
.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(234, 240, 255, 0.18);
  background: rgba(255,255,255,0.06);
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #06101f;
  font-weight: 900;
  letter-spacing: .5px;
}

.brand-name { font-weight: 700; letter-spacing: 0.2px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-nav a {
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 10px;
}

.site-nav a:hover { color: var(--text); text-decoration: none; background: rgba(255,255,255,0.06); }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  color: var(--text);
}

.nav-toggle:focus { outline: none; box-shadow: var(--focus); }

.nav-toggle-bars {
  display: block;
  width: 18px;
  height: 12px;
  background:
    linear-gradient(var(--text), var(--text)) 0 0 / 100% 2px no-repeat,
    linear-gradient(var(--text), var(--text)) 0 5px / 100% 2px no-repeat,
    linear-gradient(var(--text), var(--text)) 0 10px / 100% 2px no-repeat;
}

.lang-toggle {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
}

.lang-toggle:hover { color: var(--text); background: rgba(255,255,255,0.06); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 650;
  letter-spacing: 0.2px;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #05101d;
}

.btn-secondary {
  background: rgba(255,255,255,0.06);
  border-color: var(--border);
  color: var(--text);
}

.btn:focus { outline: none; box-shadow: var(--focus); }

.hero { padding: 64px 0 26px; }

.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.07;
  margin: 0 0 12px;
}

.lead {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 18px;
}

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

.footnote {
  margin: 14px 0 0;
  font-size: 12px;
  color: rgba(234,240,255,0.70);
}

.hero-visual {
  display: grid;
  place-items: center;
}

.mock {
  width: 100%;
  max-width: 380px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  box-shadow: var(--shadow);
}

.mock-top {
  height: 44px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.05);
}

.mock-body { padding: 18px; }

.mock-line {
  height: 12px;
  border-radius: 999px;
  background: rgba(234,240,255,0.10);
  margin-bottom: 12px;
}

.mock-line.short { width: 64%; }

.trust { padding: 18px 0 28px; }

.trust-title { margin: 0 0 10px; color: var(--muted); font-weight: 650; }

.logo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.logo-pill {
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: rgba(234,240,255,0.88);
  font-size: 13px;
}

.section { padding: 54px 0; }
.section-alt { background: rgba(255,255,255,0.02); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

h2 { margin: 0 0 10px; font-size: clamp(22px, 2.4vw, 32px); }

.muted { color: var(--muted); margin: 0 0 16px; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  background: rgba(255,255,255,0.04);
}

.card h3 { margin: 0 0 8px; font-size: 16px; }

.card p { margin: 0; color: rgba(234,240,255,0.80); }

.tabs {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.03);
  overflow: hidden;
}

.tablist {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-bottom: 1px solid var(--border);
}

.tab {
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  color: var(--muted);
  padding: 10px 12px;
  border-radius: 999px;
  cursor: pointer;
}

.tab[aria-selected="true"] {
  color: #06101f;
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.tab:focus { outline: none; box-shadow: var(--focus); }

.tabpanel { padding: 16px 18px 18px; }

.bullet { margin: 0 0 12px; padding-left: 18px; color: rgba(234,240,255,0.85); }

.text-link {
  color: var(--accent);
  font-weight: 650;
}

.final-cta { text-align: center; }

.site-footer {
  padding: 26px 0;
  border-top: 1px solid var(--border);
  background: rgba(11, 18, 32, 0.8);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-brand { font-weight: 800; margin-bottom: 6px; }

.footer-links { display: flex; gap: 12px; flex-wrap: wrap; }

.footer-links a { color: var(--muted); padding: 6px 8px; border-radius: 10px; }
.footer-links a:hover { color: var(--text); background: rgba(255,255,255,0.06); text-decoration: none; }

.link-button {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 6px 8px;
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
}

.link-button:focus { outline: none; box-shadow: var(--focus); }

.link-button:hover { color: var(--text); background: rgba(255,255,255,0.06); }

/* Cookie consent UI */
.cookie-banner {
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: 14px;
  max-width: var(--container);
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(15, 26, 46, 0.92);
  backdrop-filter: blur(10px);
  padding: 14px;
  box-shadow: var(--shadow);
  z-index: 1000;
}

.cookie-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.cookie-title { font-weight: 800; margin: 0 0 6px; }
.cookie-text { margin: 0; color: rgba(234,240,255,0.82); font-size: 13px; }

.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }

.cookie-actions .btn { padding: 9px 14px; }

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 1100;
  display: grid;
  place-items: center;
  padding: 16px;
}

.modal {
  width: min(560px, 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(15, 26, 46, 0.98);
  box-shadow: var(--shadow);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.modal-title { margin: 0; font-weight: 900; }

.icon-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 12px;
  padding: 8px 10px;
  cursor: pointer;
}

.icon-btn:focus { outline: none; box-shadow: var(--focus); }

.modal-body { padding: 14px 16px; color: rgba(234,240,255,0.86); }

.toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255,255,255,0.03);
}

.toggle-row strong { display: block; }

.switch {
  position: relative;
  width: 44px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.06);
}

.switch input { opacity: 0; width: 0; height: 0; }

.switch span {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 22px;
  height: 22px;
  background: rgba(234,240,255,0.86);
  border-radius: 999px;
  transition: transform 160ms ease, background 160ms ease;
}

.switch input:checked + span {
  transform: translateX(18px);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.modal-footer {
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero { padding-top: 44px; }
  .card-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: absolute;
    top: 64px;
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(15, 26, 46, 0.98);
  }

  .site-nav.is-open { display: flex; }
  .site-nav a, .site-nav .btn, .site-nav .lang-toggle { width: 100%; text-align: center; }

  .cookie-row { grid-template-columns: 1fr; }
  .cookie-actions { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
