:root {
  --bg: #ffffff;
  --bg-alt: #f6f7fb;
  --surface: #ffffff;
  --surface-alt: #f9fafb;
  --border: #e4e6ed;
  --text: #111111;
  --muted: #6b7280;
  --primary: #111827;
  --accent: #2563eb;
  --accent-soft: rgba(37, 99, 235, 0.12);
  --radius: 12px;
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.08);
  --maxw: 1100px;
  --transition-fast: 0.18s ease-out;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background: radial-gradient(circle at top left, #eef2ff 0, #ffffff 45%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

body, button, input, textarea {
  font-size: 16px;
}

main {
  display: block;
}

.hero {
  padding: 32px 20px 80px;
}

.hero-inner {
  max-width: var(--maxw);
  margin: 0 auto 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.logo-mark {
  width: 40px;
  height: 40px;
  display: block;
}

.logo-outer {
  fill: var(--accent-soft);
}

.logo-bar {
  fill: var(--accent);
}

.brand-name {
  font-weight: 700;
  font-size: 1.15rem;
}

.brand-tag {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: center;
}

.nav a {
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 999px;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.nav a:hover {
  background: rgba(15, 23, 42, 0.04);
  color: var(--primary);
}

.nav-cta {
  background: rgba(37, 99, 235, 0.08);
  color: var(--accent) !important;
}

.theme-toggle {
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(10px);
}

.theme-toggle .theme-icon {
  font-size: 0.9rem;
}

.hero-content {
  max-width: var(--maxw);
  margin: 0 auto;
}

.hero-copy {
  max-width: 640px;
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 4vw, 3.1rem);
  line-height: 1.1;
  margin: 0 0 18px;
}

.hero-copy p {
  font-size: 1.1rem;
  color: var(--muted);
  margin: 0 0 24px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 45px rgba(37, 99, 235, 0.25);
}

.btn-ghost {
  background: rgba(15, 23, 42, 0.04);
  color: var(--primary);
  border-color: rgba(15, 23, 42, 0.06);
}

.btn-ghost:hover {
  background: rgba(15, 23, 42, 0.08);
}

.btn-outline {
  border-color: rgba(15, 23, 42, 0.12);
  color: var(--primary);
  background: #ffffff;
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-footnote {
  font-size: 0.95rem;
  color: var(--muted);
}

.section {
  padding: 72px 20px;
}

.section-alt {
  background: var(--bg-alt);
}

.section-inner {
  max-width: var(--maxw);
  margin: 0 auto;
}

.section h2 {
  font-size: 2rem;
  margin: 0 0 18px;
}

.section p {
  margin: 0 0 18px;
  color: var(--muted);
}

.section-subtitle {
  margin-bottom: 30px;
}

.problem-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}

.problem-list li {
  padding-left: 22px;
  position: relative;
  margin-bottom: 8px;
}

.problem-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
}

.features {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 30px;
}

.feature {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 22px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.04);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.feature h3 {
  margin: 0 0 10px;
}

.feature p {
  margin: 0;
}

.feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(37, 99, 235, 0.4);
}

.steps {
  margin-top: 30px;
}

.step {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.step-number {
  min-width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
}

.step-body h3 {
  margin: 0 0 6px;
}

.step-body p {
  margin: 0;
  color: var(--muted);
}

.pricing-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 28px;
}

.price-card {
  background: var(--surface);
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid var(--border);
  padding: 24px 22px 26px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.price-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(37, 99, 235, 0.4);
}

.price-card-highlight {
  border-color: rgba(37, 99, 235, 0.5);
  box-shadow: var(--shadow-soft);
}

.price-card h3 {
  margin: 0 0 6px;
}

.price-value {
  margin: 0 0 12px;
  font-weight: 600;
}

.price-card ul {
  padding-left: 18px;
  margin: 0 0 18px;
  color: var(--muted);
}

.pricing-footnote {
  margin-top: 16px;
  font-size: 0.9rem;
}

.contact-form {
  margin-top: 26px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

label {
  font-size: 0.9rem;
  color: var(--muted);
}

input, textarea {
  border-radius: 9px;
  border: 1px solid var(--border);
  padding: 10px 12px;
  font-family: var(--font-sans);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.4);
}

.footer {
  padding: 26px 20px 30px;
  border-top: 1px solid var(--border);
  background: rgba(249, 250, 251, 0.9);
  backdrop-filter: blur(8px);
}

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--muted);
}

.footer-meta {
  opacity: 0.8;
}

/* Floating Theme Toggle */
.theme-toggle-fixed {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
  cursor: pointer;
  z-index: 999;
  transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}
.theme-toggle-fixed:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}
.theme-icon-modern {
  width: 22px;
  height: 22px;
  fill: var(--muted);
  transition: fill var(--transition-fast);
}
:root[data-theme="dark"] .theme-icon-modern {
  fill: var(--text);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 84px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  z-index: 998;
}
.back-to-top:hover {
  transform: translateY(-2px);
  background: #1d4ed8;
}
:root[data-theme="dark"] .back-to-top {
  background: #3b82f6;
}

/* Fix input text in dark mode */
input, textarea { color: var(--text); }

/* Modern nav button style */
.nav a {
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 8px;
  transition: background var(--transition-fast), color var(--transition-fast);
}
.nav a:hover {
  background: rgba(99, 102, 241, 0.12);
  color: var(--primary);
}
.nav-cta {
  background: var(--accent-soft);
  color: var(--accent) !important;
}

/* Logo link reset */
.brand a, .brand a:visited {
  color: inherit;
  text-decoration: none;
}

/* Dark mode */
:root[data-theme="dark"] {
  --bg: #020617;
  --bg-alt: #020617;
  --surface: #020617;
  --surface-alt: #020617;
  --border: #1e293b;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --primary: #e5e7eb;
  --accent: #3b82f6;
  --accent-soft: rgba(59, 130, 246, 0.18);
  --shadow-soft: 0 22px 45px rgba(15, 23, 42, 0.7);
}

:root[data-theme="dark"] body {
  background: radial-gradient(circle at top left, #020617 0, #020617 40%, #020617 100%);
}

:root[data-theme="dark"] .section-alt {
  background: #020617;
}

:root[data-theme="dark"] .feature,
:root[data-theme="dark"] .price-card,
:root[data-theme="dark"] input,
:root[data-theme="dark"] textarea {
  background: #020617;
}

:root[data-theme="dark"] .btn-ghost {
  background: rgba(15, 23, 42, 0.7);
  color: #e5e7eb;
}

:root[data-theme="dark"] .btn-ghost:hover {
  background: rgba(15, 23, 42, 0.9);
}

@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .hero-copy h1 {
    font-size: 2.1rem;
  }

  .hero {
    padding-bottom: 60px;
  }
}
