@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --page-bg-top: #f8fbff;
  --page-bg-bottom: #ffffff;
  --surface: #ffffff;
  --surface-muted: #f2f6ff;
  --surface-shadow: rgba(15, 23, 42, 0.08);
  --border: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.14);
  --text-primary: #0f172a;
  --text-muted: #536075;
  --accent: #1d4ed8;
  --accent-strong: #163fae;
  --accent-soft: rgba(29, 78, 216, 0.12);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 12px;
  --shadow-sm: 0 10px 36px rgba(15, 23, 42, 0.1);
  --shadow-md: 0 24px 60px rgba(15, 23, 42, 0.14);
  --max-width: 1140px;
}

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

html, body {
  min-height: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
  background: linear-gradient(180deg, var(--page-bg-top) 0%, var(--page-bg-bottom) 60%, #ffffff 100%);
  color: var(--text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg, video {
  display: block;
  max-width: 100%;
}

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

button {
  font: inherit;
  cursor: pointer;
  border: none;
}

.section {
  padding: 120px 24px;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-title {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.035em;
  text-align: center;
  margin-bottom: 48px;
}

.muted {
  color: var(--text-muted);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(29, 78, 216, 0.3);
  outline-offset: 4px;
  border-radius: 14px;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.75);
  transition: box-shadow 0.2s ease;
}

.header.scrolled {
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.08);
}

.header-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.header-button {
  background: var(--text-primary);
  color: #fff;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.header-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* CTA */
.cta-button {
  background: var(--accent);
  color: #fff;
  padding: 16px 32px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.01em;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: var(--shadow-sm);
}

.cta-button.primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  background: var(--accent-strong);
}

.cta-button.secondary {
  background: var(--surface);
  color: var(--text-primary);
  border: 1px solid var(--border);
  box-shadow: none;
}

.cta-button.secondary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

/* Hero */
.hero {
  padding: 140px 24px 100px;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(15, 23, 42, 0.06), transparent);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: 72px;
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.hero-title {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.hero-subtitle {
  font-size: 20px;
  color: var(--text-muted);
  max-width: 520px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-media {
  position: relative;
  min-height: 420px;
}

.hero-frame {
  position: absolute;
  border-radius: 26px;
  border: 1px solid var(--border-strong);
  background: linear-gradient(140deg, #ffffff 0%, #eef4ff 100%);
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.16);
  overflow: hidden;
}

.hero-frame-surface {
  position: absolute;
  inset: 18px;
  border-radius: 18px;
  border: 1px dashed rgba(29, 78, 216, 0.2);
  background: rgba(255, 255, 255, 0.7);
}

.hero-frame--desktop {
  width: 320px;
  height: 360px;
  top: 12px;
  right: 24px;
}

.hero-frame--mobile {
  width: 170px;
  height: 260px;
  bottom: 0;
  left: 0;
  transform: rotate(-6deg);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.12);
}

/* Pain */
.pain-section {
  position: relative;
}

.pain-section::before {
  content: "";
  position: absolute;
  inset: 18% -25% auto;
  height: 300px;
  background: radial-gradient(circle, rgba(29, 78, 216, 0.12), transparent 70%);
  z-index: 0;
}

.pain-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 48px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: center;
}

.pain-content {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.pain-item {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.pain-item p {
  color: var(--text-muted);
}

.pain-solution {
  text-align: left;
  color: var(--text-primary);
  font-size: 18px;
}

.pain-visual {
  display: flex;
  justify-content: center;
}

.comparison-frame {
  position: relative;
  width: 360px;
  max-width: 100%;
  aspect-ratio: 16/11;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  background: linear-gradient(135deg, #ffffff 0%, #eef3ff 100%);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.comparison-card {
  position: absolute;
  border-radius: 18px;
  width: 160px;
  height: 200px;
  top: 50%;
  transform: translateY(-50%);
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.1);
}

.comparison-card--other {
  left: 28px;
  opacity: 0.7;
}

.comparison-card--penglo {
  right: 28px;
  border-color: rgba(29, 78, 216, 0.25);
}

/* Isolation */
.isolation-layout {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: stretch;
}

.isolation-left,
.isolation-right {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 36px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.isolation-lead {
  font-size: 18px;
  color: var(--text-primary);
  margin-bottom: 18px;
}

.isolation-lead.muted {
  color: var(--text-muted);
  margin-bottom: 0;
}

.iso-row {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.iso-label {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 16px;
}

.iso-value {
  color: var(--text-muted);
  line-height: 1.6;
}

/* Solution */
.solution-layout {
  display: grid;
}

.solution-points {
  list-style: none;
  display: grid;
  gap: 18px;
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 42px 46px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.solution-points li {
  color: var(--text-muted);
  line-height: 1.65;
  font-size: 17px;
}

.solution-points strong {
  color: var(--text-primary);
}

/* Unified */
.unified-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 36px;
  align-items: stretch;
}

.unified-left,
.unified-right {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 40px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.unified-lead {
  font-size: 18px;
  color: var(--text-primary);
  margin-bottom: 18px;
}

.unified-lead.muted {
  color: var(--text-muted);
}

.unified-row {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.unified-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.unified-label {
  font-weight: 600;
  color: var(--text-primary);
  width: 120px;
}

.unified-value {
  color: var(--text-muted);
  flex: 1;
}

/* How it works */
.how-steps {
  position: relative;
  display: grid;
  gap: 24px;
}

.how-steps::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, rgba(29, 78, 216, 0.28), rgba(29, 78, 216, 0));
}

.how-step {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 30px 32px 30px 76px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.step-number {
  position: absolute;
  left: 20px;
  top: 28px;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(29, 78, 216, 0.12);
  color: var(--accent);
  font-weight: 700;
  display: grid;
  place-items: center;
}

.step-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.step-desc {
  color: var(--text-muted);
  margin-bottom: 12px;
}

.step-points {
  margin-left: 18px;
  color: var(--text-muted);
}

.step-points li {
  margin-bottom: 6px;
}

/* Week 1 */
.notice-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.notice-item {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 28px 26px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.notice-item p {
  color: var(--text-muted);
}

/* FAQ */
.faq-section .section-inner {
  max-width: 820px;
}

.faq-item {
  background: var(--surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-header {
  width: 100%;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
}

.faq-question {
  font-size: 18px;
  font-weight: 600;
}

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(29, 78, 216, 0.12);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-weight: 600;
}

.faq-answer {
  padding: 0 24px 22px;
  color: var(--text-muted);
}

/* Final CTA */
.final-cta {
  padding: 140px 24px 120px;
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: "";
  position: absolute;
  inset: auto -12% -36%;
  height: 420px;
  background: radial-gradient(circle, rgba(29, 78, 216, 0.18), transparent 75%);
  z-index: 0;
}

.final-cta-inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(29, 78, 216, 0.14), rgba(29, 78, 216, 0.04));
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  text-align: center;
  border: 1px solid rgba(29, 78, 216, 0.18);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
}

.final-cta-title {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.final-cta-subtitle {
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 32px;
}

.final-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.final-cta-button.primary {
  min-width: 180px;
}

.final-cta-button.secondary {
  background: rgba(255, 255, 255, 0.88);
}

/* Footer */
.site-footer {
  padding: 64px 24px;
  background: #0f172a;
  color: rgba(255, 255, 255, 0.75);
}

.site-footer .footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
}

.footer-logo {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.68);
  font-size: 15px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 180px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  transition: color 0.2s ease;
}

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

.footer-meta {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

/* Legal pages */
body.legal-page {
  background: #ffffff;
  color: var(--text-primary);
}

.legal-wrapper {
  max-width: 920px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}

.legal-hero {
  padding: 24px 0 12px;
  text-align: left;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.legal-hero h1 {
  font-size: 32px;
  margin-bottom: 10px;
}

.legal-badge {
  display: inline-block;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.legal-section {
  padding: 0;
  margin: 32px 0 0;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.legal-section h2 {
  font-size: 24px;
  margin-bottom: 12px;
}

.legal-section h3 {
  font-size: 18px;
  margin-top: 18px;
  margin-bottom: 8px;
}

.legal-section p {
  color: inherit;
}

.legal-section ul {
  margin: 12px 0 0;
  padding-left: 22px;
  color: inherit;
}

.legal-section ul li {
  margin-bottom: 6px;
}

.legal-section a,
.legal-hero a {
  color: var(--accent);
  text-decoration: underline;
}

.legal-section a:hover,
.legal-hero a:hover {
  color: var(--accent-strong);
}

/* Responsive */
@media (max-width: 1024px) {
  .header-content {
    padding: 18px 24px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-media {
    min-height: 340px;
  }

  .hero-frame--desktop {
    right: 50%;
    transform: translateX(50%);
  }

  .hero-frame--mobile {
    left: 50%;
    transform: translate(-120px, -20px) rotate(-6deg);
  }

  .pain-inner {
    grid-template-columns: 1fr;
  }

  .comparison-frame {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 80px 20px;
  }

  .section-title {
    font-size: 32px;
    margin-bottom: 36px;
  }

  .hero {
    padding: 120px 20px 80px;
  }

  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }

  .cta-button {
    width: 100%;
  }

  .solution-points,
  .isolation-left,
  .isolation-right,
  .unified-left,
  .unified-right,
  .notice-item,
  .growth-panel,
  .how-step {
    padding: 28px;
  }

  .how-steps::before {
    display: none;
  }

  .step-number {
    position: static;
    left: auto;
    top: auto;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    margin-bottom: 16px;
  }

  .how-step {
    padding: 28px;
  }

  .final-cta-buttons {
    flex-direction: column;
  }

  .site-footer .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
