:root {
  --orange: #ff4500;
  --orange-panel: #ff6b35;
  --green: #22c55e;
  --green-hero: #00d26a;
  --bg: #ffffff;
  --bg-soft: #f9f9f9;
  --text: #111111;
  --text-muted: #6b7280;
  --border: #e9e9e9;
  --card-dark: #111827;
  --btn-dark: #1a1a1a;
  --btn-dark-text: #ffffff;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] {
  --bg: #0b0b0c;
  --bg-soft: #151517;
  --text: #f4f4f5;
  --text-muted: #a1a1aa;
  --border: #27272a;
  --btn-dark: #f4f4f5;
  --btn-dark-text: #111111;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background 0.2s, color 0.2s;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
svg { width: 20px; height: 20px; flex-shrink: 0; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.text-orange { color: var(--orange); }
.text-green { color: var(--green-hero); }
.muted { color: var(--text-muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 7px 16px; border-radius: 8px; font-size: 15px; font-weight: 500;
  border: 1px solid transparent; transition: transform 0.15s, opacity 0.15s, background 0.15s;
}
.btn:hover { opacity: 0.9; }
.btn:active { transform: scale(0.98); }
.btn-outline { border-color: var(--border); background: var(--bg); }
.btn-outline:hover { background: var(--bg-soft); }
.btn-dark { background: var(--btn-dark); color: var(--btn-dark-text); font-weight: 600; }
.btn-orange { background: var(--orange); color: #fff; font-weight: 600; box-shadow: 0 8px 20px rgba(255, 69, 0, 0.25); }
.btn-block { width: 100%; padding: 9px 16px; }

.icon-btn {
  width: 36px; height: 36px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
}
.icon-btn:hover { background: var(--bg-soft); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn-filled { background: var(--bg-soft); border-radius: 50%; width: 40px; height: 40px; border: 1px solid var(--border); }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 88px; }
.logo { display: flex; align-items: center; gap: 8px; }
.logo-icon {
  width: 40px; height: 40px; border-radius: 4px; background: var(--orange); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
}
.logo-icon svg { width: 24px; height: 24px; }
.logo-text { font-size: 20px; font-weight: 500; }
.logo small { display: block; font-size: 14px; font-weight: 500; margin-top: -2px; }

.nav { display: flex; gap: 32px; font-size: 14.5px; font-weight: 500; }
.nav a:hover { color: var(--orange); }
.nav-mobile-actions { display: none; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.menu-btn { display: none; }

.icon-sun { display: none; }
[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }

/* Hero */
.hero { padding: 18px 40px 0; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 1400px; margin: 0 auto; }
.hero-card {
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 16px;
  min-height: 425px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 40px 32px;
}
.hero-card h1, .hero-card .hero-title { font-size: clamp(28px, 3vw, 36px); font-weight: 500; line-height: 1.15; letter-spacing: -0.01em; margin-bottom: 40px; }
.hero-card p { font-size: 17px; line-height: 1.65; }

/* Features */
.features { padding: 96px 0 40px; }
.feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  padding: 32px 24px; margin-bottom: 64px;
}
.feature.reverse .feature-text { order: 2; }
.feature.reverse .feature-visual { order: 1; }
.badge {
  display: inline-block; background: var(--orange); color: #fff; font-size: 14px; font-weight: 700;
  text-transform: uppercase; padding: 7px 16px; border-radius: 999px; letter-spacing: 0.01em; margin-bottom: 20px;
}
.feature h2, .section-head h2, .about h2 { font-size: clamp(26px, 2.6vw, 32px); font-weight: 500; letter-spacing: -0.01em; margin-bottom: 20px; line-height: 1.2; }
.feature-text > p { font-size: 18px; line-height: 1.65; margin-bottom: 28px; max-width: 560px; }

.checklist { list-style: none; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 32px; font-size: 16px; display: flex; align-items: center; }
.checklist li::before, .plan-list li::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 20px; height: 20px; transform: translateY(-50%);
  background: var(--green);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.dots { display: inline-flex; gap: 3px; margin-left: 6px; }
.dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--text-muted); animation: blink 1.2s infinite; }
.dots i:nth-child(2) { animation-delay: 0.2s; }
.dots i:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.2; } 40% { opacity: 1; } }

.feature-visual {
  background: var(--orange-panel); border: 1px solid #c2410c; border-radius: 28px; padding: 32px;
  display: grid; gap: 16px; box-shadow: var(--shadow);
}
.mock-card {
  background: var(--card-dark); color: #fff; border-radius: 12px; padding: 22px 24px;
  transition: transform 0.2s;
}
.mock-card:hover { transform: translateY(-3px); }
.mock-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,0.12); margin-bottom: 16px; }
.mock-head strong { font-size: 16px; font-weight: 600; }
.growth { color: var(--green); font-size: 14px; white-space: nowrap; }
.mock-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mock-stats strong { display: block; font-size: 14px; font-weight: 600; }
.mock-stats span { font-size: 14px; color: #9ca3af; }
.mock-label { font-size: 14px; color: #9ca3af; }
.mock-quote { font-size: 16px; font-weight: 500; margin: 6px 0 14px; }
.mock-sub { display: block; font-size: 13px; color: #9ca3af; margin-top: 12px; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { font-size: 13px; padding: 3px 8px; border-radius: 4px; }
.tag-red { background: #4c1d2a; color: #fca5a5; }
.tag-amber { background: #4a2a12; color: #fdba74; }
.bar { height: 8px; border-radius: 999px; background: rgba(255,255,255,0.1); overflow: hidden; }
.bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--orange), var(--green)); border-radius: inherit; }

/* Solution */
.solution { padding: 40px 0 96px; }
.section-head { text-align: center; margin-bottom: 48px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 16px; padding: 32px; }
.step-num {
  display: inline-flex; width: 36px; height: 36px; border-radius: 10px; background: var(--orange); color: #fff;
  align-items: center; justify-content: center; font-weight: 700; margin-bottom: 20px;
}
.step h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.step p { color: var(--text-muted); }

/* Pricing */
.pricing { padding: 48px 0 96px; }
.pricing-title { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.pricing > .container > .muted { font-size: 14px; }
.billing-toggle { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--text-muted); margin: 14px 0 22px; }
.billing-toggle .active { color: var(--text); font-weight: 500; }
.save { font-style: normal; font-size: 12px; color: var(--green); font-weight: 600; margin-left: 4px; }
.switch { width: 34px; height: 20px; border-radius: 999px; background: var(--border); position: relative; transition: background 0.2s; }
.switch span { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.2); transition: transform 0.2s; }
.switch[aria-checked="true"] { background: var(--orange); }
.switch[aria-checked="true"] span { transform: translateX(14px); }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: start; }
.plan {
  background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 32px 17px 28px;
  text-align: center; position: relative; margin-top: 35px;
}
.plan.popular { border: 2px solid var(--orange); margin-top: 0; padding-top: 32px; box-shadow: var(--shadow); }
.popular-badge {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  background: var(--orange); color: #fff; font-size: 14px; font-weight: 500; padding: 4px 10px; border-radius: 6px;
}
.plan.popular h3 { margin-top: 10px; }
.plan h3 { font-size: 18px; font-weight: 600; margin-bottom: 14px; }
.plan-desc { font-size: 14px; color: var(--text-muted); min-height: 42px; margin-bottom: 14px; padding: 0 10px; }
.price { display: flex; align-items: baseline; justify-content: center; gap: 4px; }
.price strong { font-size: 30px; font-weight: 700; }
.price span { color: var(--text-muted); font-size: 14px; }
.billed { font-size: 12px; color: var(--text-muted); margin-bottom: 18px; }
.credits { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 14px; margin-bottom: 24px; }
.credits svg { width: 17px; height: 17px; color: #f59e0b; }
.plan hr { border: none; border-top: 1px solid var(--border); margin: 16px 0; }
.plan h4 { text-align: left; font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.plan-list { list-style: none; text-align: left; display: grid; gap: 9px; }
.plan-list li { position: relative; padding-left: 32px; font-size: 14px; }
.plan-list li.no { color: #a1a1aa; }
.plan-list li.no::before {
  background: #c4c4c8;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E");
}

/* About */
.about { padding: 32px 0 96px; }
.about-inner {
  text-align: center; max-width: 820px; background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: 20px; padding: 56px 32px;
}
.about p { font-size: 17px; color: var(--text-muted); margin-bottom: 28px; }
.about .btn { padding: 10px 22px; }

/* Footer */
.footer { padding: 40px 0 32px; }
.footer-top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 28px; border-bottom: 1px solid var(--border); }
.footer-top .logo-icon { width: 40px; height: 40px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: flex-end; padding-top: 22px; font-size: 14px; }
.footer-links { display: grid; gap: 4px; text-align: right; }
.footer-links div { display: flex; gap: 16px; justify-content: flex-end; flex-wrap: wrap; }
.footer-links a:hover { color: var(--orange); }
.muted-links a { color: var(--text-muted); }

/* Responsive */
@media (max-width: 900px) {
  .nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--border); padding: 8px 16px 16px;
  }
  .nav.open { display: flex; }
  .nav > a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav-mobile-actions { display: flex; gap: 10px; padding-top: 14px; }
  .nav-mobile-actions .btn { flex: 1; }
  .hide-mobile { display: none; }
  .menu-btn { display: inline-flex; }
  .header-inner { height: 72px; }

  .hero { padding: 8px 16px 0; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { min-height: 300px; }
  .hero-card h1, .hero-card .hero-title { margin-bottom: 24px; }

  .features { padding-top: 56px; }
  .feature { grid-template-columns: 1fr; gap: 32px; padding: 0; margin-bottom: 72px; }
  .feature.reverse .feature-text { order: 1; }
  .feature.reverse .feature-visual { order: 2; }
  .feature-visual { padding: 20px; border-radius: 20px; }

  .steps, .plans { grid-template-columns: 1fr; }
  .plan { margin-top: 0; }
  .plan.popular { margin-top: 14px; }
}

@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .hero-card p br { display: none; }
  .mock-card { padding: 18px; }
  .mock-stats strong, .mock-stats span { font-size: 13px; }
  .footer-bottom { flex-direction: column-reverse; align-items: flex-start; gap: 16px; }
  .footer-links { text-align: left; }
  .footer-links div { justify-content: flex-start; }
}

/* Contact modal */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 16px; }
.modal.open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(4px); animation: fade 0.2s; }
.modal-dialog {
  position: relative; width: 100%; max-width: 560px; max-height: calc(100vh - 32px); overflow-y: auto;
  background: var(--bg); border: 1px solid var(--border); border-radius: 16px; padding: 32px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25); animation: pop 0.2s ease-out;
}
.modal-dialog h2 { font-size: 24px; font-weight: 600; margin-bottom: 6px; }
.modal-dialog > .muted { font-size: 14px; margin-bottom: 24px; }
.modal-close { position: absolute; top: 14px; right: 14px; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(0.98); } }

.contact-form { display: grid; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 500; }
.contact-form input, .contact-form select, .contact-form textarea {
  font: inherit; font-size: 14px; font-weight: 400; color: var(--text); background: var(--bg-soft);
  border: 1px solid var(--border); border-radius: 8px; padding: 9px 12px; width: 100%;
}
.contact-form textarea { resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255, 69, 0, 0.15);
}
.contact-form .checkbox { display: flex; align-items: flex-start; gap: 8px; font-weight: 400; color: var(--text-muted); }
.contact-form .checkbox input { width: auto; margin-top: 3px; accent-color: var(--orange); }
.contact-form .checkbox a { color: var(--orange); }
.contact-form .btn { margin-top: 4px; }

@media (max-width: 560px) {
  .modal-dialog { padding: 24px 18px; }
  .form-row { grid-template-columns: 1fr; }
}

/* Legal pages */
.legal { max-width: 760px; padding-top: 48px; padding-bottom: 80px; }
.legal h1 { font-size: clamp(30px, 4vw, 40px); font-weight: 600; letter-spacing: -0.02em; margin-bottom: 8px; }
.legal > .muted { font-size: 14px; margin-bottom: 32px; }
.legal h2 { font-size: 20px; font-weight: 600; margin: 32px 0 10px; }
.legal p, .legal li { font-size: 16px; line-height: 1.75; color: var(--text); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 20px; display: grid; gap: 8px; }
.legal a { color: var(--orange); }
.legal a.btn { color: #fff; }
.not-found { text-align: center; padding: 80px 0; }
.not-found .muted { margin: 8px 0 28px; }
