/* ============================================================
   Amorthia — design tokens
   ============================================================ */
:root {
  --radius: 0.5rem;

  --background: #fbf6ee;
  --foreground: #172319;
  --card: #fffbf6;
  --card-foreground: #172319;

  --primary: #1f3a29;
  --primary-foreground: #fbf6ee;
  --secondary: #f5e4d8;
  --secondary-foreground: #1f3a29;

  --muted: #f1eae0;
  --muted-foreground: #546256;
  --accent: #e3a88d;
  --accent-foreground: #172319;

  --border: #dfd6cb;
  --input: #e5dcd4;
  --ring: #1f3a29;

  --blush: #f1ceca;
  --sage: #a4bfac;
  --gold: #cd9a50;

  --gradient-hero: linear-gradient(135deg, #fbf6eef5, #fce1dec7);
  --gradient-veil: linear-gradient(180deg, #fbf6ee00 0%, #fbf6ee99 60%, #fbf6ee 100%);

  --shadow-soft: 0 30px 80px -40px #1f3a2959;
  --shadow-card: 0 1px 0 #dfd6cb, 0 20px 50px -30px #1f3a2933;

  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-sans: "Manrope", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #0d140e;
    --foreground: #f6f1e9;
    --card: #141d16;
    --card-foreground: #f6f1e9;

    --primary: #f3e2c7;
    --primary-foreground: #141d16;
    --secondary: #202c22;
    --secondary-foreground: #f6f1e9;

    --muted: #202c22;
    --muted-foreground: #aba397;
    --accent: #cd9a50;
    --accent-foreground: #0d140e;

    --border: #ffffff1f;
    --input: #ffffff26;
    --ring: #cd9a50;

    --gold: #cd9a50;

    --gradient-hero: linear-gradient(135deg, #0d140ef5, #1a120fc7);
    --gradient-veil: linear-gradient(180deg, #0d140e00 0%, #0d140e99 60%, #0d140e 100%);
    --shadow-soft: 0 30px 80px -40px #00000080;
    --shadow-card: 0 1px 0 #ffffff1f, 0 20px 50px -30px #00000080;
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
  font-weight: 500;
}

em {
  font-style: italic;
}

.text-gold {
  color: var(--gold);
}

.font-display {
  font-family: var(--font-display);
}

/* ============================================================
   Layout helpers
   ============================================================ */
.container {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.container--narrow {
  max-width: 48rem;
}

.eyebrow {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.45em;
  color: var(--muted-foreground);
  text-align: center;
}

.section {
  padding-block: 8rem;
}

@media (max-width: 768px) {
  .section {
    padding-block: 5rem;
  }
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  font-weight: 500;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  height: 2.75rem;
  padding-inline: 2.25rem;
  transition: background-color 0.2s, color 0.2s, opacity 0.2s;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 1px 3px 0 #0000001a;
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-outline {
  background-color: transparent;
  border-color: var(--border);
  color: var(--foreground);
}

.btn-outline:hover {
  background-color: var(--accent);
  color: var(--accent-foreground);
}

.btn-block {
  width: 100%;
}

.link-underline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--foreground);
  opacity: 0.7;
  text-underline-offset: 8px;
}

.link-underline:hover {
  text-decoration: underline;
  opacity: 1;
}

.icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  flex-shrink: 0;
}

/* ============================================================
   Header / nav
   ============================================================ */
.site-header {
  position: absolute;
  inset-inline: 0;
  top: 0;
  z-index: 20;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  line-height: 1;
}

.brand img {
  height: 2.25rem;
  width: auto;
  object-fit: contain;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
}

.nav-cta {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: var(--foreground);
  opacity: 0.7;
  transition: opacity 0.2s;
}

.nav-cta:hover {
  opacity: 1;
}

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

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background-image: var(--gradient-veil);
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
}

.hero-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 92vh;
  max-width: 56rem;
  margin-inline: auto;
  padding: 8rem 1.5rem;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  border: 1px solid var(--border);
  background-color: #fffbf6b3;
  backdrop-filter: blur(8px);
  border-radius: 999px;
  padding: 0.375rem 1.25rem;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: var(--muted-foreground);
}

.hero-title {
  font-size: 3rem;
  line-height: 1.05;
  color: var(--foreground);
}

@media (min-width: 640px) {
  .hero-title { font-size: 3.75rem; }
}

@media (min-width: 768px) {
  .hero-title { font-size: 4.5rem; }
}

@media (min-width: 1024px) {
  .hero-title { font-size: 5.5rem; }
}

.hero-subtitle {
  margin-top: 2.5rem;
  max-width: 36rem;
  font-size: 1rem;
  line-height: 1.625;
  color: var(--muted-foreground);
}

@media (min-width: 640px) {
  .hero-subtitle { font-size: 1.125rem; }
}

.hero-actions {
  margin-top: 3rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.hero-price {
  margin-top: 3rem;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: var(--muted-foreground);
}

.hero-price span {
  color: var(--foreground);
}

/* ============================================================
   Why Amorthia
   ============================================================ */
.divider-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2.5rem;
  color: var(--gold);
}

.section-title {
  margin-top: 1.25rem;
  margin-inline: auto;
  max-width: 48rem;
  text-align: center;
  font-size: 2.25rem;
  line-height: 1.25;
}

@media (min-width: 640px) {
  .section-title { font-size: 3rem; }
}

@media (min-width: 768px) {
  .section-title { font-size: 3.75rem; }
}

.section-lead {
  margin-top: 1.5rem;
  margin-inline: auto;
  max-width: 36rem;
  text-align: center;
  line-height: 1.625;
  color: var(--muted-foreground);
}

.features-grid {
  margin-top: 5rem;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  border: 1px solid var(--border);
  background-color: var(--card);
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.5s;
}

.feature-card:hover {
  transform: translateY(-4px);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.5rem;
  border-radius: 999px;
  background-color: var(--background);
  color: var(--gold);
  box-shadow: 0 0 0 1px var(--border);
  font-size: 1.25rem;
}

.feature-title {
  font-size: 1.5rem;
  letter-spacing: -0.025em;
}

.feature-text {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--muted-foreground);
}

/* ============================================================
   Preview section
   ============================================================ */
.section-muted {
  background-color: #f5e4d866;
}

@media (prefers-color-scheme: dark) {
  .section-muted {
    background-color: #202c2266;
  }
}

.section-muted .container {
  text-align: center;
}

.section-muted .btn {
  margin-top: 2.5rem;
}

/* ============================================================
   Pricing
   ============================================================ */
.pricing {
  text-align: center;
}

.pricing-amount {
  margin-top: 1.25rem;
  font-size: 3.75rem;
}

@media (min-width: 640px) {
  .pricing-amount { font-size: 4.5rem; }
}

.pricing-sub {
  margin-top: 1rem;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: var(--muted-foreground);
}

.pricing-text {
  margin: 2rem auto 0;
  max-width: 36rem;
  line-height: 1.625;
  color: var(--muted-foreground);
}

.pricing .btn {
  margin-top: 3rem;
}

/* ============================================================
   Contact
   ============================================================ */
.contact {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.contact .container {
  display: grid;
  gap: 3rem;
  padding-block: 6rem;
}

@media (min-width: 768px) {
  .contact .container {
    grid-template-columns: repeat(2, 1fr);
    padding-block: 8rem;
  }
}

.contact-eyebrow {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.45em;
  color: #fbf6eeb3;
}

.contact-title {
  margin-top: 1.25rem;
  font-size: 3rem;
  line-height: 1.25;
}

@media (min-width: 640px) {
  .contact-title { font-size: 3.75rem; }
}

.contact-text {
  margin-top: 2rem;
  max-width: 28rem;
  line-height: 1.625;
  color: #fbf6eecc;
}

.contact-email {
  margin-top: 3rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  letter-spacing: 0.025em;
  color: #fbf6eecc;
}

.contact-email .icon {
  color: var(--gold);
}

/* ============================================================
   Form
   ============================================================ */
.contact-form {
  border-radius: 1rem;
  background-color: var(--card);
  color: var(--card-foreground);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
}

@media (min-width: 640px) {
  .contact-form {
    padding: 2.5rem;
  }
}

.form-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-field label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3em;
}

.form-field input {
  width: 100%;
  height: 3rem;
  border: 1px solid var(--input);
  border-radius: calc(var(--radius) - 2px);
  background-color: transparent;
  padding-inline: 0.75rem;
  font-size: 0.875rem;
  font-family: var(--font-sans);
  color: var(--foreground);
}

.form-field input::placeholder {
  color: var(--muted-foreground);
}

.form-field input:focus {
  outline: 1px solid var(--ring);
  outline-offset: 1px;
}

.form-note {
  text-align: center;
  font-size: 0.6875rem;
  line-height: 1.625;
  color: var(--muted-foreground);
}

/* ============================================================
   Flash messages
   ============================================================ */
.flash-list {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  max-width: 24rem;
  padding-inline: 1rem;
}

.flash {
  border-radius: var(--radius);
  padding: 0.875rem 1.25rem;
  font-size: 0.875rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
  background-color: var(--card);
  color: var(--card-foreground);
  border: 1px solid var(--border);
}

.flash-success {
  border-color: var(--sage);
  color: var(--primary);
}

.flash-error {
  border-color: var(--destructive, #cc272e);
  color: #cc272e;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 3rem;
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--muted-foreground);
}

.site-footer img {
  height: 1.75rem;
  width: auto;
  object-fit: contain;
  opacity: 0.9;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 0.875rem;
  letter-spacing: 0.4em;
  color: var(--foreground);
}

.footer-copy {
  font-size: 0.625rem;
  letter-spacing: 0.4em;
}
