:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f6f8fb;
  --color-bg-dark: #0a1628;
  --color-bg-darker: #060f1c;
  --color-text: #0f172a;
  --color-text-muted: #475569;
  --color-text-inverse: #f1f5f9;
  --color-accent: #14b8a6;
  --color-accent-hover: #0d9488;
  --color-border: #e2e8f0;
  --max-width: 1200px;
  --radius: 8px;
  --shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  --transition: 150ms ease;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--color-accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-accent-hover); }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.5em; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

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

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--color-border);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 1rem; padding-bottom: 1rem;
}
.brand { display: flex; align-items: center; gap: 0.75rem; color: var(--color-text); font-weight: 700; font-size: 1.125rem; }
.brand img { width: 36px; height: 36px; }
.brand span { letter-spacing: -0.01em; }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav a { color: var(--color-text); font-weight: 500; }
.nav a:hover, .nav a.active { color: var(--color-accent); }
.nav-cta {
  background: var(--color-accent); color: #fff !important;
  padding: 0.5rem 1.1rem; border-radius: var(--radius); font-weight: 600;
}
.nav-cta:hover { background: var(--color-accent-hover); color: #fff !important; }

.mobile-toggle { display: none; background: none; border: 0; cursor: pointer; font-size: 1.5rem; color: var(--color-text); }

@media (max-width: 768px) {
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: stretch; gap: 0;
    padding: 1rem 1.5rem; border-bottom: 1px solid var(--color-border); }
  .nav.open { display: flex; }
  .nav a { padding: 0.75rem 0; border-bottom: 1px solid var(--color-border); }
  .nav a:last-child { border-bottom: 0; }
  .mobile-toggle { display: block; }
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--color-bg-darker) 0%, var(--color-bg-dark) 100%);
  color: var(--color-text-inverse);
  padding: 6rem 0 5rem;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(20, 184, 166, 0.18), transparent 50%),
              radial-gradient(circle at 80% 70%, rgba(20, 184, 166, 0.10), transparent 50%);
  pointer-events: none;
}
.hero .container { position: relative; }
.hero .eyebrow {
  text-transform: uppercase; letter-spacing: 0.15em; font-size: 0.875rem; font-weight: 600;
  color: var(--color-accent); margin-bottom: 1rem;
}
.hero h1 { color: #fff; max-width: 900px; }
.hero p.lead { font-size: 1.25rem; color: rgba(241, 245, 249, 0.85); max-width: 700px; margin-bottom: 2rem; }

.btn {
  display: inline-block; padding: 0.85rem 1.75rem; border-radius: var(--radius);
  font-weight: 600; font-size: 1rem; cursor: pointer; border: 0;
  transition: all var(--transition);
}
.btn-primary { background: var(--color-accent); color: #fff !important; }
.btn-primary:hover { background: var(--color-accent-hover); color: #fff !important; transform: translateY(-1px); }
.btn-secondary {
  background: transparent; color: var(--color-text-inverse) !important;
  border: 1px solid rgba(241, 245, 249, 0.3);
}
.btn-secondary:hover { background: rgba(241, 245, 249, 0.1); }

.btn-row { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Sections */
.section { padding: 5rem 0; }
.section-alt { background: var(--color-bg-alt); }
.section-dark { background: var(--color-bg-dark); color: var(--color-text-inverse); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: rgba(241, 245, 249, 0.85); }

.section-eyebrow {
  text-transform: uppercase; letter-spacing: 0.15em; font-size: 0.875rem; font-weight: 600;
  color: var(--color-accent); margin-bottom: 0.75rem;
}
.section-intro { max-width: 750px; margin-bottom: 3rem; }
.section-intro p { font-size: 1.125rem; color: var(--color-text-muted); }
.section-dark .section-intro p { color: rgba(241, 245, 249, 0.75); }

/* Grid of cards */
.grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius);
  padding: 2rem; transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { color: var(--color-text); margin-bottom: 0.5rem; }
.card p { color: var(--color-text-muted); margin-bottom: 0; font-size: 0.95rem; }
.card a.card-link {
  display: inline-block; margin-top: 1rem; color: var(--color-accent); font-weight: 600; font-size: 0.9rem;
}
.card a.card-link::after { content: " →"; transition: transform var(--transition); display: inline-block; }
.card a.card-link:hover::after { transform: translateX(3px); }

/* Two-column block */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
@media (max-width: 768px) { .two-col { grid-template-columns: 1fr; gap: 2rem; } }

/* Founders */
.founders { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; margin-top: 2rem; }
.founder { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 2rem; }
.founder h3 { margin-bottom: 0.25rem; }
.founder .role { color: var(--color-accent); font-weight: 600; font-size: 0.9rem; margin-bottom: 1rem; }
.founder p { color: var(--color-text-muted); font-size: 0.95rem; }
.founder a { display: inline-block; margin-top: 0.5rem; font-size: 0.9rem; }

/* Forms */
.form-card {
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius);
  padding: 2.5rem; max-width: 640px; margin: 0 auto;
}
.form-grid { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.form-row { grid-column: 1 / -1; }

label { display: block; font-weight: 600; font-size: 0.875rem; margin-bottom: 0.4rem; color: var(--color-text); }
input, textarea, select {
  width: 100%; padding: 0.75rem 0.9rem; font-size: 1rem; font-family: inherit;
  border: 1px solid var(--color-border); border-radius: var(--radius); background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
}
input:focus, textarea:focus, select:focus {
  outline: 0; border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
}
textarea { min-height: 140px; resize: vertical; }
.form-msg { margin-top: 1rem; padding: 0.75rem 1rem; border-radius: var(--radius); font-size: 0.95rem; display: none; }
.form-msg.success { display: block; background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.form-msg.error { display: block; background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* Page header (for non-home pages) */
.page-header { background: var(--color-bg-dark); color: var(--color-text-inverse); padding: 5rem 0 4rem; }
.page-header h1 { color: #fff; margin-bottom: 0.5rem; }
.page-header p { color: rgba(241, 245, 249, 0.8); font-size: 1.125rem; max-width: 700px; margin: 0; }

/* Footer */
.site-footer { background: var(--color-bg-darker); color: rgba(241, 245, 249, 0.7); padding: 4rem 0 2rem; }
.site-footer .footer-grid {
  display: grid; gap: 2rem; grid-template-columns: 2fr 1fr 1fr 1fr; margin-bottom: 3rem;
}
@media (max-width: 768px) { .site-footer .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .site-footer .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem; }
.site-footer .brand { color: #fff; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer a { color: rgba(241, 245, 249, 0.7); }
.site-footer a:hover { color: var(--color-accent); }
.footer-bottom {
  border-top: 1px solid rgba(241, 245, 249, 0.1); padding-top: 1.5rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  font-size: 0.875rem;
}

/* Utility */
.text-center { text-align: center; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
