:root {
  --bg: #f8fafc;
  --bg-alt: #ffffff;
  --bg-dark: #0f172a;
  --bg-darker: #020617;
  --text: #0f172a;
  --text-muted: #475569;
  --text-light: #e2e8f0;
  --accent: #10b981;
  --accent-deep: #059669;
  --accent-soft: #d1fae5;
  --border: #e2e8f0;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 10px rgba(15, 23, 42, 0.05), 0 10px 30px rgba(15, 23, 42, 0.08);
  --max-width: 1140px;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent-deep);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--accent);
}

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 250, 252, 0.85);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--text);
  font-size: 1rem;
}

.brand:hover {
  color: var(--text);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--bg-dark);
  color: var(--accent);
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.brand-mark.small {
  width: 28px;
  height: 28px;
  font-size: 0.75rem;
  border-radius: 8px;
}

.brand-name {
  letter-spacing: -0.01em;
}

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

.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-cta {
  padding: 8px 16px;
  background: var(--bg-dark);
  color: #fff !important;
  border-radius: 999px;
  font-weight: 600;
}

.nav-cta:hover {
  background: var(--bg-darker);
}

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

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 72px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px 400px at 90% 10%, rgba(16, 185, 129, 0.12), transparent 60%),
    radial-gradient(600px 400px at 10% 90%, rgba(15, 23, 42, 0.06), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 620px;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 16px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.eyebrow.centered {
  display: block;
  text-align: center;
  width: fit-content;
  margin-inline: auto;
  margin-bottom: 16px;
}

.eyebrow.light {
  background: rgba(16, 185, 129, 0.18);
  color: #a7f3d0;
}

h1 {
  margin: 0 0 20px;
  font-size: clamp(2.1rem, 4.5vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 800;
}

h2.section-title {
  margin: 0 0 16px;
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
}

h2.section-title.light {
  color: #fff;
}

.lede {
  font-size: 1.12rem;
  color: var(--text-muted);
  margin: 0 0 32px;
  max-width: 560px;
}

.lede strong {
  color: var(--text);
  font-weight: 600;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.08s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

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

.btn-primary:hover {
  background: var(--bg-darker);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover {
  background: #fff;
  border-color: #cbd5e1;
}

.btn-lg {
  padding: 14px 26px;
  font-size: 1.02rem;
}

/* Hero visual — abstract */
.hero-visual {
  position: relative;
  height: 360px;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.9;
}

.orb-1 {
  top: 20px;
  right: 30px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle at 30% 30%, #34d399, #059669 65%, #065f46);
  box-shadow: 0 20px 60px rgba(5, 150, 105, 0.35);
  animation: float 9s ease-in-out infinite;
}

.orb-2 {
  bottom: 30px;
  right: 140px;
  width: 110px;
  height: 110px;
  background: radial-gradient(circle at 30% 30%, #1e293b, #020617);
  opacity: 0.92;
  animation: float 11s ease-in-out infinite reverse;
}

.orb-3 {
  top: 140px;
  right: 180px;
  width: 70px;
  height: 70px;
  background: radial-gradient(circle at 30% 30%, #a7f3d0, #10b981);
  animation: float 7s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero { padding: 64px 0 48px; }
}

/* ---------- Sections ---------- */
.section {
  padding: 88px 0;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-sub {
  color: var(--text-muted);
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
  font-size: 1.05rem;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  margin-bottom: 18px;
}

.card-icon svg {
  width: 22px;
  height: 22px;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

@media (max-width: 860px) {
  .cards { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
}

/* Approach */
.approach-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 64px;
  align-items: start;
}

.approach-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 28px;
}

.approach-list h4 {
  margin: 0 0 6px;
  font-size: 1.08rem;
  font-weight: 700;
}

.approach-list p {
  margin: 0;
  color: var(--text-muted);
}

.approach-list li {
  padding-left: 20px;
  border-left: 3px solid var(--accent);
}

@media (max-width: 860px) {
  .approach-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-grid p {
  color: var(--text-muted);
  font-size: 1.02rem;
}

.stats {
  display: grid;
  gap: 16px;
}

.stat {
  padding: 24px 28px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.92rem;
}

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* Contact */
.section-contact {
  padding: 72px 0;
}

.contact-card {
  background: linear-gradient(135deg, #0f172a, #020617);
  color: #fff;
  border-radius: 24px;
  padding: 56px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.25), transparent 70%);
  pointer-events: none;
}

.contact-card .light {
  color: var(--text-light);
}

.small {
  font-size: 0.88rem;
}

/* Contact form */
.contact-copy {
  position: relative;
}

.contact-form {
  position: relative;
  display: grid;
  gap: 16px;
}

.form-row {
  display: grid;
  gap: 6px;
}

.form-row label {
  color: var(--text-light);
  font-size: 0.9rem;
  font-weight: 600;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(226, 232, 240, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-family: inherit;
  font-size: 0.98rem;
  line-height: 1.5;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: rgba(226, 232, 240, 0.45);
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
}

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

/* Honeypot — hidden from humans, visible to bots that parse HTML */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Turnstile widget — ensure it fits the dark card nicely */
.cf-turnstile {
  min-height: 65px;
}

.form-submit {
  margin-top: 4px;
  background: var(--accent);
  color: #042f2e;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.form-submit:hover {
  background: #34d399;
}

.form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(4, 47, 46, 0.25);
  border-top-color: #042f2e;
  animation: spin 0.7s linear infinite;
  display: none;
}

.form-submit.is-loading .btn-spinner {
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.form-status {
  margin: 4px 0 0;
  min-height: 1.2em;
  font-size: 0.92rem;
  color: var(--text-light);
}

.form-status.is-success {
  color: #a7f3d0;
}

.form-status.is-error {
  color: #fca5a5;
}

@media (max-width: 860px) {
  .contact-card { grid-template-columns: 1fr; padding: 36px; }
}

/* Footer */
.site-footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-grid > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand {
  font-weight: 600;
  color: var(--text);
}

.footer-note {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.9rem;
}

/* Focus rings */
a:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 999px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
