/* Leafgate Landing — v0 gradient + app content */

:root {
  --gradient: linear-gradient(145deg, #e8e0d4 0%, #c9bfb0 25%, #a8b5a0 50%, #8fa686 75%, #6b8f5e 100%);
  --foreground: #191A1F;
  --muted: #4b5563;
  --card-bg: rgba(255, 255, 255, 0.95);
  --card-border: rgba(255, 255, 255, 0.5);
  --ring: rgba(25, 26, 31, 0.15);
  --font-sans: 'Instrument Sans', system-ui, -apple-system, sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--foreground);
  background: var(--gradient);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.page {
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 20px 24px;
  position: relative;
  z-index: 10;
}

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

.nav-brand .logo {
  width: 32px;
  height: 32px;
  color: var(--foreground);
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--foreground);
}

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

.nav-links a {
  color: var(--foreground);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid var(--card-border);
  transition: background 0.2s;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.6);
}

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

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font-sans);
  border-radius: 9999px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s, background 0.2s;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
}

.btn-primary {
  background: var(--foreground);
  color: #fff;
}

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

.btn-ghost {
  background: rgba(255, 255, 255, 0.4);
  color: var(--foreground);
  border: 1px solid var(--card-border);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.6);
}

.btn-outline {
  background: transparent;
  color: var(--foreground);
  border: 1px solid rgba(25, 26, 31, 0.3);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.3);
}

.btn-block {
  width: 100%;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: 48px;
}

.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px 64px;
  position: relative;
  z-index: 10;
}

.hero-badge {
  display: inline-block;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--foreground);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--card-border);
  border-radius: 9999px;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 20px;
  max-width: 720px;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--muted);
  line-height: 1.6;
  max-width: 560px;
  margin: 0 0 32px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-bottom: 32px;
}

.hero-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid var(--card-border);
  border-radius: 9999px;
}

.hero-note svg {
  flex-shrink: 0;
  color: var(--foreground);
}

/* Section common */
.section {
  padding: 80px 0;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
  margin: 0 0 12px;
}

.section-desc {
  font-size: 1.125rem;
  color: var(--muted);
  text-align: center;
  max-width: 560px;
  margin: 0 auto 48px;
  line-height: 1.6;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(25, 26, 31, 0.06);
  border-radius: var(--radius);
  margin-bottom: 16px;
  color: var(--foreground);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

/* Journey */
.journey-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 48px 32px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(8px);
}

.journey-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.journey-step {
  padding: 24px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
}

.step-num {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--muted);
  display: block;
  margin-bottom: 12px;
}

.journey-step h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 8px;
}

.journey-step p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.journey-cta {
  text-align: center;
}

/* FAQ */
.faq-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 48px 32px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(8px);
}

.faq-header {
  margin-bottom: 32px;
}

.faq-list {
  max-width: 640px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.6);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  font-size: 1rem;
  font-weight: 500;
  font-family: var(--font-sans);
  text-align: left;
  color: var(--foreground);
  background: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.faq-question:hover {
  background: rgba(255, 255, 255, 0.8);
}

.faq-icon {
  font-size: 1.25rem;
  font-weight: 300;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 0 20px 20px;
}

.faq-item.is-open .faq-answer {
  display: block;
}

.faq-answer p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  padding-top: 0;
}

/* Contact */
.contact-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 48px 32px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(8px);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  max-width: 900px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-form .field {
  margin-bottom: 20px;
}

.contact-form label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--foreground);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 16px;
  font-family: var(--font-sans);
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  color: var(--foreground);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--foreground);
  box-shadow: 0 0 0 2px var(--ring);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-info p {
  font-size: 1rem;
  color: var(--muted);
  margin: 0 0 20px;
  line-height: 1.5;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--foreground);
  text-decoration: none;
  margin-bottom: 24px;
}

.contact-email:hover {
  text-decoration: underline;
}

.contact-email svg {
  flex-shrink: 0;
}

/* Footer */
.footer {
  padding: 80px 0 32px;
}

.footer-inner {
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 48px 40px;
  margin-bottom: 32px;
  backdrop-filter: blur(8px);
}

.footer-brand .nav-brand {
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
  max-width: 360px;
}

.footer-links {
  display: flex;
  gap: 48px;
  margin-top: 24px;
}

.footer-links h4 {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin: 0 0 12px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  font-size: 14px;
  color: var(--foreground);
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-newsletter {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--card-border);
}

.footer-newsletter h4 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 12px;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 400px;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 14px;
  font-size: 16px;
  font-family: var(--font-sans);
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  color: var(--foreground);
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--foreground);
}

.footer-bottom {
  text-align: center;
}

.footer-bottom p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

@media (min-width: 769px) {
  .footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 48px;
  }
  .footer-links {
    margin-top: 0;
  }
  .footer-newsletter {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    grid-column: span 2;
  }
}
