/* ClipFlow website */
:root {
  color-scheme: light;
  --bg: #f5f5f7;
  --surface: rgba(255, 255, 255, .76);
  --surface-solid: #fff;
  --sidebar: rgba(246, 246, 248, .9);
  --text: #1d1d1f;
  --secondary: #6e6e73;
  --muted: #8e8e93;
  --border: rgba(0, 0, 0, .08);
  --accent: #007aff;
  --accent-soft: rgba(0, 122, 255, .12);
  --shadow: 0 24px 70px rgba(0, 0, 0, .12);
  --header: rgba(245, 245, 247, .76);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #1c1c1e;
  --surface: rgba(44, 44, 46, .76);
  --surface-solid: #2c2c2e;
  --sidebar: rgba(38, 38, 40, .94);
  --text: #f5f5f7;
  --secondary: #aeaeb2;
  --muted: #8e8e93;
  --border: rgba(255, 255, 255, .09);
  --accent: #0a84ff;
  --accent-soft: rgba(10, 132, 255, .18);
  --shadow: 0 24px 70px rgba(0, 0, 0, .38);
  --header: rgba(28, 28, 30, .76);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 82% 8%, var(--accent-soft), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, system-ui, sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 68px;
  padding: 0 clamp(20px, 5vw, 72px);
  display: flex;
  align-items: center;
  gap: 28px;
  border-bottom: 1px solid var(--border);
  background: var(--header);
  backdrop-filter: blur(22px) saturate(150%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -.02em;
}

.brand-logo {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.brand em {
  margin-left: 2px;
  color: var(--muted);
  font-size: .82rem;
  font-style: normal;
  font-weight: 600;
}

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

.nav a {
  color: var(--secondary);
  font-size: .94rem;
  font-weight: 550;
  text-decoration: none;
}

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

.theme-toggle {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.hero,
.section,
.footer,
.trust-strip {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.hero {
  min-height: calc(100vh - 68px);
  padding: 96px 0;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(48px, 7vw, 90px);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: .78rem;
  font-weight: 750;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.hero h1,
.section h2,
.docs-content h1 {
  margin: 0;
  font-weight: 760;
  letter-spacing: -.055em;
  line-height: .98;
}

.hero h1 {
  font-size: clamp(4rem, 8vw, 7rem);
}

.hero h1 span {
  color: var(--secondary);
}

.hero-copy > p {
  max-width: 620px;
  margin: 28px 0 0;
  color: var(--secondary);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
}

.hero-actions,
.download-actions {
  margin-top: 34px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.button {
  min-height: 46px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 650;
  text-decoration: none;
}

.button.primary {
  background: var(--accent);
  color: white;
}

.button.secondary {
  background: var(--surface);
  border-color: var(--border);
}

.hero-meta {
  margin-top: 26px;
  display: flex;
  gap: 10px 18px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: .82rem;
}

.app-window {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 19px;
  background: var(--surface-solid);
  box-shadow: var(--shadow);
  transform: perspective(1200px) rotateY(-3deg) rotateX(1deg);
}

.window-bar {
  height: 42px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.traffic-lights {
  padding-left: 14px;
  display: flex;
  gap: 7px;
}

.traffic-lights span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--muted);
  opacity: .45;
}

.window-title {
  color: var(--secondary);
  font-size: .78rem;
  font-weight: 600;
}

.window-content {
  min-height: 430px;
  display: grid;
  grid-template-columns: 180px 1fr;
}

.preview-sidebar {
  padding: 24px 13px 14px;
  display: flex;
  flex-direction: column;
  background: var(--sidebar);
  border-right: 1px solid var(--border);
}

.preview-logo {
  width: 105px;
  max-height: 54px;
  margin: 0 auto 28px;
  object-fit: contain;
}

.preview-sidebar small {
  margin: 0 10px 7px;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.preview-sidebar button {
  padding: 9px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--secondary);
  text-align: left;
}

.preview-sidebar button.active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 650;
}

.spacer {
  flex: 1;
}

.preview-main {
  padding: 19px;
  background: var(--bg);
}

.preview-search {
  height: 37px;
  margin-bottom: 13px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--muted);
  font-size: .85rem;
}

.clip-row {
  margin-bottom: 10px;
  padding: 13px;
  display: flex;
  gap: 11px;
  align-items: flex-start;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.clip-row.selected {
  border-color: color-mix(in srgb, var(--accent) 32%, transparent);
  background: var(--accent-soft);
}

.clip-symbol {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: .75rem;
  font-weight: 750;
}

.clip-row strong,
.clip-row small {
  display: block;
}

.clip-row strong {
  max-width: 320px;
  overflow: hidden;
  font-size: .86rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.clip-row small {
  margin-top: 3px;
  color: var(--muted);
}

.trust-strip {
  padding: 21px 28px;
  display: flex;
  justify-content: center;
  gap: 38px;
  flex-wrap: wrap;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}

.trust-strip p {
  margin: 0;
  color: var(--secondary);
  font-weight: 600;
}

.section {
  padding: 120px 0 30px;
}

.section-heading {
  max-width: 750px;
  margin-bottom: 48px;
}

.section h2 {
  font-size: clamp(2.7rem, 6vw, 5.4rem);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.feature-card {
  min-height: 230px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: var(--surface);
}

.icon-tile {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
}

.icon-tile > svg {
  width: 20px;
  height: 20px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  background: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.feature-card h3 {
  margin: 42px 0 8px;
  letter-spacing: -.02em;
}

.feature-card p {
  margin: 0;
  color: var(--secondary);
}

.shortcuts-section {
  display: grid;
  grid-template-columns: 1fr .8fr;
  gap: 70px;
}

.shortcut-list {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  overflow: hidden;
}

.shortcut-list div {
  min-height: 58px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.shortcut-list div:last-child {
  border-bottom: 0;
}

kbd {
  padding: 5px 9px;
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 7px;
  background: var(--surface-solid);
  color: var(--secondary);
  font-family: inherit;
  font-size: .78rem;
  font-weight: 650;
}

.download-card {
  margin-top: 110px;
  margin-bottom: 90px;
  padding: clamp(34px, 7vw, 72px);
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
}

.download-card h2 {
  font-size: clamp(2.4rem, 5vw, 4.8rem);
}

.download-card p {
  max-width: 680px;
  color: var(--secondary);
}

.text-link {
  color: var(--accent);
  font-weight: 650;
  text-decoration: none;
}

.footer {
  padding: 34px 0 54px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 28px;
  align-items: center;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: .86rem;
}

.footer p {
  margin: 0;
}

/* Documentation */
.docs-layout {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 245px minmax(0, 800px);
  gap: 70px;
  justify-content: center;
}

.docs-sidebar {
  position: sticky;
  top: 98px;
  height: fit-content;
  padding: 34px 0;
}

.docs-sidebar div {
  margin-bottom: 27px;
}

.docs-sidebar small {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.docs-sidebar a {
  padding: 5px 0;
  display: block;
  color: var(--secondary);
  font-size: .9rem;
  text-decoration: none;
}

.docs-sidebar a:hover {
  color: var(--accent);
}

.docs-content {
  padding: 82px 0 120px;
}

.docs-content section {
  padding: 34px 0;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 95px;
}

.docs-content section:first-child {
  padding-top: 0;
}

.docs-content h1 {
  font-size: clamp(3rem, 7vw, 6rem);
}

.docs-content h2 {
  margin: 0 0 14px;
  font-size: 1.8rem;
  letter-spacing: -.035em;
}

.docs-content p,
.docs-content li {
  color: var(--secondary);
}

.docs-content .lead {
  max-width: 700px;
  font-size: 1.18rem;
}

.docs-content li {
  margin: 7px 0;
}

.callout {
  margin-top: 24px;
  padding: 18px 20px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  border-radius: 13px;
  background: var(--accent-soft);
}

.callout p {
  margin-bottom: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

th {
  color: var(--text);
}

td {
  color: var(--secondary);
}

tr:last-child td {
  border-bottom: 0;
}


/* Lucide icons: only the wrapper gets a tile background. */
[data-lucide],
.lucide {
  display: block;
  fill: none;
  stroke: currentColor;
  background: none;
  border: 0;
  box-shadow: none;
}

.preview-sidebar button,
.demo-sidebar button {
  display: flex;
  align-items: center;
  gap: 9px;
}

.preview-sidebar button > svg,
.demo-sidebar button > svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  stroke-width: 1.9;
}

.clip-symbol > svg {
  width: 15px;
  height: 15px;
  stroke-width: 2;
}

/* Interactive website demo */
.section-copy {
  max-width: 650px;
  color: var(--secondary);
  font-size: 1.05rem;
}

.demo-shell {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface-solid);
  box-shadow: var(--shadow);
}

.demo-titlebar {
  min-height: 46px;
  padding: 0 14px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.demo-titlebar strong {
  font-size: .82rem;
  color: var(--secondary);
}

.demo-reset {
  margin-left: auto;
  padding: 7px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface-solid);
  color: var(--secondary);
  cursor: pointer;
}

.demo-reset:hover {
  color: var(--text);
}

.demo-reset svg {
  width: 14px;
  height: 14px;
}

.demo-layout {
  min-height: 520px;
  display: grid;
  grid-template-columns: 210px 1fr;
}

.demo-sidebar {
  padding: 26px 13px 15px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
  background: var(--sidebar);
}

.demo-logo {
  width: 115px;
  max-height: 72px;
  margin: 0 auto 30px;
  object-fit: contain;
}

.demo-sidebar small {
  margin: 0 10px 7px;
  color: var(--muted);
  font-size: .7rem;
  font-weight: 750;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.demo-sidebar button {
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--secondary);
  text-align: left;
  cursor: pointer;
}

.demo-sidebar button:hover {
  background: var(--surface);
  color: var(--text);
}

.demo-sidebar button.active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 650;
}

.demo-main {
  padding: 20px;
  background: var(--bg);
}

.demo-search-wrap {
  height: 42px;
  padding: 0 13px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface);
}

.demo-search-wrap svg {
  width: 17px;
  height: 17px;
  color: var(--muted);
}

.demo-search-wrap input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.demo-list {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.demo-clip {
  padding: 13px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface);
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}

.demo-clip:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--accent) 28%, var(--border));
  background: var(--surface-solid);
}

.demo-clip-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
}

.demo-clip-icon svg {
  width: 17px;
  height: 17px;
}

.demo-clip-text {
  min-width: 0;
}

.demo-clip-text strong,
.demo-clip-text small {
  display: block;
}

.demo-clip-text strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.demo-clip-text small {
  margin-top: 3px;
  color: var(--muted);
}

.demo-swatch {
  width: 100%;
  height: 52px;
  margin-top: 9px;
  border: 1px solid var(--border);
  border-radius: 9px;
}

.demo-clip-actions {
  display: flex;
  gap: 5px;
}

.demo-clip-actions button {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.demo-clip-actions button:hover,
.demo-clip-actions button.is-pinned {
  background: var(--accent-soft);
  color: var(--accent);
}

.demo-clip-actions svg {
  width: 15px;
  height: 15px;
}

.demo-empty {
  min-height: 300px;
  display: grid;
  place-content: center;
  justify-items: center;
  color: var(--muted);
  text-align: center;
}

.demo-empty svg {
  width: 42px;
  height: 42px;
  margin-bottom: 12px;
}

.demo-empty strong {
  color: var(--text);
}

.demo-empty span {
  margin-top: 3px;
  font-size: .9rem;
}

@media (max-width: 700px) {
  .demo-layout {
    grid-template-columns: 1fr;
  }

  .demo-sidebar {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 5px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .demo-logo,
  .demo-sidebar small {
    display: none;
  }

  .demo-sidebar button {
    justify-content: center;
    padding: 9px 5px;
  }

  .demo-sidebar button span {
    display: none;
  }
}

@media (max-width: 900px) {
  .nav {
    display: none;
  }

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

  .app-window {
    transform: none;
  }

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

  .shortcuts-section {
    grid-template-columns: 1fr;
  }

  .download-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .docs-layout {
    display: block;
  }

  .docs-sidebar {
    position: static;
    padding-bottom: 0;
  }
}

@media (max-width: 620px) {
  .site-header {
    height: 60px;
    padding: 0 16px;
  }

  .hero,
  .section,
  .footer,
  .trust-strip {
    width: min(100% - 28px, 1180px);
  }

  .hero {
    padding: 68px 0;
  }

  .hero h1 {
    font-size: 3.7rem;
  }

  .window-content {
    grid-template-columns: 115px 1fr;
  }

  .preview-sidebar {
    padding-inline: 8px;
  }

  .preview-logo {
    width: 78px;
  }

  .preview-sidebar button {
    font-size: .72rem;
  }

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

  .section {
    padding-top: 84px;
  }

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