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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #0f0f13;
  color: #e4e4e7;
  min-height: 100vh;
  scroll-behavior: smooth;
}

html {
  scroll-behavior: smooth;
}

a { color: #818cf8; text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* ── Top Nav ───────────────────────────────────────────────────── */
.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 48px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-link {
  color: #a1a1aa;
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-link:hover {
  color: #fff;
  text-decoration: none;
}

.btn-nav {
  padding: 8px 20px;
  background: #6366f1;
  color: #fff;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-nav:hover {
  background: #4f46e5;
  text-decoration: none;
}

/* ── Header (dashboard) ───────────────────────────────────────── */
header {
  text-align: center;
  margin-bottom: 40px;
}

h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
}

.logo-link {
  display: inline-block;
  text-decoration: none;
}

.logo-link:hover { text-decoration: none; }

.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.logo-icon {
  width: 40px;
  height: 40px;
}

.logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
}

.logo {
  height: 44px;
  display: block;
  margin: 0 auto;
}

.logo-sm {
  height: 36px;
  margin: 0;
}

.subtitle {
  color: #71717a;
  margin-top: 8px;
}

/* ── Hero ──────────────────────────────────────────────────────── */
.hero {
  text-align: center;
  margin-bottom: 56px;
}

.hero-title {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 20px;
}

.accent {
  color: #6366f1;
}

.hero-desc {
  color: #a1a1aa;
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 32px;
}

/* ── Demo Section ─────────────────────────────────────────────── */
.demo-section {
  text-align: center;
  margin-bottom: 64px;
}

.demo-label {
  color: #52525b;
  font-size: 0.85rem;
  margin-bottom: 16px;
}

/* ── How It Works ─────────────────────────────────────────────── */
.how-section {
  margin-bottom: 64px;
}

.section-title {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.section-desc {
  text-align: center;
  color: #71717a;
  margin-bottom: 32px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step {
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
}

.step-num {
  width: 36px;
  height: 36px;
  line-height: 36px;
  background: #6366f1;
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  font-size: 1rem;
  margin: 0 auto 12px;
}

.step h3 {
  color: #fff;
  margin-bottom: 8px;
  font-size: 1rem;
}

.step p {
  color: #a1a1aa;
  font-size: 0.9rem;
  line-height: 1.5;
}

.step code {
  background: #27272a;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.85rem;
  color: #818cf8;
}

/* ── Features ─────────────────────────────────────────────────── */
.features-section {
  margin-bottom: 64px;
}

.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  margin-bottom: 32px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ── Panels ────────────────────────────────────────────────────── */
.panel {
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

.panel h2 {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: #a1a1aa;
  font-weight: 600;
}

/* ── Form Fields ───────────────────────────────────────────────── */
.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 0.85rem;
  color: #a1a1aa;
  margin-bottom: 6px;
  font-weight: 500;
}

.field input[type="text"],
.field input[type="number"],
.field input[type="email"],
.field input[type="password"],
.field input[type="datetime-local"] {
  width: 100%;
  padding: 10px 12px;
  background: #09090b;
  border: 1px solid #27272a;
  border-radius: 8px;
  color: #fff;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.field input:focus {
  border-color: #6366f1;
}

.field-row {
  display: flex;
  gap: 12px;
}

.field-row .field {
  flex: 1;
}

.color-input {
  display: flex;
  align-items: center;
  gap: 8px;
}

.color-input input[type="color"] {
  width: 40px;
  height: 40px;
  border: 1px solid #27272a;
  border-radius: 8px;
  cursor: pointer;
  background: none;
  padding: 2px;
}

.color-input input[type="text"] {
  flex: 1;
  padding: 10px 12px;
  background: #09090b;
  border: 1px solid #27272a;
  border-radius: 8px;
  color: #fff;
  font-size: 0.95rem;
  font-family: monospace;
  outline: none;
}

.color-input input[type="text"]:focus {
  border-color: #6366f1;
}

/* ── Buttons ───────────────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  width: 100%;
  padding: 12px;
  background: #6366f1;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.2s;
  text-align: center;
}

.btn-primary:hover {
  background: #4f46e5;
  text-decoration: none;
}

.btn-secondary {
  padding: 8px 16px;
  background: #27272a;
  color: #e4e4e7;
  border: 1px solid #3f3f46;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background 0.2s;
}

.btn-secondary:hover {
  background: #3f3f46;
}

.btn-danger {
  padding: 6px 14px;
  background: transparent;
  color: #ef4444;
  border: 1px solid #ef4444;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.2s;
}

.btn-danger:hover {
  background: #ef4444;
  color: #fff;
}

.btn-copy {
  padding: 8px 14px;
  background: #27272a;
  color: #e4e4e7;
  border: 1px solid #3f3f46;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.8rem;
  white-space: nowrap;
  transition: background 0.2s;
}

.btn-copy:hover { background: #3f3f46; }
.btn-copy.copied { background: #22c55e; color: #fff; border-color: #22c55e; }

/* ── Auth Pages ────────────────────────────────────────────────── */
.auth-card {
  max-width: 400px;
  margin: 0 auto;
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: 12px;
  padding: 32px;
}

.auth-switch {
  text-align: center;
  margin-top: 20px;
  color: #71717a;
  font-size: 0.9rem;
}

.error-msg {
  background: #451a1a;
  border: 1px solid #ef4444;
  color: #fca5a5;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-bottom: 12px;
}

/* ── Plan Badge ────────────────────────────────────────────────── */
.plan-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.plan-free {
  background: #27272a;
  color: #a1a1aa;
}

.plan-pro {
  background: #312e81;
  color: #a5b4fc;
}

/* ── Timer Cards ───────────────────────────────────────────────── */
.timer-card {
  background: #09090b;
  border: 1px solid #27272a;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
}

.timer-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.timer-card-header strong {
  color: #fff;
  font-size: 1rem;
}

.timer-meta {
  display: block;
  color: #71717a;
  font-size: 0.8rem;
  margin-top: 2px;
}

.timer-views {
  display: inline-block;
  background: #27272a;
  color: #a1a1aa;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.75rem;
  margin-left: 4px;
}

.timer-preview {
  background: #18181b;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 12px;
  text-align: center;
  padding: 8px;
}

.timer-preview img {
  display: block;
  margin: 0 auto;
}

.timer-codes {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.copy-row {
  display: flex;
  gap: 8px;
}

.copy-row input,
.copy-row textarea {
  flex: 1;
  padding: 8px 12px;
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: 8px;
  color: #a1a1aa;
  font-size: 0.8rem;
  font-family: monospace;
  outline: none;
  resize: none;
}

/* ── Landing Page ──────────────────────────────────────────────── */
.landing {
  text-align: center;
}

.demo-box {
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 48px;
  display: inline-block;
}

.demo-box img {
  display: block;
  max-width: 100%;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature {
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: 12px;
  padding: 24px;
  text-align: left;
}

.feature-icon {
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.feature h3 {
  color: #fff;
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.feature p {
  color: #a1a1aa;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ── Pricing ───────────────────────────────────────────────────── */
/* ── Hero CTA ──────────────────────────────────────────────────── */
.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.btn-hero {
  width: auto;
  padding: 14px 36px;
  font-size: 1rem;
  min-width: 200px;
  text-align: center;
}

.pricing-section {
  margin-bottom: 64px;
}

.site-footer {
  text-align: center;
  padding: 32px 0;
  border-top: 1px solid #27272a;
  color: #52525b;
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 12px;
}

.footer-links a {
  color: #71717a;
  font-size: 0.85rem;
}

.footer-links a:hover {
  color: #a1a1aa;
}

/* ── Legal Pages ───────────────────────────────────────────────── */
.legal-page {
  max-width: 750px;
  margin: 0 auto 48px;
}

.legal-page h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.legal-updated {
  color: #71717a;
  font-size: 0.85rem;
  margin-bottom: 32px;
}

.legal-page h2 {
  font-size: 1.15rem;
  color: #fff;
  margin-top: 28px;
  margin-bottom: 10px;
  font-weight: 600;
}

.legal-page h3 {
  font-size: 1rem;
  color: #e4e4e7;
  margin-top: 16px;
  margin-bottom: 6px;
}

.legal-page p {
  color: #a1a1aa;
  line-height: 1.7;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.legal-page ul {
  color: #a1a1aa;
  padding-left: 24px;
  margin-bottom: 12px;
  line-height: 1.8;
  font-size: 0.95rem;
}

.legal-page code {
  background: #27272a;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.85rem;
  color: #818cf8;
}

.btn-outline {
  display: inline-block;
  padding: 14px 32px;
  background: transparent;
  color: #a1a1aa;
  border: 1px solid #3f3f46;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  text-align: center;
}

.btn-outline:hover {
  border-color: #6366f1;
  color: #fff;
  text-decoration: none;
}

/* ── Pricing ───────────────────────────────────────────────────── */
.pricing {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto 32px;
}

.price-card {
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: 12px;
  padding: 32px 24px;
  text-align: left;
}

.price-card.featured {
  border-color: #6366f1;
  position: relative;
}

.price-card h3 {
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 8px;
}

.price {
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
}

.price span {
  font-size: 1rem;
  font-weight: 400;
  color: #71717a;
}

.save-badge {
  display: inline-block;
  background: #22c55e;
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.price-note {
  color: #71717a;
  font-size: 0.85rem;
  margin-top: -12px;
  margin-bottom: 16px;
}

.price-card ul {
  list-style: none;
  margin-bottom: 24px;
}

.price-card ul li {
  padding: 6px 0;
  color: #a1a1aa;
  font-size: 0.9rem;
  position: relative;
  padding-left: 20px;
}

.price-card ul li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: #22c55e;
}

.login-link {
  color: #71717a;
  font-size: 0.9rem;
  margin-top: 16px;
}

.placeholder-text {
  color: #52525b;
  font-size: 0.9rem;
  text-align: center;
  padding: 20px;
}

/* ── Modal ──────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(4px);
}

.modal {
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: 16px;
  padding: 36px;
  max-width: 420px;
  width: 90%;
  position: relative;
}

.modal h2 {
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 8px;
  text-align: center;
}

.modal-desc {
  color: #71717a;
  font-size: 0.9rem;
  text-align: center;
  margin-bottom: 24px;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: #71717a;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover { color: #fff; }

.modal-footer {
  text-align: center;
  margin-top: 16px;
  color: #71717a;
  font-size: 0.85rem;
}

/* ── Google Button ─────────────────────────────────────────────── */
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px;
  background: #fff;
  color: #333;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-google:hover {
  background: #f0f0f0;
  text-decoration: none;
}

.divider {
  display: flex;
  align-items: center;
  margin: 20px 0;
  color: #52525b;
  font-size: 0.85rem;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #27272a;
}

.divider span {
  padding: 0 12px;
}

/* ── Demo Badge ────────────────────────────────────────────────── */
.demo-badge {
  background: #f59e0b;
  color: #000;
  font-weight: 700;
}

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .pricing { grid-template-columns: 1fr; max-width: 400px; margin-left: auto; margin-right: auto; }
  .steps { grid-template-columns: 1fr; }
  .hero-title { font-size: 2rem; }
}

@media (max-width: 800px) {
  .features { grid-template-columns: 1fr; }
  .field-row { flex-wrap: wrap; }
  .dash-header { flex-direction: column; gap: 16px; text-align: center; }
  .hero-cta { flex-direction: column; align-items: center; }
  .top-nav { flex-wrap: wrap; justify-content: center; gap: 12px; }
}
