/* === Reset & Base === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --color-bg: #ffffff;
  --color-text: #1a1a1a;
  --color-text-light: #555;
  --color-primary: #B11E1B;
  --color-primary-hover: #961916;
  --color-accent: #e63946;
  --color-surface: #f7f8fa;
  --color-border: #e5e7eb;
  --radius: 12px;
  --radius-sm: 8px;
  --max-width: 1120px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  scrollbar-color: var(--color-primary) transparent;
}
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--color-primary); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-primary-hover); }

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

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 720px; margin: 0 auto; padding: 0 24px; }

/* === Button === */
.btn {
  display: inline-block;
  padding: 14px 36px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  text-align: center;
}
.btn:hover { background: var(--color-primary-hover); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 10px 24px; font-size: 0.9rem; }

/* === Header === */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, padding 0.3s;
  padding: 16px 0;
}
.header.scrolled {
  border-bottom-color: var(--color-border);
  padding: 10px 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.header nav { display: flex; align-items: center; gap: 28px; }
.header nav a { font-size: 0.95rem; font-weight: 500; opacity: 0.7; transition: opacity 0.2s; }
.header nav a:hover { opacity: 1; }
.header nav .btn { opacity: 1; }

/* === Hero === */
.hero {
  padding: 140px 0 80px;
  background: var(--color-surface);
}
.hero-inner {
  display: flex;
  align-items: center;
  gap: 60px;
}
.hero-text { flex: 1; }
.hero-text h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.hero-sub {
  font-size: 1.2rem;
  color: var(--color-text-light);
  margin-bottom: 32px;
}
.hero-img {
  flex: 0 0 auto;
  max-width: 380px;
}

/* === Partners === */
.partners {
  padding: 48px 0;
  background: var(--color-primary);
}
.partner-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.partner-logos img {
  height: 80px;
  width: auto;
  opacity: 0.8;
  transition: opacity 0.3s;
}
.partner-logos img:hover { opacity: 1; }

/* === About === */
.about {
  padding: 80px 0;
}
#workflow {
  background: var(--color-surface);
}
.about h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.about p {
  color: var(--color-text-light);
  font-size: 1.05rem;
  margin-bottom: 12px;
}
.about strong { color: var(--color-text); }

.workflow { margin-top: 40px; }
.workflow h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 16px;
}
.workflow-steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.workflow-steps li {
  counter-increment: step;
  position: relative;
  padding: 20px;
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.5;
}
.workflow-steps li::before {
  content: counter(step);
  display: block;
  width: 28px;
  height: 28px;
  line-height: 28px;
  text-align: center;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.workflow-steps li strong { color: var(--color-text); }

/* === Features === */
.features {
  padding: 80px 0;
}
.features h2 {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 48px;
  letter-spacing: -0.02em;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px;
  transition: box-shadow 0.3s, transform 0.2s;
}
.feature-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}
.feature-icon {
  width: 56px;
  height: 56px;
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--color-primary);
}
.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.feature-card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* === Praxis / Video === */
.praxis {
  padding: 80px 0;
  background: var(--color-surface);
}
.praxis h2 {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 32px;
  letter-spacing: -0.02em;
}
.video-placeholder {
  aspect-ratio: 16/9;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.video-link {
  display: block;
  position: relative;
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  overflow: hidden;
}
.video-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.video-link:hover img { transform: scale(1.03); }
.video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}
.video-link:hover .video-play svg circle { fill: rgba(177,30,27,0.85); }

/* === Pricing === */
.pricing {
  padding: 80px 0;
}
.pricing h2 {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  letter-spacing: -0.02em;
}
.price-grid {
  display: flex;
  gap: 24px;
  justify-content: center;
  align-items: start;
}
.price-card {
  max-width: 400px;
  flex: 1;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 48px 40px;
  text-align: center;
}
.price-amount {
  margin-bottom: 28px;
}
.price-currency {
  font-size: 1.2rem;
  font-weight: 600;
  vertical-align: super;
}
.price-number {
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 4px;
}
.price-period {
  font-size: 1rem;
  color: var(--color-text-light);
}
.price-features {
  list-style: none;
  margin-bottom: 32px;
}
.price-features li {
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-light);
  font-size: 0.95rem;
}
.price-features li:last-child { border-bottom: none; }
.price-features li::before {
  content: '✓ ';
  color: #22c55e;
  font-weight: 700;
}

/* === Order Form === */
.order {
  padding: 80px 0;
  background: var(--color-surface);
}
.order h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.order-sub {
  color: var(--color-text-light);
  margin-bottom: 32px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
.form-group.full { grid-column: 1 / -1; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--color-text-light);
}
.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: var(--font);
  transition: border-color 0.2s, box-shadow 0.2s;
  background: var(--color-surface);
}
.form-group input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(42,45,50,0.08);
}

/* === Thank You === */
.thankyou {
  padding: 120px 0;
  text-align: center;
}
.thankyou h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.thankyou p { color: var(--color-text-light); }

/* === FAQ === */
.faq {
  padding: 80px 0;
  background: var(--color-surface);
}
.faq h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 32px;
  letter-spacing: -0.02em;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.faq-item summary {
  padding: 18px 24px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--color-text-light);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.faq-item[open] summary::after {
  content: '\2212';
}
.faq-item p {
  padding: 0 24px 18px;
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* === CTA === */
.cta {
  padding: 80px 0;
}
.cta h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.cta-sub {
  color: var(--color-text-light);
  font-size: 1.1rem;
  margin-bottom: 32px;
}
.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.btn-outline:hover {
  background: var(--color-surface);
  transform: translateY(-1px);
}

/* === Footer === */
.footer {
  border-top: 1px solid var(--color-border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 60px 0 40px;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--color-text-light);
}
.footer-col strong {
  color: var(--color-text);
  font-size: 0.9rem;
  margin-bottom: 4px;
}
.footer-brand {
  font-size: 1.1rem !important;
}
.footer-col p {
  font-size: 0.85rem;
  line-height: 1.5;
}
.footer-col a {
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--color-text); }
.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding: 20px 24px;
  font-size: 0.85rem;
  color: var(--color-text-light);
  text-align: center;
}

/* === Legal Pages === */
.legal {
  padding: 140px 0 80px;
}
.legal h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 32px;
  letter-spacing: -0.02em;
}
.legal h2 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 12px;
}
.legal h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 8px;
}
.legal p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 12px;
}
.legal ul {
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 12px;
  padding-left: 24px;
}
.legal a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal a:hover { color: var(--color-primary-hover); }
.legal a.btn { color: #fff; text-decoration: none; }
.legal a.btn:hover { color: #fff; }

/* === Dark Mode (System default + manual override) === */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --color-bg: #1a1a1a;
    --color-text: #ebebeb;
    --color-text-light: #aaa;
    --color-primary: #d63a36;
    --color-primary-hover: #e04a46;
    --color-surface: #2b2b2b;
    --color-border: #3d3d3d;
  }
  :root:not([data-theme="light"]) .header { background: rgba(26, 26, 26, 0.85); }
  :root:not([data-theme="light"]) .feature-card,
  :root:not([data-theme="light"]) .price-card { background: #262626; }
  :root:not([data-theme="light"]) .feature-card:hover { box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3); }
  :root:not([data-theme="light"]) .form-group input { color: var(--color-text); }
  :root:not([data-theme="light"]) .form-group input:focus { box-shadow: 0 0 0 3px rgba(214, 58, 54, 0.15); }
}

[data-theme="dark"] {
  --color-bg: #1a1a1a;
  --color-text: #ebebeb;
  --color-text-light: #aaa;
  --color-primary: #d63a36;
  --color-primary-hover: #e04a46;
  --color-surface: #2b2b2b;
  --color-border: #3d3d3d;
}
[data-theme="dark"] .header { background: rgba(26, 26, 26, 0.85); }
[data-theme="dark"] .feature-card,
[data-theme="dark"] .price-card { background: #262626; }
[data-theme="dark"] .feature-card:hover { box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3); }
[data-theme="dark"] .form-group input { color: var(--color-text); }
[data-theme="dark"] .form-group input:focus { box-shadow: 0 0 0 3px rgba(214, 58, 54, 0.15); }

/* === Theme Toggle === */
.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: var(--color-text-light);
  line-height: 1;
  transition: color 0.2s;
  display: flex;
  align-items: center;
}
.theme-toggle:hover { color: var(--color-text); }
/* Default (system): show monitor icon */
.theme-toggle .icon-light { display: none; }
.theme-toggle .icon-dark { display: none; }
.theme-toggle .icon-system { display: block; }
/* Manual light: show moon */
[data-theme="light"] .theme-toggle .icon-system { display: none; }
[data-theme="light"] .theme-toggle .icon-dark { display: block; }
/* Manual dark: show sun */
[data-theme="dark"] .theme-toggle .icon-system { display: none; }
[data-theme="dark"] .theme-toggle .icon-light { display: block; }

/* === Responsive === */
@media (max-width: 768px) {
  .theme-toggle { display: none; }
  .hero { padding: 120px 0 60px; }
  .hero-inner { flex-direction: column; text-align: center; gap: 40px; }
  .hero-img { max-width: 280px; }
  .features-grid { grid-template-columns: 1fr; }
  .workflow-steps { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-group.full { grid-column: auto; }
  .partner-logos { gap: 32px; }
  .partner-logos img { height: 56px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .price-grid { flex-direction: column; align-items: center; }
  .price-card { max-width: 100%; width: 100%; }
  .header nav a:not(.btn) { display: none; }
}
