/* ==========================================================================
   CutCam for macOS — Static Showcase & Legal Pages Design System
   Directly aligned with CutCam's native Slint dark/light & 6-accent palettes
   ========================================================================== */

:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC",
    "Helvetica Neue", sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --r-xs: 4px;
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 16px;
  --r-xl: 22px;

  --container: 1140px;
  --nav-h: 64px;
}

/* Dark theme tokens (from dark.slint) */
:root[data-theme="dark"] {
  --page: #0e0e10;
  --page-tinted: #121215;
  --panel: #161619;
  --studio-panel: #212123;
  --studio-well: #151518;
  --raised: #1e1e22;
  --field: #26262b;
  --field-hover: #313138;
  --nav-bg: rgba(14, 14, 16, 0.78);

  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);

  --fg: #f5f5f7;
  --fg-muted: #a1a1a6;
  --fg-dim: #76767c;

  --shadow-lg: 0 32px 90px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.08);
  --shadow-md: 0 16px 40px rgba(0, 0, 0, 0.45);
  --grid-line: rgba(255, 255, 255, 0.03);

  --clip-video: #2b63b8;
  --clip-audio: #1f8e4d;
  --clip-text: #b84a83;
  --clip-fx: #6c52cf;
  --clip-trans: #7a9c18;
}

/* Light theme tokens (from light.slint) */
:root[data-theme="light"] {
  --page: #f4f4f7;
  --page-tinted: #ebebf0;
  --panel: #ffffff;
  --studio-panel: #f7f7f8;
  --studio-well: #e3e3e9;
  --raised: #ffffff;
  --field: #eeeef2;
  --field-hover: #e2e2e8;
  --nav-bg: rgba(244, 244, 247, 0.82);

  --line: rgba(0, 0, 0, 0.09);
  --line-strong: rgba(0, 0, 0, 0.18);

  --fg: #16161a;
  --fg-muted: #56565e;
  --fg-dim: #787880;

  --shadow-lg: 0 28px 70px rgba(15, 20, 35, 0.14), 0 0 0 1px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 12px 30px rgba(15, 20, 35, 0.08);
  --grid-line: rgba(0, 0, 0, 0.035);

  --clip-video: #306cc1;
  --clip-audio: #1f8a4b;
  --clip-text: #bb538c;
  --clip-fx: #5a4fd1;
  --clip-trans: #6e9f1f;
}

/* 6 CutCam Accents — Dark mode */
:root[data-theme="dark"][data-accent="lime"]   { --accent: #cbf53f; --accent-hover: #d9ff63; --accent-soft: rgba(203, 245, 63, 0.16); --on-accent: #15220a; }
:root[data-theme="dark"][data-accent="sky"]    { --accent: #5fb8ff; --accent-hover: #82c9ff; --accent-soft: rgba(95, 184, 255, 0.16); --on-accent: #061c33; }
:root[data-theme="dark"][data-accent="violet"] { --accent: #b394ff; --accent-hover: #c6b0ff; --accent-soft: rgba(179, 148, 255, 0.17); --on-accent: #1d0f3d; }
:root[data-theme="dark"][data-accent="rose"]   { --accent: #ff6fa3; --accent-hover: #ff8fb8; --accent-soft: rgba(255, 111, 163, 0.17); --on-accent: #38091c; }
:root[data-theme="dark"][data-accent="amber"]  { --accent: #ffb340; --accent-hover: #ffc46a; --accent-soft: rgba(255, 179, 64, 0.17); --on-accent: #2d1a00; }
:root[data-theme="dark"][data-accent="mint"]   { --accent: #3fdcc4; --accent-hover: #6ae7d4; --accent-soft: rgba(63, 220, 196, 0.16); --on-accent: #05261f; }

/* 6 CutCam Accents — Light mode (AAA/AA contrast from light.slint) */
:root[data-theme="light"][data-accent="lime"]   { --accent: #4d7c0f; --accent-hover: #3f680b; --accent-soft: rgba(77, 124, 15, 0.12); --on-accent: #ffffff; }
:root[data-theme="light"][data-accent="sky"]    { --accent: #1f66d1; --accent-hover: #1a55b0; --accent-soft: rgba(31, 102, 209, 0.12); --on-accent: #ffffff; }
:root[data-theme="light"][data-accent="violet"] { --accent: #7239e6; --accent-hover: #6030c8; --accent-soft: rgba(114, 57, 230, 0.12); --on-accent: #ffffff; }
:root[data-theme="light"][data-accent="rose"]   { --accent: #cf2468; --accent-hover: #b01d58; --accent-soft: rgba(207, 36, 104, 0.12); --on-accent: #ffffff; }
:root[data-theme="light"][data-accent="amber"]  { --accent: #b4530a; --accent-hover: #98450a; --accent-soft: rgba(180, 83, 10, 0.12); --on-accent: #ffffff; }
:root[data-theme="light"][data-accent="mint"]   { --accent: #0f7a6e; --accent-hover: #0c665c; --accent-soft: rgba(15, 122, 110, 0.12); --on-accent: #ffffff; }

/* Accent dot preview colors */
[data-set-accent="lime"]   { --dot-c: #cbf53f; }
[data-set-accent="sky"]    { --dot-c: #5fb8ff; }
[data-set-accent="violet"] { --dot-c: #b394ff; }
[data-set-accent="rose"]   { --dot-c: #ff6fa3; }
[data-set-accent="amber"]  { --dot-c: #ffb340; }
[data-set-accent="mint"]   { --dot-c: #3fdcc4; }
:root[data-theme="light"] [data-set-accent="lime"] { --dot-c: #65a30d; }

/* Base Reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--page);
  color: var(--fg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color 200ms ease, color 200ms ease;
}
a { color: inherit; text-decoration: none; }
button, select { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
code, pre { font-family: var(--font-mono); }

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

/* Ambient Background */
.ambient-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}
.ambient-glow {
  position: absolute;
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  width: 980px;
  height: 560px;
  background: radial-gradient(ellipse at center, var(--accent-soft) 0%, transparent 68%);
  filter: blur(28px);
  opacity: 0.9;
  transition: background 280ms ease;
}
.ambient-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 30%, transparent 85%);
}

/* ==========================================================================
   Navigation Bar
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.brand-icon {
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.brand-name {
  font-size: 17px;
}
.brand-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--field);
  border: 1px solid var(--line);
  color: var(--fg-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--fg-muted);
}
.nav-links a {
  transition: color 140ms ease;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.is-current {
  color: var(--fg);
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.accent-strip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--field);
  border: 1px solid var(--line);
}
.accent-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: var(--dot-c);
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease;
}
.accent-dot:hover { transform: scale(1.2); }
.accent-dot.is-active {
  box-shadow: 0 0 0 2px var(--panel), 0 0 0 3.5px var(--dot-c);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--field);
  color: var(--fg-muted);
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease;
}
.icon-btn:hover {
  background: var(--field-hover);
  color: var(--fg);
  border-color: var(--line-strong);
}

:root[data-theme="dark"] .icon-moon { display: none; }
:root[data-theme="light"] .icon-sun { display: none; }

.lang-select-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 8px 0 9px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--field);
  color: var(--fg-muted);
  gap: 5px;
  transition: border-color 140ms ease, background 140ms ease;
}
.lang-select-wrap:hover {
  border-color: var(--line-strong);
  background: var(--field-hover);
  color: var(--fg);
}
.lang-select {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--fg);
  cursor: pointer;
  padding-right: 4px;
  max-width: 132px;
  text-overflow: ellipsis;
}
.lang-select option {
  background: var(--panel);
  color: var(--fg);
}

.mobile-menu-btn { display: none; }
.mobile-drawer {
  display: flex;
  flex-direction: column;
  padding: 12px 24px 20px;
  gap: 12px;
  border-top: 1px solid var(--line);
  background: var(--panel);
}
.mobile-drawer[hidden] { display: none; }
.mobile-drawer a {
  font-size: 15px;
  font-weight: 500;
  color: var(--fg-muted);
  padding: 6px 0;
}
.mobile-drawer a:hover { color: var(--fg); }
.mobile-drawer-legal {
  display: flex;
  gap: 16px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-sm { height: 32px; padding: 0 13px; font-size: 13px; border-radius: 8px; }
.btn-lg { height: 44px; padding: 0 22px; font-size: 14.5px; }
.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 6px 24px var(--accent-soft);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}
.btn-secondary {
  background: var(--field);
  color: var(--fg);
  border-color: var(--line);
}
.btn-secondary:hover {
  background: var(--field-hover);
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  padding: 68px 0 88px;
}
.hero-top {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 48px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px 5px 7px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--fg-muted);
  margin-bottom: 24px;
  box-shadow: var(--shadow-md);
}
.hero-mini-icon {
  border-radius: 5px;
}
.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
.hero-title {
  margin: 0 0 20px;
  font-size: clamp(36px, 5.6vw, 62px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.035em;
}
.accent-text {
  color: var(--accent);
}
.hero-subtitle {
  margin: 0 auto 30px;
  max-width: 650px;
  font-size: clamp(15.5px, 1.8vw, 18px);
  color: var(--fg-muted);
  line-height: 1.65;
}
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}
.hero-trust-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  padding: 12px 22px;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
}
.trust-pill {
  display: flex;
  align-items: baseline;
  gap: 7px;
}
.trust-value {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--fg);
}
.trust-label {
  font-size: 12.5px;
  color: var(--fg-muted);
}
.trust-divider {
  width: 1px;
  height: 16px;
  background: var(--line-strong);
}

/* ==========================================================================
   Interactive CutCam macOS Studio Window Showcase
   ========================================================================== */
.studio-stage-wrap {
  max-width: 1080px;
}
.studio-window {
  position: relative;
  border-radius: 16px;
  background: var(--studio-well);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  user-select: none;
}

.studio-titlebar {
  height: 40px;
  padding: 0 14px;
  background: var(--studio-panel);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
}
.traffic-lights {
  display: flex;
  align-items: center;
  gap: 7px;
}
.tl {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.tl-red { background: #ff5f57; }
.tl-yellow { background: #febc2e; }
.tl-green { background: #28c840; }

.studio-menubar {
  display: flex;
  gap: 12px;
  color: var(--fg-muted);
  font-weight: 500;
}
.studio-project-title {
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
}
.saved-tag {
  font-size: 11px;
  color: var(--fg-dim);
}
.studio-title-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.studio-chip-badge {
  font-family: var(--font-mono);
  font-size: 10.5px;
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--field);
  color: var(--fg-muted);
  border: 1px solid var(--line);
}
.studio-export-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 25px;
  padding: 0 10px;
  border-radius: 6px;
  border: 0;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 140ms ease;
}
.studio-export-btn:hover { background: var(--accent-hover); }

.studio-workspace {
  display: grid;
  grid-template-columns: 230px 1fr 220px;
  gap: 6px;
  padding: 6px;
  background: var(--studio-well);
}
.studio-pane {
  background: var(--studio-panel);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pane-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}
.pane-tab {
  font-size: 11.5px;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 6px;
  border: 0;
  background: transparent;
  color: var(--fg-muted);
  cursor: pointer;
}
.pane-tab.is-active {
  background: var(--field);
  color: var(--fg);
}

.bin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.media-card {
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 140ms ease, transform 140ms ease;
}
.media-card:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}
.media-thumb {
  height: 54px;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 4px 5px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: #fff;
}
.media-thumb span {
  background: rgba(0, 0, 0, 0.55);
  padding: 1px 4px;
  border-radius: 3px;
}
.thumb-city { background: linear-gradient(135deg, #1b325f 0%, #3a7bd5 55%, #00d2ff 100%); }
.thumb-neon { background: linear-gradient(135deg, #2b1055 0%, #753a88 55%, #ff6fa3 100%); }
.thumb-audio { background: linear-gradient(135deg, #0d3b26 0%, #1f8a4b 100%); }
.thumb-title { background: linear-gradient(135deg, #4b1d3f 0%, #bb538c 100%); font-family: var(--font-sans); font-weight: 700; align-items: center; justify-content: center; font-size: 16px; }
.thumb-fx { background: linear-gradient(135deg, #2a1f5d 0%, #7239e6 100%); font-size: 11px; align-items: center; justify-content: center; }
.media-meta {
  padding: 5px 6px;
  font-size: 10.5px;
  color: var(--fg-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Monitor */
.monitor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
}
.pane-heading { font-weight: 600; color: var(--fg); }
.tech-readout { font-family: var(--font-mono); font-size: 11px; color: var(--fg-dim); }

.monitor-canvas {
  aspect-ratio: 16 / 9;
  border-radius: 7px;
  overflow: hidden;
  background: #070709;
  border: 1px solid var(--line);
  position: relative;
}
.monitor-scene {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 42%, rgba(203, 245, 63, 0.16), #0b0d14 66%);
  overflow: hidden;
  transition: filter 220ms ease;
}
.scene-horizon {
  position: absolute;
  left: 0;
  right: 0;
  top: 56%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.7;
}
.scene-sun {
  position: absolute;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 35% 35%, #ffffff 0%, var(--accent) 52%, rgba(203, 245, 63, 0.05) 100%);
  box-shadow: 0 0 60px var(--accent-soft);
  transition: transform 80ms linear, background 200ms ease;
}
.scene-grid-floor {
  position: absolute;
  left: -20%;
  right: -20%;
  top: 56%;
  bottom: -10%;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 32px 20px;
  transform: perspective(180px) rotateX(62deg);
  transform-origin: top center;
  opacity: 0.55;
}
.scene-camera-hud {
  position: absolute;
  top: 10px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0.04em;
}
.rec-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff453a;
  box-shadow: 0 0 8px #ff453a;
}
.hud-spacer { flex: 1; }
.scene-caption-box {
  position: absolute;
  left: 50%;
  bottom: 14%;
  transform: translateX(-50%);
  padding: 5px 12px;
  border-radius: 6px;
  background: rgba(10, 10, 14, 0.78);
  border: 1px solid var(--accent);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  max-width: 88%;
}
.caption-text {
  font-size: 12.5px;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
}

.monitor-transport {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.timecode {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--fg);
}
.timecode small { color: var(--fg-dim); font-weight: 400; }
.transport-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}
.transport-btn {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: var(--field);
  color: var(--fg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease;
}
.transport-btn:hover { background: var(--field-hover); border-color: var(--line-strong); }
.transport-play {
  background: var(--accent);
  color: var(--on-accent);
  border-color: transparent;
}
.transport-play:hover { background: var(--accent-hover); }
.transport-play .icon-pause { display: none; }
.transport-play.is-playing .icon-play { display: none; }
.transport-play.is-playing .icon-pause { display: block; }
.proxy-pill {
  font-family: var(--font-mono);
  font-size: 10.5px;
  padding: 3px 7px;
  border-radius: 5px;
  background: var(--field);
  color: var(--fg-muted);
}

/* Inspector */
.inspector-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 11.5px;
  color: var(--fg-muted);
}
.insp-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.insp-bar {
  flex: 1;
  height: 5px;
  border-radius: 999px;
  background: var(--field-hover);
  overflow: hidden;
}
.insp-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
}
.tech-val {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg);
}
.mini-switch {
  width: 28px;
  height: 16px;
  border-radius: 999px;
  background: var(--field-hover);
  padding: 2px;
  display: inline-flex;
  align-items: center;
}
.mini-switch span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  transition: transform 140ms ease;
}
.mini-switch.is-on {
  background: var(--accent);
}
.mini-switch.is-on span {
  transform: translateX(12px);
  background: var(--on-accent);
}

/* Timeline */
.studio-timeline {
  margin: 0 6px 6px;
  background: var(--studio-panel);
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
}
.timeline-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 11.5px;
  gap: 10px;
}
.tl-tools-left { display: flex; gap: 6px; }
.tl-tab {
  padding: 3px 8px;
  border-radius: 5px;
  color: var(--fg-muted);
  font-weight: 500;
}
.tl-tab.is-active {
  background: var(--field);
  color: var(--fg);
}
.tl-hint { font-size: 11px; color: var(--fg-dim); }
.tl-tools-right { display: flex; gap: 5px; }
.tl-kbd {
  font-family: var(--font-mono);
  font-size: 10.5px;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--field);
  border: 1px solid var(--line);
  color: var(--fg-muted);
}

.timeline-body {
  position: relative;
  background: var(--studio-well);
  padding-bottom: 8px;
  cursor: ew-resize;
}
.timeline-ruler,
.timeline-lane {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
}
.timeline-ruler {
  height: 24px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-dim);
}
.ruler-ticks {
  display: flex;
  justify-content: space-between;
  padding: 0 10px;
}
.lane-label-col {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--fg-dim);
  background: var(--studio-panel);
}
.timeline-lane {
  height: 30px;
  border-bottom: 1px solid var(--line);
}
.timeline-lane.lane-tall { height: 42px; }
.lane-track {
  position: relative;
  height: 100%;
}
.clip {
  position: absolute;
  top: 3px;
  bottom: 3px;
  border-radius: 5px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  font-size: 10.5px;
  font-weight: 600;
  color: #fff;
  overflow: hidden;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.clip span { position: relative; z-index: 2; text-overflow: ellipsis; overflow: hidden; }
.clip-text { background: var(--clip-text); }
.clip-fx { background: var(--clip-fx); }
.clip-transition { background: var(--clip-trans); }
.clip-video { background: var(--clip-video); flex-direction: column; align-items: flex-start; justify-content: center; }
.clip-audio { background: var(--clip-audio); }

.filmstrip-bars {
  position: absolute;
  inset: 0;
  display: flex;
  gap: 2px;
  opacity: 0.22;
  pointer-events: none;
}
.filmstrip-bars i {
  flex: 1;
  background: linear-gradient(180deg, rgba(255,255,255,0.6), transparent 65%);
}
.waveform-svg {
  position: absolute;
  inset: 2px 6px;
  width: calc(100% - 12px);
  height: calc(100% - 4px);
  color: rgba(255, 255, 255, 0.26);
  z-index: 1;
  pointer-events: none;
}

/* Glowing Playhead */
.playhead-track {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 44px;
  right: 0;
  pointer-events: none;
}
.playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-1px);
  z-index: 10;
}
.playhead-head {
  position: absolute;
  top: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background: var(--accent);
  clip-path: polygon(0 0, 100% 0, 100% 45%, 50% 100%, 0 45%);
  filter: drop-shadow(0 0 6px var(--accent));
}
.playhead-line {
  position: absolute;
  top: 12px;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.studio-toast {
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding: 9px 14px;
  border-radius: 9px;
  background: var(--panel);
  border: 1px solid var(--accent);
  color: var(--fg);
  font-size: 12.5px;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
  z-index: 20;
}
.studio-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.studio-caption-note {
  margin: 16px 0 0;
  text-align: center;
  font-size: 12.5px;
  color: var(--fg-dim);
}

/* ==========================================================================
   Sections & Headings
   ========================================================================== */
.section {
  padding: 88px 0;
}
.section-tinted {
  background: var(--page-tinted);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-head {
  max-width: 680px;
  margin-bottom: 44px;
}
.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 10px;
}
.section-title {
  margin: 0 0 14px;
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.section-desc {
  margin: 0;
  font-size: 16px;
  color: var(--fg-muted);
}

/* ==========================================================================
   Bento Grid (Core Features)
   ========================================================================== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.bento-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 180ms ease, transform 180ms ease;
}
.bento-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}
.bento-wide { grid-column: span 2; }
.bento-full { grid-column: span 3; }

.card-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.bento-card h3,
.macos-card h3 {
  margin: 2px 0 0;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.bento-card p,
.macos-card p {
  margin: 0;
  font-size: 14.5px;
  color: var(--fg-muted);
}

.mini-tracks {
  margin-top: auto;
  padding: 12px;
  border-radius: 10px;
  background: var(--studio-well);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.mt-row { display: flex; gap: 6px; }
.mt-pill { height: 12px; border-radius: 4px; display: inline-block; }
.mt-rose { background: var(--clip-text); }
.mt-blue { background: var(--clip-video); }
.mt-lime { background: var(--accent); }
.mt-green { background: var(--clip-audio); }

.codec-tags {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.codec-tags span {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 6px;
  background: var(--field);
  border: 1px solid var(--line);
  color: var(--fg);
}

.curve-visual {
  width: 100%;
  height: 72px;
  margin-top: auto;
  color: var(--fg);
}

.fx-marquee {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.fx-chip {
  font-size: 12px;
  font-weight: 500;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--field);
  border: 1px solid var(--line);
  color: var(--fg-muted);
}
.fx-chip:nth-child(3n + 1) {
  border-color: var(--accent-soft);
  color: var(--fg);
}

.bento-split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.title-showcase-badges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  flex-shrink: 0;
}
.lang-badge-card {
  min-width: 112px;
  padding: 16px 14px;
  border-radius: 12px;
  background: var(--field);
  border: 1px solid var(--line);
  text-align: center;
}
.lang-badge-card strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 24px;
  line-height: 1.2;
  color: var(--accent);
}
.lang-badge-card span {
  font-size: 12px;
  color: var(--fg-muted);
}

/* ==========================================================================
   Local AI Section
   ========================================================================== */
.ai-layout {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 20px;
  align-items: stretch;
}
.ai-tabs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ai-tab {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}
.ai-tab:hover {
  border-color: var(--line-strong);
  background: var(--raised);
}
.ai-tab.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.ai-tab-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
}
.ai-tab strong {
  display: block;
  font-size: 14.5px;
  color: var(--fg);
}
.ai-tab div span {
  font-size: 12px;
  color: var(--fg-muted);
}

.ai-detail-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.ai-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.ai-model-pill {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--field);
  border: 1px solid var(--line);
  color: var(--fg-muted);
}
.ai-privacy-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
}
.ai-detail-title {
  margin: 0;
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.ai-detail-desc {
  margin: 0;
  font-size: 15px;
  color: var(--fg-muted);
}
.ai-detail-points {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 14.5px;
  color: var(--fg);
}
.ai-detail-points li::marker { color: var(--accent); }
.ai-detail-footer {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.ai-spec-item span {
  display: block;
  font-size: 12px;
  color: var(--fg-dim);
}
.ai-spec-item strong {
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--fg);
}

/* ==========================================================================
   Native macOS Craft Section
   ========================================================================== */
.macos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.macos-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.macos-card-wide {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 28px;
  align-items: center;
}
.macos-card-copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.macos-demo-controls {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.demo-setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--field);
  border: 1px solid var(--line);
}
.demo-setting-row strong {
  display: block;
  font-size: 13.5px;
}
.demo-setting-row span {
  font-size: 12px;
  color: var(--fg-muted);
}

.demo-toggle {
  width: 42px;
  height: 24px;
  border-radius: 999px;
  border: 0;
  padding: 3px;
  background: var(--field-hover);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  transition: background 160ms ease;
}
.demo-toggle span {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform 160ms ease;
}
.demo-toggle.is-on { background: var(--accent); }
.demo-toggle.is-on span {
  transform: translateX(18px);
  background: var(--on-accent);
}

.demo-segmented {
  display: inline-flex;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
  flex-wrap: wrap;
}
.demo-seg-btn {
  border: 0;
  background: transparent;
  padding: 5px 9px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--fg-muted);
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease;
}
.demo-seg-btn.is-active {
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
}

/* Mock macOS Menu Bar */
.macos-menubar-demo {
  background: var(--studio-well);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mock-os-bar {
  height: 30px;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--studio-panel);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
}
.mock-os-left,
.mock-os-right {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--fg-muted);
}
.mock-os-left strong { color: var(--fg); }
.mock-tray-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 6px;
  border-radius: 5px;
  border: 0;
  background: var(--accent-soft);
  cursor: pointer;
  transition: opacity 180ms ease, transform 180ms ease;
}
.mock-tray-btn.is-hidden {
  opacity: 0;
  transform: scale(0.75);
  pointer-events: none;
}
:root[data-theme="dark"] .tray-img-dark { display: none; }
:root[data-theme="light"] .tray-img-light { display: none; }
.mock-clock { font-family: var(--font-mono); font-size: 11px; }

.mock-tray-popover {
  align-self: flex-end;
  width: 185px;
  padding: 6px;
  border-radius: 10px;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-md);
  font-size: 12.5px;
  transition: opacity 180ms ease, transform 180ms ease;
}
.mock-tray-popover.is-dimmed {
  opacity: 0.3;
  transform: translateY(-4px);
}
.popover-item {
  padding: 5px 10px;
  border-radius: 6px;
  color: var(--fg-muted);
}
.popover-item.is-strong {
  color: var(--fg);
  font-weight: 600;
}
.popover-sep {
  height: 1px;
  background: var(--line);
  margin: 4px 6px;
}
.mock-status-pill {
  font-size: 12px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 8px;
  padding: 8px 11px;
  font-weight: 500;
}

.shortcut-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}
.shortcut-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13.5px;
  padding: 7px 10px;
  border-radius: 8px;
  background: var(--field);
  border: 1px solid var(--line);
}
.shortcut-list kbd {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  color: var(--fg);
}
.shortcut-list span { color: var(--fg-muted); }

/* ==========================================================================
   MCP & Automation Section
   ========================================================================== */
.automation-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 36px;
  align-items: center;
}
.check-list {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.check-list li {
  position: relative;
  padding-left: 22px;
  font-size: 14.5px;
  color: var(--fg);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.code-showcase {
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--field);
}
.code-tabs { display: flex; gap: 4px; }
.code-tab {
  border: 0;
  background: transparent;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--fg-muted);
  cursor: pointer;
}
.code-tab.is-active {
  background: var(--panel);
  color: var(--fg);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  padding: 0 11px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--fg);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease;
}
.copy-btn:hover { border-color: var(--accent); }
.copy-btn.is-copied {
  border-color: var(--accent);
  color: var(--accent);
}
.copy-btn-xs { height: 24px; padding: 0 8px; font-size: 11.5px; }

.code-block {
  margin: 0;
  padding: 20px;
  font-size: 12.5px;
  line-height: 1.65;
  overflow-x: auto;
  color: var(--fg);
  background: var(--studio-well);
}
.code-tools-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
}
.code-tools-strip span {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 5px;
  background: var(--field);
  color: var(--fg-muted);
}

/* ==========================================================================
   Specs & Download Card
   ========================================================================== */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 36px;
}
.spec-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px;
}
.spec-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--fg-dim);
  margin-bottom: 6px;
}
.spec-val {
  display: block;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.spec-card p {
  margin: 0;
  font-size: 13px;
  color: var(--fg-muted);
}

.download-card {
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xl);
  padding: 36px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  align-items: center;
  box-shadow: var(--shadow-md);
}
.download-card-left {
  display: flex;
  align-items: center;
  gap: 22px;
}
.download-app-icon {
  border-radius: 20px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
}
.version-chip {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 8px;
}
.download-card-left h2 {
  margin: 0 0 8px;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.025em;
}
.download-card-left p {
  margin: 0;
  font-size: 14.5px;
  color: var(--fg-muted);
}
.download-card-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.btn-appstore {
  height: auto;
  padding: 12px 24px;
  border-radius: 14px;
  gap: 12px;
}
.appstore-btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.25;
}
.appstore-btn-text small {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.82;
}
.appstore-btn-text strong {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.appstore-meta {
  margin: 0;
  font-size: 12.5px;
  color: var(--fg-dim);
  text-align: right;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--panel);
  padding: 56px 0 28px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}
.footer-tagline {
  margin: 12px 0 0;
  font-size: 13.5px;
  color: var(--fg-muted);
  max-width: 300px;
}
.footer-links-col {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.footer-links-col h4 {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--fg);
}
.footer-links-col a {
  font-size: 13.5px;
  color: var(--fg-muted);
  transition: color 140ms ease;
}
.footer-links-col a:hover { color: var(--accent); }
.footer-email {
  font-family: var(--font-mono);
  font-size: 13px !important;
  color: var(--fg) !important;
}
.footer-note {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--fg-dim);
}

.footer-bottom {
  padding-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
  color: var(--fg-dim);
}
.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.footer-bottom-links a:hover { color: var(--fg); }

/* ==========================================================================
   Legal Pages (Privacy Policy & Terms of Service)
   ========================================================================== */
.legal-main {
  padding: 56px 0 96px;
}
.legal-container {
  max-width: 820px;
}
.legal-header {
  margin-bottom: 28px;
}
.legal-header .section-tag {
  display: block;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--fg-muted);
  margin-bottom: 14px;
  transition: color 140ms ease;
}
.back-link:hover { color: var(--accent); }
.legal-title {
  margin: 0 0 10px;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.legal-meta {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--fg-dim);
  font-family: var(--font-mono);
}

.legal-highlight-box {
  padding: 20px 24px;
  border-radius: var(--r-lg);
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  margin-bottom: 28px;
}
.legal-highlight-box strong {
  display: block;
  font-size: 15.5px;
  color: var(--fg);
  margin-bottom: 6px;
}
.legal-highlight-box p {
  margin: 0;
  font-size: 14.5px;
  color: var(--fg);
  opacity: 0.92;
}

.legal-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.legal-section {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px 28px;
}
.legal-section h2 {
  margin: 0 0 12px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.legal-section p {
  margin: 0 0 12px;
  font-size: 14.5px;
  color: var(--fg-muted);
}
.legal-section p:last-child { margin-bottom: 0; }
.legal-section ul {
  margin: 0 0 12px;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14.5px;
  color: var(--fg-muted);
}
.legal-section ul:last-child { margin-bottom: 0; }
.legal-section li strong { color: var(--fg); }
.legal-section code {
  font-size: 13px;
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--field);
  color: var(--fg);
}
.legal-contact-card {
  border-color: var(--line-strong);
}
.contact-email-row {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.contact-email-row .btn {
  height: 38px;
  padding: 0 16px;
  font-family: var(--font-mono);
  font-size: 13.5px;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .nav-links,
  .accent-strip { display: none; }
  .mobile-menu-btn { display: inline-flex; }

  .studio-workspace {
    grid-template-columns: 1fr;
  }
  .studio-bin,
  .studio-inspector {
    display: none;
  }

  .bento-grid {
    grid-template-columns: 1fr 1fr;
  }
  .bento-wide,
  .bento-full { grid-column: span 2; }

  .ai-layout,
  .macos-card-wide,
  .automation-grid,
  .download-card {
    grid-template-columns: 1fr;
  }
  .download-card-right { align-items: flex-start; }
  .appstore-meta { text-align: left; }
  .macos-grid {
    grid-template-columns: 1fr;
  }
  .macos-card-wide { grid-column: span 1; }
  .specs-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .nav-cta { display: none; }
  .hero { padding: 44px 0 60px; }
  .section { padding: 60px 0; }
  .hero-trust-row { gap: 12px; padding: 12px 14px; }
  .trust-divider { display: none; }
  .bento-grid,
  .specs-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .bento-wide,
  .bento-full { grid-column: span 1; }
  .bento-split { flex-direction: column; align-items: stretch; }
  .title-showcase-badges { grid-template-columns: repeat(3, 1fr); }
  .download-card { padding: 24px 20px; }
  .download-card-left { flex-direction: column; align-items: flex-start; }
  .download-card-right { align-items: flex-start; }
  .appstore-meta { text-align: left; }
  .demo-setting-row { flex-direction: column; align-items: flex-start; }
  .legal-section { padding: 20px; }
  .studio-menubar,
  .tl-hint,
  .tl-tools-right { display: none; }
}

/* ==========================================================================
   RTL Language Polish (ar, fa, he, ur)
   ========================================================================== */
html[dir="rtl"] .ai-tab {
  text-align: right;
}
html[dir="rtl"] .check-list li {
  padding-left: 0;
  padding-right: 22px;
}
html[dir="rtl"] .check-list li::before {
  left: auto;
  right: 0;
}
html[dir="rtl"] .ai-detail-points,
html[dir="rtl"] .legal-section ul {
  padding-left: 0;
  padding-right: 20px;
}
html[dir="rtl"] .back-link svg {
  transform: scaleX(-1);
}
html[dir="rtl"] .studio-window,
html[dir="rtl"] .code-block,
html[dir="rtl"] .timecode,
html[dir="rtl"] .contact-email-row .btn,
html[dir="rtl"] .footer-email {
  direction: ltr;
}
html[dir="rtl"] .studio-caption-box {
  direction: rtl;
}

