/* ─── Design tokens ─────────────────────────────────────────────────────── */
:root {
  --navy:        #1a2744;
  --crimson:     #81142c;
  --paper:       #f7f4ef;
  --charcoal:    #2c2c2c;
  --hero-bg:     #0b0d14;

  --font-serif:  'Cormorant Garamond', Georgia, serif;
  --font-sans:   system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-card: 14px;
  --radius-btn:  12px;
}

/* ─── Reset & base ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  {
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--charcoal);
  -webkit-font-smoothing: antialiased;
}
img   { display: block; max-width: 100%; }
a     { text-decoration: none; color: inherit; }

/* ─── Hero ──────────────────────────────────────────────────────────────── */
.hero {
  background: var(--hero-bg);
  padding: 96px 60px 104px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  left: 50%;
  top: -20%;
  transform: translateX(-50%);
  width: 80%;
  height: 140%;
  background: radial-gradient(
    ellipse 70% 60% at 50% 48%,
    rgba(129, 20, 44, 0.55) 0%,
    rgba(129, 20, 44, 0.25) 40%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-logo {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 36px;
}

.hero-logo-mark {
  width: 68px;
  height: 68px;
  border-radius: 12px;
  object-fit: contain;
  border: 1.5px solid rgba(255,255,255,0.18);
  box-shadow: 0 4px 20px rgba(0,0,0,0.55), 0 1px 6px rgba(0,0,0,0.35);
  flex-shrink: 0;
}

.hero-wordmark {
  font-size: 27px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
}
.hero-wordmark .wm-red { color: var(--crimson); }

.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(36px, 4.8vw, 64px);
  font-weight: 600;
  line-height: 1.10;
  color: #fff;
  margin-bottom: 40px;
  letter-spacing: -0.01em;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--crimson);
  color: #fff;
  border-radius: var(--radius-btn);
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: opacity 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}
.hero-cta:hover  { opacity: 0.85; transform: translateY(-1px); }
.hero-cta:active { opacity: 1;    transform: translateY(0); }


@media (max-width: 780px) {
  .hero { padding: 72px 28px 80px; }
  .hero-logo {
    flex-direction: column;
    gap: 14px;
    margin-bottom: 32px;
  }
  .hero-wordmark {
    font-size: clamp(16px, 5.2vw, 27px);
    letter-spacing: 0.18em;
  }
}

/* ─── Shared section elements ───────────────────────────────────────────── */
.section-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 14px;
}

.section-eyebrow--light {
  color: rgba(255,255,255,0.45);
}

.section-headline {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 24px;
}

/* ─── Story section ─────────────────────────────────────────────────────── */
.story-section {
  background: var(--paper);
  padding: 96px 60px 104px;
}

.story-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.story-inner .section-headline {
  color: var(--navy);
  margin-bottom: 32px;
}

.story-body {
  font-family: var(--font-serif);
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.72;
  color: var(--charcoal);
  opacity: 0.85;
}

.story-body p + p { margin-top: 1.4em; }

@media (max-width: 780px) {
  .story-section { padding: 72px 28px 80px; }
}

/* ─── Pillars section ───────────────────────────────────────────────────── */
.pillars-section {
  background: var(--navy);
  padding: 96px 60px 104px;
}

.pillars-inner {
  max-width: 1060px;
  margin: 0 auto;
}

.pillars-header {
  text-align: center;
  margin-bottom: 60px;
}

.pillars-header .section-headline {
  color: #fff;
}

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

.pillar-card {
  background: var(--paper);
  border-radius: 20px;
  padding: 36px 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 0;
  box-shadow: 0 8px 40px rgba(0,0,0,0.28), 0 2px 10px rgba(0,0,0,0.16);
}

.pillar-number {
  font-family: var(--font-sans);
  font-size: 48px;
  font-weight: 300;
  color: var(--crimson);
  line-height: 1;
  margin-bottom: 20px;
  letter-spacing: 0;
  opacity: 0.55;
}

.pillar-title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.1;
  margin-bottom: 16px;
  min-height: 64px;
  display: flex;
  align-items: flex-start;
}

.pillar-body {
  font-size: 15px;
  line-height: 1.70;
  color: var(--charcoal);
  opacity: 0.80;
}

@media (max-width: 860px) {
  .pillars-grid { grid-template-columns: 1fr; gap: 16px; }
  .pillars-section { padding: 72px 28px 80px; }
}

/* ─── App section ───────────────────────────────────────────────────────── */
.app-section {
  background: #f1e9e5;
  padding: 96px 60px 104px;
}

.app-inner {
  max-width: 1020px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 80px;
}

.app-text {
  flex: 1;
  min-width: 0;
}

.app-text .section-headline {
  color: var(--navy);
  margin-bottom: 24px;
}

.app-desc {
  font-size: 16px;
  line-height: 1.72;
  color: var(--charcoal);
  opacity: 0.80;
  margin-bottom: 36px;
}

.app-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-btn);
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.app-link:hover  { opacity: 0.85; transform: translateY(-1px); }
.app-link:active { opacity: 1;    transform: translateY(0); }

/* App screenshot */
.app-phone {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.app-phone-img {
  width: 280px;
  max-width: 100%;
  display: block;
}

@media (max-width: 780px) {
  .app-inner {
    flex-direction: column-reverse;
    gap: 52px;
    text-align: center;
    align-items: center;
  }
  .app-section { padding: 72px 28px 80px; }
  .app-phone-img { width: 240px; }
}

/* ─── Footer ────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  padding: 96px 60px 72px;
}

.footer-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 28px;
}

.footer-headline {
  font-family: var(--font-serif);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 600;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.footer-cta {
  display: inline-flex;
  align-items: center;
  background: var(--crimson);
  color: #fff;
  border-radius: 32px;
  padding: 16px 36px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.footer-cta:hover  { opacity: 0.85; transform: translateY(-1px); }
.footer-cta:active { opacity: 1;    transform: translateY(0); }

.footer-divider {
  width: 48px;
  height: 1px;
  background: rgba(255,255,255,0.15);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.38);
}
.footer-links a   { color: rgba(255,255,255,0.48); transition: color 0.15s; }
.footer-links a:hover { color: rgba(255,255,255,0.88); }
.footer-sep { opacity: 0.28; }

@media (max-width: 780px) {
  .site-footer { padding: 72px 28px 60px; }
}
