/* RabitFlow — modern newsletter / audience engagement */
:root {
  --bg: #f0fdf4;
  --bg-deep: #ecfdf5;
  --bg-card: #ffffff;
  --ink: #0f172a;
  --ink-soft: #475569;
  --muted: #94a3b8;
  --mint: #10b981;
  --mint-deep: #059669;
  --mint-soft: #d1fae5;
  --line: #d1fae5;
  --accent: #06b6d4;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.15;
}

a { color: var(--mint-deep); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--ink); }

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

/* Header */
.site-header {
  background: rgba(240, 253, 244, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}
.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.02em;
}
.logo-mark {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--mint) 0%, var(--accent) 100%);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25);
}
.nav {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav a {
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 500;
}
.nav a:hover { color: var(--ink); }
.btn {
  display: inline-block;
  padding: 12px 22px;
  background: var(--ink);
  color: #fff;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover {
  transform: translateY(-1px);
  background: var(--mint-deep);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
  color: #fff;
}
.btn-primary {
  background: linear-gradient(135deg, var(--mint) 0%, var(--mint-deep) 100%);
  color: #fff;
}
.btn-primary:hover { background: linear-gradient(135deg, var(--mint-deep) 0%, var(--ink) 100%); }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
  margin-left: 10px;
}
.btn-outline:hover { background: var(--ink); color: #fff; }

/* Hero */
.hero {
  padding: 100px 0 120px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px; left: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--mint) 0%, transparent 65%);
  opacity: 0.12;
  border-radius: 50%;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -150px; right: -150px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 65%);
  opacity: 0.1;
  border-radius: 50%;
  pointer-events: none;
}
.hero-inner {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 28px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}
.pill-dot {
  width: 8px; height: 8px;
  background: var(--mint);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
}
.hero h1 {
  font-size: clamp(40px, 6vw, 68px);
  margin-bottom: 22px;
  letter-spacing: -0.03em;
}
.hero h1 .grad {
  background: linear-gradient(135deg, var(--mint) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p {
  font-size: 20px;
  color: var(--ink-soft);
  max-width: 620px;
  margin: 0 auto 36px;
}
.hero-cta { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* Visual mockup */
.mockup {
  margin: 80px auto 0;
  max-width: 900px;
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px -30px rgba(15, 23, 42, 0.25);
  overflow: hidden;
  position: relative;
}
.mockup-bar {
  display: flex;
  gap: 6px;
  padding: 14px 18px;
  background: var(--bg-deep);
  border-bottom: 1px solid var(--line);
}
.mockup-bar span {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--line);
}
.mockup-body {
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 280px;
}
.mockup-side {
  background: var(--bg-deep);
  padding: 20px 14px;
  border-right: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-soft);
}
.mockup-side div {
  padding: 8px 12px;
  border-radius: 8px;
  margin-bottom: 4px;
}
.mockup-side div.active {
  background: var(--mint);
  color: #fff;
  font-weight: 500;
}
.mockup-main {
  padding: 24px 28px;
}
.mockup-main h4 {
  font-size: 18px;
  margin-bottom: 16px;
}
.mockup-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-soft);
}
.mockup-row:last-child { border-bottom: none; }
.mockup-row strong { color: var(--ink); font-weight: 600; }
.mockup-tag {
  display: inline-block;
  background: var(--mint-soft);
  color: var(--mint-deep);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 100px;
  font-weight: 600;
  margin-left: 8px;
}

/* Sections */
section { padding: 100px 0; }
.section-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--mint-deep);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.section-title {
  font-size: clamp(32px, 4.5vw, 48px);
  margin-bottom: 18px;
  max-width: 720px;
}
.section-sub {
  color: var(--ink-soft);
  font-size: 19px;
  max-width: 620px;
  margin-bottom: 56px;
}

/* Features */
.features {
  background: var(--bg-card);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature {
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 32px;
  border-radius: 16px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(15, 23, 42, 0.12);
  border-color: var(--mint);
}
.feature-icon {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--mint) 0%, var(--accent) 100%);
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  margin-bottom: 20px;
}
.feature h3 {
  font-size: 20px;
  margin-bottom: 10px;
}
.feature p {
  color: var(--ink-soft);
  font-size: 15px;
}

/* CTA strip */
.cta-strip {
  background: linear-gradient(135deg, var(--ink) 0%, #1e293b 100%);
  color: #fff;
  text-align: center;
  border-radius: 24px;
  padding: 64px 40px;
  margin: 80px auto;
  max-width: 1120px;
  position: relative;
  overflow: hidden;
}
.cta-strip::before {
  content: '';
  position: absolute;
  top: -50px; right: -50px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, var(--mint) 0%, transparent 70%);
  opacity: 0.3;
}
.cta-strip h2 { color: #fff; font-size: clamp(28px, 3.8vw, 40px); margin-bottom: 14px; position: relative; }
.cta-strip p { color: #cbd5e1; margin-bottom: 28px; max-width: 520px; margin-left: auto; margin-right: auto; position: relative; }
.cta-strip .btn { position: relative; }

/* Page content */
.page {
  padding: 80px 0;
  max-width: 760px;
  margin: 0 auto;
}
.page h1 {
  font-size: clamp(36px, 5vw, 52px);
  margin-bottom: 14px;
}
.page .meta {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.page h2 { font-size: 26px; margin: 40px 0 14px; }
.page h3 {
  font-size: 18px;
  margin: 28px 0 10px;
  font-weight: 600;
}
.page p, .page li {
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.page ul { padding-left: 22px; margin-bottom: 14px; }
.page strong { color: var(--ink); }

/* Forms */
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 36px;
  margin-top: 24px;
  box-shadow: 0 8px 30px -15px rgba(15, 23, 42, 0.08);
}
.form-field { margin-bottom: 20px; }
label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--ink);
}
input, textarea, select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  background: var(--bg);
  color: var(--ink);
  transition: border-color .15s ease, background .15s ease;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--mint);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}
textarea { min-height: 120px; resize: vertical; }

.notice {
  background: var(--mint-soft);
  border-left: 3px solid var(--mint-deep);
  padding: 16px 20px;
  border-radius: 8px;
  margin: 20px 0;
  font-size: 15px;
  color: var(--ink-soft);
}
.notice strong { color: var(--ink); }

.success {
  display: none;
  background: #ecfdf5;
  border: 1px solid var(--mint);
  padding: 18px 22px;
  border-radius: 12px;
  margin-top: 22px;
  color: var(--mint-deep);
  font-size: 15px;
}
.success.show { display: block; }

/* Footer */
.site-footer {
  background: var(--bg-card);
  padding: 64px 0 32px;
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-grid h4 {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: var(--ink-soft); font-size: 14px; }
.footer-grid a:hover { color: var(--mint-deep); }
.footer-grid p { color: var(--ink-soft); font-size: 14px; }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 820px) {
  .feature-grid { grid-template-columns: 1fr; }
  .mockup-body { grid-template-columns: 1fr; }
  .mockup-side { display: none; }
  .nav { gap: 14px; }
  .nav a:not(.btn) { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}
