/* =============================================
   SRPNT | Design System
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --white: #ffffff;
  --paper: #fafaf9;
  --bone: #f5f5f4;
  --stone: #e7e5e4;
  --line: #d6d3d1;
  --mute: #a8a29e;
  --slate: #57534e;
  --graphite: #292524;
  --ink: #1c1917;
  --black: #0a0a0a;

  --accent: #0a0a0a;
  --accent-hover: #292524;

  /* Brand accent: deep blue | used sparingly for highlights */
  --brand: #1e40af;
  --brand-light: #dbeafe;
  --brand-soft: #eff6ff;
  --brand-hover: #1e3a8a;
  --brand-bright: #60a5fa;

  /* Functional colours */
  --success: #047857;
  --warn: #b45309;
  --info: #0c4a6e;

  /* Section colour system | strict alternation, always separated by line */
  --sec-white: #ffffff;
  --sec-light: linear-gradient(180deg, #fafcff 0%, #f3f8ff 50%, #fafcff 100%);
  --sec-dark: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #1e3a8a 100%);
  --sec-black: linear-gradient(135deg, #0a0a0a 0%, #111 50%, #0d1421 100%);
  --footer-grad: linear-gradient(180deg, #2a2825 0%, #1a1817 100%);

  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --max: 1240px;
  --gutter: 2rem;
  --nav-h: 64px;

  /* Radius scale */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: var(--sans);
  background: var(--white);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.005em;
  position: relative;
}

/* Clean white base | no ambient tints */
body::before { display: none; }
body > * { position: relative; z-index: 1; }

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

a { color: inherit; }

/* =============================================
   NAVIGATION
   ============================================= */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border-bottom: 1px solid var(--stone);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--nav-h);
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.nav-logo img {
  height: 26px;
  width: auto;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.25rem;
  align-items: center;
}

.nav-links a {
  color: var(--graphite);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s var(--ease);
  position: relative;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: -6px;
  height: 1.5px;
  background: var(--brand);
}

.nav-cta {
  padding: 0.6rem 1.15rem;
  background: var(--ink);
  color: var(--white) !important;
  border-radius: 100px;
  font-size: 0.875rem;
  transition: background 0.2s var(--ease);
}
.nav-cta:hover { background: var(--accent-hover); }
.nav-cta::after { display: none !important; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--ink);
  cursor: pointer;
  padding: 0.4rem;
  margin-right: -0.4rem;
}
.menu-toggle svg { width: 24px; height: 24px; }

/* =============================================
   TYPOGRAPHY
   ============================================= */

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
  display: inline-block;
}
.eyebrow-line {
  display: inline-block;
}
/* Brand colour applied to eyebrow text itself for subtle accent */
.eyebrow-line {
  color: var(--brand);
  font-weight: 600;
}

h1, h2, h3, h4 {
  font-family: var(--sans);
  color: var(--ink);
  letter-spacing: -0.025em;
  font-weight: 500;
  line-height: 1.1;
}
p { color: var(--graphite); }

.lede {
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--slate);
}

/* =============================================
   BUTTONS
   ============================================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.5rem;
  font-family: var(--sans);
  font-size: 0.925rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  border: 1px solid transparent;
  letter-spacing: -0.005em;
  line-height: 1;
}
.btn-primary {
  background: var(--ink);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: var(--ink);
  background: var(--bone);
}
.btn-arrow {
  transition: transform 0.2s var(--ease);
  display: inline-block;
}
.btn:hover .btn-arrow { transform: translateX(3px); }

/* =============================================
   ICONS
   ============================================= */

.icon {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.icon-lg { width: 32px; height: 32px; }
.icon-sm { width: 18px; height: 18px; }

.icon-tile {
  width: 56px;
  height: 56px;
  border-radius: var(--r-md);
  background: var(--brand-soft);
  border: 1px solid var(--brand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  margin-bottom: 1.25rem;
}
.icon-tile-dark {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

/* =============================================
   FOOTER
   ============================================= */

.footer {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(59, 130, 246, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 100% 100%, rgba(30, 64, 175, 0.18) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 0% 100%, rgba(96, 165, 250, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, #0a0a0a 0%, #111111 50%, #0d1421 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4rem var(--gutter) 2rem;
  color: rgba(255, 255, 255, 0.7);
  position: relative;
  overflow: hidden;
}
.footer > * { position: relative; z-index: 1; }
.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand img {
  height: 26px;
  margin-bottom: 1.25rem;
  filter: brightness(0) invert(1);
}
.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  max-width: 320px;
  font-size: 0.925rem;
  line-height: 1.6;
}
.footer-brand .footer-address {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  font-style: normal;
  line-height: 1.6;
}
.footer-col h4 {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1rem;
  font-weight: 600;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-size: 0.925rem;
  transition: color 0.2s var(--ease);
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  max-width: var(--max);
  margin: 0 auto;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.825rem;
  color: rgba(255, 255, 255, 0.55);
}
.footer-legal {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.footer-legal a {
  color: var(--slate);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.footer-legal a:hover { color: var(--ink); text-decoration: underline; }

/* =============================================
   PAGE HEADER
   ============================================= */

/* PAGE HEADER | hero-style treatment | dark gradient with blue blooms */
.page-header {
  padding: 7.5rem var(--gutter) 5.5rem;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(59, 130, 246, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 100% 100%, rgba(30, 64, 175, 0.25) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 0% 100%, rgba(96, 165, 250, 0.12) 0%, transparent 50%),
    linear-gradient(180deg, #0a0a0a 0%, #111111 50%, #0d1421 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.08) 1px, transparent 0);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 0%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 0%, transparent 90%);
  pointer-events: none;
}
.page-header::after {
  content: '';
  position: absolute;
  top: 20%; right: 5%;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.2) 0%, transparent 70%);
  filter: blur(40px);
  animation: heroFloat 14s ease-in-out infinite alternate;
  pointer-events: none;
}
.page-header-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: end;
}
.page-header h1 {
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--white);
  margin-top: 0.85rem;
}
.page-header h1 .grad {
  background: linear-gradient(135deg, #60a5fa 0%, #ffffff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 400;
}
.page-header .eyebrow {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}
.page-header .eyebrow-line {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.page-header .eyebrow-line::before {
  display: none;
}
.page-header > .page-header-inner > p,
.page-header p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 520px;
}
.page-header-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: end;
}

/* =============================================
   COMMON SECTION CTA
   ============================================= */

.cta {
  padding: 6rem var(--gutter);
}
.cta-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
}
.cta-inner h2 {
  color: var(--ink);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.15;
}
.cta-inner p {
  color: var(--slate);
  font-size: 1rem;
  line-height: 1.6;
  margin-top: 1rem;
  max-width: 480px;
}
.cta-inner .btn-primary {
  background: var(--ink);
  color: var(--white);
}
.cta-inner .btn-primary:hover {
  background: var(--brand);
}
.cta-actions { display: flex; justify-content: flex-end; }

/* =============================================
   LEGAL PAGES
   ============================================= */

.legal {
  padding: 4rem var(--gutter) 6rem;
}
.legal-inner {
  max-width: 760px;
  margin: 0 auto;
}
.legal h2 {
  font-size: 1.4rem;
  font-weight: 500;
  margin: 2.5rem 0 0.75rem;
  letter-spacing: -0.02em;
}
.legal h2:first-of-type { margin-top: 0; }
.legal h3 {
  font-size: 1.05rem;
  font-weight: 500;
  margin: 1.5rem 0 0.5rem;
}
.legal p {
  color: var(--graphite);
  line-height: 1.7;
  margin-bottom: 1rem;
  font-size: 0.975rem;
}
.legal ul, .legal ol {
  margin: 0.5rem 0 1.25rem 1.25rem;
  color: var(--graphite);
}
.legal li {
  margin-bottom: 0.5rem;
  line-height: 1.65;
  font-size: 0.975rem;
}
.legal-meta {
  background: var(--paper);
  border: 1px solid var(--stone);
  border-radius: var(--r-md);
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
  font-size: 0.875rem;
  color: var(--slate);
}
.legal a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
}
.legal a:hover { text-decoration-color: var(--ink); }

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 1024px) {
  :root { --gutter: 1.25rem; }

  .nav-inner {
    padding: 0.75rem var(--gutter);
    gap: 0.75rem;
  }
  .nav-logo img { height: 24px; }
  .menu-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.5rem;
    gap: 0;
    border-bottom: 1px solid var(--stone);
    transform: translateY(-130%);
    transition: transform 0.35s var(--ease);
    box-shadow: 0 16px 40px -10px rgba(0,0,0,0.10);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links li {
    border-bottom: 1px solid var(--stone);
  }
  .nav-links li:last-child {
    border-bottom: none;
    margin-top: 1rem;
    display: flex;
    justify-content: center;
  }
  .nav-links a {
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0.25rem;
    width: 100%;
  }
  .nav-links a:not(.nav-cta)::after {
    content: '→';
    color: var(--mute);
    font-size: 1rem;
    transition: transform 0.2s var(--ease), color 0.2s var(--ease);
  }
  .nav-links a:not(.nav-cta).active::after {
    color: var(--brand);
    transform: translateX(4px);
  }
  .nav-links a.active { color: var(--brand); }
  .nav-links a.active::after { display: none; }
  .nav-links a.active:not(.nav-cta) { position: relative; }
  /* CTA must come last with high specificity to override .nav-links a */
  .nav-links li:last-child .nav-cta {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 200px;
    max-width: 280px;
    text-align: center;
    padding: 0.95rem 2.5rem !important;
    font-size: 0.95rem;
    box-sizing: border-box;
  }
  .nav-links li:last-child .nav-cta::after { display: none !important; }

  .page-header { padding: 5rem var(--gutter) 4rem; }
  .page-header-inner { grid-template-columns: 1fr; gap: 1.5rem; align-items: start; }
  .page-header h1 { font-size: clamp(2rem, 7vw, 3rem); }

  .cta { padding: 3.5rem var(--gutter); }
  .cta-inner {
    grid-template-columns: 1fr;
    padding: 2.25rem 1.75rem;
    gap: 1.5rem;
  }
  .cta-actions { justify-content: flex-start; }

  .footer { padding: 3rem var(--gutter) 1.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
  .footer-brand { grid-column: span 2; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
}
