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

:root {
  --bg: #ffffff;
  --bg-soft: #fafafa;
  --bg-card: #ffffff;
  --border: #e5e7eb;
  --text: #0a0a0a;
  --text-soft: #525252;
  --text-muted: #a3a3a3;
  --accent: #7c3aed;
  --accent-hover: #6d28d9;
  --accent-soft: #f5f3ff;
  --pink: #ec4899;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

kbd {
  display: inline-block;
  padding: 1px 8px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.85em;
  font-weight: 600;
}

code {
  padding: 1px 6px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 4px;
  font-family: ui-monospace, monospace;
  font-size: 0.9em;
}

.grad {
  background: linear-gradient(135deg, var(--accent) 0%, var(--pink) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===== Nav ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.brand-mark {
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--pink) 100%);
  border-radius: 6px;
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 5px;
  background: var(--bg);
  border-radius: 3px;
}

.brand-name {
  font-size: 16px;
  letter-spacing: -0.01em;
}

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

.nav-links a {
  color: var(--text-soft);
  font-weight: 500;
  transition: color 100ms;
}

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

@media (max-width: 640px) {
  .nav-links a:not(.btn) { display: none; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  background: var(--accent);
  color: white !important;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  border: none;
  transition: background 100ms, transform 100ms;
  cursor: pointer;
}

.btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
}

.btn-secondary {
  background: var(--bg);
  color: var(--text) !important;
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-soft);
}

.link-cta {
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 500;
}

.link-cta:hover {
  color: var(--text);
}

/* ===== Hero ===== */
.hero {
  padding: 80px 0 60px;
  text-align: center;
  background: radial-gradient(circle at 50% 0%, var(--accent-soft) 0%, transparent 60%);
}

.hero h1 {
  font-size: clamp(32px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: clamp(16px, 2.2vw, 19px);
  color: var(--text-soft);
  max-width: 600px;
  margin: 0 auto 32px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.hero-mock {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px;
}

.mock-window {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 24px 48px -12px rgba(124, 58, 237, 0.18);
  overflow: hidden;
  text-align: left;
}

.mock-bar {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}

.mock-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d4d4d4;
}

.mock-dot:nth-child(1) { background: #ef4444; }
.mock-dot:nth-child(2) { background: #f59e0b; }
.mock-dot:nth-child(3) { background: #10b981; }

.mock-body {
  padding: 24px;
  position: relative;
  min-height: 320px;
}

.mock-input {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  font-family: ui-monospace, monospace;
  font-size: 14px;
  color: var(--accent);
  font-weight: 600;
}

.mock-cursor {
  display: inline-block;
  width: 2px;
  height: 14px;
  background: var(--text);
  margin-left: 2px;
  vertical-align: middle;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.mock-picker {
  position: absolute;
  top: 70px;
  left: 24px;
  right: 24px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.mock-picker-head {
  padding: 8px 14px;
  background: var(--bg-soft);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border);
}

.mock-item {
  padding: 12px 14px;
  border-bottom: 1px solid var(--bg-soft);
}

.mock-item:last-child { border-bottom: none; }

.mock-item.active {
  background: var(--accent-soft);
}

.mock-item-title {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 2px;
}

.mock-item-preview {
  font-size: 12px;
  color: var(--text-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== Sections ===== */
.section {
  padding: 80px 0;
}

.section h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 16px;
}

.section h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.how {
  background: var(--bg-soft);
}

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

@media (max-width: 720px) {
  .how-grid { grid-template-columns: 1fr; }
}

.how-step {
  padding: 32px 24px;
  background: white;
  border-radius: 14px;
  border: 1px solid var(--border);
  text-align: left;
}

.how-num {
  width: 36px;
  height: 36px;
  background: var(--accent);
  color: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 16px;
}

.how-step p {
  color: var(--text-soft);
  font-size: 14px;
}

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

@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
}

.feature {
  padding: 28px 24px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
}

.feature-icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.feature p {
  color: var(--text-soft);
  font-size: 14px;
}

.pricing {
  background: var(--bg-soft);
}

.pricing-sub {
  text-align: center;
  color: var(--text-soft);
  margin-bottom: 48px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 720px;
  margin: 0 auto;
}

@media (max-width: 600px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

.pricing-card {
  position: relative;
  padding: 32px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
}

.pricing-card.pro {
  border-color: var(--accent);
  box-shadow: 0 12px 32px -8px rgba(124, 58, 237, 0.2);
}

.pricing-tag {
  position: absolute;
  top: -12px;
  right: 24px;
  padding: 4px 12px;
  background: var(--accent);
  color: white;
  font-size: 11px;
  font-weight: 600;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pricing-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.pricing-amount {
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 24px;
}

.per {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-soft);
}

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

.pricing-card li {
  padding: 6px 0;
  color: var(--text-soft);
  font-size: 14px;
}

.pricing-card li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
  margin-right: 8px;
}

.faq-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  max-width: 720px;
  margin: 0 auto;
}

.faq-item summary {
  font-weight: 600;
  font-size: 16px;
  list-style: none;
  position: relative;
  padding-right: 30px;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  font-size: 24px;
  font-weight: 400;
  color: var(--text-muted);
  transition: transform 200ms;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  margin-top: 12px;
  color: var(--text-soft);
}

.cta {
  background: linear-gradient(135deg, var(--accent) 0%, var(--pink) 100%);
  color: white;
  text-align: center;
}

.cta-inner h2 {
  color: white;
}

.cta-inner p {
  font-size: 17px;
  opacity: 0.9;
  margin-bottom: 24px;
}

.cta .btn {
  background: white;
  color: var(--accent) !important;
}

.cta .btn:hover {
  background: var(--bg-soft);
}

.cta-note {
  margin-top: 14px;
  font-size: 13px !important;
  opacity: 0.7;
}

/* ===== Footer ===== */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

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

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

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