/* ==========================================================================
   LUGGU by Novastrat — Design system
   ========================================================================== */

:root {
  --navy-950: #0d1120;
  --navy-900: #12172a;
  --navy-800: #1b2138;
  --navy-700: #2a3252;
  --navy-500: #4a5578;
  --navy-300: #8892b0;

  --teal-500: #29d6c8;
  --teal-400: #4ee2d5;
  --teal-300: #8ceee4;
  --teal-050: #eafcfa;

  --cream-100: #f6f4ee;
  --cream-050: #fbfaf6;
  --white: #ffffff;

  --coral-500: #ff8a65;

  --ink: var(--navy-900);
  --ink-soft: var(--navy-500);
  --bg: var(--cream-100);
  --surface: var(--white);
  --border: #e4e1d6;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 10px rgba(13, 17, 32, 0.06);
  --shadow-md: 0 12px 32px rgba(13, 17, 32, 0.10);
  --shadow-lg: 0 24px 60px rgba(13, 17, 32, 0.16);

  --container: 1160px;
  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy-950);
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 4.2vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; color: var(--ink-soft); }
a { color: inherit; }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy-700);
  background: var(--teal-050);
  border: 1px solid var(--teal-300);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
}

/* Buttons ---------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--navy-950);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { box-shadow: var(--shadow-md); background: var(--navy-900); }

.btn-accent {
  background: var(--teal-500);
  color: var(--navy-950);
  box-shadow: var(--shadow-sm);
}
.btn-accent:hover { box-shadow: var(--shadow-md); background: var(--teal-400); }

.btn-ghost {
  background: transparent;
  color: var(--navy-950);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--navy-500); }

.btn-sm { padding: 9px 18px; font-size: 0.85rem; }

/* Header / nav ------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 244, 238, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--navy-950);
}
.brand .logo-mark { width: 38px; height: 38px; flex-shrink: 0; }
.brand .by-line {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--navy-800);
  position: relative;
  padding: 4px 0;
}
.nav-links a:hover { color: var(--navy-950); }
.nav-links a.active { color: var(--navy-950); font-weight: 600; }

.nav-right { display: flex; align-items: center; gap: 14px; }

.has-dropdown { position: relative; }
.dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 10px;
  min-width: 220px;
  display: none;
  flex-direction: column;
  gap: 2px;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { display: flex; }
.dropdown a {
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  white-space: nowrap;
}
.dropdown a:hover { background: var(--teal-050); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy-950);
  margin: 5px 0;
  transition: 0.2s;
}

/* Hero --------------------------------------------------------------------- */

.hero {
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero h1 { margin-bottom: 20px; }
.hero .lead { font-size: 1.15rem; max-width: 480px; }

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.by-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 34px;
  padding: 10px 16px 10px 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
}
.by-badge strong { color: var(--navy-950); }
.by-badge .dot { width: 26px; height: 26px; border-radius: 50%; background: var(--navy-950); display: flex; align-items: center; justify-content: center; color: var(--teal-400); font-family: var(--font-display); font-size: 0.7rem; font-weight: 700; }

.store-badges { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.store-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  background: var(--navy-950);
  color: var(--white);
  opacity: 0.55;
  font-size: 0.8rem;
  position: relative;
  cursor: default;
}
.store-badge small { display: block; font-size: 0.62rem; color: var(--teal-300); text-transform: uppercase; letter-spacing: 0.05em; }
.store-badge strong { font-family: var(--font-display); font-size: 0.95rem; }
.soon-flag {
  position: absolute;
  top: -9px; right: -8px;
  background: var(--coral-500);
  color: var(--navy-950);
  font-size: 0.6rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1.02;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--navy-950) 0%, var(--navy-800) 60%, var(--teal-500) 150%);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-visual .glow {
  position: absolute;
  width: 60%; height: 60%;
  background: var(--teal-400);
  filter: blur(80px);
  opacity: 0.5;
  border-radius: 50%;
  top: -10%; right: -10%;
}
.hero-visual .logo-mark { width: 34%; height: 34%; filter: drop-shadow(0 20px 40px rgba(0,0,0,0.35)); position: relative; z-index: 1; }
.hero-visual .float-card {
  position: absolute;
  background: rgba(255,255,255,0.96);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  box-shadow: var(--shadow-md);
  font-size: 0.78rem;
  z-index: 2;
}
.hero-visual .float-card.c1 { top: 10%; left: 8%; }
.hero-visual .float-card.c2 { bottom: 12%; right: 6%; }
.hero-visual .float-card strong { display: block; font-family: var(--font-display); color: var(--navy-950); font-size: 0.95rem; }
.hero-visual .float-card span { color: var(--ink-soft); }

/* Sections ------------------------------------------------------------------ */

section { padding: 90px 0; }
.section-tight { padding: 60px 0; }
.section-head { max-width: 640px; margin: 0 auto 50px; text-align: center; }
.section-head.left { margin: 0 0 44px; text-align: left; }

.bg-navy { background: var(--navy-950); color: var(--white); }
.bg-navy h2, .bg-navy h3 { color: var(--white); }
.bg-navy p { color: rgba(255,255,255,0.68); }

.bg-surface { background: var(--surface); }

/* Cards ----------------------------------------------------------------- */

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.icon-tile {
  width: 46px; height: 46px;
  border-radius: 13px;
  background: var(--teal-050);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  color: var(--navy-950);
}
.icon-tile svg { width: 22px; height: 22px; }

.step-card { position: relative; padding-top: 44px; }
.step-num {
  position: absolute;
  top: 22px; left: 30px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--teal-500);
  background: var(--navy-950);
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

.role-card {
  border-radius: var(--radius-lg);
  padding: 36px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.role-card.dark { background: var(--navy-950); color: var(--white); }
.role-card.dark h3, .role-card.dark p { color: var(--white); }
.role-card ul { padding-left: 0; list-style: none; margin: 18px 0 0; }
.role-card li { display: flex; gap: 10px; padding: 7px 0; font-size: 0.92rem; color: var(--ink-soft); }
.role-card.dark li { color: rgba(255,255,255,0.75); }
.role-card li svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--teal-500); margin-top: 2px; }

.pricing-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  text-align: left;
}
.price-card .tag { color: var(--navy-700); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; }
.price-card .value { font-family: var(--font-display); font-size: 2.1rem; font-weight: 700; margin: 8px 0; color: var(--navy-950); }

.company-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.legal-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.legal-table tr { border-bottom: 1px solid var(--border); }
.legal-table td { padding: 12px 0; font-size: 0.92rem; vertical-align: top; }
.legal-table td:first-child { color: var(--ink-soft); width: 42%; font-weight: 500; }
.legal-table td:last-child { color: var(--navy-950); font-weight: 500; }

.link-with-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--teal-050);
  border: 1px solid var(--teal-300);
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--navy-950);
  margin-top: 18px;
}

/* CTA banner --------------------------------------------------------------- */

.cta-banner {
  background: linear-gradient(120deg, var(--navy-950), var(--navy-800));
  border-radius: var(--radius-lg);
  padding: 60px;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.cta-banner h2 { color: var(--white); }
.cta-banner p { color: rgba(255,255,255,0.7); max-width: 520px; margin-left: auto; margin-right: auto; }
.cta-banner .btn-row { display: flex; gap: 14px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }

/* Footer --------------------------------------------------------------------- */

.site-footer {
  background: var(--navy-950);
  color: rgba(255,255,255,0.65);
  padding: 70px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 46px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .brand { color: var(--white); }
.footer-brand .by-line { color: rgba(255,255,255,0.5); }
.footer-brand p { color: rgba(255,255,255,0.55); margin-top: 14px; font-size: 0.9rem; max-width: 280px; }
.footer-col h4 { color: var(--white); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 11px; }
.footer-col a { color: rgba(255,255,255,0.65); text-decoration: none; font-size: 0.9rem; }
.footer-col a:hover { color: var(--teal-400); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 26px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  flex-wrap: wrap;
  gap: 12px;
}

/* Legal pages ---------------------------------------------------------------- */

.legal-hero {
  padding: 64px 0 20px;
}
.legal-hero .eyebrow { margin-bottom: 14px; }
.legal-updated { font-size: 0.85rem; color: var(--ink-soft); }

.legal-body {
  padding: 20px 0 90px;
}
.legal-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 60px;
  align-items: flex-start;
}
.legal-toc {
  position: sticky;
  top: 100px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
}
.legal-toc h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); margin-bottom: 14px; }
.legal-toc ol { margin: 0; padding-left: 18px; }
.legal-toc li { margin-bottom: 10px; font-size: 0.87rem; }
.legal-toc a { text-decoration: none; color: var(--navy-800); }
.legal-toc a:hover { color: var(--teal-500); }

.legal-content { max-width: 720px; }
.legal-content h2 {
  font-size: 1.35rem;
  margin-top: 46px;
  padding-top: 6px;
  scroll-margin-top: 100px;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li { color: var(--navy-700); font-size: 0.96rem; }
.legal-content ul, .legal-content ol { padding-left: 20px; }
.legal-content li { margin-bottom: 8px; }
.legal-content strong { color: var(--navy-950); }

.callout {
  background: var(--teal-050);
  border: 1px solid var(--teal-300);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  font-size: 0.9rem;
  color: var(--navy-800);
  margin: 22px 0;
}
.callout.warn {
  background: #fff4ec;
  border-color: #ffd3b0;
}
.callout strong { display: block; margin-bottom: 4px; color: var(--navy-950); }

.placeholder-field {
  background: #fff4ec;
  color: #b45309;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.85em;
  font-weight: 600;
  border: 1px dashed #f2b784;
}

/* Utility ---------------------------------------------------------------- */

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* Responsive --------------------------------------------------------------- */

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 420px; margin: 0 auto; }
  .grid-3, .pricing-strip { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
  .company-panel { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .grid-3, .grid-2, .grid-4, .pricing-strip { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-banner { padding: 40px 24px; }
  section { padding: 60px 0; }
}

@media (max-width: 480px) {
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
