/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Colors */
  --color-primary:        #2E51A5;
  --color-primary-hover:  #244489;
  --color-primary-light:  #4A6FCA;
  --color-primary-subtle: #EEF2FB;
  --color-off-white:      #F8F9FC;
  --color-gray-200:       #E5E9F0;
  --color-gray-400:       #9DA5BC;
  --color-gray-700:       #4A5268;
  --color-gray-900:       #1A1F33;

  /* Typography */
  --font-serif:   'Playfair Display', Georgia, serif;
  --font-sans:    Helvetica, Arial, sans-serif;

  --text-sm:   0.875rem;  /* 14px */
  --text-base: 1rem;      /* 16px */
  --text-lg:   1.125rem;  /* 18px */
  --text-xl:   1.25rem;   /* 20px */
  --text-2xl:  1.5rem;    /* 24px */
  --text-3xl:  1.875rem;  /* 30px */
  --text-4xl:  2.25rem;   /* 36px */
  --text-5xl:  3rem;      /* 48px */
  --text-6xl:  3.75rem;   /* 60px */

  /* Layout */
  --container-max: 1200px;
  --nav-height:    68px;
  --section-pad:   5rem;

  /* Radii */
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  24px;
  --radius-pill: 9999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(30, 41, 80, 0.08);
  --shadow-md:  0 4px 16px rgba(30, 41, 80, 0.10);
  --shadow-lg:  0 8px 32px rgba(30, 41, 80, 0.14);

  /* Transitions */
  --transition-fast:   150ms ease;
  --transition-base:   250ms ease;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-gray-700);
  background-color: #FDFDF8;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

/* Focus visible */
:focus-visible {
  outline: 3px solid var(--color-primary-light);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ============================================================
   UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius-pill);
  padding: 0.625rem 1.5rem;
  cursor: pointer;
  border: none;
  transition: background-color var(--transition-fast), color var(--transition-fast),
              box-shadow var(--transition-fast), transform var(--transition-fast);
  white-space: nowrap;
}

.btn--primary {
  background-color: #0B0F26;
  color: #fff;
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background-color: #1a2040;
  box-shadow: 0 4px 14px rgba(11, 15, 38, 0.35);
  transform: translateY(-1px);
}

.btn--primary:active {
  transform: translateY(0);
  box-shadow: none;
}

/* ============================================================
   SECTION HEADING
   ============================================================ */
.section-heading {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  color: var(--color-gray-900);
  line-height: 1.2;
  font-size: var(--text-3xl);
}

@media (min-width: 640px) {
  .section-heading {
    font-size: var(--text-4xl);
  }
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background-color: #FDFDF8;
  border-bottom: 1px solid var(--color-gray-200);
}


.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Logo */
.header__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.header__logo:focus-visible {
  outline-offset: 4px;
}


/* Nav */
.nav {
  display: flex;
  align-items: center;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  role: list;
}

.nav__link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-gray-700);
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background-color var(--transition-fast);
  white-space: nowrap;
}

.nav__link:hover {
  color: var(--color-gray-900);
  background-color: var(--color-gray-200);
}

.nav__link--active {
  color: #0B0F26;
  font-weight: 600;
}

.nav__signin {
  margin-left: 0.5rem;
  padding: 0.5rem 1.25rem;
  font-size: var(--text-sm);
}

/* Hamburger toggle */
.nav__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--color-gray-900);
  border-radius: var(--radius-sm);
  transition: background-color var(--transition-fast);
}

.nav__toggle:hover {
  background-color: var(--color-primary-subtle);
  color: var(--color-primary);
}

.nav__toggle-icon--close {
  display: none;
}

/* When menu is open, swap icons */
.nav__toggle[aria-expanded="true"] .nav__toggle-icon--open {
  display: none;
}

.nav__toggle[aria-expanded="true"] .nav__toggle-icon--close {
  display: block;
}

/* ============================================================
   MOBILE NAV  (< 768px)
   ============================================================ */
@media (max-width: 767px) {
  .nav__toggle {
    display: flex;
  }

  .nav__menu {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background-color: #fff;
    border-bottom: 1px solid var(--color-gray-200);
    box-shadow: var(--shadow-md);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1.5rem 1rem;
    gap: 0.25rem;
    z-index: 99;
  }

  .nav__menu.nav__menu--open {
    display: flex;
  }

  .nav__link {
    padding: 0.625rem 0.75rem;
    font-size: var(--text-base);
    border-radius: var(--radius-sm);
  }

  .nav__signin {
    margin-left: 0;
    margin-top: 0.5rem;
    text-align: center;
  }
}

/* ============================================================
   MAIN
   ============================================================ */
main {
  min-height: calc(100vh - var(--nav-height));
}

/* Fixed footer layout — home and about pages */
.page-home,
.page-about {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page-home main,
.page-about main {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.page-home .hero {
  flex: 1;
  min-height: 0;
}

.page-about .about {
  flex: 1;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: calc(100vh - var(--nav-height));
  background-color: #FDFDF8;
  display: flex;
  align-items: center;
  padding-block: var(--section-pad);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 3rem;
}

.hero__content {
  max-width: 32rem;
}

.hero__heading {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  color: var(--color-gray-900);
  line-height: 1.08;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.hero__tagline {
  font-size: var(--text-lg);
  color: var(--color-gray-700);
  margin-bottom: 2rem;
  line-height: 1.6;
}


@media (min-width: 640px) {
  .hero__heading {
    font-size: 4rem;
  }
}

@media (min-width: 900px) {
  .hero__content {
    max-width: none;
  }

  .hero__heading {
    font-size: 6rem;
  }
}

/* ============================================================
   ABOUT US
   ============================================================ */
.about {
  padding-block: var(--section-pad);
  background-color: #FDFDF8;
}

.about__inner {
  position: relative;
  padding-top: 1.5rem;
}

.about__quote-mark {
  position: absolute;
  top: -1rem;
  left: -0.5rem;
  font-family: var(--font-serif);
  font-size: 10rem;
  line-height: 1;
  color: var(--color-primary-subtle);
  user-select: none;
  pointer-events: none;
  z-index: 0;
}

.about__body {
  position: relative;
  z-index: 1;
}

.about__body .section-heading {
  margin-bottom: 1.5rem;
}

.about__text {
  max-width: 70ch;
  line-height: 1.75;
  font-size: var(--text-lg);
  color: var(--color-gray-700);
  margin-bottom: 1.25rem;
}

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

/* ============================================================
   HOW TG WORKS
   ============================================================ */
.how-it-works {
  padding-block: var(--section-pad);
  background-color: var(--color-primary-subtle);
}

.how-it-works .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.how-it-works .section-heading {
  margin-bottom: 2.5rem;
}

/* Empty state card */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 3rem 2rem;
  border: 2px dashed var(--color-primary-light);
  border-radius: var(--radius-md);
  background-color: #fff;
  max-width: 480px;
  width: 100%;
}

.empty-state__icon {
  opacity: 0.7;
}

.empty-state__title {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-gray-900);
}

.empty-state__sub {
  font-size: var(--text-sm);
  color: var(--color-gray-400);
  max-width: 30ch;
  line-height: 1.6;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background-color: #FDFDF8;
  color: var(--color-gray-400);
  border-top: 1px solid var(--color-gray-200);
  padding-block: 1rem;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

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

.footer__link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: #0B0F26;
  transition: color var(--transition-fast);
}

.footer__link:hover {
  color: #1a2040;
}

/* ============================================================
   LARGE CONTAINER CLAMP (1200px+)
   ============================================================ */
@media (min-width: 1200px) {
  .container {
    padding-inline: 2rem;
  }
}
