/* ===================================================================
   ClipForge — marketing site
   Apple-inspired: clarity, deference, depth. Dark, premium, spacious.
   =================================================================== */

:root {
  --bg:        #07080c;
  --bg-2:      #0b0d13;
  --panel:     #12141d;
  --panel-2:   #171a24;
  --line:      #232634;
  --text:      #f4f5f8;
  --dim:       #a6abbd;
  --faint:     #6f7589;
  --accent:    #5b8cff;
  --accent-2:  #7c5cff;
  --green:     #36d399;
  --amber:     #ffb454;
  --red:       #ff5d6c;
  --grad:      linear-gradient(135deg, #6f9bff 0%, #5b8cff 45%, #7c5cff 100%);
  --radius:    22px;
  --radius-sm: 14px;
  --maxw:      1180px;
  --ease:      cubic-bezier(.22, 1, .36, 1);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI",
          Roboto, Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 92px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 { line-height: 1.07; letter-spacing: -0.03em; font-weight: 700; }
h2 { font-size: clamp(30px, 4.4vw, 56px); }
h3 { font-size: clamp(19px, 2vw, 23px); letter-spacing: -0.02em; }
p { color: var(--dim); }
strong { color: var(--text); font-weight: 600; }
em { font-style: normal; color: var(--text); }
a { color: inherit; text-decoration: none; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 18px;
}
.center { text-align: center; }
.sub { color: var(--dim); font-size: clamp(16px, 1.6vw, 19px); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: inherit; font-weight: 600; font-size: 15.5px;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .25s var(--ease), background .25s var(--ease),
              box-shadow .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn-lg { padding: 15px 30px; font-size: 16.5px; }
.btn-block { display: flex; width: 100%; }
.btn-primary {
  background: var(--grad); color: #fff;
  box-shadow: 0 10px 30px -8px rgba(91, 140, 255, .55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -8px rgba(108, 110, 255, .7); }
.btn-ghost {
  background: rgba(255, 255, 255, .05); color: var(--text);
  border-color: var(--line); backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .1); transform: translateY(-2px); border-color: #353a4d; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(8, 9, 14, .72);
  backdrop-filter: saturate(160%) blur(20px);
  -webkit-backdrop-filter: saturate(160%) blur(20px);
  border-bottom-color: var(--line);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 14px 28px;
  display: flex; align-items: center; gap: 22px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; }
.brand-name { font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { color: var(--dim); font-size: 15px; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { padding: 9px 18px; font-size: 14.5px; }
.nav-toggle { display: none; background: none; border: 0; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s var(--ease); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 168px 0 60px; text-align: center; overflow: hidden; }
.hero-glow {
  position: absolute; top: -240px; left: 50%; transform: translateX(-50%);
  width: 1100px; height: 760px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(91,140,255,.30), rgba(124,92,255,.12) 55%, transparent 72%);
  filter: blur(20px);
}
.hero-inner { position: relative; max-width: 880px; }
.hero-title { font-size: clamp(40px, 7vw, 84px); font-weight: 800; letter-spacing: -0.045em; }
.hero-sub {
  font-size: clamp(17px, 2vw, 21px); color: var(--dim);
  max-width: 660px; margin: 26px auto 0;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.center-cta { margin-top: 30px; }
.hero-fine { font-size: 13.5px; color: var(--faint); margin-top: 20px; }

.hero-media { position: relative; margin-top: 64px; max-width: 1060px; }
.app-window {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 50px 120px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255,255,255,.03) inset;
}
.app-bar {
  display: flex; align-items: stretch; justify-content: space-between;
  height: 40px; background: #0e1016; border-bottom: 1px solid var(--line);
}
.app-bar-left { display: flex; align-items: center; gap: 9px; padding-left: 14px; }
.app-bar-icon { width: 17px; height: 17px; border-radius: 5px; }
.app-bar-title { font-size: 13px; color: var(--dim); font-weight: 500; }
.win-controls { display: flex; }
.win-btn {
  width: 46px; display: flex; align-items: center; justify-content: center;
  color: #c2c7d6; transition: background .15s, color .15s;
}
.win-btn svg { width: 12px; height: 12px; }
.win-btn:hover { background: rgba(255, 255, 255, .08); }
.win-btn.close:hover { background: #e81123; color: #fff; }
.app-video { display: block; width: 100%; height: auto; }
.media-caption { font-size: 13.5px; color: var(--faint); margin-top: 18px; }

/* ---------- value strip ---------- */
.strip { padding: 40px 0 20px; }
.strip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.strip-item {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; transition: transform .3s var(--ease), border-color .3s;
}
.strip-item:hover { transform: translateY(-4px); border-color: #2e3344; }
.strip-icon { font-size: 30px; margin-bottom: 14px; }
.strip-item h3 { margin-bottom: 8px; }
.strip-item p { font-size: 15px; }

/* ---------- feature rows ---------- */
.feature { padding: 90px 0; }
.feature.alt { background: var(--bg-2); }
.feature-row { display: grid; grid-template-columns: 1fr 1.15fr; gap: 60px; align-items: center; }
.feature-row.reverse .feature-text { order: 2; }
.feature-row.reverse .feature-media { order: 1; }
.feature-text h2 { margin-bottom: 20px; }
.feature-text > p { font-size: 17.5px; max-width: 460px; }
.ticks { list-style: none; margin-top: 26px; display: grid; gap: 12px; }
.ticks li {
  position: relative; padding-left: 30px; color: var(--dim); font-size: 15.5px;
}
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--grad);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/14px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/14px no-repeat;
}
.feature-media img { width: 100%; height: auto; display: block; border-radius: var(--radius); }
.feature-media:not(.narrow) img {
  border: 1px solid var(--line);
  box-shadow: 0 40px 90px -40px rgba(0,0,0,.85);
}
.feature-media.narrow { max-width: 460px; margin: 0 auto; }
.dialog-frame {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; box-shadow: 0 40px 90px -40px rgba(0,0,0,.85);
}
.dialog-frame img { border-radius: 12px; border: 1px solid var(--line); }

/* ---------- how ---------- */
.how { padding: 96px 0; }
.how h2 { max-width: 720px; margin: 0 auto 56px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px;
}
.step-no {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 12px; font-weight: 800; font-size: 18px;
  background: var(--grad); color: #fff; margin-bottom: 18px;
}
.step h3 { margin-bottom: 10px; }
.step p { font-size: 15px; }

/* ---------- pricing ---------- */
.pricing { padding: 96px 0; background: var(--bg-2); }
.pricing h2 { margin-top: 6px; }
.pricing .sub { margin-top: 14px; }
.plans {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
  max-width: 840px; margin: 52px auto 0;
}
.plan {
  position: relative; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 36px 32px; display: flex; flex-direction: column;
}
.plan.featured {
  border-color: transparent;
  background:
    linear-gradient(var(--panel), var(--panel)) padding-box,
    var(--grad) border-box;
  box-shadow: 0 40px 90px -45px rgba(108,110,255,.7);
}
.plan-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--grad); color: #fff; font-size: 12px; font-weight: 700;
  padding: 5px 14px; border-radius: 999px; letter-spacing: .02em;
}
.plan-name { font-size: 20px; color: var(--dim); font-weight: 600; }
.plan-price { margin: 12px 0 4px; }
.plan-price .amount { font-size: 46px; font-weight: 800; letter-spacing: -0.04em; color: var(--text); }
.plan-price .once { font-size: 15px; color: var(--faint); font-weight: 500; }
.plan-tag { font-size: 15px; margin-bottom: 22px; }
.plan-feats { list-style: none; display: grid; gap: 13px; margin-bottom: 28px; flex: 1; }
.plan-feats li { position: relative; padding-left: 28px; font-size: 15px; color: var(--dim); }
.plan-feats li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 17px; height: 17px;
  border-radius: 50%; background: var(--grad);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/13px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/13px no-repeat;
}
.plan-feats li.muted { color: var(--faint); }
.plan-feats li.muted::before { background: var(--faint); }
.plan-fine { font-size: 12.5px; color: var(--faint); margin-top: 14px; text-align: center; }

/* ---------- download ---------- */
.download { padding: 110px 0; position: relative; overflow: hidden; }
.download::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(closest-side at 50% 0%, rgba(124,92,255,.18), transparent 70%);
}
.dl-mark { width: 76px; height: 76px; border-radius: 20px; margin-bottom: 24px;
           box-shadow: 0 20px 50px -16px rgba(91,140,255,.6); }
.download h2 { margin-bottom: 14px; }
.download .sub { max-width: 560px; margin: 0 auto; }

/* ---------- faq ---------- */
.faq { padding: 96px 0; background: var(--bg-2); }
.faq h2 { margin-bottom: 44px; }
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-list details {
  border-bottom: 1px solid var(--line); padding: 6px 0;
}
.faq-list summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 4px; position: relative;
  font-size: 18px; font-weight: 600; color: var(--text);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font-size: 26px; font-weight: 400; color: var(--accent); transition: transform .3s var(--ease);
}
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list details p { padding: 0 40px 22px 4px; font-size: 15.5px; }

/* ---------- footer ---------- */
.footer { padding: 60px 0 36px; border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-brand { max-width: 280px; }
.footer-brand .brand-mark { width: 34px; height: 34px; vertical-align: middle; }
.footer-brand .brand-name { font-size: 18px; margin-left: 8px; vertical-align: middle; }
.footer-tag { font-size: 14px; color: var(--faint); margin-top: 14px; }
.footer-cols { display: flex; gap: 64px; }
.footer-cols h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--faint); margin-bottom: 14px; }
.footer-cols a { display: block; color: var(--dim); font-size: 14.5px; margin-bottom: 10px; transition: color .2s; }
.footer-cols a:hover { color: var(--text); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--faint);
}

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; margin-left: auto; }
  .nav.menu-open .nav-links {
    display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(8,9,14,.96); backdrop-filter: blur(20px); border-bottom: 1px solid var(--line);
    padding: 18px 28px 26px; gap: 4px;
  }
  .nav.menu-open .nav-links a { padding: 12px 0; font-size: 17px; }
  .nav.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .feature-row, .feature-row.reverse .feature-text, .feature-row.reverse .feature-media { order: 0; }
  .feature-row { grid-template-columns: 1fr; gap: 34px; }
  .feature-media { order: 2 !important; }
  .feature-text { order: 1 !important; }
  .feature-text > p { max-width: none; }
  .strip-grid, .steps { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; max-width: 460px; }
  .hero { padding-top: 132px; }
}
@media (max-width: 520px) {
  .container { padding: 0 20px; }
  .nav-inner { padding: 12px 20px; }
  .btn-lg { width: 100%; }
  .hero-cta { flex-direction: column; }
  .footer-cols { gap: 40px; }
}
