@import url("https://fonts.googleapis.com/css2?family=Fraunces:wght@400;600;700&family=Manrope:wght@400;500;600;700&display=swap");

:root {
  --landing-font-body: "Manrope", "Avenir Next", "Helvetica Neue", sans-serif;
  --landing-font-display: "Fraunces", "Times New Roman", serif;
  --landing-ink: #1f2a24;
  --landing-ink-muted: #58665f;
  --landing-bg: #f6f1e8;
  --landing-panel: #fff8ee;
  --landing-panel-strong: #ffffff;
  --landing-border: #e3d8c8;
  --landing-accent: #2f6b57;
  --landing-accent-strong: #205245;
  --landing-accent-soft: #d9ede3;
  --landing-gold: #d0a26a;
  --landing-sand: #efe2d2;
  --landing-shadow: 0 22px 60px rgba(31, 24, 16, 0.12);
  --landing-radius: 18px;
  --landing-radius-sm: 12px;
}

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

body.landing-body {
  font-family: var(--landing-font-body);
  color: var(--landing-ink);
  background:
    radial-gradient(1200px 520px at 12% -10%, #fff2dc 0%, rgba(255, 242, 220, 0) 60%),
    radial-gradient(900px 520px at 90% 0%, #f1e6d5 0%, rgba(241, 230, 213, 0) 55%),
    linear-gradient(180deg, #f7f2ea 0%, #efe6db 100%);
  min-height: 100vh;
}

.landing-wrapper {
  width: 100%;
  overflow-x: hidden;
}

/* Navigation */
.landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 248, 238, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--landing-border);
}

.landing-nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.landing-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.landing-brand-mark {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--landing-accent) 0%, var(--landing-accent-strong) 100%);
  color: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 4px 12px rgba(47, 107, 87, 0.3);
}

.landing-brand-name {
  font-family: var(--landing-font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--landing-ink);
}

/* Buttons */
.landing-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--landing-radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 200ms ease;
  cursor: pointer;
  border: none;
}

.landing-btn-primary {
  background: linear-gradient(135deg, var(--landing-accent) 0%, var(--landing-accent-strong) 100%);
  color: white;
  box-shadow: 0 4px 16px rgba(47, 107, 87, 0.3);
}

.landing-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(47, 107, 87, 0.4);
}

.landing-btn-outline {
  background: transparent;
  color: var(--landing-accent);
  border: 2px solid var(--landing-accent);
}

.landing-btn-outline:hover {
  background: var(--landing-accent-soft);
}

.landing-btn-ghost {
  background: transparent;
  color: var(--landing-ink-muted);
}

.landing-btn-ghost:hover {
  color: var(--landing-accent);
}

.landing-btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

/* Auth (Sign in) */
.landing-auth {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 6rem 2rem 4rem;
}

.landing-auth-shell {
  width: 100%;
  max-width: 1100px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.landing-auth-title {
  font-family: var(--landing-font-display);
  font-size: 2.75rem;
  font-weight: 700;
  margin: 1rem 0 0.75rem;
  color: var(--landing-ink);
}

.landing-auth-names {
  font-size: 1.4rem;
  color: var(--landing-accent);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.landing-auth-description {
  font-size: 1.05rem;
  color: var(--landing-ink-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.landing-auth-note {
  background: var(--landing-panel);
  border-radius: var(--landing-radius-sm);
  padding: 1rem 1.2rem;
  border-left: 4px solid var(--landing-accent);
  color: var(--landing-ink-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.landing-auth-card {
  background: var(--landing-panel-strong);
  border-radius: var(--landing-radius);
  border: 1px solid var(--landing-border);
  box-shadow: var(--landing-shadow);
  padding: 2.5rem;
}

.landing-auth-card-title {
  font-family: var(--landing-font-display);
  font-size: 1.5rem;
  margin-bottom: 0.35rem;
  color: var(--landing-ink);
}

.landing-auth-card-subtitle {
  color: var(--landing-ink-muted);
  margin-bottom: 1.5rem;
}

.landing-auth-flash {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  border: 1px solid transparent;
}

.landing-auth-flash.notice {
  background: #e9f3ee;
  border-color: #c9e3d7;
  color: #1e4d3c;
}

.landing-auth-flash.alert {
  background: #fdeeee;
  border-color: #f1c7c7;
  color: #8f2f2f;
}

.landing-auth-form {
  display: grid;
  gap: 1.25rem;
}

.landing-auth-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.landing-auth-label {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--landing-ink);
  display: block;
}

.landing-auth-input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1.5px solid var(--landing-border);
  border-radius: 12px;
  font-size: 1rem;
  font-family: var(--landing-font-body);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.landing-auth-input::placeholder {
  color: #9ca3af;
}

.landing-auth-input:focus {
  outline: none;
  border-color: var(--landing-accent);
  box-shadow: 0 0 0 3px rgba(47, 107, 87, 0.12);
}

textarea.landing-auth-input {
  resize: vertical;
  min-height: 80px;
}

.landing-auth-actions {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.landing-auth-actions .landing-btn {
  width: 100%;
  justify-content: center;
}

.landing-auth-social .landing-btn {
  width: 100%;
  justify-content: center;
}

.landing-auth-links {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1rem;
  font-size: 0.875rem;
}

.landing-auth-links a {
  color: var(--landing-accent-strong);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.landing-auth-links a:hover {
  color: var(--landing-accent);
  text-decoration: underline;
}

.landing-auth-divider {
  margin: 1.5rem 0;
  position: relative;
  text-align: center;
  font-size: 0.85rem;
  color: var(--landing-ink-muted);
}

.landing-auth-divider::before,
.landing-auth-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 42%;
  height: 1px;
  background: var(--landing-border);
}

.landing-auth-divider::before {
  left: 0;
}

.landing-auth-divider::after {
  right: 0;
}

.landing-auth-social {
  display: grid;
  gap: 0.75rem;
}

.landing-auth-social form {
  margin: 0;
}

.landing-auth-flash {
  padding: 0.875rem 1rem;
  border-radius: 12px;
  font-size: 0.9rem;
  border: 1px solid transparent;
}

.landing-auth-flash.notice {
  background: #e9f3ee;
  border-color: #c9e3d7;
  color: #1e4d3c;
}

.landing-auth-flash {
  margin-bottom: 1rem;
}

.landing-auth-flash.alert {
  background: #fdeeee;
  border-color: #f1c7c7;
  color: #8f2f2f;
}

.landing-auth-help {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--landing-ink-muted);
}

/* Auth page variant */
.landing-hero--auth {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.landing-hero-content--auth {
  max-width: 480px;
  text-align: center;
}

/* Single card variant (login page without side content) */
.landing-auth-shell--single {
  grid-template-columns: 1fr;
  max-width: 480px;
  margin: 0 auto;
  justify-items: center;
}

.landing-auth-shell--single .landing-auth-card {
  width: 100%;
  text-align: left;
}

.landing-auth-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (max-width: 960px) {
  .landing-auth-shell {
    grid-template-columns: 1fr;
  }

  .landing-auth-card {
    padding: 2rem;
  }
}

@media (max-width: 600px) {
  .landing-auth {
    padding: 5rem 1.5rem 3rem;
  }

  .landing-auth-title {
    font-size: 2.2rem;
  }

  .landing-auth-names {
    font-size: 1.2rem;
  }
}

/* Hero Section */
.landing-hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8rem 2rem 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  min-height: 90vh;
}

.landing-eyebrow {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--landing-accent-soft);
  color: var(--landing-accent);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.landing-hero-title {
  font-family: var(--landing-font-display);
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  color: var(--landing-ink);
}

.landing-highlight {
  color: var(--landing-accent);
  position: relative;
}

.landing-highlight::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: var(--landing-gold);
  opacity: 0.4;
  border-radius: 4px;
  z-index: -1;
}

.landing-hero-subtitle {
  font-size: 1.2rem;
  color: var(--landing-ink-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.landing-hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Hero Visual */
.landing-hero-visual {
  display: flex;
  justify-content: center;
}

.landing-hero-card {
  background: var(--landing-panel-strong);
  border-radius: var(--landing-radius);
  box-shadow: var(--landing-shadow);
  overflow: hidden;
  width: 100%;
  max-width: 400px;
}

.landing-hero-card-header {
  background: var(--landing-sand);
  padding: 1rem;
  display: flex;
  gap: 0.5rem;
}

.landing-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--landing-border);
}

.landing-dot:first-child { background: #e5b3b3; }
.landing-dot:nth-child(2) { background: #e5dab3; }
.landing-dot:nth-child(3) { background: #b3e5c1; }

.landing-hero-card-body {
  padding: 2rem;
}

/* Auth form inside hero card */
.landing-hero-card-body .landing-auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.landing-hero-card-body .landing-auth-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.landing-hero-card-body .landing-auth-label {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--landing-ink);
  display: block;
}

.landing-hero-card-body .landing-auth-input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1.5px solid var(--landing-border);
  border-radius: 12px;
  font-size: 1rem;
  font-family: var(--landing-font-body);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.landing-hero-card-body .landing-auth-input::placeholder {
  color: #9ca3af;
}

.landing-hero-card-body .landing-auth-input:focus {
  outline: none;
  border-color: var(--landing-accent);
  box-shadow: 0 0 0 3px rgba(47, 107, 87, 0.12);
}

.landing-hero-card-body .landing-auth-actions {
  margin-top: 0.5rem;
}

.landing-hero-card-body .landing-auth-actions .landing-btn {
  width: 100%;
  justify-content: center;
}

.landing-hero-card-body .landing-auth-links {
  margin-top: 1rem;
  text-align: center;
}

.landing-hero-card-body .landing-auth-links a {
  color: var(--landing-accent-strong);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
}

.landing-hero-card-body .landing-auth-links a:hover {
  text-decoration: underline;
}

.landing-hero-card-body .landing-auth-divider {
  margin: 1.25rem 0;
  position: relative;
  text-align: center;
  font-size: 0.85rem;
  color: var(--landing-ink-muted);
}

.landing-hero-card-body .landing-auth-divider::before,
.landing-hero-card-body .landing-auth-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 42%;
  height: 1px;
  background: var(--landing-border);
}

.landing-hero-card-body .landing-auth-divider::before {
  left: 0;
}

.landing-hero-card-body .landing-auth-divider::after {
  right: 0;
}

.landing-hero-card-body .landing-auth-social {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.landing-hero-card-body .landing-auth-social form {
  margin: 0;
}

.landing-hero-card-body .landing-auth-social .landing-btn {
  width: 100%;
  justify-content: center;
}

.landing-preview-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--landing-bg);
  border-radius: var(--landing-radius-sm);
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.landing-preview-icon {
  font-size: 1.5rem;
}

.landing-preview-arrow {
  text-align: center;
  font-size: 1.5rem;
  color: var(--landing-accent);
  margin: 1rem 0;
}

.landing-preview-result {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.25rem;
  background: linear-gradient(135deg, var(--landing-accent) 0%, var(--landing-accent-strong) 100%);
  color: white;
  border-radius: var(--landing-radius-sm);
  font-weight: 600;
}

.landing-preview-magic {
  font-size: 1.5rem;
}

/* Sections */
.landing-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2rem;
}

.landing-section-alt {
  background: var(--landing-panel);
  max-width: 100%;
  margin: 0;
}

.landing-section-alt > * {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.landing-section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.landing-section-title {
  font-family: var(--landing-font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--landing-ink);
  margin-bottom: 1rem;
}

.landing-section-subtitle {
  font-size: 1.1rem;
  color: var(--landing-ink-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Features Grid */
.landing-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.landing-feature-card {
  background: var(--landing-panel-strong);
  padding: 2rem;
  border-radius: var(--landing-radius);
  border: 1px solid var(--landing-border);
  transition: all 200ms ease;
}

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

.landing-feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.landing-feature-card h3 {
  font-family: var(--landing-font-display);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--landing-ink);
}

.landing-feature-card p {
  color: var(--landing-ink-muted);
  line-height: 1.6;
}

/* Highlights */
.landing-highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  padding: 0 2rem;
}

.landing-highlight-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: var(--landing-panel-strong);
  border-radius: var(--landing-radius);
  border: 1px solid var(--landing-border);
}

.landing-highlight-badge {
  font-size: 2rem;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--landing-accent-soft);
  border-radius: var(--landing-radius-sm);
  flex-shrink: 0;
}

.landing-highlight-content h4 {
  font-family: var(--landing-font-display);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--landing-ink);
}

.landing-highlight-content p {
  color: var(--landing-ink-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* CTA Section */
.landing-cta {
  background: linear-gradient(135deg, var(--landing-accent) 0%, var(--landing-accent-strong) 100%);
  padding: 6rem 2rem;
  text-align: center;
}

.landing-cta-content h2 {
  font-family: var(--landing-font-display);
  font-size: 2.5rem;
  color: white;
  margin-bottom: 1rem;
}

.landing-cta-content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.landing-cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.landing-cta .landing-btn-primary {
  background: white;
  color: var(--landing-accent);
}

.landing-cta .landing-btn-primary:hover {
  background: var(--landing-sand);
}

.landing-cta .landing-btn-outline {
  border-color: white;
  color: white;
}

.landing-cta .landing-btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Footer */
.landing-footer {
  background: var(--landing-ink);
  padding: 3rem 2rem;
}

.landing-footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.landing-footer .landing-brand-mark {
  background: rgba(255, 255, 255, 0.1);
}

.landing-footer .landing-brand-name {
  color: white;
}

.landing-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.landing-footer-company {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
  margin-left: 52px;
}

.landing-footer-copy {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .landing-hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 6rem;
    min-height: auto;
  }

  .landing-hero-actions {
    justify-content: center;
  }

  .landing-hero-visual {
    order: -1;
  }

  .landing-hero-card {
    max-width: 350px;
  }

  .landing-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .landing-hero-title {
    font-size: 2.5rem;
  }

  .landing-section-title {
    font-size: 2rem;
  }

  .landing-features-grid {
    grid-template-columns: 1fr;
  }

  .landing-highlights {
    grid-template-columns: 1fr;
    padding: 0;
  }

  .landing-footer-content {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
}
