@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600;9..40,700&display=swap');

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

:root {
  --bg: #ffffff;
  --bg-subtle: #fafafa;
  --text: #0a0a0a;
  --text-muted: #6b7280;
  --text-faint: #9ca3af;
  --border: #e5e7eb;
  --border-hover: #c4c9d4;
  --accent: #fe2c55;
  --accent-hover: #e0193e;
  --radius: 8px;
  --font-display: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-ui: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  font-family: var(--font-ui);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

/* ─── Animations ────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Nav ─────────────────────────────────────────────── */
.nav-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 48px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.logo {
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.3px;
  flex-shrink: 0;
}

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

.nav-links a {
  font-size: 13.5px;
  font-weight: 400;
  color: var(--text-muted);
  transition: color 0.15s;
}

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

/* ─── Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border-radius: 6px;
  font-family: var(--font-ui);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  white-space: nowrap;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--border-hover);
  color: var(--text);
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--border-hover);
  text-decoration: none;
}

/* ─── Hero ─────────────────────────────────────────────── */
.hero {
  padding: 120px 48px 108px;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 14px 5px 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 36px;
  letter-spacing: 0.02em;
  animation: fadeUp 0.5s ease both;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.5vw, 68px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1px;
  color: var(--text);
  margin-bottom: 24px;
  animation: fadeUp 0.5s 0.08s ease both;
}

.hero-title em {
  font-style: italic;
  font-weight: 400;
}

.hero-sub {
  font-size: 17px;
  font-weight: 300;
  color: var(--text-muted);
  max-width: 460px;
  margin: 0 auto 44px;
  line-height: 1.75;
  animation: fadeUp 0.5s 0.16s ease both;
}

.hero-cta {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.5s 0.24s ease both;
}

.hero-cta .btn {
  padding: 10px 22px;
  font-size: 14px;
}

/* ─── Hero social proof ───────────────────────────────── */
.hero-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 56px;
  animation: fadeUp 0.5s 0.32s ease both;
}

.proof-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.proof-item strong {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
}

.proof-item span {
  font-size: 12px;
  color: var(--text-faint);
  font-weight: 400;
}

.proof-divider {
  width: 1px;
  height: 32px;
  background: var(--border);
}

/* ─── Sections ─────────────────────────────────────────── */
.section {
  padding: 100px 48px;
  border-top: 1px solid var(--border);
}

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 12px;
  text-align: center;
}

.section-title {
  font-family: var(--font-display);
  text-align: center;
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 64px;
  line-height: 1.12;
  letter-spacing: -0.3px;
}

/* ─── Features rows ───────────────────────────────────── */
.features-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1020px;
  margin: 0 auto 16px;
  gap: 16px;
}

.features-row:last-child { margin-bottom: 0; }

.fcard {
  padding: 28px 24px;
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: all 0.2s ease;
  position: relative;
}

.fcard:hover {
  border-color: var(--border-hover);
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
  transform: translateY(-2px);
}

/* Large cards (row 1) */
.fcard--lg {
  padding: 32px 28px;
}

/* AI cards (row 2) */
.fcard--ai {
  background: linear-gradient(135deg, rgba(139,92,246,0.03), rgba(254,44,85,0.03));
  border-color: rgba(139,92,246,0.12);
}

.fcard--ai:hover {
  border-color: rgba(139,92,246,0.25);
  box-shadow: 0 4px 24px rgba(139,92,246,0.06);
}

.fcard-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #8b5cf6;
  background: rgba(139,92,246,0.08);
  border: 1px solid rgba(139,92,246,0.15);
  padding: 2px 8px;
  border-radius: 6px;
}

/* Icon containers */
.fcard-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border-radius: 10px;
}

.fcard-icon--red {
  background: rgba(254,44,85,0.06);
  color: #fe2c55;
}

.fcard-icon--blue {
  background: rgba(59,130,246,0.06);
  color: #3b82f6;
}

.fcard-icon--green {
  background: rgba(16,185,129,0.06);
  color: #10b981;
}

.fcard-icon--purple {
  background: rgba(139,92,246,0.06);
  color: #8b5cf6;
}

.fcard-icon--orange {
  background: rgba(245,158,11,0.06);
  color: #f59e0b;
}

.fcard-icon--teal {
  background: rgba(20,184,166,0.06);
  color: #14b8a6;
}

.fcard-icon--indigo {
  background: rgba(99,102,241,0.06);
  color: #6366f1;
}

.fcard h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}

.fcard p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.65;
  font-weight: 300;
}

/* ─── Steps ─────────────────────────────────────────────── */
.steps-section { background: var(--bg-subtle); }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 760px;
  margin: 0 auto;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 19px;
  left: calc(100% / 6 + 20px);
  right: calc(100% / 6 + 20px);
  height: 1px;
  background: var(--border);
  z-index: 0;
}

.step {
  text-align: center;
  padding: 0 28px;
  position: relative;
}

.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
}

.step h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.step p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
  font-weight: 300;
}

/* ─── Section subtitle ─────────────────────────────────── */
.section-subtitle {
  text-align: center;
  font-size: 16px;
  font-weight: 300;
  color: var(--text-muted);
  margin-top: -48px;
  margin-bottom: 56px;
}

/* ─── Pricing ──────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  max-width: 700px;
  margin: 0 auto;
  gap: 24px;
}

.pricing-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s;
  position: relative;
}

.pricing-card:hover {
  border-color: var(--border-hover);
}

.pricing-card--featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.pricing-card--featured:hover {
  border-color: var(--accent);
}

.pricing-badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 14px;
  border-radius: 20px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.pricing-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.pricing-price {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -1px;
  margin-bottom: 8px;
  line-height: 1;
}

.pricing-price span {
  font-size: 15px;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0;
}

.pricing-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.5;
  margin-bottom: 28px;
}

.pricing-features {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  flex: 1;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-muted);
  font-weight: 400;
  padding: 7px 0;
}

.pricing-features li svg {
  flex-shrink: 0;
  color: var(--accent);
}

.pricing-btn {
  width: 100%;
  justify-content: center;
  padding: 11px 20px;
  font-size: 14px;
}

/* ─── AI Tools showcase ───────────────────────────────── */
.tools-showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 960px;
  margin: 0 auto;
  gap: 20px;
}

.tool-card {
  padding: 28px 24px;
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.15s, background 0.15s;
}

.tool-card:hover {
  background: var(--bg-subtle);
  border-color: var(--border-hover);
}

.tool-header {
  margin-bottom: 12px;
}

.tool-emoji {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.1px;
}

.tool-card p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.65;
  font-weight: 300;
}

/* ─── CTA section ─────────────────────────────────────── */
.cta-section {
  text-align: center;
  padding: 120px 24px;
  border-top: 1px solid var(--border);
}

.cta-section h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: -0.3px;
}

.cta-section p {
  font-size: 16px;
  font-weight: 300;
  color: var(--text-muted);
  margin-bottom: 36px;
}

.cta-section .btn {
  padding: 12px 28px;
  font-size: 14px;
}

/* ─── Footer ──────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 48px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.2px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 12.5px;
  color: var(--text-faint);
  transition: color 0.15s;
}

.footer-links a:hover { color: var(--text-muted); }

.footer-copy {
  font-size: 12px;
  color: var(--text-faint);
}

/* ─── Auth forms (register, login, connect) ────────────── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: var(--bg);
}

.auth-box {
  width: 100%;
  max-width: 400px;
}

.auth-logo {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 40px;
  letter-spacing: -0.3px;
}

.auth-box h1 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.auth-box .auth-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.auth-error {
  background: rgba(254,44,85,0.06);
  border: 1px solid rgba(254,44,85,0.2);
  color: var(--accent);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 13.5px;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}

.form-group input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  font-family: var(--font-ui);
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.15s;
  outline: none;
}

.form-group input:focus {
  border-color: var(--text);
}

.form-group input::placeholder {
  color: var(--text-faint);
}

.auth-submit {
  width: 100%;
  padding: 11px;
  margin-top: 8px;
  font-size: 14px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0 20px;
  color: var(--text-faint);
  font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-footer {
  margin-top: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

.auth-footer a {
  color: var(--text);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Connect TikTok page */
.connect-box {
  text-align: center;
  max-width: 400px;
}

.connect-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.connect-box h1 {
  text-align: center;
}

.connect-box .auth-sub {
  text-align: center;
}

.connect-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 14px;
  margin-top: 8px;
}

/* ─── Content pages (privacy, terms, etc.) ─────────────── */
.content-page {
  max-width: 720px;
  margin: 60px auto;
  padding: 0 24px;
}

.content-page h1 {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
}

.content-page .last-updated { font-size: 13px; color: var(--text-muted); margin-bottom: 48px; }

.content-page h2 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin: 36px 0 12px;
}

.content-page p { font-size: 15px; color: var(--text-muted); margin-bottom: 16px; line-height: 1.7; }

.content-page ul {
  margin: 0 0 16px 24px;
  color: var(--text-muted);
  font-size: 15px;
}

.content-page ul li { margin-bottom: 6px; }
.content-page ol { margin: 0 0 16px 24px; color: var(--text-muted); font-size: 15px; }
.content-page ol li { margin-bottom: 6px; }
.content-page h3 { font-size: 14px; font-weight: 600; color: var(--text-muted); margin: 24px 0 8px; }
.content-page .meta { font-size: 13px; color: var(--text-muted); margin-bottom: 48px; }
.content-page code { background: var(--bg-subtle); border: 1px solid var(--border); border-radius: 4px; padding: 2px 6px; font-size: 13px; color: var(--accent); font-family: ui-monospace, monospace; }

/* Scope table */
.scope-table { width: 100%; border-collapse: collapse; margin: 12px 0 24px; font-size: 13px; }
.scope-table th { background: var(--bg-subtle); color: var(--text-muted); font-weight: 600; text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.scope-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); color: var(--text-muted); vertical-align: top; }
.scope-table tr:last-child td { border-bottom: none; }
.scope-table code { font-size: 12px; }

/* Danger button */
.btn-danger {
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(254,44,85,0.3);
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--font-ui);
}
.btn-danger:hover { background: rgba(254,44,85,0.06); }

/* Alert boxes */
.alert-box { padding: 12px 16px; border-radius: 6px; margin-top: 20px; font-size: 13.5px; font-weight: 500; }
.alert-box.success { background: rgba(0,160,80,0.06); color: #007a40; border: 1px solid rgba(0,160,80,0.2); }
.alert-box.error   { background: rgba(254,44,85,0.06); color: var(--accent); border: 1px solid rgba(254,44,85,0.2); }

/* ─── Responsive ────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-inner { padding: 0 20px; }
  .nav-links a:not(.btn) { display: none; }

  .hero { padding: 80px 20px 64px; }
  .hero-sub { font-size: 15.5px; }

  .section { padding: 64px 20px; }
  .section-title { font-size: 28px; margin-bottom: 40px; }

  .features-row {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 12px;
  }

  .tools-showcase { grid-template-columns: 1fr; }

  .steps { grid-template-columns: 1fr; gap: 36px; }
  .steps::before { display: none; }
  .step { padding: 0 12px; }

  .hero-proof { gap: 16px; margin-top: 40px; }
  .proof-item strong { font-size: 17px; }
  .proof-divider { height: 24px; }

  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }
  .section-subtitle { margin-top: -28px; margin-bottom: 40px; }

  .cta-section { padding: 80px 20px; }

  .site-footer { padding: 24px 20px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-links { flex-wrap: wrap; gap: 16px; }

  .content-page { margin: 32px auto; }
  .content-page h1 { font-size: 28px; }

  .scope-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
