:root {
  --bg: #F8F7F4;
  --surface: #FFFFFF;
  --surface-dark: #0D0D0D;
  --text: #0D0D0D;
  --text-muted: #6B6B6B;
  --accent: #FF4D00;
  --accent-soft: #FFF0EB;
  --border: #E5E4E0;
  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: 'Figtree', system-ui, sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* NAV */
.nav {
  padding: 20px 40px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(248, 247, 244, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.5px;
  color: var(--text);
}
.nav-tag {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--border);
  padding: 4px 10px;
  border-radius: 100px;
}

/* HERO */
.hero {
  padding: 140px 40px 100px;
  position: relative;
  overflow: hidden;
  min-height: 90vh;
  display: flex;
  align-items: center;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -2px;
  color: var(--text);
  margin-bottom: 28px;
}
.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 36px;
  max-width: 460px;
}
.hero-tools-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tool-pill {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 100px;
}
.hero-bg-blob {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,77,0,0.08) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  pointer-events: none;
}

/* WIDGET CARD */
.hero-visual {
  display: flex;
  justify-content: center;
}
.widget-card {
  background: var(--surface-dark);
  border-radius: var(--radius-lg);
  padding: 20px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.15);
}
.widget-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.widget-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.widget-dot.red { background: #FF5F57; }
.widget-dot.yellow { background: #FFBD2E; }
.widget-dot.green { background: #28CA41; }
.widget-title {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin-left: auto;
  font-family: var(--font-body);
}
.widget-body { display: flex; flex-direction: column; gap: 14px; }
.mock-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #e94560 100%);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}
.mock-thumb-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
}
.mock-play {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #e94560;
  margin-bottom: 12px;
}
.mock-title-bar {
  background: rgba(0,0,0,0.7);
  color: white;
  font-size: 10px;
  padding: 8px 10px;
  border-radius: 4px;
  font-family: var(--font-body);
}
.widget-controls { display: flex; gap: 8px; }
.mock-btn {
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
}
.mock-btn.primary {
  background: var(--accent);
  color: white;
  width: 100%;
}
.mock-caption-output, .mock-tags-output {
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 12px;
}
.mock-label {
  font-size: 10px;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 8px;
}
.mock-text-block {
  font-size: 11px;
  color: rgba(255,255,255,0.8);
  line-height: 1.5;
  font-family: var(--font-body);
}
.mock-tag-row { display: flex; gap: 6px; flex-wrap: wrap; }
.mock-tag {
  font-size: 10px;
  color: #FF9F7A;
  background: rgba(255,77,0,0.15);
  padding: 3px 8px;
  border-radius: 100px;
}

/* TOOLKIT */
.toolkit {
  padding: 100px 40px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.toolkit-inner { max-width: 1200px; margin: 0 auto; }
.toolkit-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.toolkit-headline {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--text);
  margin-bottom: 64px;
  max-width: 600px;
}
.toolkit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.tool-item {
  background: var(--surface);
  padding: 36px 32px;
  transition: background 0.2s;
}
.tool-item:hover { background: var(--accent-soft); }
.tool-icon {
  color: var(--accent);
  margin-bottom: 20px;
}
.tool-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.tool-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* FEATURES */
.features {
  padding: 100px 40px;
  background: var(--bg);
}
.features-inner { max-width: 1200px; margin: 0 auto; }
.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.feature-headline {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 20px;
}
.feature-body {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.7;
}
.feature-stat-block {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.stat-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 20px;
  border-left: 3px solid var(--accent);
}
.stat-num {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}
.stat-label {
  font-size: 15px;
  color: var(--text-muted);
}

/* PRICING */
.pricing {
  padding: 100px 40px;
  background: var(--surface-dark);
}
.pricing-inner { max-width: 1200px; margin: 0 auto; text-align: center; }
.pricing-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}
.pricing-headline {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  color: white;
  letter-spacing: -1px;
  margin-bottom: 48px;
}
.pricing-card {
  display: flex;
  justify-content: center;
}
.pricing-tier {
  background: #1A1A1A;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 40px 48px;
  text-align: left;
  width: 100%;
  max-width: 400px;
}
.tier-top { margin-bottom: 32px; }
.tier-name {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  display: block;
  margin-bottom: 12px;
}
.tier-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 12px;
}
.price-amount {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 800;
  color: white;
  line-height: 1;
}
.price-period {
  font-size: 18px;
  color: rgba(255,255,255,0.4);
}
.tier-tagline {
  font-size: 15px;
  color: rgba(255,255,255,0.5);
}
.tier-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tier-features li {
  font-size: 15px;
  color: rgba(255,255,255,0.8);
  display: flex;
  align-items: center;
  gap: 10px;
}
.tier-features li::before {
  content: '→';
  color: var(--accent);
  font-size: 14px;
}
.pricing-note {
  font-size: 13px;
  color: rgba(255,255,255,0.3);
  margin-top: 24px;
}
.checkout-btn {
  display: inline-block;
  margin-top: 28px;
  padding: 14px 28px;
  background: var(--accent);
  color: white;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
  transition: opacity 0.2s;
  width: 100%;
  text-align: center;
}
.checkout-btn:hover { opacity: 0.85; }

/* CLOSING */
.closing {
  padding: 120px 40px;
  text-align: center;
  background: var(--bg);
}
.closing-inner { max-width: 800px; margin: 0 auto; }
.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -2px;
  line-height: 1.1;
  margin-bottom: 20px;
}
.closing-sub {
  font-size: 20px;
  color: var(--text-muted);
}

/* FOOTER */
.footer {
  padding: 40px;
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  color: var(--text);
}
.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}

/* NAV LINKS */
.nav-inner { justify-content: flex-start; }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.nav-logo { text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -0.5px; color: var(--text); }
.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-link:hover { color: var(--text); }
.nav-link--btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  padding: 0;
}
.nav-cta {
  font-size: 14px;
  font-weight: 600;
  color: white;
  background: var(--text);
  padding: 8px 16px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: opacity 0.15s;
}
.nav-cta:hover { opacity: 0.8; }

/* PRICING GRID — 3 tiers */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.pricing-tier {
  background: #1A1A1A;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 36px 32px 32px;
  text-align: left;
  position: relative;
}
.pricing-tier--featured {
  border-color: var(--accent);
  background: #1E1A18;
}
.tier-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(255,77,0,0.12);
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.checkout-btn--featured {
  background: var(--accent);
}

/* AUTH PAGES */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 40px;
}
.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  width: 100%;
  max-width: 440px;
}
.auth-heading {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text);
  margin-bottom: 8px;
}
.auth-sub {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.auth-sub a { color: var(--accent); text-decoration: none; }
.auth-sub a:hover { text-decoration: underline; }
.auth-error {
  background: #FFF2F0;
  border: 1px solid #FFCCC7;
  color: #C41230;
  font-size: 14px;
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 20px;
}
.auth-form { display: flex; flex-direction: column; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 14px; font-weight: 500; color: var(--text); }
.form-hint { font-weight: 400; color: var(--text-muted); }
.form-group input {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 15px;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: border-color 0.15s;
}
.form-group input:focus { border-color: var(--text); }
.auth-btn {
  display: inline-block;
  padding: 14px 20px;
  background: var(--text);
  color: white;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: opacity 0.15s;
  margin-top: 4px;
}
.auth-btn:hover { opacity: 0.85; }

/* DASHBOARD */
.dashboard-page {
  padding: 100px 40px 60px;
  min-height: 100vh;
}
.dashboard-inner { max-width: 960px; margin: 0 auto; }
.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 12px;
}
.dashboard-heading {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--text);
}
.plan-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 6px 14px;
  border-radius: 100px;
  text-transform: capitalize;
}
.plan-badge--starter { background: #F0F0F0; color: var(--text-muted); }
.plan-badge--pro { background: #FFF0EB; color: var(--accent); }
.plan-badge--studio { background: #0D0D0D; color: white; }

/* Quota bar */
.quota-bar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 40px;
}
.quota-bar-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}
.quota-label { font-size: 14px; font-weight: 500; color: var(--text-muted); }
.quota-count { font-size: 14px; font-weight: 600; color: var(--text); }
.quota-bar-track {
  height: 6px;
  background: var(--border);
  border-radius: 100px;
  overflow: hidden;
}
.quota-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 100px;
  transition: width 0.3s ease;
}
.quota-warning {
  font-size: 13px;
  color: var(--accent);
  margin-top: 10px;
}
.quota-warning a { color: inherit; font-weight: 600; }
.quota-unlimited {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.quota-badge {
  background: #0D0D0D;
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
}

/* Tools grid */
.tools-section-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
}
.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}
.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
}
.tool-card-icon { font-size: 24px; margin-bottom: 12px; }
.tool-card-name { font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.tool-card-desc { font-size: 13px; color: var(--text-muted); line-height: 1.5; margin-bottom: 16px; }
.tool-card-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  letter-spacing: 0.3px;
}
.tool-card-badge--soon { background: var(--border); color: var(--text-muted); }
.tool-card--link { text-decoration: none; display: block; cursor: pointer; transition: border-color 0.15s; }
.tool-card--link:hover { border-color: var(--text); }

/* Upgrade CTA */
.dashboard-upgrade-cta {
  background: var(--surface-dark);
  border-radius: var(--radius);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.upgrade-cta-text { font-size: 15px; color: rgba(255,255,255,0.7); }
.upgrade-cta-text strong { color: white; }
.upgrade-cta-btn {
  display: inline-block;
  padding: 10px 20px;
  background: var(--accent);
  color: white;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
  white-space: nowrap;
}

/* UPGRADE / SUCCESS / QUOTA pages */
.upgrade-page, .success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 40px;
}
.upgrade-card, .success-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  width: 100%;
  max-width: 520px;
  text-align: center;
}
.upgrade-icon, .success-icon { font-size: 40px; margin-bottom: 16px; }
.upgrade-heading, .success-heading {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text);
  margin-bottom: 12px;
}
.upgrade-sub, .success-sub {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 28px;
}
.upgrade-plans { display: flex; flex-direction: column; gap: 10px; }
.upgrade-plan-btn {
  display: block;
  padding: 14px 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color 0.15s;
}
.upgrade-plan-btn:hover { border-color: var(--text); }
.upgrade-plan-btn--featured { background: var(--accent); color: white; border-color: var(--accent); }
.success-actions { display: flex; flex-direction: column; gap: 12px; align-items: center; }
.success-home-link { font-size: 14px; color: var(--text-muted); text-decoration: none; }
.success-home-link:hover { color: var(--text); }

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding-top: 120px; min-height: auto; }
  .hero-visual { display: none; }
  .feature-split { grid-template-columns: 1fr; gap: 48px; }
  .toolkit-grid { grid-template-columns: 1fr 1fr; }
  .nav { padding: 16px 24px; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto 24px; }
  .tools-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .toolkit-grid { grid-template-columns: 1fr; }
  .hero-headline { font-size: 42px; letter-spacing: -1px; }
  .closing-headline { font-size: 36px; }
  .tools-grid { grid-template-columns: 1fr; }
  .nav-links .nav-link:not(.nav-cta) { display: none; }
}