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

:root {
  --orange: #F07B1D;
  --orange-light: #F9A84D;
  --orange-dark: #C85E0A;
  --navy: #1A1F2E;
  --navy-light: #2D3348;
  --brown-accent: #8B5E3C;
  --cream: #FFF8E7;
  --cream-dark: #F5EDD8;
  --white: #FFFFFF;
  --text: #1A1F2E;
  --text-muted: #6B7280;
  --border: #E8E0D0;
  --code-bg: #1e2130;
  --radius: 14px;
  --radius-sm: 8px;
}

html { scroll-behavior: smooth; }

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

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.nav-inner {
  max-width: 1080px; margin: 0 auto;
  display: flex; align-items: center; gap: 32px;
  height: 64px;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--orange-light), var(--orange-dark));
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 800; font-size: 18px;
  letter-spacing: -1px;
}
.logo-icon.large { width: 64px; height: 64px; font-size: 32px; border-radius: 16px; }
.logo-icon.small { width: 28px; height: 28px; font-size: 14px; border-radius: 7px; }
.logo-text { font-size: 18px; font-weight: 700; color: var(--navy); letter-spacing: -0.5px; }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--text-muted); font-size: 14px; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--orange); }
.btn-github {
  display: flex; align-items: center; gap: 7px;
  background: var(--navy); color: white;
  padding: 8px 16px; border-radius: 8px;
  font-size: 13px; font-weight: 600; text-decoration: none;
  transition: background .2s; white-space: nowrap;
}
.btn-github:hover { background: var(--navy-light); }

/* HERO */
.hero {
  text-align: center;
  padding: 96px 24px 80px;
  background: linear-gradient(180deg, var(--cream) 0%, var(--white) 100%);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--cream-dark); border: 1px solid var(--border);
  color: var(--brown-accent); font-size: 13px; font-weight: 600;
  padding: 6px 14px; border-radius: 100px; margin-bottom: 28px;
}
.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800; line-height: 1.1;
  color: var(--navy); letter-spacing: -2px;
  margin-bottom: 20px;
}
.accent { color: var(--brown-accent); }
.hero-sub {
  font-size: 18px; color: var(--text-muted);
  max-width: 560px; margin: 0 auto 36px;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--navy); color: white;
  padding: 14px 28px; border-radius: 10px;
  font-size: 15px; font-weight: 700; text-decoration: none;
  transition: background .2s, transform .15s;
}
.btn-primary:hover { background: var(--navy-light); transform: translateY(-1px); }
.btn-primary.large { padding: 16px 36px; font-size: 16px; }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--cream-dark); color: var(--navy);
  border: 1.5px solid var(--border);
  padding: 14px 28px; border-radius: 10px;
  font-size: 15px; font-weight: 700; text-decoration: none;
  transition: background .2s;
}
.btn-secondary:hover { background: var(--cream); }

/* FEATURE CARDS */
.features { padding: 80px 0; background: var(--white); }
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(240,123,29,0.1); }
.card-icon {
  width: 48px; height: 48px;
  background: var(--cream-dark);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--orange); margin-bottom: 16px;
}
.card h3 { font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* PRIVACY */
.privacy { padding: 96px 0; background: var(--cream); }
.privacy-inner {
  display: grid; grid-template-columns: 1fr auto;
  gap: 64px; align-items: center;
}
.section-label {
  font-size: 12px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--orange);
  margin-bottom: 12px;
}
.section-label.center { text-align: center; }
.privacy-text h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; letter-spacing: -1px; color: var(--navy); margin-bottom: 16px; }
.privacy-text > p { font-size: 16px; color: var(--text-muted); margin-bottom: 28px; max-width: 480px; }
.privacy-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.privacy-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; color: var(--text); }
.check { color: var(--orange); font-weight: 700; flex-shrink: 0; margin-top: 1px; }
.privacy-list code { background: var(--cream-dark); padding: 1px 6px; border-radius: 4px; font-size: 13px; color: var(--brown-accent); }
.shield-box {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 40px 32px;
  text-align: center; color: var(--orange);
  min-width: 200px;
}
.shield-box p { font-size: 15px; font-weight: 700; color: var(--navy); margin-top: 16px; }
.shield-box p.small { font-size: 13px; color: var(--text-muted); font-weight: 400; margin-top: 4px; }

/* SELF HOST */
.selfhost { padding: 96px 0; background: var(--white); }
.selfhost h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; letter-spacing: -1px; color: var(--navy); margin-bottom: 12px; }
h2.center, p.center { text-align: center; }
.section-sub { font-size: 16px; color: var(--text-muted); max-width: 520px; margin: 0 auto 40px; }
.section-sub code { background: var(--cream); padding: 1px 6px; border-radius: 4px; font-size: 13px; color: var(--brown-accent); }

.tabs { display: flex; gap: 4px; background: var(--cream); border-radius: 10px; padding: 4px; width: fit-content; margin: 0 auto 36px; }
.tab {
  padding: 9px 22px; border-radius: 8px; border: none;
  font-size: 14px; font-weight: 600; cursor: pointer;
  background: transparent; color: var(--text-muted);
  transition: all .2s;
}
.tab.active { background: white; color: var(--navy); box-shadow: 0 1px 4px rgba(0,0,0,0.1); }

.tab-content { display: none; max-width: 720px; margin: 0 auto; }
.tab-content.active { display: block; }

.step { display: flex; gap: 20px; margin-bottom: 32px; }
.step-num {
  width: 32px; height: 32px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--orange-light), var(--orange-dark));
  color: white; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; margin-top: 2px;
}
.step-body { flex: 1; }
.step-body h4 { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.step-note { font-size: 14px; color: var(--text-muted); margin-bottom: 10px; }
.step-note code { background: var(--cream); padding: 1px 6px; border-radius: 4px; color: var(--brown-accent); }

.code-block {
  position: relative;
  background: var(--code-bg);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 12px;
  overflow-x: auto;
}
.code-block pre { margin: 0; }
.code-block code {
  font-family: 'Fira Code', 'Cascadia Code', monospace;
  font-size: 13px; color: #e2e8f0; line-height: 1.7;
  white-space: pre;
}
.copy-btn {
  position: absolute; top: 10px; right: 10px;
  background: rgba(255,255,255,0.1); color: #94a3b8;
  border: 1px solid rgba(255,255,255,0.15);
  padding: 4px 10px; border-radius: 5px;
  font-size: 11px; font-weight: 600; cursor: pointer;
  transition: all .2s;
}
.copy-btn:hover { background: rgba(255,255,255,0.2); color: white; }
.copy-btn.copied { color: #4ade80; border-color: #4ade80; }

.service-pills { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.pill {
  display: inline-block;
  background: var(--cream); border: 1px solid var(--border);
  color: var(--brown-accent); font-size: 12px; font-weight: 600;
  padding: 4px 12px; border-radius: 100px;
}

.manual-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 720px; margin: 0 auto; }
.manual-col h4 { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 12px; }

/* INTEGRATIONS */
.integrations { padding: 96px 0; background: var(--cream); }
.integrations h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; letter-spacing: -1px; color: var(--navy); margin-bottom: 12px; }
.integration-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px; }
.integration-card {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px;
  transition: transform .2s, box-shadow .2s;
}
.integration-card:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(240,123,29,0.1); }
.int-icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.email-icon { background: #FFF0E0; color: var(--orange); }
.notion-icon { background: #F0F0F0; color: #333; }
.integration-card h3 { font-size: 20px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.integration-card p { font-size: 14px; color: var(--text-muted); line-height: 1.7; margin-bottom: 20px; }
.int-env { display: flex; gap: 8px; flex-wrap: wrap; }
.int-env code {
  background: var(--cream); border: 1px solid var(--border);
  color: var(--brown-accent); font-size: 11px; font-weight: 600;
  padding: 3px 8px; border-radius: 5px;
}

/* CTA */
.cta { padding: 96px 24px; background: var(--navy); text-align: center; }
.cta-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.cta h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; color: white; letter-spacing: -1px; }
.cta p { font-size: 16px; color: rgba(255,255,255,0.6); max-width: 440px; }
.cta .btn-primary { background: var(--orange); margin-top: 8px; }
.cta .btn-primary:hover { background: var(--orange-light); }

/* FOOTER */
.footer { padding: 32px 24px; border-top: 1px solid var(--border); background: var(--white); }
.footer-inner { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-copy { font-size: 13px; color: var(--text-muted); margin-left: auto; }
.footer-link { font-size: 13px; font-weight: 600; color: var(--orange); text-decoration: none; }
.footer-link:hover { text-decoration: underline; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .privacy-inner { grid-template-columns: 1fr; }
  .shield-box { display: none; }
  .integration-cards { grid-template-columns: 1fr; }
  .manual-cols { grid-template-columns: 1fr; }
  .footer-copy { margin-left: 0; }
}
