:root {
  --navy: #032147;
  --blue: #209dd7;
  --purple: #753991;
  --purple-dark: #5e2d75;
  --yellow: #ecad0a;
  --gray: #888888;
  --gray-soft: #d9dce1;
  --bg: #ffffff;
  --bg-soft: #f7f8fa;
  --radius: 12px;
  --maxw: 1100px;
  --shadow-sm: 0 1px 2px rgba(3, 33, 71, 0.06);
  --shadow-md: 0 8px 24px rgba(3, 33, 71, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: #1a2436;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { color: var(--navy); margin: 0 0 0.5em; line-height: 1.2; }
h1 { font-size: 2rem; letter-spacing: -0.01em; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.125rem; }

p { margin: 0 0 1em; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.hidden {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--gray-soft);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--navy);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand-dot {
  width: 10px; height: 10px;
  background: var(--yellow);
  border-radius: 50%;
  display: inline-block;
}
.brand-logo {
  height: 64px;
  width: auto;
  display: block;
}
@media (max-width: 640px) {
  .brand-logo { height: 52px; }
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.nav-links a { color: var(--navy); font-weight: 500; }
.nav-cta {
  background: var(--purple);
  color: #fff !important;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
}
.nav-cta:hover { background: var(--purple-dark); text-decoration: none; }
.nav-back {
  color: var(--gray) !important;
  font-weight: 500;
  font-size: 0.9rem;
}

/* Mobile: hide secondary links, keep brand + CTA */
@media (max-width: 640px) {
  .nav-links a:not(.nav-cta):not(.nav-back) { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 3.5rem 0 3rem;
  background: linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%);
}
.hero h1 {
  font-size: 2.25rem;
  max-width: 20ch;
}
.hero .tagline {
  font-size: 1.125rem;
  color: var(--gray);
  max-width: 52ch;
  margin-bottom: 1.5rem;
}
.hero .accent {
  display: inline-block;
  position: relative;
}
.hero .accent::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 6px;
  background: var(--yellow);
  border-radius: 4px;
}

@media (min-width: 768px) {
  .hero { padding: 5rem 0 4.5rem; }
  .hero h1 { font-size: 3rem; }
  .hero .tagline { font-size: 1.25rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.8rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.15s ease, transform 0.05s ease;
}
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-primary {
  background: var(--purple);
  color: #fff;
}
.btn-primary:hover:not(:disabled) {
  background: var(--purple-dark);
  text-decoration: none;
}
.btn-primary:active:not(:disabled) { transform: translateY(1px); }
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--gray-soft);
}
.btn-ghost:hover { background: var(--bg-soft); text-decoration: none; }

/* ---------- Sections ---------- */
section { padding: 3rem 0; }
section.alt { background: var(--bg-soft); }
.section-title { margin-bottom: 1.75rem; }
.section-title h2 { margin-bottom: 0.35rem; }
.section-title p { color: var(--gray); margin: 0; }

/* ---------- Grid / Cards ---------- */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: #fff;
  border: 1px solid var(--gray-soft);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: 0.35rem; }
.card p { color: var(--gray); margin: 0; font-size: 0.95rem; }
.card .icon {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(32, 157, 215, 0.12);
  color: var(--blue);
  border-radius: 10px;
  margin-bottom: 0.75rem;
}
.card .icon svg { width: 20px; height: 20px; }

/* Product teaser card variant */
.product-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: #fff;
  border: 1px solid var(--gray-soft);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
}
.product-card .pill {
  align-self: flex-start;
  background: rgba(236, 173, 10, 0.15);
  color: #8a6400;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.product-card h3 { font-size: 1.35rem; margin-bottom: 0.25rem; }
.product-card .arrow { margin-left: 0.25rem; }

/* ---------- Preview (mobile frame on landing) ---------- */
.preview {
  display: flex;
  justify-content: center;
  padding: 1rem 0;
}
.preview img { max-width: 280px; width: 100%; height: auto; }

/* ---------- Form ---------- */
.form {
  max-width: 520px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--gray-soft);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
}
.form > label, .form > fieldset {
  display: block;
  margin-bottom: 1rem;
}
.form label.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 1rem;
}
.form label.field .hint { color: var(--gray); font-weight: 400; font-size: 0.8rem; }
.form input[type="text"],
.form input[type="email"],
.form input[type="tel"] {
  font: inherit;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--gray-soft);
  border-radius: 8px;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(32, 157, 215, 0.2);
}
.form fieldset {
  border: none;
  padding: 0;
  margin: 0 0 1.25rem;
}
.form fieldset legend {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  padding: 0;
  margin-bottom: 0.5rem;
}
.form .roles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.form .roles label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--gray-soft);
  border-radius: 999px;
  font-size: 0.9rem;
  cursor: pointer;
  background: #fff;
}
.form .roles input { accent-color: var(--purple); }
.form .submit-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: stretch;
}
.form-error {
  color: #b00020;
  font-size: 0.9rem;
  min-height: 1.2em;
}
.form .fine {
  font-size: 0.8rem;
  color: var(--gray);
  text-align: center;
  margin: 0.75rem 0 0;
}

/* ---------- Footer ---------- */
.footer {
  padding: 2rem 0;
  border-top: 1px solid var(--gray-soft);
  background: var(--bg-soft);
  color: var(--gray);
  font-size: 0.9rem;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  justify-content: space-between;
  align-items: flex-start;
}
.footer a { color: var(--navy); }
@media (min-width: 640px) {
  .footer-inner { flex-direction: row; align-items: center; }
}

/* ---------- Focus rings (accessibility) ---------- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* ---------- Thanks / 404 ---------- */
.center-card {
  max-width: 480px;
  margin: 4rem auto;
  padding: 2rem;
  text-align: center;
  background: #fff;
  border: 1px solid var(--gray-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.center-card h1 { font-size: 1.75rem; }
.center-card p { color: var(--gray); }
