/* GROWIA landing page
   Design ported 1:1 from the Claude Design source (Growia Landing.dc.html). */

:root {
  --bg: #0E1727;
  --bg-alt: #111C2E;
  --border: #1D2A3E;
  --border-strong: #2E4560;
  --input-bg: #111C2E;
  --input-border: #24334A;
  --accent: #43AE5F;
  --accent-hover: #4FBD6C;
  --accent-soft: #9FE0B0;
  --text: #FFFFFF;
  --text-dim: #93A0B4;
  --text-dim2: #A7B3C4;
  --text-mono: #C6D0DD;
  --text-faint: #6B7A90;
  --radius: 10px;
  --wrap: 1180px;
  --font: Poppins, Helvetica, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, p { margin: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
input, select, textarea, button { font-family: inherit; }

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 6px 0;
  z-index: 100;
}
.skip-link:focus {
  left: 0;
}

section[id] {
  scroll-margin-top: 88px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(14, 23, 39, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
}
.logo:hover { color: var(--text); }
.logo-mark { color: var(--accent); flex: none; }
.logo-text {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav a:not(.btn) {
  font-size: 14px;
  color: var(--text-dim2);
}
.nav a:not(.btn):hover { color: var(--text); }

/* Buttons */
.btn {
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  padding: 15px 28px;
  border-radius: 7px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}
.btn-primary {
  background: var(--accent);
}
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-outline {
  border-color: #2C3C55;
  color: var(--text);
}
.btn-outline:hover { border-color: var(--accent); color: var(--text); }
.btn-nav {
  font-size: 14px;
  padding: 10px 18px;
}
.btn-lg { font-size: 15px; padding: 15px 28px; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero-glow {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image: radial-gradient(circle at 78% 18%, rgba(67, 174, 95, 0.22), transparent 55%);
  pointer-events: none;
}
.hero-mark {
  position: absolute;
  top: -60px;
  right: -80px;
  width: 620px;
  height: 744px;
  color: #16233A;
  opacity: 0.55;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  padding: 104px 24px 88px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
}
.badge {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #24334A;
  border-radius: 100px;
  padding: 7px 16px 7px 12px;
  background: rgba(17, 28, 46, 0.6);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-soft);
}
.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}
.hero h1 {
  font-size: 62px;
  line-height: 1.06;
  font-weight: 600;
  letter-spacing: -0.03em;
  max-width: 780px;
  text-wrap: pretty;
}
.accent { color: var(--accent); }
.lead {
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-dim);
  max-width: 620px;
  text-wrap: pretty;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 6px;
}
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
  width: 100%;
}
.stat {
  flex: 1 1 240px;
  min-width: 0;
  border-top: 2px solid var(--accent);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.stat-num {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: 14px;
  color: var(--text-dim);
}

/* Sections */
.section {
  border-bottom: 1px solid var(--border);
}
.section .wrap {
  padding: 96px 24px;
  display: flex;
  flex-direction: column;
  gap: 44px;
}
.section-alt { background: var(--bg-alt); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.section h2 {
  font-size: 42px;
  line-height: 1.14;
  font-weight: 600;
  letter-spacing: -0.025em;
  max-width: 620px;
  text-wrap: pretty;
}
.section-text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dim);
  max-width: 560px;
  text-wrap: pretty;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-end;
}
.section-head-main {
  flex: 1 1 480px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.section-head-main h2 { max-width: 560px; }
.section-head-aside {
  flex: 1 1 340px;
  min-width: 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dim);
  text-wrap: pretty;
}
.section-head-simple {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Pain cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.15s ease;
}
.card:hover { border-color: var(--border-strong); }
.card-index {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
}
.card-title {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.card-text {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-dim);
  text-wrap: pretty;
}

/* Process */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
}
.process-step {
  min-width: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 32px 24px 36px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.process-top {
  display: flex;
  align-items: center;
  gap: 10px;
}
.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.step-line {
  height: 1px;
  flex: 1;
  background: var(--border);
}
.process-step .card-title { font-size: 19px; }
.process-step .card-text { font-size: 14px; }

/* Tech marquee */
.tech-section { overflow: hidden; }
.tech-head {
  padding: 88px 24px 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.marquee-viewport {
  padding-bottom: 88px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  gap: 14px;
  animation: marquee 38s linear infinite;
}
.marquee-viewport:hover .marquee-track {
  animation-play-state: paused;
}
.marquee-group {
  display: flex;
  gap: 14px;
}
.tech-chip {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--text-mono);
  border: 1px solid var(--border);
  background: var(--bg-alt);
  border-radius: 8px;
  padding: 15px 26px;
  white-space: nowrap;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* AI section */
.wrap.ai-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 56px;
  align-items: center;
}
.ai-copy {
  flex: 1 1 460px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.ai-list {
  flex: 1 1 320px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.ai-row {
  background: var(--bg);
  padding: 22px 24px;
  display: flex;
  align-items: baseline;
  gap: 16px;
}
.ai-tag {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  flex: none;
}
.ai-desc {
  font-size: 14px;
  color: var(--text-dim);
}

/* About */
.wrap.about-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 56px;
}
.about-mark {
  flex: 0 0 auto;
  width: 148px;
  height: 178px;
  color: #182642;
}
.about-copy {
  flex: 1 1 480px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.about-copy h2 { max-width: 620px; }
.about-copy .section-text { max-width: 640px; line-height: 1.75; }

/* Contact */
.wrap.contact-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 56px;
  align-items: flex-start;
}
.contact-copy {
  flex: 1 1 400px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact-copy h2 {
  font-size: 44px;
  line-height: 1.12;
  max-width: 480px;
}
.contact-copy .section-text { max-width: 440px; }
.contact-email {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 8px;
  color: var(--accent);
}
.contact-email a {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-mono);
}
.contact-email a:hover { color: var(--accent); }

.contact-form {
  flex: 1 1 400px;
  min-width: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-mono);
}
.field input,
.field select {
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 7px;
  padding: 13px 14px;
  font-size: 15px;
  color: var(--text);
  outline: none;
}
.field input:focus,
.field select:focus {
  border-color: var(--accent);
}
.field input.is-invalid {
  border-color: #ff6b6b;
}
.field input.is-invalid:focus {
  border-color: #ff6b6b;
}
.field-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.btn-submit {
  margin-top: 6px;
  width: 100%;
  border: none;
}
.form-msg {
  font-size: 14px;
  text-align: center;
}
.form-msg-ok { color: var(--accent-soft); }
.form-msg-err { color: #ff9b9b; }

/* Footer */
.site-footer .footer-grid {
  padding: 64px 24px 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  justify-content: space-between;
}
.footer-brand {
  flex: 1 1 260px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-tagline { font-size: 14px; color: var(--text-dim); }
.footer-col {
  flex: 0 1 200px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-col-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.footer-col a { font-size: 14px; color: var(--text-mono); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border);
}
.footer-bottom .wrap {
  padding: 24px;
  font-size: 13px;
  color: var(--text-faint);
}

/* Responsive */
/* Force the two-column sections to stay side by side down to a real
   tablet width instead of relying on flex-basis math to decide when to
   wrap — that math wraps earlier than intended on some screens/zoom
   levels. Below 900px they intentionally stack (mobile-friendly). */
@media (min-width: 901px) {
  .wrap.ai-grid, .wrap.about-grid, .wrap.contact-grid {
    flex-wrap: nowrap;
  }
}

@media (max-width: 860px) {
  .hero h1 { font-size: 44px; }
  .section h2 { font-size: 32px; }
  .contact-copy h2 { font-size: 34px; }
}

@media (max-width: 640px) {
  .header-inner { height: 64px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; height: auto; }
  .nav { gap: 16px; justify-content: flex-start; width: 100%; }
  .hero-inner { padding: 64px 20px 56px; }
  .hero h1 { font-size: 34px; }
  .lead { font-size: 16px; }
  .section .wrap { padding: 64px 20px; }
  .section h2 { font-size: 28px; }
  .section-head { align-items: flex-start; }
  .stats { gap: 20px; }
  .stat { flex: 1 1 100%; }
  .contact-copy h2 { font-size: 30px; }
  .contact-form { padding: 24px; }
  .about-mark { width: 96px; height: 116px; }
  .hero-mark { width: 380px; height: 456px; top: -30px; right: -100px; }
}
