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

:root {
  --bg:        #0b1810;
  --bg2:       #0e1d13;
  --sidebar:   #111f16;
  --card:      #0f1c13;
  --border:    #1c2c20;
  --border2:   #243328;
  --text:      #dde8e2;
  --text-dim:  #8aab96;
  --green:     #267a50;
  --green-h:   #1f6341;
  --green-dim: rgba(38,122,80,.18);
  --green-glow:rgba(38,122,80,.35);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Space Grotesk', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  height: 64px;
  background: rgba(11,24,16,.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
}
.nav-brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav-brand-name { font-size: 1.1rem; font-weight: 600; color: var(--text); letter-spacing: -.01em; }
.nav-links { display: flex; align-items: center; gap: 1rem; }
.nav-link {
  color: var(--text-dim);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
  transition: color .2s;
}
.nav-link:hover { color: var(--text); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem 1.3rem;
  border-radius: 8px;
  font-family: inherit;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .18s;
  border: 1px solid transparent;
  text-decoration: none;
}
.btn-ghost { color: var(--text-dim); border-color: var(--border2); background: transparent; }
.btn-ghost:hover { color: var(--text); border-color: var(--green); }
.btn-primary { background: var(--green); color: #fff; border-color: var(--green); }
.btn-primary:hover { background: var(--green-h); border-color: var(--green-h); transform: translateY(-1px); box-shadow: 0 8px 24px var(--green-glow); }
.btn-large { padding: .8rem 2rem; font-size: 1rem; border-radius: 10px; }
.btn-outline { background: transparent; color: var(--text-dim); border-color: var(--border2); }
.btn-outline:hover { color: var(--text); border-color: var(--green); }
.btn-disabled,
.btn-disabled:hover {
  background: var(--border2);
  color: var(--text-dim);
  border-color: var(--border2);
  opacity: .55;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
  transform: none;
}
.invite-note {
  font-size: .78rem;
  color: var(--text-dim);
  margin: .55rem 0 0;
}

/* ── HERO ── */
.hero {
  min-height: 70vh;
  display: grid;
  place-items: center;
  padding: 4.9rem 2rem 3.5rem;
  position: relative;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: 10%; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 500px;
  background: radial-gradient(ellipse, rgba(38,122,80,.22) 0%, transparent 70%);
  pointer-events: none;
}
.hero-grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: .3;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 0%, transparent 80%);
}
.hero-inner { position: relative; text-align: center; max-width: 780px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .35rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--green-dim);
  background: var(--green-dim);
  color: #6eda9f;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}
.hero-badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #6eda9f;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(.7); }
}
.hero-title {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.03em;
  color: #fff;
  text-wrap: balance;
  margin-bottom: 1.5rem;
}
.hero-title em { font-style: normal; color: var(--green); }
.hero-sub {
  font-size: 1.15rem;
  color: var(--text-dim);
  line-height: 1.65;
  max-width: 520px;
  margin: 0 auto 2.5rem;
  text-wrap: pretty;
}
.hero-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-meta {
  margin-top: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.hero-meta-item {
  display: flex; align-items: center; gap: .5rem;
  font-size: .82rem; color: var(--text-dim);
}
.hero-meta-icon { width: 16px; height: 16px; color: var(--green); }

/* ── UI MOCK ── */
.mock-section { padding: 0 2rem 6rem; display: flex; justify-content: center; }
.mock-window {
  width: 100%; max-width: 960px;
  border-radius: 14px;
  border: 1px solid var(--border2);
  background: var(--sidebar);
  box-shadow: 0 40px 100px rgba(0,0,0,.6), 0 0 0 1px var(--border);
  overflow: hidden;
}
.mock-titlebar {
  height: 42px; background: #0d1a11;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; padding: 0 1rem; gap: .5rem;
}
.mock-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--border2); }
.mock-titlebar-label { font-size: .75rem; color: var(--text-dim); margin-left: .5rem; letter-spacing: .04em; }
.mock-screenshot { display: block; width: 100%; height: auto; background: var(--bg); }
.mock-sidebar {
  width: 200px; flex-shrink: 0;
  border-right: 1px solid var(--border);
  padding: 1rem;
  display: flex; flex-direction: column; gap: .5rem;
}
.mock-sidebar-label { font-size: .65rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); margin-bottom: .25rem; }
.mock-cat { display: flex; align-items: center; gap: .6rem; padding: .4rem .6rem; border-radius: 6px; font-size: .78rem; color: var(--text-dim); }
.mock-cat-dot { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.mock-sidebar-divider { height: 1px; background: var(--border); margin: .5rem 0; }
.mock-nav-item { display: flex; align-items: center; gap: .6rem; padding: .45rem .6rem; border-radius: 6px; font-size: .78rem; color: var(--text-dim); border: 1px solid transparent; }
.mock-nav-item.active { color: var(--text); border-color: var(--green); background: rgba(38,122,80,.12); }
.mock-main { flex: 1; padding: 1rem 1.25rem; overflow: hidden; display: flex; flex-direction: column; gap: .75rem; }
.mock-banner {
  border-radius: 10px;
  border: 1.5px solid rgba(38,122,80,.4);
  background: linear-gradient(135deg, rgba(38,122,80,.22), rgba(38,122,80,.06));
  padding: .75rem 1rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.mock-banner-pill { display: inline-block; padding: .2rem .7rem; border-radius: 999px; font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff; }
.mock-banner-text { font-size: .75rem; color: var(--text); font-weight: 600; }
.mock-banner-time { font-size: .85rem; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.mock-banner-btn { font-size: .68rem; padding: .25rem .75rem; border-radius: 6px; border: 1px solid rgba(255,255,255,.25); color: var(--text); background: rgba(38,122,80,.3); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.mock-calendar { flex: 1; position: relative; overflow: hidden; }
.mock-time-row { display: flex; align-items: flex-start; gap: 0; margin-bottom: 0; position: relative; }
.mock-hour { width: 48px; font-size: .62rem; color: var(--text-dim); text-align: right; padding-right: .5rem; flex-shrink: 0; font-variant-numeric: tabular-nums; margin-top: -6px; }
.mock-track { flex: 1; border-top: 1px solid var(--border); min-height: 40px; position: relative; }
.mock-slot { position: absolute; left: 2px; right: 2px; border-radius: 6px; padding: .25rem .5rem; font-size: .65rem; font-weight: 600; border: 1px solid; overflow: hidden; display: flex; flex-direction: column; gap: 1px; }
.mock-slot-time { opacity: .7; font-weight: 400; }

/* ── SECTIONS ── */
section { padding: 5rem 2rem; }
.section-label { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--green); font-weight: 600; margin-bottom: 1rem; }
.section-title { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 700; letter-spacing: -.02em; color: #fff; line-height: 1.15; text-wrap: balance; margin-bottom: 1rem; }
.section-sub { font-size: 1rem; color: var(--text-dim); line-height: 1.65; max-width: 480px; text-wrap: pretty; }
.section-divider { height: 1px; background: var(--border); max-width: 1100px; margin: 0 auto; }

/* ── FEATURES ── */
.features-section { max-width: 1100px; margin: 0 auto; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  margin-top: 4rem;
}
.feature-card { background: var(--card); padding: 2rem; display: flex; flex-direction: column; gap: 1rem; transition: background .2s; }
.feature-card:hover { background: var(--sidebar); }
.feature-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--green-dim);
  border: 1px solid rgba(38,122,80,.3);
  display: flex; align-items: center; justify-content: center;
}
.feature-icon svg { width: 22px; height: 22px; stroke: var(--green); fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.feature-title { font-size: 1.05rem; font-weight: 700; color: var(--text); letter-spacing: -.01em; }
.feature-desc { font-size: .88rem; color: var(--text-dim); line-height: 1.6; }

/* ── SELF-HOSTED STRIP ── */
.selfhosted-strip {
  background: linear-gradient(135deg, rgba(38,122,80,.12) 0%, transparent 60%);
  border-top: 1px solid var(--border2);
  border-bottom: 1px solid var(--border2);
  padding: 3rem 2rem;
}
.selfhosted-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 760px) { .selfhosted-inner { grid-template-columns: 1fr; } }
.selfhosted-prose { display: flex; flex-direction: column; gap: 1rem; }
.selfhosted-prose h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; letter-spacing: -.02em; color: #fff; line-height: 1.2; }
.selfhosted-prose p { font-size: .95rem; color: var(--text-dim); line-height: 1.65; }
.selfhosted-steps { display: flex; flex-direction: column; gap: .75rem; }
.selfhosted-step {
  display: flex; align-items: flex-start; gap: 1rem;
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: 10px;
  padding: .9rem 1.1rem;
}
.selfhosted-step-num {
  width: 28px; height: 28px; border-radius: 7px;
  background: var(--green-dim);
  border: 1px solid rgba(38,122,80,.35);
  color: #6eda9f;
  font-size: .78rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.selfhosted-step-text { font-size: .85rem; color: var(--text-dim); line-height: 1.5; }
.selfhosted-step-text strong { color: var(--text); display: block; margin-bottom: .1rem; font-size: .88rem; }
.code-snippet {
  background: #060e09;
  border: 1px solid var(--border2);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: .82rem;
  color: #6eda9f;
  line-height: 1.7;
  margin-top: .5rem;
}
.code-snippet .dim { color: #4a6354; }

/* ── PRICING ── */
.pricing-section { max-width: 1000px; margin: 0 auto; }
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 3.5rem;
}
@media (max-width: 680px) { .pricing-grid { grid-template-columns: 1fr; } }
.pricing-card {
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: 16px;
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  overflow: hidden;
}
.pricing-card.featured {
  border-color: rgba(38,122,80,.5);
  box-shadow: 0 0 40px rgba(38,122,80,.1), inset 0 0 40px rgba(38,122,80,.04);
}
.pricing-card.featured::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
}
.pricing-badge {
  position: absolute;
  top: 1.25rem; right: 1.25rem;
  background: var(--green);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .2rem .65rem;
  border-radius: 999px;
}
.pricing-tier { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); }
.pricing-price {
  display: flex;
  align-items: baseline;
  gap: .35rem;
}
.pricing-price-num { font-size: 3rem; font-weight: 700; letter-spacing: -.04em; color: #fff; line-height: 1; }
.pricing-price-period { font-size: .9rem; color: var(--text-dim); }
.pricing-desc { font-size: .88rem; color: var(--text-dim); line-height: 1.6; margin-top: -.5rem; }
.pricing-divider { height: 1px; background: var(--border); }
.pricing-features { display: flex; flex-direction: column; gap: .7rem; }
.pricing-feature { display: flex; align-items: flex-start; gap: .65rem; font-size: .88rem; color: var(--text-dim); }
.pricing-check {
  width: 18px; height: 18px; border-radius: 5px;
  background: var(--green-dim);
  border: 1px solid rgba(38,122,80,.3);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px;
}
.pricing-check svg { width: 10px; height: 10px; stroke: #6eda9f; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.pricing-feature-dim .pricing-check { background: rgba(255,255,255,.04); border-color: var(--border2); }
.pricing-feature-dim .pricing-check svg { stroke: var(--border2); }
.pricing-feature-dim { color: #4a6354; }
.pricing-cta { margin-top: auto; }

/* ── PLATFORMS ── */
.sync-section { max-width: 1100px; margin: 0 auto; }
.sync-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--border); border-radius: 14px; border: 1px solid var(--border); overflow: hidden; margin-top: 3.5rem; }
@media (max-width: 700px) { .sync-grid { grid-template-columns: 1fr; } }
.sync-card { background: var(--card); padding: 2.5rem 2rem; display: flex; flex-direction: column; gap: 1.5rem; }
.sync-platform-badge { display: inline-flex; align-items: center; gap: .5rem; padding: .3rem .85rem; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.sync-platform-badge.web { background: rgba(38,122,80,.15); border: 1px solid rgba(38,122,80,.3); color: #6eda9f; }
.sync-platform-badge.mobile { background: rgba(38,100,180,.15); border: 1px solid rgba(38,100,180,.3); color: #7ab4f5; }
.sync-card-title { font-size: 1.25rem; font-weight: 700; color: var(--text); letter-spacing: -.01em; }
.sync-card-desc { font-size: .88rem; color: var(--text-dim); line-height: 1.65; }
.sync-features { display: flex; flex-direction: column; gap: .6rem; margin-top: .25rem; }
.sync-feature { display: flex; align-items: flex-start; gap: .6rem; font-size: .85rem; color: var(--text-dim); }
.sync-feature-check { width: 16px; height: 16px; border-radius: 4px; background: var(--green-dim); border: 1px solid rgba(38,122,80,.3); display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }
.sync-feature-check svg { width: 10px; height: 10px; stroke: var(--green); fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.sync-visual { flex: 1; border-radius: 10px; border: 1px solid var(--border2); background: var(--sidebar); overflow: hidden; min-height: 140px; display: flex; flex-direction: column; }
.sync-visual img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.sync-visual-mobile { max-width: 180px; align-self: center; border-radius: 22px; border-width: 3px; min-height: 320px; aspect-ratio: 9 / 19.5; }
.sync-visual-mobile img { object-fit: cover; object-position: top center; }
.sync-visual-bar { height: 30px; background: #0d1a11; border-bottom: 1px solid var(--border); display: flex; align-items: center; padding: 0 .75rem; gap: .4rem; }
.sync-visual-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border2); }
.sync-visual-body { padding: .75rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.sync-row { height: 22px; border-radius: 5px; background: var(--border2); position: relative; overflow: hidden; }
.sync-row-fill { height: 100%; border-radius: 5px; opacity: .7; }

/* ── PHILOSOPHY ── */
.philosophy-section { max-width: 720px; margin: 0 auto; text-align: center; }
.blockquote {
  font-size: clamp(1.2rem, 2.5vw, 1.65rem);
  font-weight: 500;
  color: var(--text);
  line-height: 1.55;
  letter-spacing: -.01em;
  text-wrap: pretty;
  border-left: 3px solid var(--green);
  padding: 1.5rem 2rem;
  text-align: left;
  background: var(--green-dim);
  border-radius: 0 10px 10px 0;
  margin: 2.5rem 0;
}

/* ── CTA ── */
.cta-section { max-width: 680px; margin: 0 auto; text-align: center; padding: 4rem 2rem 6rem; }
.cta-card { padding: 3.5rem 3rem; background: var(--card); border: 1px solid var(--border2); border-radius: 20px; box-shadow: 0 0 60px rgba(38,122,80,.1); display: flex; flex-direction: column; align-items: center; gap: 1.25rem; }
.cta-card .hero-badge { margin-bottom: 0; }

/* ── FOOTER ── */
footer { border-top: 1px solid var(--border); padding: 2rem 2.5rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--text-dim); font-size: .85rem; }
.footer-brand img { width: 24px; height: 24px; border-radius: 6px; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-link { color: var(--text-dim); text-decoration: none; font-size: .82rem; transition: color .2s; }
.footer-link:hover { color: var(--text); }
.footer-copy { font-size: .78rem; color: #4a6354; }

@media (max-width: 600px) {
  nav { padding: 0 1.25rem; }
  .hero { padding: 4.2rem 1.25rem 2.1rem; }
  footer { flex-direction: column; align-items: flex-start; }
  .cta-card { padding: 2rem 1.5rem; }
  .blockquote { padding: 1rem 1.25rem; }
}
