/* ── Self-hosted Fonts (GDPR-compliant, no Google CDN) ── */

@font-face {
  font-family: 'DM Serif Display';
  src: url('fonts/DMSerifDisplay-latin-ext.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Serif Display';
  src: url('fonts/DMSerifDisplay-latin.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'DM Sans';
  src: url('fonts/DMSans-latin-ext.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  src: url('fonts/DMSans-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── Custom Properties (from apps/mobile/constants/theme.ts) ── */

:root {
  --petrol: #1A5C5E;
  --petrol-light: #2A7C7E;
  --petrol-dark: #0E3A3C;
  --petrol-soft: #E8F4F4;
  --turquoise: #2EC4B6;
  --turquoise-light: #7EDCD2;
  --beige: #F5F0E8;
  --beige-warm: #EDE5D8;
  --coral: #E8735A;
  --coral-dark: #D4604A;
  --coral-light: #F09A87;
  --coral-soft: #FDE8E2;
  --white: #FFFFFF;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-700: #374151;
  --gray-900: #111827;

  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-xxl: 48px;

  --text-xs: 12px;
  --text-sm: 14px;
  --text-md: 16px;
  --text-lg: 20px;
  --text-xl: 24px;
  --text-xxl: 32px;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  --max-width: 900px;
  --font-heading: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;
}

/* ── Reset ── */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: 400;
  line-height: 1.6;
  color: var(--gray-700);
  background: var(--gray-50);
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* ── Navbar ── */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--petrol-dark);
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

.navbar--scrolled {
  background: rgba(14, 58, 60, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.navbar__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
}

.navbar__logo img {
  height: 28px;
  width: auto;
}

.navbar__menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--petrol-dark);
  padding: var(--space-md) var(--space-lg) var(--space-lg);
  flex-direction: column;
  gap: var(--space-md);
}

.navbar__menu--open {
  display: flex;
}

.navbar__hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
}

.navbar__hamburger span {
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 1px;
  transition: transform 0.2s ease;
}

.navbar__cta {
  display: none;
}

@media (min-width: 640px) {
  .navbar__menu {
    display: flex;
    position: static;
    background: none;
    padding: 0;
    flex-direction: row;
    align-items: center;
    gap: var(--space-xl);
  }

  .navbar__hamburger {
    display: none;
  }

  .navbar__cta {
    display: inline-flex;
  }
}

/* ── Buttons ── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  text-decoration: none;
}

.btn:hover {
  transform: scale(1.03);
}

.btn--coral {
  background: var(--coral);
  color: var(--white);
}

.btn--coral:hover {
  background: var(--coral-dark);
  box-shadow: 0 4px 16px rgba(232, 115, 90, 0.35);
}

.btn--petrol {
  background: var(--petrol);
  color: var(--white);
}

.btn--petrol:hover {
  background: var(--petrol-light);
  box-shadow: 0 4px 16px rgba(26, 92, 94, 0.3);
}

.btn--sm {
  font-size: var(--text-xs);
  padding: 8px 20px;
}

/* ── Hero ── */

.hero {
  position: relative;
  min-height: 75vh;
  max-height: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(80px + var(--space-xxl)) var(--space-lg) var(--space-xxl);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(14, 58, 60, 0.7) 0%,
    rgba(14, 58, 60, 0.4) 50%,
    rgba(14, 58, 60, 0.8) 100%
  );
}

.hero__logo {
  width: 100px;
  height: 100px;
  margin-bottom: var(--space-lg);
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: var(--text-xxl);
  font-weight: 400;
  line-height: 1.3;
  color: var(--white);
  margin-bottom: var(--space-lg);
  max-width: 600px;
}

.hero__bold {
  color: var(--coral);
}

.hero .btn {
  margin-top: var(--space-md);
}

@media (min-width: 640px) {
  .hero {
    min-height: 80vh;
  }

  .hero__logo {
    width: 120px;
    height: 120px;
  }

  .hero h1 {
    font-size: 48px;
  }
}

/* ── AI Text ── */

.ai-text {
  text-align: center;
  padding: var(--space-xxl) var(--space-lg);
  background: var(--white);
}

.ai-text p {
  font-size: var(--text-lg);
  line-height: 1.7;
  max-width: 640px;
  margin: 0 auto;
  color: var(--gray-700);
}

.ai-text strong {
  color: var(--petrol);
  font-weight: 700;
}

/* ── Steps ── */

.steps {
  padding: var(--space-xxl) var(--space-lg);
  background: var(--white);
}

.steps h2 {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--gray-900);
  text-align: center;
  margin-bottom: var(--space-xl);
}

.steps__row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.steps__row::before {
  content: '';
  position: absolute;
  top: 21px;
  left: 50px;
  right: 50px;
  height: 2px;
  background: var(--gray-200);
  z-index: 0;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  flex: 1;
  position: relative;
  z-index: 1;
}

.step__circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--petrol);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--petrol);
}

.step__label {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--gray-500);
  text-align: center;
}

@media (min-width: 640px) {
  .steps h2 {
    font-size: var(--text-xxl);
  }

  .step__label {
    font-size: var(--text-sm);
  }
}

/* ── Pain Points ── */

.pain-grid {
  padding: var(--space-xxl) var(--space-lg);
  background: var(--gray-50);
}

.pain-grid__header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.pain-grid h2 {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--gray-900);
  margin-bottom: var(--space-sm);
}

.pain-grid__subtitle {
  font-size: var(--text-md);
  color: var(--gray-500);
}

.pain-grid__cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
  max-width: var(--max-width);
  margin: 0 auto;
}

.pain-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.pain-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.pain-card__img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}

.pain-card h3 {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--gray-900);
}

.pain-card p {
  font-size: var(--text-sm);
  color: var(--gray-500);
  line-height: 1.5;
}

@media (min-width: 640px) {
  .pain-grid h2 {
    font-size: var(--text-xxl);
  }

  .pain-grid__cards {
    grid-template-columns: 1fr 1fr;
  }
}

/* ── Testimonials ── */

.testimonials {
  padding: var(--space-xxl) var(--space-lg);
  background: var(--beige-warm);
}

.testimonials h2 {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--gray-900);
  text-align: center;
  margin-bottom: var(--space-xl);
}

.testimonial {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  max-width: 700px;
  margin: 0 auto var(--space-xxl);
  text-align: center;
}

.testimonial:last-child {
  margin-bottom: 0;
}

.testimonial__photo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--white);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.testimonial__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.testimonial__quote {
  font-size: var(--text-md);
  font-style: italic;
  color: var(--gray-700);
  line-height: 1.7;
  position: relative;
  padding-top: var(--space-lg);
}

.testimonial__quote::before {
  content: '\201C';
  font-family: var(--font-heading);
  font-size: 56px;
  font-style: normal;
  color: var(--petrol);
  opacity: 0.4;
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  line-height: 1;
}

.testimonial__name {
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--gray-900);
}

.testimonial__role {
  font-size: var(--text-xs);
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (min-width: 640px) {
  .testimonials h2 {
    font-size: var(--text-xxl);
  }

  .testimonial {
    flex-direction: row;
    text-align: left;
    gap: var(--space-xl);
  }

  .testimonial--reverse {
    flex-direction: row-reverse;
    text-align: right;
  }

  .testimonial--reverse .testimonial__quote::before {
    left: auto;
    right: 0;
    transform: none;
  }

  .testimonial__quote::before {
    left: 0;
    transform: none;
  }

  .testimonial__photo {
    width: 130px;
    height: 130px;
    flex-shrink: 0;
  }
}

/* ── Bottom CTA ── */

.bottom-cta {
  position: relative;
  padding: calc(var(--space-xxl) * 2) var(--space-lg);
  text-align: center;
  overflow: hidden;
}

.bottom-cta__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--petrol-dark);
}

.bottom-cta__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
}

.bottom-cta__logo {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-lg);
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}

.bottom-cta h2 {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--white);
  line-height: 1.4;
  margin-bottom: var(--space-lg);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.bottom-cta__subtext {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
  margin-top: var(--space-lg);
}

@media (min-width: 640px) {
  .bottom-cta h2 {
    font-size: 40px;
  }
}

/* ── Footer ── */

.footer {
  background: var(--petrol-dark);
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__links {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
}

.footer__links a {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s ease;
}

.footer__links a:hover {
  color: var(--white);
}

.footer__copyright {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.35);
}

/* ── Scroll Reveal Animations ── */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    transition: none;
    opacity: 1;
    transform: none;
  }
}
