/*
 * Lead-Lens marketing site
 * Brand tokens are taken straight from the iOS asset catalog
 * (BrandInk / BrandPrimary / BrandSecondary) so the web and the
 * springboard icon visually agree.
 */

:root {
  --brand-ink:        #0E2A5C; /* iOS BrandInk        rgb(14,42,92) */
  --brand-primary:    #0A84FF; /* iOS BrandPrimary    rgb(10,132,255) */
  --brand-secondary:  #5AC8FA; /* iOS BrandSecondary  rgb(90,200,250) */

  --bg:               #ffffff;
  --bg-soft:          #f5f8ff;
  --surface:          #ffffffcc;
  --border:           #e3e8f3;
  --text:             #0b1733;
  --text-muted:       #50607f;
  --link:             var(--brand-primary);

  --radius-lg:        24px;
  --radius-md:        14px;
  --radius-sm:        10px;

  --shadow-soft:      0 6px 24px rgba(14, 42, 92, 0.08);
  --shadow-hero:      0 30px 80px rgba(10, 132, 255, 0.28);

  --hero-gradient:    linear-gradient(135deg, var(--brand-ink) 0%, var(--brand-primary) 55%, var(--brand-secondary) 100%);
  --chip-gradient:    linear-gradient(90deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);

  --max-width:        1120px;
  --content-width:    760px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:           #0a0f1f;
    --bg-soft:      #0f1730;
    --surface:      #14203fbf;
    --border:       #1f2c4d;
    --text:         #e9eefc;
    --text-muted:   #9aa7c5;
    --shadow-soft:  0 6px 24px rgba(0, 0, 0, 0.45);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
               "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans Arabic", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

/* ------- Layout primitives ------- */

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

.container--narrow {
  max-width: var(--content-width);
}

section { padding: 72px 0; }
section + section { padding-top: 0; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  color: var(--text);
}
.brand:hover { text-decoration: none; }

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  box-shadow: var(--shadow-soft);
}

.brand-name {
  font-size: 18px;
  letter-spacing: -0.01em;
}

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

.nav a {
  color: var(--text-muted);
  font-size: 15px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}
.nav a:hover {
  color: var(--text);
  background: color-mix(in srgb, var(--brand-primary) 8%, transparent);
  text-decoration: none;
}

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

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

.hero::before {
  content: "";
  position: absolute;
  inset: -10% -10% 30% -10%;
  background:
    radial-gradient(60% 60% at 18% 5%, rgba(255,255,255,0.35) 0%, transparent 60%),
    var(--hero-gradient);
  opacity: 0.10;
  z-index: -1;
  filter: blur(2px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-primary);
  background: color-mix(in srgb, var(--brand-primary) 10%, transparent);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  font-weight: 800;
  background: var(--hero-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lede {
  font-size: 19px;
  color: var(--text-muted);
  margin: 0 0 28px;
  max-width: 540px;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  color: #fff;
  background: var(--chip-gradient);
  box-shadow: 0 10px 24px rgba(10, 132, 255, 0.35);
}
.btn-primary:hover { box-shadow: 0 14px 32px rgba(10, 132, 255, 0.45); }

.btn-ghost {
  color: var(--text);
  background: transparent;
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--bg-soft); }

.hero-art {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.device-frame {
  position: relative;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 1242 / 2688;
  border-radius: 48px;
  padding: 12px;
  background: linear-gradient(160deg, #1a2547, #0a0f1f);
  box-shadow: var(--shadow-hero);
}

.device-frame::after {
  /* subtle specular sheen, mirrors the iOS Liquid-Glass cue */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 48px;
  pointer-events: none;
  background: radial-gradient(120% 60% at 10% 0%, rgba(255,255,255,0.18), transparent 55%);
  mix-blend-mode: plus-lighter;
}

.device-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 38px;
}

/* ------- Feature grid ------- */

.section-title {
  font-size: clamp(28px, 3.4vw, 38px);
  letter-spacing: -0.015em;
  margin: 0 0 12px;
  font-weight: 800;
}

.section-lede {
  color: var(--text-muted);
  font-size: 18px;
  max-width: 640px;
  margin: 0 0 40px;
}

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

.feature {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-soft);
}

.feature h3 {
  font-size: 19px;
  margin: 14px 0 6px;
  letter-spacing: -0.01em;
}

.feature p {
  color: var(--text-muted);
  margin: 0;
  font-size: 15.5px;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--chip-gradient);
  color: #fff;
  font-weight: 700;
}

/* ------- Privacy banner ------- */

.banner {
  border-radius: var(--radius-lg);
  padding: 36px;
  background: var(--hero-gradient);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-hero);
}

.banner h2 {
  margin: 0;
  font-size: clamp(22px, 2.6vw, 30px);
  letter-spacing: -0.01em;
}

.banner p { margin: 0; opacity: 0.92; max-width: 720px; }

.banner .btn-ghost {
  align-self: flex-start;
  color: #fff;
  border-color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.08);
}
.banner .btn-ghost:hover { background: rgba(255,255,255,0.16); }

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

.site-footer {
  padding: 36px 0 56px;
  border-top: 1px solid var(--border);
  margin-top: 72px;
  font-size: 14px;
  color: var(--text-muted);
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--text); }

/* ------- Long-form (privacy + support) ------- */

.legal {
  padding: 64px 0 32px;
}

.legal h1 {
  font-size: clamp(32px, 4vw, 44px);
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  font-weight: 800;
}

.legal .meta {
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: 14px;
}

.legal h2 {
  margin-top: 48px;
  font-size: 22px;
  letter-spacing: -0.01em;
  border-top: 1px solid var(--border);
  padding-top: 28px;
}

.legal h3 {
  margin-top: 28px;
  font-size: 17px;
  letter-spacing: -0.005em;
}

.legal p, .legal li { color: var(--text); }
.legal ul { padding-inline-start: 22px; }
.legal li { margin-bottom: 6px; }

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 15px;
}

.legal th, .legal td {
  text-align: start;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.legal th {
  background: var(--bg-soft);
  font-weight: 600;
}

.legal a { word-break: break-word; }

.legal-toc {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin-bottom: 32px;
}

.legal-toc strong { display: block; margin-bottom: 8px; }
.legal-toc ol { margin: 0; padding-inline-start: 22px; }

.callout {
  background: color-mix(in srgb, var(--brand-primary) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand-primary) 25%, transparent);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin: 24px 0;
}

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

@media (max-width: 920px) {
  .hero { padding: 64px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { order: -1; }
  .device-frame { max-width: 280px; }
  .features { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  section { padding: 56px 0; }
  .features { grid-template-columns: 1fr; }
  .nav a { padding: 8px 6px; font-size: 14px; }
  .brand-name { display: none; }
}
