/* Landing page styles — loaded globally to prevent FOUC on SSR */
.landing {
  min-height: 100vh;
  overflow-x: clip;
  background: var(--color-background);
  font-family: "Mulish", ui-sans-serif, system-ui, sans-serif;
  color: var(--color-foreground);
}

/* ─── Nav ─── */
.landing-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav-inner {
  max-width: 80rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 1rem;
}
@media (min-width: 768px) { .nav-inner { padding: 0 2rem; } }
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}
.nav-logo {
  height: 1.75rem;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.ai-pill {
  margin-left: 0.25rem;
  border-radius: 9999px;
  padding: 0.125rem 0.5rem;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #fff;
  background-color: var(--brand-flame);
}
.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.8);
}
@media (min-width: 768px) { .nav-links { display: flex; } }
.nav-links a { text-decoration: none; color: inherit; }
.nav-links a:hover { color: #fff; }
.nav-cta {
  margin-left: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  border-radius: 9999px;
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  background-color: var(--brand-flame);
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
  transition: transform 0.15s;
  text-decoration: none;
}
.nav-cta:hover { transform: scale(1.02); }

/* ─── Hero ─── */
.hero { position: relative; overflow: hidden; }
.hero-pattern-desktop {
  pointer-events: none;
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  height: 110%;
  width: auto;
  object-fit: contain;
  opacity: 0.9;
  display: none;
}
@media (min-width: 768px) { .hero-pattern-desktop { display: block; } }
@media (min-width: 1024px) { .hero-pattern-desktop { right: 3rem; } }
.hero-pattern-mobile {
  pointer-events: none;
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 6rem;
  width: 100%;
  object-fit: cover;
  object-position: top;
  opacity: 0.8;
  mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
}
@media (min-width: 768px) { .hero-pattern-mobile { display: none; } }
.hero-grid {
  position: relative;
  max-width: 80rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 3rem;
  padding: 5rem 1rem;
}
@media (min-width: 768px) {
  .hero-grid { grid-template-columns: repeat(12, 1fr); padding: 7rem 2rem; }
}
@media (min-width: 1024px) { .hero-grid { padding: 9rem 2rem; } }
.hero-text { color: #fff; }
@media (min-width: 768px) { .hero-text { grid-column: span 7; } }
.hero-heading {
  margin-top: 1rem;
  font-family: "Fira Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.025em;
}
.hero-body {
  margin-top: 1.5rem;
  max-width: 36rem;
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
}
@media (min-width: 768px) { .hero-body { font-size: 1.125rem; } }
.hero-sub {
  margin-top: 0.75rem;
  max-width: 36rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
}
.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}
.hero-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.3);
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
}
.hero-btn-outline:hover { background: rgba(255,255,255,0.1); }
.hero-stat {
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.8);
}
.stat-dot {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
}
.hero-bar { position: relative; height: 0.75rem; width: 100%; }
.hero-bar-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--brand-grass) 0%, var(--brand-green) 30%, var(--brand-cosmic) 100%);
}
.hero-bar-dot {
  position: absolute;
  top: -0.5rem;
  right: 12%;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 9999px;
  border: 2px solid rgba(255,255,255,0.2);
  background-color: var(--brand-flame);
}

/* ─── Sections ─── */
.section-white { background: var(--color-background); padding: 5rem 0; }
@media (min-width: 768px) { .section-white { padding: 7rem 0; } }
.section-light { position: relative; z-index: 10; background-color: #f6f8f7; padding: 5rem 0; }
@media (min-width: 768px) { .section-light { padding: 7rem 0; } }
.section-inner { max-width: 80rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 768px) { .section-inner { padding: 0 2rem; } }
.section-header { max-width: 42rem; }
.section-title {
  margin-top: 0.75rem;
  font-family: "Fira Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(1.5rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--color-foreground);
}
.section-body {
  margin-top: 1rem;
  font-size: 1.125rem;
  color: var(--color-muted-foreground);
  line-height: 1.6;
}

/* Eyebrow */
.section-eyebrow {
  font-family: "Fira Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}
.section-eyebrow.green { color: var(--brand-grass); }
.section-eyebrow.orange { color: var(--brand-flame); }
.section-eyebrow.teal { color: var(--brand-teal); }

/* Cards */
.card-grid-3 {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) { .card-grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card-grid-2 {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) { .card-grid-2 { grid-template-columns: repeat(2, 1fr); } }
.card-title {
  margin-top: 0.5rem;
  font-family: "Fira Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-foreground);
}
.card-body {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--color-muted-foreground);
}

/* Feature cards */
.feature-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid var(--color-border);
  background: var(--color-card);
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s;
}
.feature-card:hover { box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); }
.feature-icon {
  margin-bottom: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  color: #fff;
}
.card-deco {
  position: absolute;
  bottom: -2.5rem;
  right: -2.5rem;
  width: 6rem;
  height: 6rem;
  border-radius: 9999px;
  opacity: 0.1;
}

/* Step cards */
.step-card {
  border-radius: 1rem;
  background: #fff;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.step-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.step-number {
  font-family: "Fira Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
}
.step-icon {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  color: #fff;
}
.step-title { margin-top: 1.5rem; }

/* Decorative shapes */
.deco-shape {
  pointer-events: none;
  position: absolute;
  object-fit: contain;
}
.deco-left-top {
  left: -5rem;
  top: 2.5rem;
  height: 14rem;
  width: 14rem;
  opacity: 0.3;
}
.deco-right-bottom {
  right: -4rem;
  bottom: -10rem;
  z-index: 0;
  height: 24rem;
  width: 24rem;
}
@media (min-width: 768px) {
  .deco-right-bottom { height: 28rem; width: 28rem; }
}
.deco-left-top-small {
  left: -4rem;
  top: 0;
  height: 12rem;
  width: 12rem;
  transform: rotate(180deg);
  opacity: 0.25;
}
.landing .relative { position: relative; z-index: 1; }

/* Help section */
.help-grid {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 1024px) {
  .help-grid { grid-template-columns: 3fr 2fr; }
}
.help-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) { .help-cards { grid-template-columns: repeat(3, 1fr); } }
.help-card {
  display: flex;
  flex-direction: column;
  border-radius: 1rem;
  border: 1px solid var(--color-border);
  background: var(--color-card);
  padding: 1.75rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s;
}
.help-card:hover { box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); }
.help-bar {
  display: inline-block;
  height: 0.375rem;
  width: 2.5rem;
  border-radius: 9999px;
  margin-bottom: 1.25rem;
}
.prompt-panel {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 1rem;
  padding: 1.75rem;
  background-color: #f6f8f7;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05);
}
.prompt-deco {
  pointer-events: none;
  position: absolute;
  right: -1.5rem;
  bottom: -1.5rem;
  height: 5rem;
  width: 5rem;
  object-fit: contain;
  opacity: 0.35;
}
.prompt-box {
  margin-top: 1rem;
  border-radius: 0.75rem;
  background: #fff;
  padding: 1.25rem;
  font-size: 0.875rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--color-foreground);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  min-height: 7rem;
}
.prompt-cursor {
  margin-left: 0.125rem;
  display: inline-block;
  height: 1rem;
  width: 2px;
  vertical-align: -0.125rem;
  background-color: var(--brand-flame);
  animation: pulse 1s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* CTA */
.cta-section {
  position: relative;
  overflow: hidden;
  padding: 5rem 0;
}
@media (min-width: 768px) { .cta-section { padding: 6rem 0; } }
.cta-shape-tl {
  pointer-events: none;
  position: absolute;
  left: 0; top: 0;
  height: 11rem; width: 11rem;
  transform: rotate(180deg);
  object-fit: contain;
}
.cta-shape-tr {
  pointer-events: none;
  position: absolute;
  right: 2.5rem; top: 2.5rem;
  height: 6rem; width: 6rem;
  object-fit: contain;
}
.cta-shape-br {
  pointer-events: none;
  position: absolute;
  right: 0; bottom: 0;
  height: 11rem; width: 11rem;
  object-fit: contain;
}
.cta-inner {
  position: relative;
  max-width: 56rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
  color: #fff;
}
.cta-heading {
  font-family: "Fira Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(1.5rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
}
.cta-body {
  margin: 1.25rem auto 0;
  max-width: 36rem;
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
}
@media (min-width: 768px) { .cta-body { font-size: 1.125rem; } }

/* Responsible AI */
.resp-card {
  border-radius: 1rem;
  border: 1px solid var(--color-border);
  background: var(--color-card);
  padding: 1.75rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

/* Footer */
.landing-footer {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 3rem 0;
  color: #fff;
}
.footer-inner {
  max-width: 80rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0 1rem;
}
@media (min-width: 768px) {
  .footer-inner { flex-direction: row; padding: 0 2rem; }
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.footer-tagline {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.8);
}
.footer-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.875rem;
}
.footer-links a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
}
.footer-links a:hover { color: #fff; }
.footer-copy {
  max-width: 80rem;
  margin: 2rem auto 0;
  padding: 0 1rem;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.7);
}
@media (min-width: 768px) { .footer-copy { padding: 0 2rem; } }
