:root {
  --accent: #fa7010;
  --accent-dark: #d85d08;
  --accent-soft: #fff4ea;
  --bg: #ffffff;
  --bg-soft: #faf7f3;
  --bg-warm: #fdfaf5;
  --text: #1a1a1a;
  --text-muted: #5a5a5a;
  --text-soft: #7a7a7a;
  --border: #ece8e2;
  --border-strong: #d8d2c8;
  --radius: 14px;
  --radius-lg: 22px;
  --max: 1080px;
  --shadow-sm: 0 1px 2px rgba(26, 15, 0, 0.04), 0 2px 8px rgba(26, 15, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(26, 15, 0, 0.06), 0 8px 32px rgba(26, 15, 0, 0.06);
  --shadow-lg: 0 12px 40px rgba(26, 15, 0, 0.10);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--accent); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--accent-dark); text-decoration: underline; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header: floating capsule */
.site-header {
  position: sticky;
  top: 14px;
  z-index: 20;
  margin-top: 14px;
  padding: 0 20px;
  background: transparent;
  animation: navDrop 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.site-header::after { content: none; }
@keyframes navDrop {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 9px 14px 9px 20px;
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.94) 0%, rgba(255, 250, 243, 0.86) 100%);
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  border: 1px solid rgba(236, 232, 226, 0.9);
  border-radius: 999px;
  box-shadow:
    0 1px 2px rgba(26, 15, 0, 0.05),
    0 8px 24px rgba(26, 15, 0, 0.08),
    0 22px 60px rgba(250, 112, 16, 0.07);
}

/* Brand wordmark */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  line-height: 1;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.015em;
  animation: brandIn 0.9s 0.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.brand:hover {
  color: var(--text);
  text-decoration: none;
}
@keyframes brandIn {
  from { opacity: 0; transform: translateX(-6px); }
  to   { opacity: 1; transform: translateX(0); }
}
.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: block;
  box-shadow:
    0 1px 2px rgba(26, 15, 0, 0.08),
    0 6px 14px rgba(250, 112, 16, 0.2);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}
.brand:hover .brand-icon {
  transform: rotate(-6deg) scale(1.06);
  box-shadow:
    0 1px 2px rgba(26, 15, 0, 0.08),
    0 10px 22px rgba(250, 112, 16, 0.3);
}
.brand-mark {
  display: inline-flex;
  align-items: baseline;
}
.brand-num {
  color: var(--accent);
  margin-left: 2px;
  letter-spacing: -0.01em;
}
.brand-star {
  width: 15px;
  height: 15px;
  margin-left: 8px;
  color: var(--border-strong);
  transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1), color 0.3s ease;
  flex-shrink: 0;
}
.brand:hover .brand-star {
  color: var(--accent);
  transform: rotate(45deg);
}

/* Nav capsule (iOS-style segmented pill) */
.nav {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 5px;
  background: rgba(253, 248, 240, 0.7);
  border: 1px solid rgba(236, 232, 226, 0.9);
  border-radius: 999px;
  box-shadow:
    inset 0 1px 2px rgba(26, 15, 0, 0.03),
    0 1px 2px rgba(26, 15, 0, 0.02);
  animation: brandIn 0.9s 0.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.nav a {
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.005em;
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 999px;
  line-height: 1;
  transition:
    color 0.2s ease,
    background 0.25s ease,
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav a:hover {
  color: var(--text);
  background: rgba(255, 244, 234, 0.7);
  text-decoration: none;
}
.nav a:active {
  transform: scale(0.96);
}
.nav a.is-active {
  color: var(--accent-dark);
  background: var(--accent-soft);
  font-weight: 600;
  box-shadow:
    inset 0 0 0 1px rgba(250, 112, 16, 0.14),
    0 1px 2px rgba(250, 112, 16, 0.08);
}

/* Mobile menu toggle button (hidden on desktop) */
.nav-toggle {
  display: none;
  appearance: none;
  -webkit-appearance: none;
  background: rgba(253, 248, 240, 0.7);
  border: 1px solid rgba(236, 232, 226, 0.9);
  border-radius: 11px;
  width: 38px;
  height: 38px;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  transition: background 0.2s ease, border-color 0.2s ease;
  color: var(--text);
  flex-shrink: 0;
}
.nav-toggle:hover { background: var(--accent-soft); border-color: rgba(250, 112, 16, 0.25); }
.nav-toggle:active { transform: scale(0.96); }
.nav-toggle span {
  display: block;
  width: 16px;
  height: 1.8px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease;
}
.site-header.is-open .nav-toggle {
  background: var(--accent-soft);
  border-color: rgba(250, 112, 16, 0.28);
  color: var(--accent-dark);
}
.site-header.is-open .nav-toggle span:nth-child(1) { transform: translateY(5.8px) rotate(45deg); }
.site-header.is-open .nav-toggle span:nth-child(2) { opacity: 0; transform: translateX(-6px); }
.site-header.is-open .nav-toggle span:nth-child(3) { transform: translateY(-5.8px) rotate(-45deg); }

/* Language anchor nav (top of bilingual pages) */
.lang-nav {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  background: var(--bg-soft);
  margin-bottom: 28px;
}
.lang-nav a {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  transition: background 0.15s ease, color 0.15s ease;
  line-height: 1;
}
.lang-nav a:hover {
  color: var(--text);
  text-decoration: none;
  background: var(--bg);
}

.lang-section { scroll-margin-top: 90px; }
.lang-divider {
  border: 0;
  border-top: 1px dashed var(--border-strong);
  margin: 56px 0 40px;
}
.lang-back {
  font-size: 13px;
  color: var(--text-soft);
  margin-top: 32px;
}
.lang-back a { color: var(--text-soft); }

html { scroll-behavior: smooth; }

/* Hero */
.hero {
  padding: 96px 0 88px;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, var(--accent-soft) 0%, transparent 60%),
    linear-gradient(180deg, var(--bg-warm) 0%, var(--bg) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-icon {
  width: 112px;
  height: 112px;
  border-radius: 26px;
  display: block;
  margin: 0 auto 28px;
  box-shadow:
    0 8px 20px rgba(250, 112, 16, 0.18),
    0 20px 60px rgba(250, 112, 16, 0.15),
    0 1px 2px rgba(0, 0, 0, 0.06);
}
.hero h1 {
  font-size: clamp(36px, 6vw, 60px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
  line-height: 1.05;
}
.hero .tagline {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 36px;
  line-height: 1.5;
}
.hero-ctas {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 16px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(250, 112, 16, 0.25);
}
.btn:hover {
  background: var(--accent-dark);
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(250, 112, 16, 0.32);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
  box-shadow: none;
}
.btn-ghost:hover {
  background: var(--bg-soft);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

/* Showcase / Screenshots */
.showcase {
  padding: 72px 0 16px;
  background: var(--bg);
  overflow: hidden;
}
.showcase-title {
  text-align: center;
  font-size: clamp(26px, 3.5vw, 34px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 48px;
}
.screens {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: end;
}
.screen {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.screen img {
  width: 100%;
  max-width: 240px;
  height: auto;
  border-radius: 28px;
  box-shadow:
    0 2px 6px rgba(26, 15, 0, 0.08),
    0 18px 40px rgba(26, 15, 0, 0.12),
    0 30px 80px rgba(250, 112, 16, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #000;
}
.screen:hover img {
  transform: translateY(-6px);
  box-shadow:
    0 2px 6px rgba(26, 15, 0, 0.08),
    0 24px 50px rgba(26, 15, 0, 0.16),
    0 40px 100px rgba(250, 112, 16, 0.12);
}
.screen:nth-child(1) img { transform: translateY(14px); }
.screen:nth-child(3) img { transform: translateY(14px); }
.screen:hover img { transform: translateY(-6px); }
.screen figcaption {
  font-size: 13px;
  color: var(--text-soft);
  font-weight: 500;
  letter-spacing: 0.01em;
}

@media (max-width: 900px) {
  .screens {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 10px 24px 24px;
    margin: 0 -24px;
    -webkit-overflow-scrolling: touch;
  }
  .screen {
    flex: 0 0 220px;
    scroll-snap-align: center;
  }
  .screen img { max-width: 220px; }
  .screen:nth-child(1) img,
  .screen:nth-child(3) img { transform: none; }
}

/* Features */
.features {
  padding: 88px 0 96px;
  background: var(--bg);
}
.section-eyebrow {
  display: block;
  text-align: center;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.features h2 {
  text-align: center;
  font-size: clamp(26px, 3.5vw, 34px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.features .section-sub {
  text-align: center;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 56px;
  font-size: 16px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}
.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.02em;
}
.card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.55;
}

/* Promise section */
.promise {
  padding: 72px 0 88px;
  background: var(--bg-warm);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.promise-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.promise h2 {
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.promise p {
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.65;
  margin: 0 0 12px;
}

/* Legal pages */
.legal {
  padding: 64px 0 96px;
  background: var(--bg);
}
.legal > .container {
  max-width: 780px;
}
.legal h1 {
  font-size: clamp(30px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.legal .updated {
  color: var(--text-soft);
  font-size: 14px;
  margin-bottom: 36px;
}
.legal h2 {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-top: 40px;
  margin-bottom: 12px;
  padding-top: 4px;
}
.legal h3 {
  font-size: 17px;
  font-weight: 700;
  margin-top: 26px;
  margin-bottom: 8px;
  color: var(--text);
}
.legal p, .legal li {
  color: #2a2a2a;
  font-size: 16px;
  line-height: 1.7;
}
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 6px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  color: var(--text-soft);
  font-size: 14px;
  background: var(--bg);
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
.site-footer a { color: var(--text-muted); margin-left: 18px; }
.site-footer a:first-child { margin-left: 0; }
.site-footer a:hover { color: var(--accent); text-decoration: none; }

/* Responsive */
@media (max-width: 820px) {
  .site-header {
    top: 10px;
    margin-top: 10px;
    padding: 0 12px;
  }
  .site-header .container {
    position: relative;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 8px 6px 16px;
  }
  .brand { font-size: 17px; gap: 9px; }
  .brand-icon { width: 28px; height: 28px; border-radius: 7px; }
  .brand-star { display: none; }

  .nav-toggle { display: inline-flex; width: 36px; height: 36px; }

  .nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: auto;
    min-width: 210px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px;
    border-radius: 18px;
    background: rgba(255, 252, 247, 0.98);
    backdrop-filter: saturate(180%) blur(22px);
    -webkit-backdrop-filter: saturate(180%) blur(22px);
    box-shadow:
      0 1px 2px rgba(26, 15, 0, 0.05),
      0 10px 28px rgba(26, 15, 0, 0.12),
      0 20px 48px rgba(250, 112, 16, 0.08),
      0 0 0 1px rgba(236, 232, 226, 0.9);
    opacity: 0;
    transform: translateY(-8px) scale(0.97);
    transform-origin: top right;
    pointer-events: none;
    transition:
      opacity 0.22s ease,
      transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    overflow: visible;
    mask-image: none;
    animation: none;
  }
  .site-header.is-open .nav {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }
  .nav a {
    width: 100%;
    text-align: left;
    padding: 11px 14px;
    font-size: 14.5px;
    border-radius: 10px;
  }
}

@media (max-width: 720px) {
  .hero { padding: 64px 0 56px; }
  .hero-icon { width: 92px; height: 92px; border-radius: 22px; margin-bottom: 22px; }
  .features { padding: 64px 0 72px; }
  .features .section-sub { margin-bottom: 36px; }
  .promise { padding: 56px 0 64px; }
  .site-footer .container { justify-content: center; text-align: center; }
  .site-footer > .container > div:last-child { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; }
  .site-footer a { margin-left: 0; }
}
