:root {
  color-scheme: light dark;
  --ink: #171528;
  --muted: #626071;
  --line: color-mix(in srgb, #33298c 12%, transparent);
  --panel: color-mix(in srgb, white 86%, transparent);
  --panel-strong: color-mix(in srgb, white 96%, transparent);
  --canvas: #f7f6fb;
  --indigo: #33298c;
  --violet: #6e59e0;
  --apricot: #ff8245;
  --shadow: 0 24px 80px rgba(36, 28, 96, 0.12);
  --radius-lg: 30px;
  --radius-md: 22px;
  --max-width: 1180px;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "PingFang SC", "Hiragino Sans GB", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 75% 4%, rgba(110, 89, 224, 0.12), transparent 25rem),
    radial-gradient(circle at 10% 32%, rgba(255, 130, 69, 0.08), transparent 22rem),
    var(--canvas);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-underline-offset: 0.18em; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--apricot); outline-offset: 4px; }

.skip-link {
  position: fixed;
  z-index: 999;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  color: white;
  background: var(--indigo);
  transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid transparent;
  background: color-mix(in srgb, var(--canvas) 84%, transparent);
  backdrop-filter: blur(20px) saturate(140%);
}
.nav,
.section,
.footer-inner {
  width: min(calc(100% - 40px), var(--max-width));
  margin-inline: auto;
}
.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 19px;
  font-weight: 750;
  text-decoration: none;
  letter-spacing: -0.02em;
}
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--muted); font-size: 14px; font-weight: 650; text-decoration: none; }
.nav-links a:hover { color: var(--indigo); }
.language-link {
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}

.section { padding-block: 112px; }
.hero {
  min-height: calc(100svh - 72px);
  padding-top: 80px;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(460px, 1.14fr);
  align-items: center;
  gap: 72px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: var(--indigo);
  font-size: 14px;
  font-weight: 750;
  letter-spacing: 0.02em;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--apricot); }
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 780px;
  margin-bottom: 24px;
  font-size: clamp(3.2rem, 7vw, 6.7rem);
  line-height: 0.96;
  letter-spacing: -0.065em;
}
.hero-copy { max-width: 640px; margin-bottom: 28px; color: var(--muted); font-size: clamp(1.08rem, 1.5vw, 1.3rem); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 12px 22px; margin: 28px 0 0; color: var(--muted); font-size: 14px; }
.hero-meta span::before { content: "✓"; margin-right: 7px; color: var(--violet); font-weight: 800; }

.store-cta {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 22px;
  border: 1px solid rgba(51, 41, 140, 0.24);
  border-radius: 15px;
  color: white;
  background: linear-gradient(135deg, var(--indigo), var(--violet));
  box-shadow: 0 12px 30px rgba(51, 41, 140, 0.25);
  font-weight: 750;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.store-cta::before {
  content: "A";
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 8px;
  font-size: 15px;
}
.store-cta:not(.is-disabled):hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(51, 41, 140, 0.32); }
.store-cta.is-disabled { color: #6c6977; background: #e7e5eb; border-color: transparent; box-shadow: none; cursor: default; }
.store-cta.is-disabled::before { border-color: rgba(77,73,92,.25); }

.hero-visual { position: relative; min-height: 640px; display: grid; place-items: center; }
.selection-surface {
  position: absolute;
  inset: 2% 0 16%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: rgba(255,255,255,.42);
  box-shadow: var(--shadow);
  transform: rotate(1.2deg);
}
.selection-copy { padding: 70px 56px; color: rgba(60,57,74,.36); font-size: clamp(1.3rem, 2.3vw, 2.2rem); line-height: 1.7; }
.selection-copy mark { color: white; background: var(--violet); padding: 1px 6px; border-radius: 5px; }
.lookup-mock {
  position: relative;
  z-index: 2;
  width: min(430px, 80%);
  margin-left: -4%;
  overflow: hidden;
  border: 1px solid rgba(51,41,140,.15);
  border-radius: 24px;
  background: rgba(250,250,252,.91);
  box-shadow: 0 32px 100px rgba(37,28,97,.24);
  backdrop-filter: blur(24px);
}
.mock-header { display: flex; align-items: center; gap: 12px; padding: 20px 22px; border-bottom: 1px solid rgba(51,41,140,.1); }
.mock-header img { width: 36px; height: 36px; border-radius: 10px; }
.mock-header strong { font-size: 18px; }
.mock-header span { margin-left: auto; color: #7e7b88; letter-spacing: .4em; }
.mock-body { padding: 24px; }
.mock-label { margin-bottom: 6px; color: var(--muted); font-size: 13px; font-weight: 650; }
.mock-word { margin-bottom: 20px; font-size: 31px; line-height: 1.2; letter-spacing: -.03em; }
.mock-translation { margin-bottom: 20px; padding-block: 19px; border-block: 1px solid rgba(51,41,140,.1); font-size: 19px; }
.mock-dictionary { padding: 18px; border-radius: 16px; background: rgba(110,89,224,.08); }
.mock-dictionary small { color: var(--violet); font-weight: 750; }
.mock-dictionary p { margin: 8px 0 0; }
.shortcut-chip {
  position: absolute;
  z-index: 3;
  right: 1%;
  bottom: 6%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 17px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel-strong);
  box-shadow: 0 18px 55px rgba(37,28,97,.15);
  font-size: 14px;
  font-weight: 700;
}
.key { min-width: 34px; padding: 5px 9px; border: 1px solid rgba(51,41,140,.15); border-bottom-width: 3px; border-radius: 8px; text-align: center; background: white; }

.section-heading { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: end; margin-bottom: 58px; }
.section-heading h2 { margin-bottom: 0; font-size: clamp(2.35rem, 5vw, 4.8rem); line-height: 1.02; letter-spacing: -.055em; }
.section-heading p { margin-bottom: 4px; color: var(--muted); font-size: 18px; }

.workflow { border-block: 1px solid var(--line); }
.workflow-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.workflow-step { padding: 38px 32px 42px; }
.workflow-step + .workflow-step { border-left: 1px solid var(--line); }
.step-number { display: block; margin-bottom: 34px; color: var(--violet); font-size: 13px; font-weight: 780; }
.workflow-step h3 { margin-bottom: 12px; font-size: 23px; letter-spacing: -.025em; }
.workflow-step p { margin: 0; color: var(--muted); }

.feature-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 24px; }
.feature-card { min-height: 330px; padding: 36px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--panel); }
.feature-card h3 { font-size: 28px; letter-spacing: -.035em; }
.feature-card p { color: var(--muted); }
.feature-card.wide { grid-row: span 2; min-height: 684px; }
.screenshot-frame { position: relative; margin-top: 40px; padding: 14px 14px 0; border-radius: 22px 22px 0 0; background: #dcd9e7; box-shadow: 0 24px 60px rgba(37,28,97,.18); transform: rotate(-1deg) translateY(8px); }
.screenshot-frame::before { content: "●  ●  ●"; display: block; margin: -2px 0 8px 4px; color: #a5a1b2; font-size: 10px; letter-spacing: 5px; }
.screenshot-frame img { border-radius: 12px 12px 0 0; }
.locales { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 30px; }
.locales span { padding: 6px 0; margin-right: 16px; color: var(--indigo); font-size: 14px; font-weight: 700; }
.source-switch { display: grid; gap: 12px; margin-top: 26px; }
.source-row { display: flex; justify-content: space-between; gap: 18px; padding-block: 11px; border-bottom: 1px solid var(--line); }
.source-row span:last-child { color: var(--violet); font-weight: 700; }

.privacy { position: relative; overflow: hidden; border-radius: 42px; background: #1b173d; color: white; }
.privacy::after { content: ""; position: absolute; width: 440px; height: 440px; right: -180px; bottom: -240px; border: 80px solid rgba(110,89,224,.45); border-radius: 50%; }
.privacy .section { position: relative; z-index: 1; display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; }
.privacy h2 { font-size: clamp(2.4rem, 5vw, 5rem); line-height: 1; letter-spacing: -.055em; }
.privacy p { color: #cbc7e8; }
.privacy-list { list-style: none; padding: 0; margin: 0; }
.privacy-list li { position: relative; padding: 19px 0 19px 34px; border-bottom: 1px solid rgba(255,255,255,.13); }
.privacy-list li::before { content: "✓"; position: absolute; left: 0; color: #b4a9ff; font-weight: 800; }

.pricing { text-align: center; }
.pricing .section-heading { display: block; max-width: 800px; margin-inline: auto; }
.pricing-card { width: min(100%, 680px); margin-inline: auto; padding: 48px; border: 1px solid var(--line); border-radius: 32px; background: var(--panel-strong); box-shadow: var(--shadow); }
.prices { display: flex; justify-content: center; align-items: baseline; gap: 42px; margin: 26px 0 8px; }
.prices strong { color: var(--indigo); font-size: clamp(2.5rem, 6vw, 4.6rem); line-height: 1; letter-spacing: -.05em; }
.price-note { margin-bottom: 28px; color: var(--muted); font-size: 14px; }
.pricing-disclaimer { max-width: 520px; margin: 20px auto 0; color: var(--muted); font-size: 13px; }

.faq { max-width: 860px; margin-inline: auto; }
.faq h2 { margin-bottom: 42px; font-size: clamp(2.4rem, 5vw, 4rem); letter-spacing: -.05em; text-align: center; }
details { border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
summary { padding: 22px 4px; cursor: pointer; font-weight: 720; }
details p { padding: 0 4px 22px; color: var(--muted); }

.legal-main { min-height: 70svh; }
.legal-hero { padding-top: 86px; padding-bottom: 44px; }
.legal-hero h1 { max-width: 900px; font-size: clamp(2.8rem, 7vw, 5.8rem); }
.legal-hero p { max-width: 760px; color: var(--muted); }
.legal-content { max-width: 820px; padding-top: 24px; }
.legal-content section { padding: 28px 0; border-top: 1px solid var(--line); }
.legal-content h2 { font-size: 25px; letter-spacing: -.025em; }
.legal-content li + li { margin-top: 8px; }
.notice { margin: 28px 0; padding: 20px 22px; border-left: 4px solid var(--apricot); border-radius: 0 14px 14px 0; background: rgba(255,130,69,.08); }

.site-footer { margin-top: 70px; border-top: 1px solid var(--line); }
.footer-inner { min-height: 150px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; color: var(--muted); font-size: 14px; }
.footer-links a { text-decoration: none; }
.footer-note { color: var(--muted); font-size: 13px; }

@media (max-width: 900px) {
  .nav-links a:not(.language-link) { display: none; }
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 32px; padding-top: 72px; }
  .hero-visual { min-height: 560px; }
  .section-heading, .privacy .section { grid-template-columns: 1fr; gap: 26px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card.wide { grid-row: auto; min-height: 580px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav, .section, .footer-inner { width: min(calc(100% - 28px), var(--max-width)); }
  .section { padding-block: 80px; }
  .nav { min-height: 64px; }
  .brand img { width: 34px; height: 34px; }
  .hero { padding-top: 54px; }
  .hero-visual { min-height: 500px; margin-inline: -14px; }
  .selection-surface { inset-inline: 5px; transform: none; }
  .selection-copy { padding: 42px 28px; }
  .lookup-mock { width: 86%; margin-left: 0; }
  .shortcut-chip { right: 4%; bottom: 1%; }
  .workflow-grid { grid-template-columns: 1fr; }
  .workflow-step + .workflow-step { border-left: 0; border-top: 1px solid var(--line); }
  .feature-card { padding: 28px; }
  .feature-card.wide { min-height: 490px; }
  .prices { gap: 22px; }
  .pricing-card { padding: 34px 22px; }
  .privacy { border-radius: 28px; }
  .footer-inner { padding-block: 34px; align-items: flex-start; flex-direction: column; }
}

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

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f4f2fb;
    --muted: #b8b4c7;
    --line: rgba(211, 204, 255, .14);
    --panel: rgba(31, 28, 49, .82);
    --panel-strong: #242038;
    --canvas: #12101c;
    --shadow: 0 24px 80px rgba(0,0,0,.32);
  }
  .selection-surface { background: rgba(32,29,47,.62); }
  .lookup-mock { background: rgba(35,32,49,.94); }
  .key { color: #262238; background: #f0edf7; }
  .store-cta.is-disabled { color: #aca8b7; background: #373342; }
  .screenshot-frame { background: #3c3849; }
}
