:root {
  color-scheme: light dark;
  --ink: #1F2730;
  --accent-blue: #3D67E5;
  --warm-light: #F8F5EF;
  --dark-canvas: #12161C;
  --dark-ink: #F5F7FA;
  --bg: var(--warm-light);
  --page-2: #F1EEE8;
  --text: var(--ink);
  --muted: #64707D;
  --surface: rgba(255, 255, 255, 0.74);
  --surface-strong: #FFFFFF;
  --surface-soft: rgba(61, 103, 229, 0.07);
  --line: rgba(31, 39, 48, 0.14);
  --line-strong: rgba(31, 39, 48, 0.24);
  --shadow: 0 22px 60px rgba(31, 39, 48, 0.14);
  --motion-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--dark-canvas);
    --page-2: #171D25;
    --text: var(--dark-ink);
    --muted: #B5BEC9;
    --surface: rgba(245, 247, 250, 0.07);
    --surface-strong: rgba(245, 247, 250, 0.10);
    --surface-soft: rgba(61, 103, 229, 0.14);
    --line: rgba(245, 247, 250, 0.14);
    --line-strong: rgba(245, 247, 250, 0.26);
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.44);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--page-2) 100%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Apple SD Gothic Neo", "Segoe UI", sans-serif;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(248, 245, 239, 0.82);
  backdrop-filter: blur(18px);
}

@media (prefers-color-scheme: dark) {
  .site-header {
    background: rgba(18, 22, 28, 0.82);
  }
}

.nav {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 92px;
  flex: 0 0 auto;
}

.brand img {
  width: 92px;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.nav-links a,
.footer a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
}

.nav-links a:hover,
.footer a:hover {
  color: var(--accent-blue);
}

.nav-cta,
.button {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 8px;
  border: 1px solid var(--line);
  padding: 0 16px;
  font-size: 0.92rem;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.button::after,
.nav-cta::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(105deg, transparent 20%, rgba(255, 255, 255, 0.26) 48%, transparent 76%);
  opacity: 0;
  transform: translateX(-120%);
}

.nav-cta {
  color: var(--accent-blue);
  border-color: rgba(61, 103, 229, 0.34);
  background: rgba(61, 103, 229, 0.08);
}

main {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  min-height: calc(70vh - 68px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  padding: 36px 0 42px;
}

.hero-copy {
  min-width: 0;
}

.section-copy,
.section-heading,
.feature-visual,
.privacy-section > *,
.manual-section {
  min-width: 0;
}

.release-note {
  display: inline-flex;
  margin-bottom: 16px;
  border: 1px solid rgba(61, 103, 229, 0.34);
  border-radius: 8px;
  padding: 7px 10px;
  background: rgba(61, 103, 229, 0.08);
  color: var(--accent-blue);
  font-size: 0.82rem;
  font-weight: 760;
  letter-spacing: 0;
}

h1,
h2,
h3,
p,
li {
  margin-top: 0;
  overflow-wrap: anywhere;
}

h1 {
  margin-bottom: 24px;
  font-size: 4.2rem;
  line-height: 1.04;
  font-weight: 860;
  letter-spacing: 0;
  word-break: keep-all;
}

h2 {
  margin-bottom: 16px;
  font-size: 2.5rem;
  line-height: 1.15;
  font-weight: 820;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 9px;
  font-size: 1.12rem;
  line-height: 1.3;
  font-weight: 790;
  letter-spacing: 0;
}

.lead,
.section-copy p,
.section-heading p,
.privacy-section p,
.manual-section p {
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.72;
}

.lead {
  max-width: 650px;
  margin-bottom: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-actions.center {
  justify-content: center;
}

.button.primary {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  color: #FFFFFF;
}

.button.secondary {
  background: var(--surface);
  color: var(--text);
}

.button:focus-visible,
.nav-cta:focus-visible,
.nav-links a:focus-visible,
.footer a:focus-visible {
  outline: 3px solid rgba(61, 103, 229, 0.36);
  outline-offset: 3px;
}

.footer-brand picture {
  display: block;
  line-height: 0;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.trust-list li {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 650;
}

.hero-visual {
  position: relative;
  min-height: 460px;
  margin: 0;
  transform-style: preserve-3d;
}

.hero-shot,
.floating-shot,
.feature-visual img,
.tool-card img {
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-shot {
  width: 100%;
  aspect-ratio: 1800 / 1267;
  object-fit: cover;
}

.floating-shot {
  position: absolute;
  width: 38%;
  aspect-ratio: 1200 / 844;
  object-fit: cover;
  background: var(--surface-strong);
}

.screen-shot {
  right: -2%;
  bottom: 2%;
}

.memo-shot {
  left: -5%;
  bottom: -8%;
}

.split-section,
.privacy-section {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  align-items: center;
  gap: 44px;
  padding: 62px 0;
  border-top: 1px solid var(--line);
}

.section {
  padding: 76px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

.feature-visual {
  margin: 0;
}

.feature-visual img {
  width: 100%;
  aspect-ratio: 1200 / 844;
  object-fit: cover;
}

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

.tool-card,
.safety-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.tool-card {
  display: grid;
  grid-template-columns: 42% 1fr;
  gap: 18px;
  align-items: center;
  min-height: 220px;
  padding: 16px;
}

.tool-card.large {
  grid-column: span 1;
}

.tool-card img {
  width: 100%;
  aspect-ratio: 1.18;
  object-fit: cover;
}

.tool-card p,
.safety-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.62;
}

.text-only-card {
  grid-column: 1 / -1;
  padding: 10px;
}

.safety-section {
  background: var(--surface-soft);
  margin-left: calc((100vw - min(1120px, calc(100vw - 40px))) / -2);
  margin-right: calc((100vw - min(1120px, calc(100vw - 40px))) / -2);
  padding-left: calc((100vw - min(1120px, calc(100vw - 40px))) / 2);
  padding-right: calc((100vw - min(1120px, calc(100vw - 40px))) / 2);
}

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

.safety-grid article {
  min-height: 190px;
  padding: 20px;
}

.privacy-section {
  align-items: start;
}

.permission-list {
  display: grid;
  gap: 10px;
}

.permission-list div {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 14px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 15px 16px;
  background: var(--surface);
}

.permission-list strong {
  color: var(--accent-blue);
  font-size: 0.95rem;
}

.permission-list span {
  color: var(--muted);
  line-height: 1.55;
}

.manual-section {
  padding: 76px 0 88px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.manual-section p {
  max-width: 620px;
  margin: 0 auto;
}

.screenshot-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.screenshot-strip img {
  width: 100%;
  aspect-ratio: 1200 / 844;
  object-fit: cover;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 36px;
  display: flex;
  align-items: center;
  gap: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-brand {
  margin-right: auto;
  display: inline-flex;
  align-items: center;
}

.footer-brand img {
  width: 132px;
  height: auto;
}

.manual-home {
  padding-top: 54px;
}

.manual-hero {
  padding: 54px 0 58px;
  border-bottom: 1px solid var(--line);
}

.manual-hero p {
  max-width: 720px;
}

.manual-language-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 42px 0 72px;
}

.manual-language-grid a {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  background: var(--surface);
  color: var(--text);
  font-weight: 720;
  text-decoration: none;
}

.manual-language-grid span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 560;
}

@media (prefers-reduced-motion: no-preference) {
  .site-header {
    animation: header-in 520ms var(--motion-ease) both;
  }

  .brand,
  .nav-links a,
  .nav-cta {
    transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
  }

  .hero-copy h1,
  .hero-copy .lead,
  .hero-actions,
  .trust-list {
    opacity: 0;
    animation: rise-in 760ms var(--motion-ease) both;
  }

  .hero-copy .lead {
    animation-delay: 90ms;
  }

  .hero-actions {
    animation-delay: 170ms;
  }

  .trust-list {
    animation-delay: 250ms;
  }

  .hero-visual {
    animation: visual-in 860ms var(--motion-ease) 120ms both;
    transition: transform 420ms var(--motion-ease);
  }

  .hero-shot {
    animation: quiet-float 9s ease-in-out 1.2s infinite;
  }

  .screen-shot {
    animation: panel-in 760ms var(--motion-ease) 360ms both, panel-float-a 7.5s ease-in-out 1.4s infinite;
  }

  .memo-shot {
    animation: panel-in 760ms var(--motion-ease) 460ms both, panel-float-b 8.2s ease-in-out 1.6s infinite;
  }

  .button,
  .nav-cta,
  .manual-language-grid a,
  .tool-card,
  .safety-grid article,
  .permission-list div {
    transition: transform 220ms var(--motion-ease), border-color 220ms ease, background-color 220ms ease, box-shadow 220ms ease;
  }

  .button:hover,
  .nav-cta:hover,
  .manual-language-grid a:hover {
    transform: translateY(-1px);
  }

  .button:hover::after,
  .nav-cta:hover::after {
    opacity: 1;
    transform: translateX(120%);
    transition: transform 720ms var(--motion-ease), opacity 180ms ease;
  }

  .tool-card:hover,
  .safety-grid article:hover,
  .permission-list div:hover {
    transform: translateY(-3px);
    border-color: rgba(61, 103, 229, 0.34);
    box-shadow: 0 16px 48px rgba(31, 39, 48, 0.12);
  }

  .js-motion .motion-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 680ms var(--motion-ease), transform 680ms var(--motion-ease);
    transition-delay: calc(var(--reveal-index, 0) * 70ms);
  }

  .js-motion .motion-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes header-in {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes visual-in {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes quiet-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@keyframes panel-float-a {
  0%, 100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -7px, 0);
  }
}

@keyframes panel-float-b {
  0%, 100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, 6px, 0);
  }
}

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

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

  .js-motion .motion-reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .hero-visual {
    transform: none !important;
  }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 46px;
  }

  .hero-visual {
    min-height: 0;
    padding-bottom: 64px;
  }

  .split-section,
  .privacy-section {
    grid-template-columns: 1fr;
  }

  .safety-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .screenshot-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .nav {
    width: min(1120px, calc(100vw - 96px));
    min-height: 62px;
  }

  .nav-links {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  main,
  .footer {
    width: min(1120px, calc(100vw - 96px));
  }

  .hero {
    gap: 20px;
    padding: 28px 0 24px;
  }

  h1 {
    font-size: 2.32rem;
    line-height: 1.12;
  }

  h2 {
    font-size: 1.68rem;
  }

  .lead,
  .section-copy p,
  .section-heading p,
  .privacy-section p,
  .manual-section p {
    font-size: 0.92rem;
    line-height: 1.56;
  }

  .hero-actions {
    flex-direction: column;
    margin-top: 22px;
  }

  .button {
    width: 100%;
    min-height: 40px;
    padding: 0 10px;
    font-size: 0.88rem;
  }

  .trust-list {
    margin-top: 18px;
  }

  .trust-list li {
    padding: 7px 9px;
    font-size: 0.82rem;
  }

  .hero-visual {
    display: none;
  }

  .floating-shot {
    display: none;
  }

  .tool-grid,
  .safety-grid,
  .screenshot-strip,
  .manual-language-grid {
    grid-template-columns: 1fr;
  }

  .tool-card {
    grid-template-columns: 1fr;
  }

  .permission-list div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .footer {
    flex-wrap: wrap;
  }
}
