/* ───────────────  LOCAL FONTS  ─────────────── */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./assets/fonts/inter-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./assets/fonts/inter-latin-500-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("./assets/fonts/inter-latin-600-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("./assets/fonts/inter-latin-700-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("./assets/fonts/inter-latin-800-normal.woff2") format("woff2");
}

/* ───────────────  RESET & TOKENS  ─────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  /* Notion-inspired palette */
  --bg: #ffffff;
  --bg-alt: #f7f6f3;
  --bg-elevated: #ffffff;
  --surface: #fbfaf8;

  --text: #191918;
  --text-muted: #5f5e5b;
  --text-soft: #908e88;

  --border: #ebeae5;
  --border-strong: #d9d8d3;

  --accent: #191918;
  --accent-hover: #000000;
  --brand: #ff6f3c; /* warm reading orange */
  --brand-soft: #fff1ea;

  --gradient: linear-gradient(135deg, #ff6f3c 0%, #ffb070 60%, #ffd1a8 100%);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 24px;

  --shadow-sm: 0 1px 2px rgba(15, 15, 15, 0.04);
  --shadow: 0 4px 24px rgba(15, 15, 15, 0.06);
  --shadow-lg: 0 24px 60px -20px rgba(15, 15, 15, 0.18);

  --container: 1200px;
  --header-h: 64px;

  --font-sans:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

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

/* ───────────────  HEADER  ─────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition:
    border-color 0.2s var(--ease),
    background 0.2s var(--ease);
}

.site-header.scrolled {
  border-bottom-color: var(--border);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 18px;
}

.brand-mark {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: block;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
}

.nav {
  display: flex;
  gap: 4px;
  margin-left: 16px;
}

.nav a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-muted);
  transition:
    color 0.15s var(--ease),
    background 0.15s var(--ease);
}

.nav a:hover {
  color: var(--text);
  background: var(--bg-alt);
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: all 0.15s var(--ease);
}

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

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition:
    transform 0.2s var(--ease),
    opacity 0.2s var(--ease);
}

/* ───────────────  BUTTONS  ─────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition:
    transform 0.15s var(--ease),
    background 0.15s var(--ease),
    box-shadow 0.15s var(--ease),
    color 0.15s var(--ease);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 13.5px;
}

.btn-lg {
  padding: 14px 26px;
  font-size: 16px;
  border-radius: 12px;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-secondary {
  background: var(--brand);
  color: #fff;
}
.btn-secondary:hover {
  background: #e55a28;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover {
  background: var(--bg-alt);
}

/* ───────────────  HERO  ─────────────── */
.hero {
  position: relative;
  padding: 80px 0 40px;
  overflow: hidden;
  background:
    radial-gradient(
      ellipse 80% 60% at 50% 0%,
      var(--brand-soft) 0%,
      transparent 70%
    ),
    var(--bg);
}

.hero-inner {
  text-align: center;
  max-width: 880px;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand);
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-title span {
  display: block;
}

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

.hero-subtitle {
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 36px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.hero-note {
  font-size: 13.5px;
  color: var(--text-soft);
}

.hero-media {
  margin-top: 64px;
  display: flex;
  justify-content: center;
}

.device-frame {
  width: min(320px, 70vw);
  aspect-ratio: 9 / 19;
  background: #1a1a1a;
  border-radius: 44px;
  padding: 12px;
  box-shadow:
    var(--shadow-lg),
    inset 0 0 0 2px #2a2a2a;
  position: relative;
}

.device-frame::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 22px;
  background: #1a1a1a;
  border-radius: 14px;
  z-index: 2;
}

.device-screen {
  width: 100%;
  height: 100%;
  border-radius: 32px;
  overflow: hidden;
  background: var(--surface);
}

.device-screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* ───────────────  PLACEHOLDERS  ─────────────── */
.placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(
    45deg,
    var(--bg-alt) 0,
    var(--bg-alt) 10px,
    var(--surface) 10px,
    var(--surface) 20px
  );
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  position: relative;
}

.placeholder-hero {
  background:
    radial-gradient(
      ellipse at 50% 30%,
      rgba(255, 111, 60, 0.08),
      transparent 60%
    ),
    var(--surface);
  font-size: 12px;
}

.placeholder-feature {
  border-radius: var(--radius-lg);
  min-height: 280px;
}

.feature-shot {
  display: block;
  width: 100%;
  height: auto;
}

.placeholder-square {
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
}

.placeholder-video {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  cursor: pointer;
}

.play-icon {
  position: absolute;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--brand);
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 4px;
  box-shadow: var(--shadow);
}

/* ───────────────  TRUST  ─────────────── */
.trust {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}

.trust-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.trust-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.trust-item strong {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.trust-item span {
  font-size: 14px;
  color: var(--text-muted);
}

/* ───────────────  SECTIONS  ─────────────── */
.section {
  padding: 100px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-cta {
  background:
    radial-gradient(
      ellipse 60% 80% at 50% 50%,
      var(--brand-soft) 0%,
      transparent 70%
    ),
    var(--bg);
}

.section-head {
  max-width: 720px;
  margin-bottom: 56px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-title {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ───────────────  FEATURE GRID (bento)  ─────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--border-strong);
}

.feature-card-lg {
  grid-column: span 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 40px;
}

.feature-card-lg .feature-text h3 {
  font-size: 28px;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature-card h3 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ───────────────  TWO-COL  ─────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.two-col.reverse .two-col-text {
  order: 2;
}

.two-col-text .section-title {
  margin-bottom: 16px;
}

.two-col-text .section-subtitle {
  margin-bottom: 24px;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.check-list li {
  position: relative;
  padding-left: 32px;
  font-size: 15.5px;
  color: var(--text);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand-soft);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23ff6f3c'><path d='M7.6 13.4L4.2 10l1.4-1.4 2 2 4.8-4.8L13.8 7l-6.2 6.4z'/></svg>");
  background-size: 20px 20px;
}

/* ───────────────  DOWNLOAD  ─────────────── */
.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.download-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: var(--accent);
  color: #fff;
  border-radius: 14px;
  transition:
    transform 0.2s var(--ease),
    background 0.2s var(--ease);
}

.download-card:hover {
  transform: translateY(-2px);
  background: var(--accent-hover);
}

.download-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.download-icon svg {
  width: 32px;
  height: 32px;
}

.download-icon-apple svg {
  width: 36px;
  height: 36px;
}

.download-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.download-label {
  font-size: 11px;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.download-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ───────────────  FOOTER  ─────────────── */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 60px 0 24px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.footer-tagline {
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-muted);
  max-width: 320px;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-soft);
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 14.5px;
  color: var(--text-muted);
  transition: color 0.15s var(--ease);
}

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

.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-soft);
}

/* ───────────────  RESPONSIVE  ─────────────── */
@media (max-width: 960px) {
  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 12px 16px;
    gap: 4px;
  }

  .site-header.menu-open .nav {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  .header-actions .btn {
    display: none;
  }

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

  .feature-card-lg {
    grid-column: span 2;
    grid-template-columns: 1fr;
  }

  .two-col {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .two-col.reverse .two-col-text {
    order: 0;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

@media (max-width: 640px) {
  .hero {
    padding: 56px 0 24px;
  }

  .section {
    padding: 72px 0;
  }

  .trust-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

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

  .feature-card-lg {
    grid-column: span 1;
    padding: 24px;
  }

  .feature-card {
    padding: 24px;
  }

  .footer-cols {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    align-items: center;
  }
}

/* ───────────────  SIMPLE PAGE (support)  ─────────────── */
.page-simple {
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  padding: 80px 0;
  background:
    radial-gradient(
      ellipse 80% 60% at 50% 0%,
      var(--brand-soft) 0%,
      transparent 70%
    ),
    var(--bg);
}

.page-simple-inner {
  text-align: center;
  max-width: 560px;
}

.page-simple .section-title {
  margin-bottom: 16px;
}

.page-simple .section-subtitle {
  margin-bottom: 28px;
}

.support-email {
  display: inline-block;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--brand);
  transition: opacity 0.15s var(--ease);
}

.support-email:hover {
  opacity: 0.75;
}

/* ───────────────  LEGAL PAGES  ─────────────── */
.legal-hero {
  padding: 72px 0 40px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(
      ellipse at 50% 0%,
      rgba(255, 111, 60, 0.08) 0%,
      transparent 60%
    ),
    var(--bg);
}

.legal-hero .eyebrow {
  margin-bottom: 16px;
}

.legal-hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 12px;
}

.legal-meta {
  font-size: 14px;
  color: var(--text-soft);
}

.legal-section {
  padding: 56px 0 96px;
}

.legal-content {
  max-width: 720px;
}

.legal-content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 40px 0 12px;
  line-height: 1.3;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 28px 0 10px;
}

.legal-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: var(--bg-alt);
  color: var(--text);
}

.legal-content p,
.legal-content li {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}

.legal-content p + p {
  margin-top: 14px;
}

.legal-content ul {
  margin: 12px 0 0;
  padding-left: 1.25rem;
}

.legal-content li + li {
  margin-top: 8px;
}

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

.legal-content a:hover {
  color: var(--text);
}

.legal-content strong {
  color: var(--text);
  font-weight: 600;
}

.legal-note {
  margin-top: 40px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-muted);
}

@media (max-width: 720px) {
  .legal-hero {
    padding: 56px 0 32px;
  }

  .legal-section {
    padding: 40px 0 72px;
  }
}

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