/* Design system aligned with notes.bitscorp.co (Draftify) */

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

:root {
  --bg:          #f5f0e1;
  --surface:     #ebe6d7;
  --surface2:    #e0dac8;
  --ink:         #1a1a1a;
  --ink50:       rgba(26,26,26,0.50);
  --ink20:       rgba(26,26,26,0.08);
  --green:       #86c6c1;
  --green-dark:  #5da8a2;
  --white:       #fff;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;

  --r-sm:  8px;
  --r-md:  14px;
  --r-lg:  20px;
  --r-xl:  28px;

  --shadow-card: 0 2px 16px rgba(26,26,26,0.08), 0 1px 3px rgba(26,26,26,0.05);
  --shadow-lift: 0 8px 40px rgba(26,26,26,0.14), 0 2px 8px rgba(26,26,26,0.06);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

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

.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--green-dark);
  background: rgba(134,198,193,0.18);
  padding: 4px 12px;
  border-radius: 20px;
}

/* ─── Nav ────────────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245,240,225,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ink20);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--ink50);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--ink); }

.nav-cta {
  background: var(--ink) !important;
  color: var(--bg) !important;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 12px !important;
  font-weight: 700 !important;
  transition: opacity 0.2s !important;
}

.nav-cta:hover { opacity: 0.8; }

.nav-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--ink);
  font-size: 20px;
}

/* ─── Hero ───────────────────────────────────────────────────── */
.hero {
  padding: 100px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(134,198,193,0.22) 0%, transparent 70%);
  pointer-events: none;
}

.hero-eyebrow { margin-bottom: 20px; position: relative; }

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(42px, 7vw, 82px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 24px;
  position: relative;
}

.hero h1 em {
  font-style: italic;
  color: var(--green-dark);
}

.hero-sub {
  max-width: 560px;
  margin: 0 auto 40px;
  font-size: 16px;
  color: var(--ink50);
  position: relative;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 64px;
  position: relative;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: var(--bg);
  padding: 14px 28px;
  border-radius: 30px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(26,26,26,0.18);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(26,26,26,0.22);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--ink);
  padding: 13px 24px;
  border-radius: 30px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  border: 1.5px solid var(--ink20);
  transition: border-color 0.2s, background 0.2s;
}

.btn-secondary:hover {
  border-color: var(--ink);
  background: rgba(26,26,26,0.03);
}

/* ─── Phone mockup ───────────────────────────────────────────── */
.mockup-wrap {
  position: relative;
  max-width: 340px;
  margin: 0 auto;
  filter: drop-shadow(0 24px 60px rgba(26,26,26,0.18));
}

.phone-frame {
  background: #1a1a1a;
  border-radius: 44px;
  padding: 14px;
  position: relative;
}

.phone-notch {
  width: 100px;
  height: 28px;
  background: #1a1a1a;
  border-radius: 0 0 18px 18px;
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.phone-screen {
  background: var(--bg);
  border-radius: 32px;
  overflow: hidden;
  min-height: 520px;
  padding: 42px 14px 18px;
  text-align: left;
}

.phone-status {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--ink50);
}

.screen-header { margin-bottom: 14px; }

.screen-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.screen-sub {
  font-size: 11px;
  color: var(--ink50);
  margin-top: 2px;
}

.insight-card {
  background: var(--white);
  border: 1px solid var(--ink20);
  border-radius: var(--r-md);
  padding: 12px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-card);
}

.insight-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 6px;
}

.insight-body {
  font-size: 12px;
  line-height: 1.45;
  color: var(--ink);
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.metric-chip {
  background: var(--surface);
  border: 1px solid var(--ink20);
  border-radius: var(--r-sm);
  padding: 8px;
  display: grid;
  gap: 2px;
}

.metric-chip span {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--ink50);
}

.metric-chip strong {
  font-size: 13px;
  font-weight: 700;
}

.note-list { display: grid; gap: 10px; margin-bottom: 12px; }

.note-card {
  background: var(--white);
  border: 1px solid var(--ink20);
  border-radius: var(--r-md);
  padding: 12px;
  box-shadow: var(--shadow-card);
}

.note-card-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 3px;
}

.note-card-meta {
  font-size: 10px;
  color: var(--ink50);
  letter-spacing: 0.4px;
  margin-bottom: 8px;
}

.note-badges { display: flex; flex-wrap: wrap; gap: 6px; }

.badge {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  background: var(--surface);
  color: var(--ink50);
}

.badge-voice { background: rgba(134,198,193,0.22); color: var(--green-dark); }
.badge-link  { background: rgba(26,26,26,0.06); }
.badge-doc   { background: rgba(245, 158, 11, 0.15); color: #b45309; }

.generate-btn-mock {
  background: var(--ink);
  color: var(--bg);
  text-align: center;
  border-radius: 16px;
  padding: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.float-badge {
  position: absolute;
  z-index: 3;
  background: var(--white);
  border: 1px solid var(--ink20);
  border-radius: 20px;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 700;
  box-shadow: var(--shadow-lift);
  white-space: nowrap;
}

.float-badge-1 { top: 12%; left: -42px; }
.float-badge-2 { top: 38%; right: -48px; }
.float-badge-3 { bottom: 18%; left: -36px; }

/* ─── Platforms strip ────────────────────────────────────────── */
.platforms-strip {
  padding: 0 0 72px;
}

.platforms-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.platform-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--ink20);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 700;
  transition: transform 0.2s, box-shadow 0.2s;
}

.platform-chip:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

/* ─── Sections ───────────────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-top: 12px;
}

.section-header h2 em {
  font-style: italic;
  color: var(--green-dark);
}

.features-section { padding: 40px 0 100px; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--surface);
  border-radius: var(--r-xl);
  padding: 32px 28px;
  border: 1px solid var(--ink20);
  transition: box-shadow 0.25s, transform 0.25s;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(134,198,193,0.14), transparent 55%);
  pointer-events: none;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(134,198,193,0.18);
  display: grid;
  place-items: center;
  font-size: 22px;
  margin-bottom: 18px;
  position: relative;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.4px;
  margin-bottom: 10px;
  position: relative;
}

.feature-card p {
  color: var(--ink50);
  font-size: 13px;
  line-height: 1.6;
  position: relative;
}

/* ─── How it works ───────────────────────────────────────────── */
.how-section {
  background: var(--surface);
  padding: 100px 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}

.step-num {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 900;
  line-height: 1;
  color: rgba(134,198,193,0.55);
  margin-bottom: 12px;
  letter-spacing: -2px;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.4px;
}

.step p {
  color: var(--ink50);
  font-size: 13px;
  line-height: 1.65;
}

/* ─── Protocol ───────────────────────────────────────────────── */
.protocol-section { padding: 100px 0; }

.protocol-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.protocol-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 900;
  letter-spacing: -1.4px;
  line-height: 1.1;
  margin: 12px 0 18px;
}

.protocol-copy h2 em {
  font-style: italic;
  color: var(--green-dark);
}

.protocol-copy > p {
  color: var(--ink50);
  max-width: 460px;
  margin-bottom: 22px;
}

.check-list {
  display: grid;
  gap: 12px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
}

.check-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(134,198,193,0.25);
  color: var(--green-dark);
  display: grid;
  place-items: center;
  font-size: 12px;
  flex: 0 0 auto;
  margin-top: 1px;
}

.protocol-panel {
  background: var(--white);
  border: 1px solid var(--ink20);
  border-radius: var(--r-xl);
  padding: 24px;
  box-shadow: var(--shadow-lift);
  display: grid;
  gap: 12px;
}

.protocol-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.protocol-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink50);
}

.protocol-value {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.4px;
}

.pill {
  background: rgba(134,198,193,0.22);
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
}

.protocol-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface);
  border-radius: var(--r-md);
  padding: 12px 14px;
  font-size: 12px;
  font-weight: 700;
}

.protocol-item strong {
  color: var(--green-dark);
}

/* ─── CTA ────────────────────────────────────────────────────── */
.cta-section {
  background: var(--ink);
  color: var(--bg);
  text-align: center;
  padding: 100px 0;
}

.cta-section h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin: 16px 0 16px;
}

.cta-section p {
  max-width: 480px;
  margin: 0 auto 36px;
  color: rgba(245,240,225,0.65);
  font-size: 15px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  color: var(--ink);
  border-radius: 14px;
  padding: 12px 18px;
  min-width: 168px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.store-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.28);
}

.store-btn span {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.15;
}

.store-btn small {
  font-size: 10px;
  font-weight: 700;
  color: var(--ink50);
}

.store-btn strong {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.btn-outline-light {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid rgba(245,240,225,0.25);
  color: var(--bg);
  padding: 14px 22px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  transition: background 0.2s, border-color 0.2s;
}

.btn-outline-light:hover {
  background: rgba(245,240,225,0.08);
  border-color: rgba(245,240,225,0.5);
}

/* ─── Footer ─────────────────────────────────────────────────── */
footer {
  background: #111;
  color: rgba(245,240,225,0.7);
  padding: 56px 0 28px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--bg);
  margin-bottom: 8px;
}

.footer-tagline {
  font-size: 12px;
  max-width: 260px;
  line-height: 1.55;
}

.footer-col {
  display: grid;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
}

.footer-col a:hover { color: var(--bg); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid rgba(245,240,225,0.1);
  padding-top: 20px;
  font-size: 11px;
  color: rgba(245,240,225,0.4);
}

/* ─── Motion ─────────────────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.in,
.feature-card.in,
.step.in,
.protocol-panel.in {
  opacity: 1;
  transform: none;
}

.feature-card,
.step,
.protocol-panel {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease, box-shadow 0.25s, border-color 0.25s;
}

.stagger-1 { transition-delay: 0.05s; }
.stagger-2 { transition-delay: 0.12s; }
.stagger-3 { transition-delay: 0.18s; }
.stagger-4 { transition-delay: 0.24s; }

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .protocol-grid { grid-template-columns: 1fr; }
  .float-badge-1,
  .float-badge-2,
  .float-badge-3 { display: none; }
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(245,240,225,0.98);
    border-bottom: 1px solid var(--ink20);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 12px;
  }

  .nav-links.open { display: flex; }

  .nav-links li a {
    display: block;
    padding: 12px 24px;
  }

  .nav-cta {
    margin: 8px 24px 0 !important;
    text-align: center;
  }

  .nav-menu-btn { display: block; }

  .hero { padding: 72px 0 56px; }

  .hero-actions { margin-bottom: 48px; }
}
