:root {
  color-scheme: light;
  --bg: #f4efe6;
  --bg-deep: #ebe2d2;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: #ffffff;
  --surface-dark: #111827;
  --text: #111827;
  --muted: #667085;
  --line: rgba(15, 23, 42, 0.1);
  --line-strong: rgba(15, 23, 42, 0.16);
  --accent: #0f766e;
  --accent-strong: #115e59;
  --accent-soft: #d1fae5;
  --accent-warm: #c2410c;
  --shadow: 0 32px 90px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 18px 48px rgba(15, 23, 42, 0.08);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Noto Serif SC", "Noto Serif JP", "Noto Serif KR", "Noto Serif HK", "Noto Serif", Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.12), transparent 28%),
    radial-gradient(circle at 85% 10%, rgba(194, 65, 12, 0.12), transparent 24%),
    linear-gradient(180deg, var(--bg) 0%, #f7f2ea 48%, var(--bg-deep) 100%);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.45;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.24) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.2), transparent 70%);
}

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

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

.page-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 20px 0 32px;
}

.topbar {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 18px;
  margin-bottom: 22px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  flex: none;
}

.brand-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.brand-name {
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand-tag {
  color: var(--muted);
  font-size: 0.78rem;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.94rem;
}

.topnav a {
  transition: color 160ms ease, transform 160ms ease;
}

.topnav a:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.95rem 1.3rem;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-small {
  padding: 0.84rem 1.12rem;
  font-size: 0.9rem;
}

.button-large {
  padding: 1.02rem 1.44rem;
}

.button-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  box-shadow: 0 16px 32px rgba(15, 118, 110, 0.24);
}

.button-primary:hover {
  box-shadow: 0 20px 42px rgba(15, 118, 110, 0.3);
}

.button-ghost {
  color: var(--text);
  border-color: rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.55);
}

.button-ghost:hover {
  border-color: rgba(15, 23, 42, 0.16);
}

main {
  display: grid;
  gap: 28px;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 32px;
  align-items: center;
}

.hero {
  padding: 24px 0 12px;
  min-height: calc(100vh - 120px);
}

.hero-copy {
  display: grid;
  gap: 22px;
  padding: 16px 4px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 0.52rem 0.86rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.cta-panel h2,
.section-heading.narrow h2 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: -0.05em;
  line-height: 0.94;
}

.hero h1 {
  max-width: 10.5ch;
  font-size: clamp(3.5rem, 7vw, 6.55rem);
}

.lead,
.section-heading p,
.feature-card p,
.faq-card p,
.routine-list p,
.cta-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.75;
}

.hero-copy .lead {
  max-width: 60ch;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.72rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.58);
  color: #324256;
  font-size: 0.9rem;
  font-weight: 600;
}

.hero-visual {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 16px;
}

.browser-shell {
  width: 100%;
  padding: 18px;
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.76)),
    linear-gradient(135deg, rgba(15, 118, 110, 0.12), rgba(194, 65, 12, 0.06));
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.browser-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 0 16px;
}

.traffic {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.traffic-red {
  background: #fb7185;
}

.traffic-amber {
  background: #f59e0b;
}

.traffic-green {
  background: #34d399;
}

.browser-pill {
  margin-left: auto;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.preview-card {
  display: grid;
  gap: 18px;
  padding: 26px;
  border-radius: 26px;
  background:
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.08), transparent 25%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 248, 244, 0.94));
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.preview-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.preview-label {
  color: var(--accent-strong);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.preview-muted {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.preview-card h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.9rem);
  letter-spacing: -0.05em;
  line-height: 1.06;
}

.pronunciation {
  margin: 0;
  color: #475467;
  font-size: 0.98rem;
  font-style: italic;
}

.translation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.translation-grid > div {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 23, 42, 0.07);
}

.translation-label {
  display: block;
  margin-bottom: 8px;
  color: var(--accent-warm);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.translation-grid p {
  margin: 0;
  color: #243040;
  font-size: 0.95rem;
  line-height: 1.55;
}

.control-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.control-strip span {
  padding: 0.54rem 0.85rem;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.08);
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 700;
}

.floating-note {
  position: absolute;
  max-width: 180px;
  padding: 0.8rem 0.95rem;
  border-radius: 18px;
  background: rgba(17, 24, 39, 0.88);
  color: #f8fafc;
  font-size: 0.8rem;
  line-height: 1.45;
  box-shadow: var(--shadow-soft);
}

.note-left {
  left: -4px;
  bottom: 18px;
}

.note-right {
  right: -10px;
  top: 28px;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 0;
}

.proof-strip article {
  display: grid;
  gap: 8px;
  padding: 20px 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
}

.proof-strip strong {
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.proof-strip span {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

.section-block {
  display: grid;
  gap: 20px;
  padding: 12px 0;
}

.section-heading {
  display: grid;
  gap: 14px;
}

.section-heading h2 {
  max-width: 14ch;
  font-size: clamp(2.2rem, 4vw, 4rem);
}

.section-heading p {
  max-width: 58ch;
}

.feature-grid,
.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-card,
.faq-card {
  display: grid;
  gap: 14px;
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.feature-card:hover,
.faq-card:hover,
.proof-strip article:hover,
.routine-list article:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.08);
  border-color: rgba(15, 23, 42, 0.14);
}

.feature-index {
  color: var(--accent-strong);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.feature-card h3,
.faq-card h3,
.routine-list h3 {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.feature-card p,
.faq-card p,
.routine-list p {
  font-size: 0.95rem;
}

.routine-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
  align-items: start;
  padding: 8px 0;
}

.section-heading.narrow h2 {
  max-width: 11ch;
  font-size: clamp(2.4rem, 4.8vw, 4.6rem);
}

.routine-list {
  display: grid;
  gap: 14px;
}

.routine-list article {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(15, 23, 42, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.routine-list span {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.12), rgba(194, 65, 12, 0.1));
  color: var(--accent-strong);
  font-size: 0.95rem;
  font-weight: 800;
}

.routine-list div {
  display: grid;
  gap: 6px;
}

.faq-card {
  min-height: 100%;
}

.faq-card p {
  max-width: 34ch;
}

.cta-section {
  padding-top: 4px;
}

.cta-panel {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  border-radius: 30px;
  background:
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.1), transparent 24%),
    linear-gradient(135deg, rgba(17, 24, 39, 0.98), rgba(17, 24, 39, 0.88));
  color: #f8fafc;
  box-shadow: var(--shadow);
}

.cta-panel h2 {
  max-width: 15ch;
  font-size: clamp(2.2rem, 4vw, 4rem);
}

.cta-panel p {
  max-width: 56ch;
  color: rgba(248, 250, 252, 0.72);
}

.cta-panel .button-primary {
  background: linear-gradient(135deg, #f8fafc 0%, #d1fae5 100%);
  color: #0f172a;
  box-shadow: none;
}

.cta-panel .button-primary:hover {
  box-shadow: 0 20px 40px rgba(255, 255, 255, 0.16);
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 4px 6px;
  color: var(--muted);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand strong {
  display: block;
  color: var(--text);
  font-size: 0.98rem;
}

.footer-brand p {
  margin: 2px 0 0;
  font-size: 0.9rem;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 18px;
  font-size: 0.9rem;
}

.reveal {
  animation: fadeUp 700ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.delay-1 {
  animation-delay: 90ms;
}

.delay-2 {
  animation-delay: 180ms;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1024px) {
  .section-grid,
  .routine-section,
  .feature-grid,
  .faq-grid,
  .proof-strip {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 10px;
  }

  .hero h1 {
    max-width: 12ch;
  }

  .cta-panel {
    align-items: start;
    flex-direction: column;
  }

  .topbar {
    flex-wrap: wrap;
    border-radius: 28px;
  }

  .topnav {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .note-left,
  .note-right {
    position: static;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 24px, 1180px);
    padding-top: 12px;
  }

  .topbar {
    padding: 16px;
    border-radius: 24px;
  }

  .hero h1,
  .section-heading h2,
  .section-heading.narrow h2,
  .cta-panel h2 {
    max-width: none;
  }

  .hero-copy .lead,
  .section-heading p,
  .cta-panel p {
    font-size: 1rem;
  }

  .hero-actions,
  .footer,
  .footer-meta {
    align-items: start;
    flex-direction: column;
  }

  .topnav {
    gap: 14px;
  }

  .translation-grid {
    grid-template-columns: 1fr;
  }

  .browser-shell,
  .cta-panel {
    border-radius: 26px;
  }

  .preview-card {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
