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

:root {
  --color-black: #0a0a0a;
  --color-charcoal: #1a1a1a;
  --color-muted: #6b6b6b;
  --color-muted-light: #9a9a9a;
  --color-white: #ffffff;
  --color-cream: #f7f5f2;
  --color-cream-dark: #ece9e4;
  --font-body: "DM Sans", system-ui, sans-serif;
  --font-display: "Playfair Display", Georgia, serif;
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 12px 40px rgba(0, 0, 0, 0.08);
  --radius: 4px;
  --container: 1200px;
  --slant: -14deg;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--color-charcoal);
  line-height: 1.7;
  background: var(--color-white);
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

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

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

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

/* Shared brand type */
.brand-serif {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  color: var(--color-black);
  letter-spacing: -0.03em;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  color: var(--color-black);
}

.logo__mark {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  font-style: italic;
  color: var(--color-black);
  letter-spacing: -0.06em;
  transform: skewX(var(--slant));
  display: inline-block;
  line-height: 1;
  padding: 4px 2px;
}

.logo__text {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  font-style: italic;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

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

.nav a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-charcoal);
  transition: color 0.2s, opacity 0.2s;
}

.nav a:hover {
  color: var(--color-black);
  opacity: 0.7;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 0;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s, opacity 0.25s;
  white-space: nowrap;
}

.btn:hover {
  opacity: 0.85;
}

.btn--trial {
  background: var(--color-black);
  color: var(--color-white);
  border-color: var(--color-black);
  flex-shrink: 0;
}

.btn--trial:hover {
  background: var(--color-charcoal);
  border-color: var(--color-charcoal);
  opacity: 1;
}

.btn--primary {
  background: var(--color-white);
  color: var(--color-black);
  border-color: var(--color-white);
}

.btn--primary:hover {
  background: transparent;
  color: var(--color-white);
  opacity: 1;
}

.btn--outline {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.65);
}

.btn--outline:hover {
  background: var(--color-white);
  color: var(--color-black);
  border-color: var(--color-white);
  opacity: 1;
}

.btn--dark {
  background: var(--color-black);
  color: var(--color-white);
  border-color: var(--color-black);
}

.btn--dark:hover {
  background: var(--color-charcoal);
  border-color: var(--color-charcoal);
  opacity: 1;
}

.btn--card {
  margin-top: 24px;
  width: 100%;
  background: transparent;
  color: var(--color-black);
  border-color: var(--color-black);
  padding: 11px 20px;
}

.btn--card:hover {
  background: var(--color-black);
  color: var(--color-white);
  opacity: 1;
}

.pricing-card--featured .btn--card {
  background: var(--color-black);
  color: var(--color-white);
}

.pricing-card--featured .btn--card:hover {
  background: var(--color-charcoal);
  border-color: var(--color-charcoal);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--color-black);
  transition: transform 0.2s, opacity 0.2s;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(10, 10, 10, 0.82) 0%, rgba(10, 10, 10, 0.62) 55%, rgba(10, 10, 10, 0.78) 100%),
    url("https://images.unsplash.com/photo-1554068865-24cecd4e34b8?w=1920&q=80") center / cover no-repeat;
  z-index: 0;
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 40%, rgba(255, 255, 255, 0.06) 0%, transparent 55%);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  color: var(--color-white);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 700;
  font-style: italic;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
  transform: skewX(-3deg);
  transform-origin: left center;
}

.hero__subtitle {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  font-weight: 300;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 40px;
  max-width: 540px;
  letter-spacing: 0.02em;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Discover section */
.discover {
  padding: 108px 0 120px;
  background: var(--color-cream);
}

.discover__intro {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 72px;
}

.discover__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  font-weight: 700;
  font-style: italic;
  line-height: 1.2;
  color: var(--color-black);
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.discover__description {
  font-size: 1rem;
  font-weight: 300;
  color: var(--color-muted);
  line-height: 1.85;
  letter-spacing: 0.02em;
}

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

.feature-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s, transform 0.3s;
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-black);
  margin-bottom: 24px;
}

.feature-card__icon svg {
  width: 28px;
  height: 28px;
  stroke-width: 1.5;
}

.feature-card__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  font-style: italic;
  color: var(--color-black);
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.feature-card__text {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--color-muted);
  line-height: 1.75;
  letter-spacing: 0.015em;
}

/* About section */
.about {
  padding: 108px 0 120px;
  background: var(--color-white);
}

.about__eyebrow {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted-light);
  margin-bottom: 48px;
}

.about__eyebrow--center {
  text-align: center;
  margin-bottom: 56px;
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.about__block {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.about__image-placeholder {
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: var(--color-cream);
  border: 1px dashed rgba(0, 0, 0, 0.12);
  color: var(--color-muted-light);
}

.about__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.about__placeholder-icon {
  width: 48px;
  height: 48px;
  opacity: 0.5;
}

.about__placeholder-label {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.about__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  font-style: italic;
  line-height: 1.2;
  color: var(--color-black);
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.about__text {
  font-size: 1rem;
  font-weight: 300;
  color: var(--color-muted);
  line-height: 1.85;
  letter-spacing: 0.02em;
}

.about__text + .about__text {
  margin-top: 16px;
}

/* Programs section */
.programs {
  padding: 108px 0 120px;
  background: var(--color-cream);
}

.programs__intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}

.programs__eyebrow {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted-light);
  margin-bottom: 16px;
}

.programs__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  font-weight: 700;
  font-style: italic;
  line-height: 1.2;
  color: var(--color-black);
  letter-spacing: -0.03em;
}

.programs__deadline {
  margin-top: 16px;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
  text-decoration: underline;
  text-underline-offset: 4px;
}

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

.pricing-card {
  background: var(--color-white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 40px 28px;
  text-align: center;
  transition: box-shadow 0.3s, transform 0.3s;
}

.pricing-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.pricing-card--featured {
  border-color: var(--color-black);
  box-shadow: var(--shadow-sm);
}

.pricing-card__name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  font-style: italic;
  color: var(--color-black);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.pricing-card__prices {
  margin-bottom: 16px;
}

.pricing-card__price-old {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 600;
  font-style: italic;
  color: #c0392b;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  opacity: 0.9;
}

.pricing-card__price {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 3.25rem);
  font-weight: 700;
  font-style: italic;
  color: var(--color-black);
  line-height: 1;
  letter-spacing: -0.04em;
}

.pricing-card__currency {
  font-size: 0.55em;
  vertical-align: super;
  margin-right: 2px;
}

.pricing-card__detail {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--color-muted);
  letter-spacing: 0.02em;
}

.programs__tagline {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 600;
  font-style: italic;
  text-align: center;
  color: var(--color-black);
  letter-spacing: -0.02em;
}

.programs__cta {
  margin-top: 40px;
  text-align: center;
}

/* Signup modal */
body.modal-open {
  overflow: hidden;
}

.signup-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.signup-modal[hidden] {
  display: none;
}

.signup-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(4px);
}

.signup-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--color-white);
  padding: 40px 32px 32px;
  box-shadow: var(--shadow-md);
}

.signup-modal__close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--color-muted);
  cursor: pointer;
  padding: 4px 8px;
}

.signup-modal__close:hover {
  color: var(--color-black);
}

.signup-modal__eyebrow {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted-light);
  margin-bottom: 12px;
}

.signup-modal__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  font-style: italic;
  color: var(--color-black);
  margin-bottom: 8px;
  letter-spacing: -0.03em;
}

.signup-modal__subtitle {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--color-muted);
  margin-bottom: 28px;
  line-height: 1.6;
}

.signup-form__field {
  margin-bottom: 18px;
}

.signup-form__field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-charcoal);
  margin-bottom: 8px;
}

.signup-form__optional {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  color: var(--color-muted-light);
}

.signup-form__field input,
.signup-form__field select,
.signup-form__field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  color: var(--color-charcoal);
  background: var(--color-cream);
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 12px 14px;
  border-radius: 0;
  transition: border-color 0.2s;
}

.signup-form__field input:focus,
.signup-form__field select:focus,
.signup-form__field textarea:focus {
  outline: none;
  border-color: var(--color-black);
}

.signup-form__field textarea {
  resize: vertical;
  min-height: 88px;
}

.signup-form__status {
  min-height: 1.4em;
  font-size: 0.9rem;
  margin-bottom: 12px;
  color: var(--color-muted);
}

.signup-form__status--success {
  color: #1a6b3c;
}

.signup-form__status--error {
  color: #c0392b;
}

.signup-form__submit {
  width: 100%;
}

/* Admin page */
.admin-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-cream);
}

.admin {
  width: 100%;
  padding: 48px 0;
}

.admin__inner {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
}

.admin__eyebrow {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted-light);
  margin-bottom: 16px;
}

.admin__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.2rem);
  font-weight: 700;
  font-style: italic;
  color: var(--color-black);
  margin-bottom: 16px;
}

.admin__count {
  font-size: 1rem;
  color: var(--color-muted);
  margin-bottom: 32px;
}

.admin__download {
  display: inline-flex;
  margin-bottom: 24px;
}

.admin__back {
  display: inline-block;
  font-size: 0.9rem;
  color: var(--color-muted);
  transition: color 0.2s;
}

.admin__back:hover {
  color: var(--color-black);
}

/* Refer section */
.refer {
  padding: 108px 0 120px;
  background: var(--color-white);
}

.refer__inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.refer__eyebrow {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted-light);
  margin-bottom: 16px;
}

.refer__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  font-weight: 700;
  font-style: italic;
  line-height: 1.2;
  color: var(--color-black);
  margin-bottom: 36px;
  letter-spacing: -0.03em;
}

.refer__terms {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.refer__terms li {
  font-size: 1rem;
  font-weight: 300;
  color: var(--color-muted);
  line-height: 1.75;
  letter-spacing: 0.02em;
  padding-left: 24px;
  position: relative;
}

.refer__terms li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 8px;
  height: 1px;
  background: var(--color-black);
}

.refer__terms strong {
  font-weight: 500;
  color: var(--color-charcoal);
}

/* Responsive */
@media (max-width: 1024px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }

  .about__grid {
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .nav,
  .btn--trial {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .header__inner.nav-open .nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--color-white);
    padding: 28px 24px;
    gap: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: var(--shadow-md);
  }

  .header__inner.nav-open .btn--trial {
    display: inline-flex;
    position: absolute;
    top: calc(76px + 220px);
    left: 24px;
    right: 24px;
    width: calc(100% - 48px);
  }

  .logo__text {
    font-size: 0.9rem;
  }

  .hero {
    min-height: auto;
    padding: 108px 0 72px;
  }

  .hero__title {
    transform: none;
  }

  .discover {
    padding: 72px 0 88px;
  }

  .about {
    padding: 72px 0 88px;
  }

  .about__eyebrow--center {
    margin-bottom: 40px;
  }

  .about__grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .programs {
    padding: 72px 0 88px;
  }

  .programs__intro {
    margin-bottom: 48px;
  }

  .programs__pricing {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }

  .refer {
    padding: 72px 0 88px;
  }

  .features {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
}
