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

:root {
  --bg: #fafbfc;
  --bg-alt: #f0f2f5;
  --bg-card: #ffffff;
  --text: #111827;
  --text-secondary: #4b5563;
  --text-muted: #9ca3af;
  --border: #e5e7eb;
  --accent-1: #0ea5e9;
  --accent-2: #6366f1;
  --gradient: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
  --shadow-md: 0 4px 24px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.1);
  --shadow-phone: 0 20px 60px rgba(0,0,0,.12), 0 4px 16px rgba(0,0,0,.06);
  --nav-bg: rgba(250,251,252,.85);
  --radius: 16px;
  --radius-sm: 10px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1117;
    --bg-alt: #161822;
    --bg-card: #1a1d2e;
    --text: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border: #1e293b;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.2);
    --shadow-md: 0 4px 24px rgba(0,0,0,.3);
    --shadow-lg: 0 8px 40px rgba(0,0,0,.4);
    --shadow-phone: 0 20px 60px rgba(0,0,0,.4), 0 4px 16px rgba(0,0,0,.2);
    --nav-bg: rgba(15,17,23,.85);
  }
}

body {
  font-family: "Inter", "Noto Sans SC", "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Animations ──────────────────────────────────────────── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.fade-in {
  opacity: 0;
  animation: fade-up .6s ease forwards;
}

.fade-in-d1 { animation-delay: .1s; }
.fade-in-d2 { animation-delay: .2s; }
.fade-in-d3 { animation-delay: .3s; }
.fade-in-d4 { animation-delay: .4s; }
.fade-in-d5 { animation-delay: .5s; }

/* ── Navigation ──────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  height: 64px;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1.125rem;
}

.nav-brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  font-size: .875rem;
  color: var(--text-secondary);
  transition: color .2s;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: .875rem;
  font-weight: 500;
  color: #fff !important;
  background: var(--gradient);
  transition: opacity .2s, transform .2s;
}

.nav-cta:hover {
  opacity: .9;
  transform: translateY(-1px);
}

/* ── Hero — split layout ─────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  left: 30%;
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(14,165,233,.1) 0%, rgba(99,102,241,.06) 40%, transparent 70%);
  pointer-events: none;
}

@media (prefers-color-scheme: dark) {
  .hero::before {
    background: radial-gradient(circle, rgba(14,165,233,.14) 0%, rgba(99,102,241,.08) 40%, transparent 70%);
  }
}

.hero-split {
  display: flex;
  align-items: center;
  gap: 64px;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.hero-text {
  flex: 1;
  min-width: 0;
}

.hero-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-lg);
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.12;
  margin-bottom: 18px;
}

.hero h1 .gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 460px;
  margin-bottom: 36px;
  line-height: 1.7;
}

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

.hero-phone {
  flex-shrink: 0;
  width: 280px;
}

.hero-phone.animated {
  animation: float 6s ease-in-out infinite;
}

.phone-frame {
  position: relative;
  border-radius: 36px;
  overflow: hidden;
  box-shadow: var(--shadow-phone);
  border: 6px solid var(--bg-card);
  background: var(--bg-card);
}

.phone-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 30px;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 500;
  transition: all .2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  color: #fff;
  background: var(--gradient);
}

.btn-primary:hover {
  opacity: .9;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(14,165,233,.25);
}

.btn-secondary {
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--text-muted);
  transform: translateY(-2px);
}

/* ── Section shared ──────────────────────────────────────── */
.section {
  padding: 100px 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 72px;
}

.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 12px;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

/* ── Feature showcase — alternating rows ─────────────────── */
.feature-showcase {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.feature-row {
  display: flex;
  align-items: center;
  gap: 56px;
  max-width: 920px;
  margin: 0 auto;
}

.feature-row.reverse {
  flex-direction: row-reverse;
}

.feature-row-text {
  flex: 1;
  min-width: 0;
}

.feature-row-visual {
  flex-shrink: 0;
  width: 240px;
}

.feature-row-visual .phone-frame {
  border-radius: 32px;
  border-width: 5px;
}

.feature-row-visual .phone-frame img {
  border-radius: 27px;
}

.feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  margin-bottom: 16px;
  background: var(--bg-alt);
  color: var(--accent-1);
  border: 1px solid var(--border);
}

.feature-row-text h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.25;
}

.feature-row-text p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 480px;
}

.feature-bullets {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-bullets li {
  color: var(--text-secondary);
  font-size: .95rem;
  padding-left: 22px;
  position: relative;
  line-height: 1.6;
}

.feature-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient);
}

/* ── Feature cards — text only (Storage Savings) ─────────── */
.feature-card-standalone {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  transition: transform .3s, box-shadow .3s;
}

.feature-card-standalone:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-card-standalone .feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  background: var(--bg-alt);
  color: var(--accent-1);
}

.feature-card-standalone h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-card-standalone p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 420px;
  margin: 0 auto 20px;
  line-height: 1.7;
}

.feature-card-standalone .feature-bullets {
  display: inline-flex;
  text-align: left;
}

/* ── Privacy / Trust ─────────────────────────────────────── */
.trust {
  background: var(--bg-alt);
}

.trust-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 100px;
  font-size: .875rem;
  font-weight: 600;
  background: var(--gradient);
  color: #fff;
}

.trust-inner h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
}

.trust-inner > p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 520px;
}

/* Trust chips — row of "No X" pills */
.trust-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 4px;
}

.trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 100px;
  font-size: .875rem;
  font-weight: 500;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: transform .2s, box-shadow .2s;
}

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

.trust-chip svg {
  flex-shrink: 0;
  color: var(--accent-1);
}

/* Karpathy quote callout */
.trust-callout {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 560px;
  margin: 48px auto 0;
  padding: 20px 24px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  text-align: left;
}

.trust-callout-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-alt);
  color: var(--accent-1);
}

.trust-callout p {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

.trust-callout a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color .2s;
}

.trust-callout a:hover {
  color: var(--text);
}

/* ── Pricing ─────────────────────────────────────────────── */
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 700px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
}

.pricing-card.featured {
  border-color: var(--accent-1);
  position: relative;
}

.pricing-card.featured::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius);
  padding: 1px;
  background: var(--gradient);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.pricing-label {
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.pricing-card .price {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.pricing-card .price-note {
  font-size: .875rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.pricing-card ul {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pricing-card li {
  font-size: .95rem;
  color: var(--text-secondary);
  padding-left: 22px;
  position: relative;
}

.pricing-card li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--accent-1);
  font-weight: 600;
}

/* ── Download CTA ────────────────────────────────────────── */
.download {
  text-align: center;
}

.download h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 12px;
}

.download p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
}

/* ── Language Dropdown ───────────────────────────────────── */
.lang-dropdown {
  position: relative;
}

.lang-toggle {
  padding: 0;
  margin: 0;
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  font-size: .875rem;
  line-height: inherit;
  color: var(--text-secondary);
  transition: color .2s;
}

.lang-toggle:hover {
  color: var(--text);
}

.globe-icon {
  vertical-align: -3px;
  margin-right: 4px;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 120px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .15s, visibility .15s, transform .15s;
  z-index: 200;
}

.lang-dropdown:hover .lang-menu,
.lang-dropdown:focus-within .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: block;
  padding: 8px 16px;
  font-size: .875rem;
  color: var(--text-secondary);
  transition: background .15s, color .15s;
}

.lang-option:first-child {
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.lang-option:last-child {
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.lang-option:hover {
  background: var(--bg-alt);
  color: var(--text);
}

.lang-option.active {
  color: var(--accent-1);
  font-weight: 500;
}

.footer-links .lang-toggle {
  color: var(--text-muted);
}

.footer-links .lang-toggle:hover {
  color: var(--text);
}

.footer-links .lang-dropdown .lang-menu {
  top: auto;
  bottom: calc(100% + 6px);
  transform: translateY(4px);
}

.footer-links .lang-dropdown:hover .lang-menu,
.footer-links .lang-dropdown:focus-within .lang-menu {
  transform: translateY(0);
}

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: .875rem;
  color: var(--text-muted);
  transition: color .2s;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-copy {
  font-size: .8rem;
  color: var(--text-muted);
}

/* ── Legal pages ─────────────────────────────────────────── */
.legal {
  max-width: 780px;
  margin: 0 auto;
  padding: 100px 24px 80px;
}

.legal h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.legal .last-updated {
  font-size: .875rem;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.legal h2 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 12px;
}

.legal h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 8px;
}

.legal p,
.legal li {
  font-size: .95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 12px;
}

.legal ul,
.legal ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal ul { list-style: disc; }
.legal ol { list-style: decimal; }

.legal a {
  color: var(--accent-1);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal a:hover {
  color: var(--accent-2);
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: .9rem;
}

.legal th,
.legal td {
  text-align: left;
  padding: 10px 14px;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.legal th {
  background: var(--bg-alt);
  font-weight: 600;
  color: var(--text);
}

/* ── Comparison section ──────────────────────────────────── */
.comparison {
  background: var(--bg-alt);
}

.comparison-header {
  text-align: center;
  margin-bottom: 56px;
}

.comparison-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 12px;
}

.comparison-header p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 960px;
  margin: 0 auto 56px;
}

.comparison-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
}

.comparison-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.comparison-card h3 svg {
  flex-shrink: 0;
  color: var(--accent-1);
}

.comparison-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: .9rem;
}

.comparison-row:last-child {
  border-bottom: none;
}

.comparison-label {
  color: var(--text-muted);
  flex-shrink: 0;
  margin-right: 12px;
}

.comparison-values {
  display: flex;
  gap: 20px;
  text-align: right;
}

.comparison-val {
  min-width: 72px;
}

.comparison-val.keeply {
  color: var(--text);
  font-weight: 600;
}

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

.comparison-val .winner {
  color: var(--accent-1);
}

.comparison-table-wrap {
  max-width: 800px;
  margin: 0 auto;
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}

.comparison-table th,
.comparison-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.comparison-table thead th {
  font-weight: 600;
  color: var(--text);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding-bottom: 8px;
}

.comparison-table thead th:first-child {
  color: var(--text-muted);
}

.comparison-table tbody td {
  color: var(--text-secondary);
}

.comparison-table tbody td:nth-child(2) {
  color: var(--text);
  font-weight: 600;
}

.comparison-table .check {
  color: var(--accent-1);
}

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

.comparison-note {
  text-align: center;
  margin-top: 32px;
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.comparison-teaser-cta {
  text-align: center;
  margin-top: 32px;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-split {
    gap: 40px;
  }

  .hero-phone {
    width: 220px;
  }

  .feature-row {
    gap: 36px;
  }

  .feature-row-visual {
    width: 200px;
  }
}

@media (max-width: 768px) {
  .hero-split {
    flex-direction: column;
    text-align: center;
  }

  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }

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

  .hero-phone {
    width: 220px;
    animation: none;
  }

  .feature-row,
  .feature-row.reverse {
    flex-direction: column;
    text-align: center;
  }

  .feature-row-text {
    order: 1;
  }

  .feature-row-visual {
    order: 2;
    width: 200px;
    margin: 0 auto;
  }

  .feature-tag {
    margin-left: auto;
    margin-right: auto;
  }

  .feature-row-text p {
    margin-left: auto;
    margin-right: auto;
  }

  .feature-bullets {
    display: inline-flex;
    text-align: left;
  }
}

@media (max-width: 640px) {
  .nav-links > a:not(.nav-cta) {
    display: none;
  }

  .hero {
    padding: 100px 20px 60px;
  }

  .hero-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    margin-left: auto;
    margin-right: auto;
  }

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

  .btn {
    width: 100%;
    justify-content: center;
  }

  .section {
    padding: 64px 20px;
  }

  .feature-showcase {
    gap: 56px;
  }

  .pricing-cards {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }

  .trust-chips {
    gap: 8px;
  }

  .trust-chip {
    padding: 8px 14px;
    font-size: .8rem;
  }

  .trust-callout {
    padding: 16px 18px;
  }

  .feature-card-standalone {
    padding: 32px 24px;
  }

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

  .comparison-table th,
  .comparison-table td {
    padding: 10px 12px;
    font-size: .85rem;
  }
}
