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

:root {
  --brand-primary: #1E2A38;
  --brand-accent: #2563EB;
  --brand-accent2: #F59E0B;
  --bg-main: #F8FAFC;
  --bg-surface: #FFFFFF;
  --bg-surface2: #F1F5F9;
  --text-primary: #0F172A;
  --text-secondary: #334155;
  --text-muted: #64748B;
  --text-inverse: #FFFFFF;
  --border: #E2E8F0;
  --border-subtle: #F1F5F9;
  --shadow-sm: 0 1px 2px rgba(15,23,42,0.06);
  --shadow-md: 0 10px 30px rgba(15,23,42,0.10);
  --shadow-lg: 0 18px 60px rgba(15,23,42,0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text-primary);
  background: var(--bg-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ---- NAV ---- */
nav {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  display: flex;
  align-items: center;
  /* gap: 10px; */
  text-decoration: none;
  font-weight: 700;
  font-size: 20px;
  color: var(--text-primary);
}
.nav-logo img {
  height: 48px;
  width: 48px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--brand-accent); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  background: var(--brand-accent);
  color: var(--text-inverse) !important;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: opacity 0.15s;
}
.nav-cta:hover { opacity: 0.9; }
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background: var(--bg-surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: background 0.15s;
  line-height: 1;
}
.lang-toggle:hover { background: var(--border); }

/* ---- HERO ---- */
.hero {
  padding: 80px 0 64px;
  text-align: center;
}
.hero h1 {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.15;
  max-width: 800px;
  margin: 0 auto;
  color: var(--text-primary);
}
.hero p {
  margin-top: 20px;
  font-size: 20px;
  color: var(--text-muted);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.hero-actions {
  margin-top: 36px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--brand-accent);
  color: var(--text-inverse);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: opacity 0.15s, box-shadow 0.15s;
}
.btn-primary:hover { opacity: 0.9; box-shadow: var(--shadow-md); }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: background 0.15s;
}
.btn-secondary:hover { background: var(--bg-surface2); }
.hero-note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-muted);
}

/* ---- SECTIONS ---- */
section { padding: 72px 0; }
.section-alt { background: var(--bg-surface); }

.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-header h2 {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-primary);
}
.section-header p {
  margin-top: 12px;
  font-size: 18px;
  color: var(--text-muted);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ---- FEATURE GRID ---- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s;
}
.feature-card:hover { box-shadow: var(--shadow-md); }
.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-surface2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}
.feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ---- BUILD SHOWCASE ---- */
.build-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.build-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}
.build-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.build-card-preview {
  background: var(--brand-primary);
  padding: 24px;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.build-card-preview code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: #94A3B8;
  white-space: pre;
  line-height: 1.6;
}
.build-card-preview code .kw { color: #818CF8; }
.build-card-preview code .fn { color: #67E8F9; }
.build-card-preview code .str { color: #86EFAC; }
.build-card-preview code .num { color: #FCA5A5; }
.build-card-body {
  padding: 20px;
}
.build-card-body h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
}
.build-card-body p {
  font-size: 14px;
  color: var(--text-muted);
}

/* ---- AUDIENCE ---- */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.audience-card {
  text-align: center;
  padding: 40px 28px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.audience-icon {
  font-size: 40px;
  margin-bottom: 16px;
}
.audience-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}
.audience-card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ---- WHY DIFFERENT ---- */
.diff-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.diff-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.diff-check {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: #DBEAFE;
  color: var(--brand-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  margin-top: 2px;
}
.diff-item h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 4px;
}
.diff-item p {
  font-size: 15px;
  color: var(--text-muted);
}

/* ---- WORKFLOWS ---- */
.workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.workflow-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.workflow-icon {
  font-size: 36px;
  margin-bottom: 16px;
}
.workflow-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}
.workflow-card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ---- DONATE ---- */
.donate {
  text-align: center;
  background: var(--brand-primary);
  color: var(--text-inverse);
  padding: 72px 0;
}
.donate h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-inverse);
}
.donate p {
  margin-top: 12px;
  font-size: 18px;
  color: #94A3B8;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.donate .btn-donate {
  margin-top: 32px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--brand-accent2);
  color: var(--brand-primary);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: opacity 0.15s;
}
.donate .btn-donate:hover { opacity: 0.9; }

/* ---- FOOTER ---- */
footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-copy {
  font-size: 14px;
  color: var(--text-muted);
}
.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}
.footer-links a {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--brand-accent); }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .hero { padding: 48px 0 40px; }
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 17px; }
  section { padding: 48px 0; }
  .section-header h2 { font-size: 28px; }
  .feature-grid,
  .build-grid,
  .audience-grid,
  .workflow-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .feature-grid,
  .build-grid,
  .audience-grid,
  .workflow-grid { grid-template-columns: repeat(2, 1fr); }
}
