/* Social Limits — Website */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800;900&display=swap');

:root {
  /* Brand */
  --electric-blue: #0000FF;
  --electric-blue-deep: #1A1AB8;
  --faded-blue: #CCCCFF;
  --pale-grey: #F1F2F2;
  --rich-grey: #58595B;
  --ink: #08081F;
  --white: #FFFFFF;

  /* Spacing scale (from brand book) */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 20px;
  --s-4: 32px;
  --s-5: 44px;
  --s-6: 60px;
  --s-7: 80px;
  --s-8: 120px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  font-family: 'Poppins', system-ui, sans-serif;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body { overflow-x: hidden; }

/* Type scale */
.h-display {
  font-weight: 800;
  font-size: clamp(56px, 9vw, 144px);
  line-height: 0.92;
  letter-spacing: -0.045em;
}
.h-1 { font-weight: 800; font-size: clamp(40px, 5.4vw, 88px); line-height: 0.95; letter-spacing: -0.035em; }
.h-2 { font-weight: 800; font-size: clamp(28px, 3vw, 48px); line-height: 1.05; letter-spacing: -0.025em; }
.h-3 { font-weight: 700; font-size: clamp(20px, 1.4vw, 24px); line-height: 1.2; letter-spacing: -0.01em; }
.eyebrow {
  font-weight: 600; font-size: 12px; line-height: 1;
  letter-spacing: 0.18em; text-transform: uppercase;
}
.body-l { font-weight: 400; font-size: clamp(16px, 1.2vw, 19px); line-height: 1.55; }
.body { font-weight: 400; font-size: 15px; line-height: 1.6; }
.body-s { font-weight: 400; font-size: 13px; line-height: 1.5; }
.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; padding: 0; color: inherit; }

/* Layout */
.shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--s-4);
}
@media (min-width: 768px) {
  .shell { padding: 0 var(--s-6); }
}
@media (max-width: 480px) {
  .shell { padding: 0 var(--s-3); }
}

/* ─────────────────── Liquid Glass ─────────────────── */
.glass {
  background: linear-gradient(135deg, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0.08) 60%, rgba(255,255,255,0.18) 100%);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.32);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.5),
    inset 0 -1px 0 rgba(255,255,255,0.12),
    0 24px 40px -16px rgba(0,0,40,0.4);
}
.glass-dark {
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  font-weight: 600; font-size: 15px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-glass {
  color: #fff;
  background: linear-gradient(135deg, rgba(255,255,255,0.28), rgba(255,255,255,0.08));
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.4);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.55),
    inset 0 -1px 0 rgba(255,255,255,0.1),
    0 18px 30px -10px rgba(0,0,40,0.35);
}
.btn-glass:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 22px 36px -10px rgba(0,0,40,0.5); }
.btn-solid {
  color: #fff;
  background: var(--electric-blue);
  box-shadow: 0 14px 28px -10px rgba(0,0,255,0.55);
}
.btn-solid:hover { box-shadow: 0 18px 36px -10px rgba(0,0,255,0.7); }
.btn-ghost-light {
  color: var(--ink);
  border: 1px solid rgba(8,8,31,0.14);
  background: transparent;
}
.btn-ghost-light:hover { background: rgba(8,8,31,0.04); }

/* ─────────────────── Hero gradient ─────────────────── */
.hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(140% 80% at 90% 10%, #7B5BFF 0%, transparent 50%),
    radial-gradient(120% 80% at 10% 90%, #00B4FF 0%, transparent 50%),
    radial-gradient(80% 60% at 50% 50%, #2A2AFF 0%, transparent 70%),
    linear-gradient(180deg, #0A0AB8 0%, #1414DD 50%, #0606A0 100%);
}
.hero-bg::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(transparent 0, transparent calc(100% - 1px), rgba(255,255,255,0.05) 100%),
    linear-gradient(90deg, transparent 0, transparent calc(100% - 1px), rgba(255,255,255,0.05) 100%);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 70% 30%, rgba(255,255,255,0.18), transparent 40%),
    radial-gradient(ellipse at 20% 70%, rgba(123, 91, 255, 0.4), transparent 50%);
  filter: blur(40px);
}

/* Reusable blue gradient surface */
.blue-surface {
  position: relative;
  background:
    radial-gradient(120% 80% at 20% 0%, #5A4BFF 0%, transparent 50%),
    radial-gradient(100% 70% at 100% 100%, #00A8FF 0%, transparent 50%),
    linear-gradient(180deg, #1414DD, #0606A0);
  color: #fff;
  overflow: hidden;
}

/* ─────────────────── Nav ─────────────────── */
.nav {
  position: fixed;
  top: max(16px, env(safe-area-inset-top));
  left: 0; right: 0;
  z-index: 70;
  display: flex; justify-content: center;
  padding: 0 var(--s-3);
  pointer-events: none;
}
.nav-inner {
  pointer-events: auto;
  position: relative;
  z-index: 100;
  display: flex; align-items: center; gap: 8px;
  padding: 8px 8px 8px 20px;
  border-radius: 999px;
  max-width: calc(100vw - var(--s-4));
}
/* When drawer is open, give the pill a more solid backdrop so brand + close button stay readable */
body[data-nav-open="true"] .nav-inner {
  background: rgba(10,10,40,0.55) !important;
}
.nav-links {
  display: flex; align-items: center; gap: 2px;
  margin-left: 16px;
}
.nav-link {
  padding: 12px 16px;
  font-size: 14px; font-weight: 500;
  color: rgba(255,255,255,0.85);
  border-radius: 999px;
  transition: background .15s ease, color .15s ease;
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,0.12); }
.nav-link:focus-visible { outline: 2px solid rgba(255,255,255,0.6); outline-offset: 2px; }
.nav-cta {
  padding: 12px 18px; border-radius: 999px;
  background: #fff; color: var(--electric-blue);
  font-weight: 600; font-size: 14px;
  margin-left: 8px;
}
.nav-cta:focus-visible { outline: 2px solid var(--electric-blue); outline-offset: 2px; }
.brand-mark {
  display: inline-flex; align-items: center; gap: 10px;
  color: #fff; font-weight: 700; letter-spacing: -0.01em;
}

/* Hamburger toggle — hidden on desktop */
.nav-toggle {
  display: none;
  align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
}
.nav-toggle:focus-visible { outline: 2px solid rgba(255,255,255,0.6); outline-offset: 2px; }
.nav-toggle-icon {
  position: relative;
  width: 20px; height: 14px;
  display: block;
}
.nav-toggle-icon::before,
.nav-toggle-icon::after,
.nav-toggle-icon span {
  content: '';
  position: absolute; left: 0; right: 0;
  height: 2px; background: #fff; border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease, top .25s ease;
}
.nav-toggle-icon::before { top: 0; }
.nav-toggle-icon span { top: 6px; display: block; }
.nav-toggle-icon::after { top: 12px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before { top: 6px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon span { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after { top: 6px; transform: rotate(-45deg); }

/* Full-screen glass drawer */
.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  flex-direction: column;
  padding:
    calc(env(safe-area-inset-top) + 84px)
    calc(env(safe-area-inset-right) + var(--s-4))
    calc(env(safe-area-inset-bottom) + var(--s-4))
    calc(env(safe-area-inset-left) + var(--s-4));
  background:
    radial-gradient(120% 80% at 90% 10%, rgba(123, 91, 255, 0.55) 0%, transparent 55%),
    radial-gradient(100% 70% at 10% 100%, rgba(0, 180, 255, 0.45) 0%, transparent 55%),
    linear-gradient(180deg, rgba(10,10,184,0.96), rgba(6,6,160,0.97));
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  color: #fff;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .22s ease, transform .22s ease;
}
.nav-drawer[data-open="true"] {
  display: flex;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.nav-drawer-links {
  display: flex; flex-direction: column;
  gap: 4px;
  margin-top: var(--s-3);
}
.nav-drawer .nav-link {
  font-size: 22px; font-weight: 600;
  padding: 16px 18px;
  min-height: 56px;
  color: #fff;
  display: flex; align-items: center;
  border-radius: 16px;
}
.nav-drawer .nav-link:hover,
.nav-drawer .nav-link:focus-visible {
  background: rgba(255,255,255,0.1);
}
.nav-drawer .nav-cta {
  margin: auto 0 var(--s-3);
  text-align: center; justify-content: center;
  padding: 18px 24px; font-size: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%;
  min-height: 56px;
}

body[data-nav-open="true"] { overflow: hidden; }

/* Below 720px: collapse pill to brand + hamburger, show drawer */
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-inner > .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-inner { padding: 6px 6px 6px 14px; gap: 6px; }
}
@media (min-width: 721px) {
  .nav-drawer { display: none !important; }
}

/* ─────────────────── Sections ─────────────────── */
section { padding: var(--s-8) 0; }
@media (max-width: 768px) { section { padding: var(--s-7) 0; } }
@media (max-width: 480px) { section { padding: var(--s-6) 0; } }

.section-head {
  display: flex; flex-direction: column; gap: var(--s-3);
  align-items: flex-start;
  margin-bottom: var(--s-7);
  max-width: 760px;
}

/* Cards */
.card {
  background: #fff;
  border: 1px solid rgba(8,8,31,0.06);
  border-radius: 28px;
  padding: var(--s-5);
  box-shadow: 0 1px 0 rgba(255,255,255,0.8) inset, 0 18px 48px -28px rgba(0,0,80,0.18);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 1px 0 rgba(255,255,255,0.8) inset, 0 30px 56px -28px rgba(0,0,80,0.28); }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--faded-blue);
  color: var(--electric-blue);
  font-size: 12px; font-weight: 600;
  letter-spacing: -0.005em;
}
.chip-dark {
  background: rgba(255,255,255,0.1); color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
}

.dot { width: 6px; height: 6px; border-radius: 999px; background: currentColor; }

/* ─────────────────── Phone (custom mockup) ─────────────────── */
.phone-stack { position: relative; }
.phone {
  width: min(320px, 80vw);
  aspect-ratio: 9 / 19.5;
  border-radius: 52px;
  background: #0a0a12;
  padding: 10px;
  box-shadow:
    0 50px 100px -30px rgba(0,0,80,0.55),
    0 30px 60px -20px rgba(0,0,120,0.4),
    inset 0 0 0 1px rgba(255,255,255,0.06);
  position: relative;
}
.phone-screen {
  width: 100%; height: 100%;
  border-radius: 42px;
  overflow: hidden;
  position: relative;
  background: #000;
}
.phone-notch {
  position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 30px; border-radius: 999px;
  background: #000; z-index: 10;
}

/* utility */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: var(--s-5); }
@media (min-width: 900px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: var(--s-4); }
@media (min-width: 720px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.grid-4 { display: grid; grid-template-columns: 1fr; gap: var(--s-4); }
@media (min-width: 640px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.divider { height: 1px; background: rgba(8,8,31,0.08); }
.divider-light { height: 1px; background: rgba(255,255,255,0.12); }

/* Subtle floating animation for phone */
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.float { animation: float-y 6s ease-in-out infinite; }

/* gradient text */
.gradient-text {
  background: linear-gradient(180deg, #fff 0%, #C4C4FF 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ─────────────────── Mobile polish ─────────────────── */

/* Lighter glass blur on mobile — saves GPU and fixes iOS Safari scroll flicker */
@media (max-width: 720px) {
  .glass { backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); }
  .glass-dark { backdrop-filter: blur(10px) saturate(130%); -webkit-backdrop-filter: blur(10px) saturate(130%); }
  .btn-glass { backdrop-filter: blur(12px) saturate(150%); -webkit-backdrop-filter: blur(12px) saturate(150%); }
}

/* Honour prefers-reduced-motion across all animations and transitions */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .float { animation: none !important; }
}

/* Cards: drop hover-lift on touch devices (no hover state) */
@media (hover: none) {
  .card:hover { transform: none; }
  .btn:hover { transform: none; }
}

/* Hero on mobile — tighter padding, no shadow excess */
@media (max-width: 720px) {
  .hero-bg::after { filter: blur(20px); }
}

/* Pull-quote on small screens (used by our-story page) */
@media (max-width: 640px) {
  .pull-quote { padding: 20px 22px !important; margin: 22px 0 !important; }
}

/* Footer: collapse to a single column on narrow phones */
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr !important; gap: var(--s-4) !important; }
}

/* Horizontally scrollable container for tables and other wide content */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 16px 0 8px;
}
