:root {
  --brand: #E85D00;
  --brand-tint: oklch(0.94 0.03 55);
  --page: oklch(0.97 0.003 250);
  --surface: oklch(0.99 0.002 250);
  --line: oklch(0.9 0.004 250);
  --line-strong: oklch(0.85 0.004 250);
  --ink: oklch(0.18 0.01 250);
  --ink-body: oklch(0.42 0.01 250);
  --ink-muted: oklch(0.48 0.005 250);
  --ink-soft: oklch(0.55 0.005 250);
  --shadow-card: 0 1px 3px oklch(0.4 0.02 250 / 0.06);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--page);
  color: oklch(0.22 0.01 250);
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  text-wrap: pretty;
}

::selection { background: #E8A06B; color: #2b2b2b; }
img, video { max-width: 100%; }
h1, h2, h3 { text-wrap: balance; }

a { color: var(--brand); }
a:hover { color: oklch(0.52 0.16 45); }

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 1px 2px oklch(0 0 0 / 0.15); }
.btn-primary:hover { background: oklch(0.55 0.17 45); color: #fff; }
.btn-ghost { background: var(--surface); border-color: var(--line-strong); color: oklch(0.22 0.01 250); box-shadow: 0 1px 2px oklch(0.4 0.02 250 / 0.08); }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-sm { padding: 9px 18px; }
.btn-lg { padding: 14px 28px; font-size: 15px; }
.btn-block { width: 100%; padding: 15px; font-size: 15px; box-shadow: 0 2px 6px oklch(0.5 0.15 45 / 0.35); }
.hero-actions .btn-primary { box-shadow: 0 2px 6px oklch(0.5 0.15 45 / 0.35); }

/* nav */
.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 56px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.nav-logo { display: flex; align-items: center; order: 1; }
.nav-logo img { height: 34px; display: block; }
/* nav-links sits right after the logo, pushed flush right by its own auto margin;
   .lang (a separate flex item, ordered last) rides along right after it. */
.nav-links { display: flex; align-items: center; gap: 28px; order: 2; margin-left: auto; }
.nav-links > a { color: oklch(0.4 0.01 250); text-decoration: none; font-size: 14px; font-weight: 500; }
.nav-links > a:hover { color: var(--ink); }
.nav-rule { width: 1px; height: 22px; background: oklch(0.89 0.004 250); flex: none; }
.nav-signin { display: flex; align-items: center; gap: 8px; color: oklch(0.3 0.01 250); flex: none; }
.nav-signin svg { flex: none; color: oklch(0.45 0.01 250); }
.nav-openapp { padding: 8px 14px; }

.lang { display: flex; align-items: center; gap: 10px; order: 3; }
.lang a { font-size: 13px; font-weight: 500; color: oklch(0.55 0.01 250); text-decoration: none; }
.lang a:hover { color: var(--ink); }
.lang a.is-active { color: var(--brand); font-weight: 600; }

.app-glyph {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
  width: 12px;
  height: 12px;
  flex: none;
}
.app-glyph span { border-radius: 1px; background: oklch(0.75 0.06 55); }
.app-glyph span:first-child, .app-glyph span:last-child { background: var(--brand); }

/* hero */
.hero { position: relative; padding: 88px 24px 140px; text-align: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-scrim { position: absolute; inset: 0; background: #FFFFFFAC; pointer-events: none; }
.hero-inner { position: relative; z-index: 1; max-width: 1000px; margin: 0 auto; }

.hero h1 {
  font-weight: 700;
  font-size: clamp(32px, 5vw, 60px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
  color: var(--ink);
}
.hero-sub { font-size: 17px; line-height: 1.65; color: var(--ink-body); max-width: 600px; margin: 0 auto 36px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 60px; }

.video-card {
  max-width: 880px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 8px 30px oklch(0.4 0.02 250 / 0.1);
}
.video-frame { position: relative; padding-top: 56.25%; background: oklch(0.15 0.005 250); border-radius: 8px; overflow: hidden; }
.video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.video-caption { font-size: 13px; color: var(--ink-soft); margin-top: 16px; }

/* stats */
.stats { max-width: 1000px; margin: 0 auto; padding: 64px 24px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 28px 16px;
  text-align: center;
  box-shadow: var(--shadow-card);
}
.stat-value { font-weight: 700; font-size: 32px; color: var(--brand); }
.stat-label { font-size: 13px; color: var(--ink-muted); margin-top: 8px; }

/* features */
.features { max-width: 1000px; margin: 0 auto; padding: 24px 24px 96px; }
.features h2 { font-weight: 700; font-size: 32px; letter-spacing: -0.01em; margin: 0 0 36px; color: var(--ink); }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
}
.feature-shot { height: 150px; background: oklch(0.93 0.005 250); border-bottom: 1px solid var(--line); }
.feature-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feature-body { padding: 22px 24px 26px; }
.feature-body h3 { font-weight: 600; font-size: 16px; margin: 0 0 8px; color: oklch(0.2 0.01 250); }
.feature-body p { font-size: 14px; line-height: 1.6; color: var(--ink-muted); margin: 0; }

/* demo */
.demo { background: var(--surface); border-top: 1px solid var(--line); padding: 80px 24px; }
.demo-inner { max-width: 580px; margin: 0 auto; text-align: center; }
.demo h2 { font-weight: 700; font-size: 32px; letter-spacing: -0.01em; margin: 0 0 12px; color: var(--ink); }
.demo-sub { color: oklch(0.45 0.005 250); font-size: 15px; margin: 0 0 32px; }

.demo-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; text-align: left; }
.demo-form input[type=text],
.demo-form input[type=email],
.demo-form textarea {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: oklch(0.2 0.01 250);
  padding: 13px 16px;
  font-size: 14px;
  font-family: inherit;
}
.demo-form textarea { resize: vertical; }
.demo-form input:focus, .demo-form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.demo-form ::placeholder { color: oklch(0.6 0.005 250); }
.field-span2, .demo-form .btn-block, .demo-form textarea { grid-column: span 2; }
.field-span2 { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: 13px; color: oklch(0.45 0.005 250); }
.hint { font-size: 12.5px; color: oklch(0.5 0.11 55); }

.volume { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 2px; }
.volume button {
  padding: 12px 8px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  border-radius: 6px;
  cursor: pointer;
  background: #fff;
  color: oklch(0.35 0.01 250);
  border: 1px solid var(--line-strong);
}
.volume button:hover { border-color: oklch(0.7 0.05 55); }
.volume button.is-active { background: var(--brand); color: #fff; border-color: var(--brand); }

.demo-form .btn-block { margin-top: 6px; }
.demo-success {
  background: var(--brand-tint);
  border-radius: 10px;
  padding: 28px;
  font-size: 14px;
  color: oklch(0.35 0.1 45);
  font-weight: 500;
}

/* footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 28px 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-logo { height: 16px; display: block; }
.footer-links { display: flex; gap: 18px; }
.footer-links a { font-size: 12px; color: var(--ink-soft); text-decoration: none; }
.footer-links a:hover { color: var(--ink); }
.footer-note { font-size: 12px; color: var(--ink-soft); }

/* legal pages (imprint, privacy) */
.legal { max-width: 720px; margin: 0 auto; padding: 64px 24px 96px; }
.legal h1 { font-weight: 700; font-size: 32px; letter-spacing: -0.01em; margin: 0 0 8px; color: var(--ink); }
.legal-updated { font-size: 13px; color: var(--ink-soft); margin: 0 0 40px; }
.legal h2 { font-weight: 600; font-size: 18px; margin: 36px 0 12px; color: var(--ink); }
.legal h2:first-of-type { margin-top: 0; }
.legal p { font-size: 15px; line-height: 1.7; color: var(--ink-body); margin: 0 0 8px; }
.legal-fields { display: grid; grid-template-columns: 150px 1fr; gap: 10px 16px; margin: 0; }
.legal-fields dt { font-size: 13px; font-weight: 600; color: var(--ink-muted); }
.legal-fields dd { font-size: 15px; color: var(--ink-body); margin: 0; }

/* login */
.login-page { min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.login-card {
  width: 360px;
  max-width: 100%;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: var(--shadow-card);
}
.login-logo { align-self: center; }
.login-logo img { height: 28px; display: block; }
.login-note { text-align: center; font-size: 13px; color: var(--ink-soft); margin: -0.75rem 0 0; }

.login-tabs { display: flex; border: 1px solid var(--line-strong); border-radius: 6px; overflow: hidden; }
.login-tabs button {
  flex: 1;
  padding: 0.5rem 0.75rem;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  border: none;
  cursor: pointer;
  background: #fff;
  color: var(--ink-muted);
}
.login-tabs button.is-active { background: var(--brand); color: #fff; }

.login-form { display: flex; flex-direction: column; gap: 1rem; }
.login-field { display: flex; flex-direction: column; gap: 0.35rem; }
.login-field label { font-size: 14px; font-weight: 500; color: var(--ink-body); }
.login-field input {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 0.625rem 0.75rem;
  font-size: 14px;
  color: var(--ink);
  font-family: inherit;
  outline: none;
}
.login-field input:focus { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.login-password-wrap { position: relative; display: flex; }
.login-password-wrap input { padding-right: 2.5rem; }
.login-toggle-mask {
  position: absolute;
  right: 1px;
  top: 1px;
  bottom: 1px;
  width: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--ink-muted);
  border-radius: 0 6px 6px 0;
}

.login-banner { display: flex; align-items: center; gap: 0.5rem; border-radius: 6px; padding: 0.625rem 0.75rem; font-size: 13.5px; }
.login-banner-error { background: oklch(0.96 0.03 25); border: 1px solid oklch(0.85 0.08 25); color: oklch(0.45 0.15 25); }
.login-banner-info { background: var(--brand-tint); border: 1px solid oklch(0.85 0.05 55); color: oklch(0.4 0.1 45); }

.login-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid #fff6;
  border-top-color: #fff;
  border-radius: 50%;
  display: inline-block;
  animation: login-spin 0.7s linear infinite;
}
@keyframes login-spin { to { transform: rotate(360deg); } }

/* responsive */
@media (max-width: 900px) {
  .nav { padding: 14px 24px; flex-wrap: wrap; row-gap: 10px; }
  .nav-links { gap: 18px; flex-wrap: wrap; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer { padding: 24px; }
  /* row 1: logo left, lang right. row 2: nav-links, wrapped full-width below. */
  .lang { order: 2; margin-left: auto; }
  .nav-links { order: 3; flex-basis: 100%; margin-left: 0; }
}
@media (max-width: 800px) {
  .hero { padding: 56px 20px 88px; }
  .features-grid, .stats-grid { grid-template-columns: 1fr; }
  .demo-form { grid-template-columns: 1fr; }
  .field-span2, .demo-form .btn-block, .demo-form textarea { grid-column: span 1; }
  .nav-signin, .nav-openapp { display: none; }
}
