/* ============================================================
   Tamar Rakia — brand tokens
   ============================================================ */
:root {
  --blue: #1686f9;
  --cyan: #0bc5fa;
  --navy: #0a1830;
  --navy-soft: #0f2142;
  --ink: #0f1b2d;
  --slate: #51607a;
  --slate-light: #8593ab;
  --mist: #eef3fb;
  --mist-soft: #f6f9fd;
  --white: #ffffff;
  --line: #dde6f4;

  --grad: linear-gradient(90deg, var(--blue), var(--cyan));
  --grad-soft: linear-gradient(135deg, rgba(22,134,249,0.08), rgba(11,197,250,0.08));

  --display: 'Space Grotesk', 'Inter', sans-serif;
  --body: 'Inter', sans-serif;
  --mono: 'JetBrains Mono', monospace;

  --max: 1140px;
  --radius: 14px;
}

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

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

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

a { color: inherit; text-decoration: none; }

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

p { margin: 0 0 1em; color: var(--slate); }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--grad);
  display: inline-block;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.btn-primary {
  background: var(--grad);
  color: var(--white);
  box-shadow: 0 8px 20px -8px rgba(22,134,249,0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -8px rgba(22,134,249,0.65); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }

.btn-light {
  background: var(--white);
  color: var(--navy);
}
.btn-light:hover { transform: translateY(-2px); }

/* ============================================================
   Header / Nav
   ============================================================ */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  /* note: backdrop-filter lives on ::before, not this element, so it
     doesn't create a containing block that traps position:fixed children
     (the mobile nav panel) inside the header's box. */
}
header.site::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(10px);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  max-width: var(--max);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.02em;
}
.brand img { height: 34px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 14.5px;
  font-weight: 500;
}
.nav-links a { color: var(--slate); transition: color 0.15s ease; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links .nav-mobile-cta { display: none; }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -8px;
  height: 2px;
  background: var(--grad);
  border-radius: 2px;
}
.nav-cta { display: flex; align-items: center; gap: 22px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: 0.2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-links { 
    position: fixed;
    inset: 64px 0 0 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 28px;
    gap: 22px;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    border-top: 1px solid var(--line);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-toggle { display: block; }
  .nav-cta .btn-primary { display: none; }
  .nav-links .nav-mobile-cta { display: inline-flex; margin-top: 6px; }
}


/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 88px;
  background: var(--mist-soft);
}
.hero .wrap { position: relative; z-index: 2; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(34px, 4.4vw, 54px);
  max-width: 13ch;
}
.hero .lede {
  font-size: 18px;
  max-width: 46ch;
  color: var(--slate);
}
.hero-actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }

.hero-art { position: relative; height: 360px; }

.page-hero {
  padding: 64px 0 56px;
  background: var(--mist-soft);
  position: relative;
  overflow: hidden;
}
.page-hero h1 { font-size: clamp(30px, 4vw, 44px); max-width: 18ch; }
.page-hero .lede { font-size: 17px; max-width: 56ch; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { height: 220px; order: -1; }
}

/* ============================================================
   Node line — signature element
   ============================================================ */
.node-rail {
  position: relative;
  padding-left: 34px;
}
.node-rail::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(var(--blue), var(--cyan));
  opacity: 0.35;
}
.node-item {
  position: relative;
  padding-bottom: 40px;
}
.node-item:last-child { padding-bottom: 0; }
.node-item::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--blue);
}
.node-item h3 { margin-bottom: 8px; font-size: 19px; }
.node-item p { margin-bottom: 0; }

/* ============================================================
   Sections
   ============================================================ */
section { padding: 84px 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(26px, 3vw, 36px); }
.section-head .lede { font-size: 16.5px; }

.bg-mist { background: var(--mist-soft); }
.bg-navy { background: var(--navy); color: var(--white); }
.bg-navy h2, .bg-navy h3, .bg-navy p { color: var(--white); }
.bg-navy .lede, .bg-navy p { color: #b7c5e0; }

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

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover {
  border-color: rgba(22,134,249,0.35);
  transform: translateY(-3px);
  box-shadow: 0 16px 32px -22px rgba(15,27,45,0.35);
}
.card .dot {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--grad-soft);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.card .dot span {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--grad);
}
.card h3 { font-size: 17.5px; margin-bottom: 8px; }
.card p { font-size: 14.5px; margin-bottom: 0; }

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* Strip */
.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
}
.strip .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate-light);
}

/* CTA banner */
.cta-banner {
  background: var(--navy);
  border-radius: 24px;
  padding: 56px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-banner h2 { color: var(--white); margin-bottom: 6px; font-size: 28px; }
.cta-banner p { color: #b7c5e0; margin-bottom: 0; }
.cta-banner-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ============================================================
   Footer
   ============================================================ */
footer.site {
  background: var(--navy);
  color: #c7d3e8;
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-family: var(--display); font-weight: 700; color: var(--white); font-size: 16px; }
.footer-brand img { height: 28px; }
.footer-grid p { color: #8fa0c2; font-size: 14px; max-width: 30ch; }
.footer-col h4 { color: var(--white); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 16px; font-family: var(--mono); font-weight: 500; }
.footer-col a, .footer-col span { display: block; color: #b7c5e0; font-size: 14.5px; margin-bottom: 11px; transition: color 0.15s ease; }
.footer-col a:hover { color: var(--cyan); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 24px;
  font-size: 13px;
  color: #7488ad;
}
.footer-bottom a { color: #7488ad; }
.footer-bottom a:hover { color: var(--cyan); }
.footer-legal-links { display: flex; gap: 20px; }

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   Legal pages
   ============================================================ */
.legal-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 0 100px;
}
.legal-body h2 { font-size: 21px; margin-top: 44px; }
.legal-body h2:first-of-type { margin-top: 0; }
.legal-body p, .legal-body li { color: var(--slate); font-size: 15.5px; }
.legal-body ul { padding-left: 20px; }
.legal-body li { margin-bottom: 8px; }
.legal-updated {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--slate-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

/* ============================================================
   Contact page
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}
.contact-info .item { margin-bottom: 28px; }
.contact-info .item h4 {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-light);
  margin-bottom: 6px;
  font-weight: 500;
}
.contact-info .item a, .contact-info .item p { font-size: 17px; color: var(--ink); margin-bottom: 0; font-weight: 500; }

.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--ink);
}
.field input, .field textarea, .field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 15px;
  font-family: var(--body);
  font-size: 15px;
  color: var(--ink);
  background: var(--white);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(22,134,249,0.14);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 13px; color: var(--slate-light); margin-top: 10px; }

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Misc
   ============================================================ */
.divider { height: 1px; background: var(--line); border: none; margin: 0; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
