/* Blare — landing styles
   Brand: pure black + system orange, rounded display type, premium dark aesthetic. */

:root {
  --bg: #000000;
  --bg-elev: #0c0c0e;
  --bg-card: rgba(255, 255, 255, 0.035);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #ffffff;
  --text-muted: #a0a0aa;
  --text-dim: #6e6e78;
  --orange: #ff9500;
  --orange-bright: #ffa726;
  --orange-deep: #ff7a00;
  --yellow: #ffcc66;
  --max: 1120px;
  --pad: clamp(20px, 4vw, 40px);
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --radius-pill: 999px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color-scheme: dark;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter",
    "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
}

/* Subtle warm glow at top of page */
body::before {
  content: "";
  position: fixed;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 1200px;
  height: 800px;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 149, 0, 0.18) 0%,
    rgba(255, 149, 0, 0.06) 30%,
    transparent 60%
  );
  pointer-events: none;
  z-index: 0;
  filter: blur(30px);
}

/* Layout */
.wrap {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* Typography */
h1, h2, h3 {
  font-family: ui-rounded, -apple-system, BlinkMacSystemFont, "SF Pro Rounded",
    "Helvetica Neue", sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--text);
}

h1 {
  font-size: clamp(44px, 7vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.028em;
}

h3 {
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.2;
}

p {
  margin: 0;
  color: var(--text-muted);
}

a {
  color: var(--orange);
  text-decoration: none;
  transition: opacity 0.15s ease;
}

a:hover {
  opacity: 0.8;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  background: rgba(255, 149, 0, 0.1);
  border: 1px solid rgba(255, 149, 0, 0.25);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 8px var(--orange);
}

/* Header / Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  background: rgba(0, 0, 0, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
  font-family: ui-rounded, -apple-system, BlinkMacSystemFont, sans-serif;
}

.brand img {
  width: 32px;
  height: 32px;
  display: block;
}

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

.nav-links a {
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--text);
  opacity: 1;
}

@media (max-width: 640px) {
  .nav-links a:not(.nav-cta) {
    display: none;
  }
}

.nav-cta {
  background: var(--orange);
  color: #1a0e00 !important;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-weight: 600 !important;
  font-size: 14px !important;
}

.nav-cta:hover {
  background: var(--orange-bright);
  opacity: 1;
}

/* Hero */
.hero {
  padding: clamp(60px, 10vw, 120px) 0 clamp(40px, 6vw, 80px);
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 4vw, 72px);
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.hero h1 {
  margin-top: 24px;
  max-width: 12ch;
}

.hero h1 .accent {
  color: transparent;
  background: linear-gradient(135deg, var(--orange) 0%, var(--yellow) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-lede {
  margin-top: 22px;
  max-width: 50ch;
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--text-muted);
  line-height: 1.5;
}

.hero-cta {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-meta {
  font-size: 13px;
  color: var(--text-dim);
}

@media (max-width: 860px) {
  .hero .wrap {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-content {
    align-items: center;
    text-align: center;
  }
  .hero h1 {
    text-align: center;
  }
  .hero-lede {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-cta {
    align-items: center;
  }
  .hero-cta-row {
    justify-content: center;
  }
}

/* App Store Badge */
.appstore-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  color: #000000 !important;
  padding: 12px 22px 12px 18px;
  border-radius: 14px;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.85);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.04),
    0 2px 8px rgba(0, 0, 0, 0.5);
}

.appstore-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(255, 149, 0, 0.18),
    0 2px 8px rgba(0, 0, 0, 0.5);
  opacity: 1;
}

.appstore-badge .apple {
  width: 26px;
  height: 26px;
  fill: #000;
}

.appstore-badge .label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.05;
}

.appstore-badge .label .small {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #444;
}

.appstore-badge .label .big {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: 2px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text) !important;
  font-weight: 500;
  font-size: 15px;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-strong);
  opacity: 1;
}

/* Hero phone mockup */
.hero-shot {
  margin-top: 56px;
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
}

.hero-shot::before {
  content: "";
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 80%;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 149, 0, 0.35) 0%,
    transparent 70%
  );
  filter: blur(50px);
  z-index: -1;
  pointer-events: none;
}

.phone {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 9 / 19.5;
  background: #000;
  border-radius: 44px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  overflow: hidden;
}

.phone img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 36px;
}

/* Hero — dual phone layout */
.hero-shot.duo {
  margin-top: 0;
  height: clamp(440px, 50vw, 580px);
  display: block;
  width: 100%;
}

.hero-shot.duo::before {
  width: 90%;
  height: 70%;
  top: 12%;
  left: 50%;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 149, 0, 0.5) 0%,
    rgba(255, 149, 0, 0.12) 35%,
    transparent 70%
  );
  filter: blur(60px);
}

.hero-shot.duo .phone-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(190px, 22vw, 250px);
  z-index: 1;
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.hero-shot.duo .phone-wrap--back {
  transform: translate(-88%, -50%) rotate(-5deg);
  z-index: 2;
}

.hero-shot.duo .phone-wrap--front {
  transform: translate(-12%, -50%) rotate(5deg);
  z-index: 3;
}

@media (max-width: 860px) {
  .hero-shot.duo {
    height: clamp(420px, 92vw, 560px);
  }
  .hero-shot.duo .phone-wrap {
    width: clamp(180px, 32vw, 240px);
  }
  .hero-shot.duo .phone-wrap--back {
    transform: translate(-90%, -50%) rotate(-5deg);
  }
  .hero-shot.duo .phone-wrap--front {
    transform: translate(-10%, -50%) rotate(5deg);
  }
}

.hero-shot.duo .phone {
  width: 100%;
  max-width: none;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.7),
    0 8px 24px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

/* Floating challenge tags */
.phone-tag {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #ffffff;
  color: #1a0e00;
  padding: 7px 14px 7px 12px;
  border-radius: 999px;
  font-family: ui-rounded, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5),
    0 2px 6px rgba(0, 0, 0, 0.3);
  pointer-events: none;
  z-index: 5;
}

.phone-tag::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 6px rgba(255, 149, 0, 0.6);
}

.tag-math {
  top: 16%;
  left: 12%;
  transform: rotate(-7deg);
}

.tag-pattern {
  top: 22%;
  right: 12%;
  transform: rotate(7deg);
}

.tag-solve {
  bottom: 14%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.85);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.tag-solve::before {
  background: var(--orange);
  animation: pulse-dot 1.6s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.8); }
}

@media (max-width: 720px) {
  .tag-math,
  .tag-pattern {
    font-size: 11px;
    padding: 6px 11px 6px 9px;
  }
  .tag-solve {
    font-size: 11px;
    padding: 6px 12px 6px 10px;
  }
}

/* Section */
section {
  padding: clamp(70px, 9vw, 130px) 0;
  position: relative;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

.section-head .eyebrow {
  margin-bottom: 16px;
}

.section-head p {
  margin-top: 18px;
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.55;
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

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

.feature {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.feature:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 149, 0, 0.25);
  background: rgba(255, 149, 0, 0.02);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 149, 0, 0.18), rgba(255, 204, 102, 0.08));
  border: 1px solid rgba(255, 149, 0, 0.3);
  color: var(--orange);
  margin-bottom: 22px;
}

.feature h3 {
  margin-bottom: 10px;
}

.feature p {
  font-size: 15.5px;
  line-height: 1.55;
}

/* Showcase rows: image + copy alternating */
.showcase {
  display: flex;
  flex-direction: column;
  gap: clamp(80px, 10vw, 140px);
}

.showcase-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
}

.showcase-row.reverse {
  direction: rtl;
}

.showcase-row.reverse > * {
  direction: ltr;
}

@media (max-width: 860px) {
  .showcase-row,
  .showcase-row.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }
}

.showcase-copy h2 {
  margin-bottom: 18px;
}

.showcase-copy p {
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.55;
  max-width: 46ch;
}

.showcase-copy ul {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.showcase-copy li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text);
  font-size: 16px;
}

.showcase-copy li svg {
  flex: none;
  margin-top: 3px;
  color: var(--orange);
}

.showcase-shot {
  display: flex;
  justify-content: center;
  position: relative;
}

.showcase-shot::before {
  content: "";
  position: absolute;
  inset: 5% 15%;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 149, 0, 0.25) 0%,
    transparent 70%
  );
  filter: blur(40px);
  z-index: -1;
}

.showcase-shot .phone {
  max-width: 280px;
}

/* Pricing */
.pricing {
  background: linear-gradient(
    180deg,
    rgba(255, 149, 0, 0.04) 0%,
    transparent 100%
  );
}

.price-card {
  max-width: 520px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.price-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 140%;
  height: 100%;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 149, 0, 0.12) 0%,
    transparent 60%
  );
  pointer-events: none;
}

.price-card > * {
  position: relative;
}

.price-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--orange);
  color: #1a0e00;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.price-amount {
  font-family: ui-rounded, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(56px, 7vw, 80px);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1;
}

.price-amount sup {
  font-size: 0.5em;
  vertical-align: top;
  margin-right: 4px;
  font-weight: 600;
  color: var(--text-muted);
}

.price-period {
  font-size: 16px;
  color: var(--text-muted);
  margin-top: 8px;
}

.price-features {
  list-style: none;
  margin: 28px 0;
  padding: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.price-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15.5px;
  color: var(--text);
}

.price-features li svg {
  flex: none;
  margin-top: 3px;
  color: var(--orange);
}

.price-card .appstore-badge {
  margin: 8px auto 0;
}

.price-fine {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-dim);
}

/* Final CTA */
.final-cta {
  text-align: center;
  padding-bottom: clamp(80px, 10vw, 140px);
}

.final-cta h2 {
  margin-bottom: 22px;
  max-width: 16ch;
  margin-left: auto;
  margin-right: auto;
}

.final-cta .appstore-badge {
  margin-top: 20px;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 56px;
  background: rgba(0, 0, 0, 0.6);
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  font-family: ui-rounded, sans-serif;
}

.footer-brand img {
  width: 26px;
  height: 26px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--text);
  opacity: 1;
}

.footer-meta {
  color: var(--text-dim);
  font-size: 13px;
  width: 100%;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

/* Article (legal pages) */
.article {
  padding: clamp(60px, 8vw, 120px) 0 80px;
  max-width: 720px;
}

.article h1 {
  font-size: clamp(36px, 5vw, 56px);
  margin-bottom: 12px;
}

.article .updated {
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 40px;
}

.article h2 {
  font-size: clamp(22px, 2.4vw, 28px);
  margin: 40px 0 14px;
  letter-spacing: -0.02em;
}

.article p,
.article li {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.65;
}

.article p {
  margin: 0 0 16px;
}

.article ul {
  margin: 0 0 20px;
  padding-left: 22px;
}

.article li {
  margin-bottom: 8px;
}

.article strong {
  color: var(--text);
  font-weight: 600;
}

.article a {
  color: var(--orange);
  border-bottom: 1px solid rgba(255, 149, 0, 0.4);
}

.article hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}

/* Selection */
::selection {
  background: rgba(255, 149, 0, 0.4);
  color: #fff;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}
