:root {
  color-scheme: light;
  --bg: #f7f9fc;
  --surface: #ffffff;
  --surface-strong: #f0f4f9;
  --ink: #172033;
  --muted: #657087;
  --line: #dce3ee;
  --blue: #2563eb;
  --blue-dark: #1e3a8a;
  --green: #0f9f6e;
  --pink: #d9468f;
  --shadow: 0 22px 60px rgba(22, 32, 51, 0.14);
  --soft-shadow: 0 14px 36px rgba(22, 32, 51, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

img,
svg {
  display: block;
}

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

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.section {
  padding: 92px 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(220, 227, 238, 0.86);
  backdrop-filter: blur(18px);
}

.nav {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.08rem;
  letter-spacing: 0;
}

.brand img {
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.18);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-weight: 650;
  font-size: 0.95rem;
}

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

.hero {
  position: relative;
  min-height: 720px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #ffffff;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("assets/clipstory-icon.png");
  background-position: right -120px top 92px;
  background-repeat: no-repeat;
  background-size: min(560px, 58vw);
  opacity: 0.045;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: var(--line);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  gap: 54px;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(3.6rem, 6.3vw, 5.6rem);
  line-height: 0.96;
  letter-spacing: 0;
  max-width: 760px;
}

h1 span {
  display: block;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
  line-height: 1.25;
}

.hero-subtitle {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.24rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 20px;
  font-weight: 800;
  border: 1px solid transparent;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: #ffffff;
  background: var(--blue);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.26);
}

.button.primary:hover {
  background: var(--blue-dark);
}

.button.secondary {
  color: var(--ink);
  background: #ffffff;
  border-color: var(--line);
}

.button.secondary:hover {
  border-color: #bac8dc;
  box-shadow: var(--soft-shadow);
}

.button.full {
  width: 100%;
}

.product-stage {
  position: relative;
  z-index: 1;
}

.screen-frame {
  position: relative;
  min-height: 430px;
  border: 1px solid #cfd8e6;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(247, 249, 252, 0.96), rgba(232, 238, 247, 0.94)),
    #eef3f9;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.screen-frame::before {
  content: "";
  position: absolute;
  inset: 92px 42px 38px;
  border: 1px solid rgba(101, 112, 135, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.38)),
    repeating-linear-gradient(0deg, rgba(101, 112, 135, 0.09) 0 1px, transparent 1px 34px);
}

.menu-bar {
  height: 32px;
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding: 11px 18px 0;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(207, 216, 230, 0.7);
}

.menu-bar span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #aeb9c9;
}

.notch {
  position: absolute;
  top: 0;
  left: 50%;
  width: 168px;
  height: 30px;
  transform: translateX(-50%);
  background: #111827;
  border-radius: 0 0 15px 15px;
  z-index: 3;
}

.island-panel {
  position: absolute;
  top: 48px;
  left: 50%;
  width: min(88%, 560px);
  transform: translateX(-50%);
  padding: 18px;
  border-radius: 8px;
  background: #080d18;
  box-shadow: 0 26px 50px rgba(23, 32, 51, 0.34);
}

.panel-topline {
  display: grid;
  grid-template-columns: auto 1fr 28px 28px;
  gap: 8px;
  margin-bottom: 14px;
  align-items: center;
}

.sync-pill,
.search-pill,
.tool-dot {
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
}

.sync-pill,
.search-pill {
  display: flex;
  align-items: center;
  padding: 0 10px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.76rem;
  font-weight: 750;
}

.clip-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.clip-card {
  min-height: 174px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px;
  border-radius: 8px;
  color: #ffffff;
  overflow: hidden;
}

.clip-card p {
  margin: 14px 0;
  font-size: 0.88rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.86);
}

.clip-card small {
  color: rgba(255, 255, 255, 0.66);
}

.card-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.8rem;
}

.card-head span {
  color: rgba(255, 255, 255, 0.68);
}

.blue-card {
  background: #2563eb;
}

.green-card {
  background: #0f766e;
}

.pink-card {
  background: #c02667;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

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

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.feature-card,
.download-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
}

.feature-card {
  padding: 24px;
}

.feature-card p,
.download-card p,
.story-copy p,
.workflow-item p,
.site-footer p {
  color: var(--muted);
}

.icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 8px;
  color: var(--blue);
  background: #eef4ff;
}

.icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.stats div {
  padding: 22px;
  background: var(--surface);
}

.stats strong,
.stats span {
  display: block;
}

.stats strong {
  font-size: 1.22rem;
  line-height: 1.2;
}

.stats span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.94rem;
}

.workflow-section,
.download-section {
  background: #ffffff;
}

.pricing-section {
  background: var(--surface-strong);
}

.pricing-heading {
  max-width: 760px;
}

.pricing-heading > p:last-child {
  color: var(--muted);
  font-size: 1.08rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 36px;
}

.price-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--soft-shadow);
}

.price-card.featured {
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: 0 18px 44px rgba(37, 99, 235, 0.14);
}

.plan-kicker {
  margin-bottom: 10px;
  color: var(--blue);
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.76rem;
}

.price-card h3 {
  margin-bottom: 2px;
  font-size: 2.35rem;
}

.price-card h3 small {
  color: var(--muted);
  font-size: 0.92rem;
}

.price-note {
  color: var(--muted);
  font-size: 0.9rem;
}

.price-card ul {
  flex: 1;
  margin: 16px 0 28px;
  padding-left: 20px;
  color: var(--muted);
}

.price-card li + li {
  margin-top: 8px;
}

.pricing-fineprint {
  margin: 20px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}

.workflow-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 54px;
  align-items: start;
}

.workflow-list {
  display: grid;
  gap: 14px;
}

.workflow-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
}

.workflow-item span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: #ffffff;
  font-weight: 850;
}

.workflow-item p {
  margin-bottom: 0;
}

.download-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.download-card {
  padding: 28px;
}

.download-card img {
  margin-bottom: 18px;
  border-radius: 22px;
}

.download-card.subtle {
  background: var(--surface-strong);
}

.site-footer {
  padding: 54px 0;
  background: #121926;
  color: #ffffff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 1fr;
  gap: 34px;
}

.footer-brand {
  margin-bottom: 14px;
}

.site-footer h2 {
  margin-bottom: 14px;
  font-size: 0.95rem;
}

.site-footer a:not(.brand) {
  display: block;
  width: max-content;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.72);
}

.site-footer a:hover {
  color: #ffffff;
}

.site-footer p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.68);
}

@media (max-width: 980px) {
  .hero-inner,
  .workflow-grid,
  .download-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

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

@media (max-width: 680px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  .section {
    padding: 68px 0;
  }

  .nav {
    min-height: 66px;
  }

  .nav-links {
    gap: 12px;
    font-size: 0.8rem;
  }

  .brand span {
    display: none;
  }

  .nav-links a[href="#workflow"] {
    display: none;
  }

  h1 {
    font-size: clamp(2.35rem, 10.7vw, 2.8rem);
    line-height: 1;
  }

  .hero-subtitle {
    font-size: 1.05rem;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .screen-frame {
    min-height: 260px;
    width: 100%;
  }

  .island-panel {
    width: calc(100% - 24px);
    padding: 12px;
    top: 42px;
  }

  .panel-topline {
    grid-template-columns: 1fr 28px 28px;
  }

  .sync-pill {
    display: none;
  }

  .clip-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .clip-card {
    min-height: 116px;
    padding: 10px;
  }

  .clip-card p {
    margin: 10px 0;
    font-size: 0.72rem;
    line-height: 1.25;
  }

  .clip-card small,
  .card-head span {
    display: none;
  }

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

  .workflow-item {
    grid-template-columns: 1fr;
  }
}
