/* clipture.app: the app's Graphite field theme (src/renderer/shared/
   graphite.css and field.css), given room to breathe. One warm light, like
   the recorder's orange indicator, is the only decoration. */
:root {
  --font-ui: "Segoe UI Variable Text", "Segoe UI Variable", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI Variable", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-instrument: ui-monospace, "Cascadia Mono", Consolas, monospace;
  --page: #0f0f0e;
  --app-bg: #111110;
  --sidebar-bg: #181817;
  --surface: #1e1e1c;
  --surface-deep: #141413;
  --surface-control: #272725;
  --surface-hover: #30302d;
  --border: #2a2a27;
  --border-strong: #3d3d39;
  --text: #e4e4dd;
  --text-strong: #f7f6f2;
  --text-muted: #a9a89e;
  --text-subtle: #85847b;
  --accent: #f07836;
  --accent-soft: #30241c;
  --accent-border: #805537;
  --accent-text: #ffc294;
  --primary-bg: #deded5;
  --primary-text: #20211e;
  --inset-highlight: rgb(255 255 255 / 7%);
  --radius: 6px;
  --content: 1200px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html {
  background: var(--page);
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(1200px 620px at 50% -140px, rgb(240 120 54 / 9%), transparent 70%),
    var(--page);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius);
}

img { display: block; }

/* Navigation: sticky glass bar with the real logo. */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid transparent;
  background: rgb(15 15 14 / 72%);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
}

.nav-inner,
.footer-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  width: min(var(--content), 100% - 40px);
  margin-inline: auto;
}

.nav-inner { height: 64px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-strong);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.2px;
}

.nav-links {
  display: flex;
  gap: 26px;
  color: var(--text-muted);
  font-size: 14px;
}

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

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

.icon-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 12px;
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 14px;
}

.icon-link svg { width: 17px; height: 17px; fill: currentColor; }
.icon-link:hover { color: var(--text-strong); background: var(--surface-control); }

/* Buttons: the app's light primary and field-style secondary. */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 46px;
  padding: 0 22px;
  border: 1px solid #f2f2ea;
  border-radius: var(--radius);
  background: var(--primary-bg);
  color: var(--primary-text);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 55%), 0 8px 24px -10px rgb(0 0 0 / 60%);
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 150ms ease-out, transform 150ms ease-out;
}

.button:hover { background: #ecece4; }
.button:active { transform: translateY(1px); }

.button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button-small {
  height: 34px;
  padding: 0 14px;
  font-size: 13.5px;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 55%);
}

.button-quiet {
  border-color: var(--border-strong);
  background: var(--surface-control);
  color: var(--text-strong);
  box-shadow: inset 0 1px 0 var(--inset-highlight);
}

.button-quiet:hover { background: var(--surface-hover); }

/* Hero */
main { display: grid; }

.hero {
  display: grid;
  justify-items: center;
  width: min(880px, 100% - 40px);
  margin: 0 auto;
  padding: clamp(56px, 9vw, 112px) 0 clamp(48px, 6vw, 72px);
  text-align: center;
}

.announce {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgb(30 30 28 / 70%);
  color: var(--text-muted);
  font-size: 13px;
}

.announce:hover { color: var(--text-strong); border-color: var(--accent-border); }

.announce-dot,
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgb(240 120 54 / 22%);
}

h1 {
  margin: 0;
  color: var(--text-strong);
  font-family: var(--font-display);
  font-size: clamp(42px, 6.6vw, 80px);
  font-weight: 650;
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.lede {
  max-width: 54ch;
  margin: 24px 0 0;
  color: var(--text-muted);
  font-size: clamp(16px, 1.5vw, 18.5px);
  line-height: 1.6;
}

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

.needs {
  margin: 18px 0 0;
  color: var(--text-subtle);
  font-size: 13px;
}

/* The product: the live app as the hero image. */
.showcase {
  position: relative;
  display: grid;
  gap: 20px;
  width: min(var(--content), 100% - 40px);
  margin: 0 auto;
}

.glow {
  position: absolute;
  inset: 8% 10% -6%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(240 120 54 / 16%), rgb(240 120 54 / 4%) 55%, transparent);
  filter: blur(40px);
  pointer-events: none;
}

.window {
  overflow: hidden;
  border: 1px solid #3a3a36;
  border-radius: 12px;
  background: var(--app-bg);
  box-shadow:
    0 0 0 1px rgb(0 0 0 / 60%),
    0 2px 0 rgb(255 255 255 / 4%) inset,
    0 50px 120px -40px rgb(0 0 0 / 85%),
    0 30px 60px -30px rgb(0 0 0 / 70%);
}

/* A Windows 11 caption bar, as Clipture's window has. */
.titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding-left: 14px;
  border-bottom: 1px solid var(--border);
  background: var(--sidebar-bg);
  color: var(--text-muted);
  font-size: 12px;
}

.caption-buttons { display: flex; height: 100%; margin-left: auto; }

.caption-buttons i { position: relative; width: 46px; height: 100%; }

.caption-buttons i::before,
.caption-buttons i::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 1px;
  background: var(--text-subtle);
  transform: translate(-50%, -50%);
}

.caption-buttons i::after { display: none; }

.caption-buttons i:nth-child(2)::before {
  height: 10px;
  border: 1px solid var(--text-subtle);
  background: transparent;
}

.caption-buttons i:nth-child(3)::before,
.caption-buttons i:nth-child(3)::after { display: block; width: 12px; }
.caption-buttons i:nth-child(3)::before { transform: translate(-50%, -50%) rotate(45deg); }
.caption-buttons i:nth-child(3)::after { transform: translate(-50%, -50%) rotate(-45deg); }

.viewport {
  position: relative;
  aspect-ratio: 1280 / 800;
  overflow: hidden;
}

.viewport iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 1280px;
  height: 800px;
  border: 0;
  transform: scale(var(--app-scale, 1));
  transform-origin: 0 0;
}

.showcase-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 10px;
  margin: 0;
  color: var(--text-subtle);
  font-size: 13.5px;
  text-align: center;
}

.showcase-note a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-underline-offset: 4px;
}

.showcase-note a:hover { text-decoration-color: var(--accent); }

/* Features */
.features {
  width: min(var(--content), 100% - 40px);
  margin: 0 auto;
  padding: clamp(96px, 13vw, 168px) 0 0;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: end;
  gap: 24px 64px;
  margin-bottom: 48px;
}

.section-head h2,
.closing h2 {
  margin: 0;
  color: var(--text-strong);
  font-family: var(--font-display);
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 16px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--border);
  gap: 1px;
}

.feature {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 10px;
  min-height: 250px;
  padding: 30px 28px 28px;
  background: linear-gradient(180deg, #191918, #141413);
}

.feature-icon {
  width: 22px;
  height: 22px;
  margin-bottom: 14px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature h3 {
  margin: 0;
  color: var(--text-strong);
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -0.2px;
}

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

.chip {
  justify-self: start;
  margin-top: 12px;
  padding: 4px 9px;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  background: var(--surface-deep);
  color: var(--text);
  font-family: var(--font-instrument);
  font-size: 12px;
}

/* Closing */
.closing {
  display: grid;
  justify-items: center;
  gap: 28px;
  width: min(var(--content), 100% - 40px);
  margin: clamp(96px, 13vw, 168px) auto 0;
  padding: clamp(56px, 8vw, 96px) 24px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background:
    radial-gradient(600px 260px at 50% 0%, rgb(240 120 54 / 10%), transparent 70%),
    linear-gradient(180deg, #181817, #121211);
  text-align: center;
}

.closing-mark {
  width: 96px;
  height: 96px;
  filter: drop-shadow(0 18px 30px rgb(0 0 0 / 55%));
}

/* Footer */
.footer {
  margin-top: 72px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  flex-wrap: wrap;
  gap: 12px 28px;
  padding: 28px 0 40px;
  color: var(--text-subtle);
  font-size: 13.5px;
}

.footer-links { display: flex; gap: 22px; margin-left: auto; }

/* Smaller screens */
@media (max-width: 900px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-head { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .nav-links,
  .icon-link span { display: none; }
  .nav-inner { gap: 16px; }
  .feature-grid { grid-template-columns: minmax(0, 1fr); }
  .feature { min-height: 0; }
  .footer-links { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
