/* ------------------------------------------------
   AdBlox — Landing Page Styles
   ------------------------------------------------ */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Helvetica Now Display';
  src: url('fonts/HelveticaNowDisplay-XLight.otf') format('opentype');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Helvetica Now Display';
  src: url('fonts/HelveticaNowDisplay-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Helvetica Now Display';
  src: url('fonts/HelveticaNowDisplay-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Helvetica Now Display';
  src: url('fonts/HelveticaNowDisplay-XBold.otf') format('opentype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg:        #0a0a0b;
  --card:      #141416;
  --border:    #1e1e22;
  --text:      #e5e5e7;
  --text-dim:  #8e8e93;
  --accent:    #BEFF5A;
  --accent-fg: #0a0a0b;
  --radius:    14px;
  --radius-sm: 10px;
  --max-w:     1120px;
  --font:      'Helvetica Now Display', -apple-system, BlinkMacSystemFont, 'Segoe UI',
               Helvetica, Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  font-weight: 500;
  letter-spacing: -0.02em;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

img {
  display: block;
  max-width: 100%;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(190, 255, 90, 0.15);
}

.btn:active {
  transform: translateY(0);
}

.btn--accent {
  background: var(--accent);
  color: var(--accent-fg);
}

.btn--accent:hover {
  background: #d0ff7a;
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn--outline:hover {
  border-color: #3a3a40;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: none;
}

.btn--large {
  font-size: 17px;
  padding: 16px 36px;
  border-radius: var(--radius);
}

.btn--figma svg,
.btn--figma img {
  flex-shrink: 0;
}

.figma-logo-inline {
  display: inline-block;
  vertical-align: middle;
  object-fit: contain;
}

.figma-logo--sm {
  width: 14px;
  height: 20px;
}

.figma-logo--md {
  width: 16px;
  height: 23px;
}

.btn[disabled] {
  opacity: 0.5;
  pointer-events: none;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  backdrop-filter: blur(16px) saturate(1.6);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  background: rgba(10, 10, 11, 0.8);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav__logo {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__logo-img {
  height: 28px;
  width: auto;
  display: block;
}

.nav__logo span {
  color: var(--accent);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.2s;
}

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

/* ---------- Hero ---------- */
.hero {
  padding: 160px 0 120px;
  text-align: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 32px;
}

.hero__badge span {
  color: var(--accent);
  font-weight: 600;
}

.hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.08;
  max-width: 720px;
  margin: 0 auto 24px;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero__sub {
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 200;
  color: var(--text-dim);
  max-width: 520px;
  margin: 0 auto 44px;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.hero__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================
   Hero Demo — Plugin → Figma scroll animation
   ============================================ */
.hero-demo {
  position: relative;
}

.hero-demo__track {
  --p: 0;
  --p2: 0;
  --cp: 0;
  --click: 0;
  --dp: 0;
  height: 280vh;
  position: relative;
}

.hero-demo__sticky {
  position: sticky;
  top: calc((100vh - min(70vh, 620px)) / 2);
  height: min(70vh, 620px);
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Figma Chrome Background ---- */
.fc-bg {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  border: 1px solid #333;
  background: #2c2c2c;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  opacity: var(--p, 0);
  transform: scale(calc(0.95 + 0.05 * var(--p, 0)));
  transform-origin: center center;
  will-change: transform, opacity;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6);
}

.fc-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
  padding: 0 12px;
  background: #383838;
  border-bottom: 1px solid #444;
  flex-shrink: 0;
}

.fc-toolbar__left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fc-filename {
  font-size: 12px;
  color: #ccc;
  font-weight: 500;
}

.fc-toolbar__center {
  display: flex;
  align-items: center;
  gap: 2px;
}

.fc-tool {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: transparent;
  border: 1px solid transparent;
}

.fc-tool--active {
  background: #4a4a4e;
  border-color: #555;
}

.fc-toolbar__right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fc-share {
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: #0d99ff;
  padding: 4px 12px;
  border-radius: 6px;
}

.fc-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #3b82f6);
}

.fc-body {
  flex: 1;
  background: #1e1e1e;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fc-canvas {
  display: flex;
  align-items: flex-end;
  gap: 40px;
  padding: 40px;
}

.fc-frame {
  background: #2a2a2e;
  border: 1px solid #444;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

.fc-frame-label {
  position: absolute;
  top: -20px;
  left: 0;
  font-size: 10px;
  color: #888;
  white-space: nowrap;
}

.fc-frame--sq {
  width: 140px;
  height: 140px;
}

.fc-frame--tall {
  width: 90px;
  height: 160px;
}

.fc-frame-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px;
}

.fc-ad-head {
  height: 12px;
  border-radius: 2px;
  background: #3a3a40;
}

.fc-ad-img {
  flex: 1;
  border-radius: 3px;
  background: linear-gradient(135deg, #4a2d7a, #2d4a7a);
}

.fc-ad-cta {
  height: 10px;
  width: 50%;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0.6;
}

/* ---- Plugin Foreground ---- */
.plugin-fg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  pointer-events: none;
}

.plugin-fg .pm {
  max-width: 1100px;
  width: 100%;
  height: 115%;
  transform:
    scale(calc(1 - 0.52 * var(--p, 0)))
    translateX(calc(var(--p, 0) * 30%));
  transform-origin: center center;
  will-change: transform;
}

/* ---- Plugin Mockup ---- */
.pm {
  display: flex;
  background: #222224;
  border-radius: 12px;
  border: 1px solid #3a3a3c;
  overflow: hidden;
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.04);
  font-size: 12px;
  color: #e5e5e7;
  height: 100%;
}

.pm-side {
  width: 170px;
  background: #1a1a1c;
  border-right: 1px solid #2c2c2e;
  display: flex;
  flex-direction: column;
  padding: 16px 0;
  flex-shrink: 0;
}

.pm-logo-row {
  display: flex;
  align-items: center;
  padding: 0 12px;
  margin-bottom: 16px;
}

.pm-logo-img {
  height: 22px;
  width: auto;
  display: block;
}

.pm-new {
  margin: 0 12px 20px;
  padding: 8px 0;
  text-align: center;
  border-radius: 8px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-weight: 600;
  font-size: 13px;
}

.pm-nav {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.pm-nav-item {
  padding: 8px 20px;
  color: #8e8e93;
  font-weight: 500;
  cursor: default;
}

.pm-nav-item.active {
  background: #2c2c2e;
  color: #fff;
  font-weight: 600;
}

.pm-nav-sub {
  padding: 6px 20px 6px 36px;
  color: #6e6e73;
  font-size: 11px;
}

.pm-upgrade {
  margin: auto 12px 0;
  padding: 10px 0;
  text-align: center;
  border-radius: 8px;
  background: #2c2c2e;
  color: #e5e5e7;
  font-weight: 600;
  font-size: 12px;
}

.pm-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20px;
  overflow: hidden;
}

.pm-toprow {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}

.pm-title {
  font-size: 20px;
  font-weight: 700;
}

.pm-count {
  font-size: 12px;
  color: #6e6e73;
}

.pm-search {
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid #3a3a3c;
  background: #1a1a1c;
  color: #6e6e73;
  margin-bottom: 12px;
  font-size: 12px;
}

.pm-pills {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.pm-pill {
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid #3a3a3c;
  font-size: 11px;
  color: #8e8e93;
}

.pm-tabs {
  display: flex;
  gap: 16px;
  border-bottom: 1px solid #2c2c2e;
  padding-bottom: 8px;
  margin-bottom: 14px;
}

.pm-tab {
  font-size: 12px;
  color: #6e6e73;
}

.pm-tab--active {
  color: #fff;
  font-weight: 600;
  position: relative;
}

.pm-tab--active::after {
  content: '';
  position: absolute;
  bottom: -9px;
  left: 0;
  right: 0;
  height: 2px;
  background: #3b82f6;
  border-radius: 1px;
}

.pm-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: min-content;
  gap: 10px;
  flex: 1;
  overflow: hidden;
  align-content: start;
}

.pm-card {
  border-radius: 8px;
  background: #1a1a1c;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.pm-card-img {
  aspect-ratio: 1;
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.pm-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  font-size: 10px;
  color: #8e8e93;
}

.pm-use {
  padding: 3px 8px;
  border-radius: 4px;
  background: #3a3a3c;
  color: #e5e5e7;
  font-size: 9px;
  font-weight: 600;
}

/* ---- Figma toolbar logo ---- */
.fc-figma-logo {
  width: 20px;
  height: auto;
}

/* ---- Cursor (Phase 2 — Figma cursor) ---- */
.fc-cursor {
  position: absolute;
  z-index: 20;
  pointer-events: none;
  left: calc(82% - var(--cp, 0) * 27%);
  top: calc(72% - var(--cp, 0) * 26%);
  opacity: calc(min(1, var(--p2, 0) * 4));
  transform: scale(calc(1 - 0.15 * var(--click, 0)));
  transition: transform 0.1s ease;
  will-change: left, top, opacity, transform;
}

.fc-cursor img {
  display: block;
}

/* First template card highlight on click */
.pm-card:first-child {
  position: relative;
}

.pm-card:first-child::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 10px;
  border: 2px solid var(--accent);
  opacity: var(--click, 0);
  pointer-events: none;
  transition: opacity 0.15s ease;
}

/* ---- Dropped Templates (Phase 2) ---- */
.fc-dropped {
  position: absolute;
  z-index: 5;
  border-radius: 6px;
  overflow: visible;
  opacity: var(--dp, 0);
  transform-origin: center center;
  will-change: transform, opacity;
}

/* 9:16 Tall Story — on the left */
.fc-dropped--tall {
  left: 10%;
  bottom: 18%;
  top: auto;
  width: 100px;
  height: 178px;
  /* Slightly delayed — flies in after the 1:1 */
  opacity: calc(max(0, (var(--dp, 0) - 0.2) * 1.25));
  transform:
    translateX(calc((1 - var(--dp, 0)) * 280px))
    translateY(calc((1 - var(--dp, 0)) * 40px))
    scale(calc(0.15 + 0.85 * var(--dp, 0)));
}

/* 1:1 Square Ad — on the right, bottom-aligned with the 9:16 */
.fc-dropped--sq {
  left: calc(10% + 110px);
  bottom: 18%;
  top: auto;
  width: 140px;
  height: 140px;
  transform:
    translateX(calc((1 - var(--dp, 0)) * 350px))
    translateY(calc((1 - var(--dp, 0)) * 80px))
    scale(calc(0.15 + 0.85 * var(--dp, 0)));
}

.fc-dropped-label {
  position: absolute;
  top: -18px;
  left: 0;
  font-size: 9px;
  color: #999;
  white-space: nowrap;
}

.fc-dropped-inner {
  width: 100%;
  height: 100%;
  border-radius: 6px;
  border: 2px solid rgba(255,255,255,0.15);
  background: #2a2a2e;
  overflow: hidden;
  box-shadow:
    0 12px 40px rgba(0,0,0,0.5),
    0 0 0 1px rgba(255,255,255,0.05);
}

.fc-dropped-real {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---- Interactive Mode (after animation) ---- */
.fc-dropped--interactive {
  cursor: grab;
  pointer-events: auto !important;
  z-index: 50 !important;
  user-select: none;
  -webkit-user-select: none;
}

.fc-dropped--interactive .fc-dropped-real,
.fc-dropped--interactive .fc-dropped-inner,
.fc-dropped--interactive .fc-dropped-label {
  pointer-events: none;
}

.fc-dropped--interactive:hover .fc-dropped-inner {
  border-color: #0d99ff;
  box-shadow:
    0 12px 40px rgba(0,0,0,0.5),
    0 0 0 1px #0d99ff;
}

.fc-dropped--interactive:hover .fc-dropped-label {
  color: #0d99ff;
}

.fc-dropped--dragging {
  cursor: grabbing !important;
  z-index: 60 !important;
}

.fc-dropped--dragging .fc-dropped-inner {
  border-color: #0d99ff;
  box-shadow:
    0 20px 60px rgba(0,0,0,0.6),
    0 0 0 1px #0d99ff;
}

/* ---------- Bento Grid ---------- */
.bento {
  padding: 160px 0 100px;
}

.bento__header {
  text-align: center;
  margin-bottom: 56px;
}

.bento__header h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-bottom: 12px;
}

.bento__header p {
  color: var(--text-dim);
  font-weight: 200;
  font-size: 17px;
  max-width: 480px;
  margin: 0 auto;
}

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

.bento__card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.bento__card:hover {
  border-color: #2a2a30;
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}

.bento__card--wide {
  grid-column: span 2;
}

.bento__card--sm {
  padding: 28px;
}

.bento__card-text {
  margin-bottom: 24px;
}

.bento__card-text h3,
.bento__card--sm h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.bento__card-text p,
.bento__card--sm p {
  font-size: 14px;
  font-weight: 200;
  color: var(--text-dim);
  line-height: 1.55;
}

.bento__card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(190, 255, 90, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.bento__mockup {
  flex: 1;
  border-radius: 10px;
  background: #0e0e10;
  border: 1px solid #1a1a1e;
  padding: 16px;
  overflow: hidden;
}

/* ---- Template Grid Mockup ---- */
.mock-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: min-content;
  gap: 8px;
}

.mock-card {
  border-radius: 6px;
  overflow: hidden;
  background: #1a1a1e;
  animation: mockFadeIn 0.6s ease both;
}

.mock-card:nth-child(1) { animation-delay: 0s; }
.mock-card:nth-child(2) { animation-delay: 0.1s; }
.mock-card:nth-child(3) { animation-delay: 0.2s; }
.mock-card:nth-child(4) { animation-delay: 0.3s; }
.mock-card:nth-child(5) { animation-delay: 0.4s; }
.mock-card:nth-child(6) { animation-delay: 0.5s; }

@keyframes mockFadeIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.mock-thumb {
  aspect-ratio: 1;
  border-radius: 4px 4px 0 0;
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.mock-btn {
  height: 6px;
  margin: 6px;
  border-radius: 3px;
  background: #3a3a3c;
}

/* ---- Blocks Mockup ---- */
.mock-block-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mock-block {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 6px;
  background: #1a1a1e;
  animation: mockSlideIn 0.5s ease both;
}

.mock-block:nth-child(1) { animation-delay: 0.1s; }
.mock-block:nth-child(2) { animation-delay: 0.2s; }
.mock-block:nth-child(3) { animation-delay: 0.3s; }
.mock-block:nth-child(4) { animation-delay: 0.4s; }

@keyframes mockSlideIn {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: translateX(0); }
}

.mock-block-thumb {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  flex-shrink: 0;
}

.b1 { background: linear-gradient(135deg, #4a2d7a, #6a3d9a); }
.b2 { background: linear-gradient(135deg, #2d7a4a, #3d9a6a); }
.b3 { background: linear-gradient(135deg, #7a4a2d, #9a6a3d); }
.b4 { background: linear-gradient(135deg, #2d4a7a, #3d6a9a); }

.mock-block-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mock-line {
  height: 5px;
  border-radius: 3px;
  background: #2c2c30;
}

.mock-line-sm {
  height: 4px;
  border-radius: 2px;
  background: #222226;
}

.w30 { width: 30%; }
.w35 { width: 35%; }
.w40 { width: 40%; }
.w45 { width: 45%; }
.w50 { width: 50%; }
.w55 { width: 55%; }
.w60 { width: 60%; }
.w70 { width: 70%; }

/* ---- Inspiration Mockup ---- */
.mock-masonry {
  columns: 3;
  column-gap: 6px;
}

.mock-inspo {
  break-inside: avoid;
  margin-bottom: 6px;
  border-radius: 6px;
  animation: mockFadeIn 0.6s ease both;
}

.mock-inspo:nth-child(1) { animation-delay: 0s; }
.mock-inspo:nth-child(2) { animation-delay: 0.15s; }
.mock-inspo:nth-child(3) { animation-delay: 0.25s; }
.mock-inspo:nth-child(4) { animation-delay: 0.35s; }
.mock-inspo:nth-child(5) { animation-delay: 0.45s; }
.mock-inspo:nth-child(6) { animation-delay: 0.55s; }

.i1 { height: 80px; background: linear-gradient(150deg, #2a1f4e, #5a3d8a); }
.i2 { height: 100px; background: linear-gradient(150deg, #1f3a2a, #3d8a5a); }
.i3 { height: 70px; background: linear-gradient(150deg, #3a2a1f, #8a5a3d); }
.i4 { height: 90px; background: linear-gradient(150deg, #1f2a3a, #3d5a8a); }
.i5 { height: 75px; background: linear-gradient(150deg, #3a1f2a, #8a3d5a); }
.i6 { height: 85px; background: linear-gradient(150deg, #2a3a1f, #5a8a3d); }

/* ---- Save to Boards Mockup ---- */
.mock-save-flow {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: center;
}

.mock-save-card {
  width: 100px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.mock-save-thumb {
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, #2a1f4e, #4a2d7a);
  border-radius: 8px;
}

.mock-save-hover {
  position: absolute;
  top: 6px;
  right: 6px;
  animation: mockPulse 2s ease infinite;
}

@keyframes mockPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.mock-save-btn {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 3px 7px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 9px;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

.mock-arrow {
  color: #3a3a3c;
  flex-shrink: 0;
  animation: mockArrowBounce 1.5s ease infinite;
}

@keyframes mockArrowBounce {
  0%, 100% { transform: translateX(0); opacity: 0.4; }
  50% { transform: translateX(4px); opacity: 0.8; }
}

.mock-popover {
  background: #1a1a1e;
  border: 1px solid #2a2a2e;
  border-radius: 8px;
  padding: 10px;
  width: 160px;
  flex-shrink: 0;
  animation: mockSlideUp 0.5s ease both;
  animation-delay: 0.3s;
}

@keyframes mockSlideUp {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.mock-popover-title {
  font-size: 10px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.mock-popover-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 4px;
  border-radius: 4px;
}

.mock-popover-item:first-of-type {
  background: rgba(190, 255, 90, 0.06);
}

.mock-popover-check {
  display: flex;
  align-items: center;
}

.mock-popover-plus {
  font-size: 12px;
  font-weight: 600;
  color: #4a4a4e;
}

/* ---------- Pricing ---------- */
.pricing {
  padding: 100px 0;
}

.pricing__header {
  text-align: center;
  margin-bottom: 48px;
}

.pricing__header h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-bottom: 12px;
}

.pricing__header p {
  color: var(--text-dim);
  font-weight: 200;
  font-size: 17px;
}

.pricing-card {
  max-width: 420px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 44px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.pricing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 180px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.pricing-card__label {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.pricing-card__price {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 4px;
}

.pricing-card__period {
  font-size: 15px;
  color: var(--text-dim);
  margin-bottom: 32px;
}

.pricing-card__features {
  list-style: none;
  text-align: left;
  margin-bottom: 36px;
}

.pricing-card__features li {
  font-size: 15px;
  color: var(--text-dim);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-card__features li::before {
  content: '';
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(190, 255, 90, 0.12);
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='8' viewBox='0 0 10 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4L3.5 6.5L9 1' stroke='%23BEFF5A' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.pricing-card__features li:last-child {
  border-bottom: none;
}

.pricing-card .btn {
  width: 100%;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}

.footer__logo {
  margin-bottom: 48px;
}

.footer__logo-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  opacity: 0.06;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__col-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
  margin-bottom: 4px;
}

.footer__col a {
  font-size: 14px;
  color: var(--text-dim);
  transition: color 0.2s;
}

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

.footer__col--subscribe p {
  font-size: 14px;
  color: var(--text-dim);
  margin: 0;
  line-height: 1.5;
}

.footer__form {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.footer__input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.footer__input::placeholder {
  color: var(--text-dim);
  opacity: 0.6;
}

.footer__input:focus {
  border-color: var(--accent);
}

.footer__submit {
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.footer__submit:hover {
  opacity: 0.85;
}

.footer__bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-dim);
  opacity: 0.6;
}

/* ---------- Success Page ---------- */
.success {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
}

.success__card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 56px 48px;
  text-align: center;
  max-width: 520px;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.success__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.success__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(190, 255, 90, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
}

.success__icon svg {
  width: 28px;
  height: 28px;
}

.success__card h1 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.success__card > p {
  color: var(--text-dim);
  font-size: 16px;
  margin-bottom: 36px;
}

.license-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  margin-bottom: 28px;
}

.license-box__label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.license-box__key {
  font-size: 20px;
  font-weight: 700;
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  letter-spacing: 0.04em;
  color: var(--accent);
  word-break: break-all;
  line-height: 1.4;
  min-height: 28px;
}

.license-box__key--loading {
  color: var(--text-dim);
  font-size: 15px;
  font-family: var(--font);
  font-weight: 500;
  letter-spacing: 0;
}

.btn--copy {
  width: 100%;
  margin-bottom: 24px;
}

.success__instructions {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
  padding: 16px 20px;
  background: rgba(190, 255, 90, 0.04);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(190, 255, 90, 0.08);
}

.success__instructions strong {
  color: var(--text);
  font-weight: 600;
}

.success__error {
  color: #ff6b6b;
  font-size: 15px;
  padding: 16px;
  background: rgba(255, 107, 107, 0.06);
  border: 1px solid rgba(255, 107, 107, 0.12);
  border-radius: var(--radius-sm);
}

/* ---------- Copied Toast ---------- */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--accent);
  color: var(--accent-fg);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 24px;
  border-radius: 100px;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
  z-index: 200;
}

.toast--visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .bento__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento__card--wide {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .bento__grid {
    grid-template-columns: 1fr;
  }

  .bento__card--wide {
    grid-column: span 1;
  }

  .mock-save-flow {
    flex-direction: column;
    gap: 12px;
  }

  .mock-arrow {
    transform: rotate(90deg);
  }

  @keyframes mockArrowBounce {
    0%, 100% { transform: rotate(90deg) translateX(0); opacity: 0.4; }
    50% { transform: rotate(90deg) translateX(4px); opacity: 0.8; }
  }

  .hero {
    padding: 130px 0 48px;
  }

  /* Scale down the hero demo for tablets */
  .hero-demo__track {
    height: 260vh;
  }

  .hero-demo__sticky {
    top: calc((100vh - min(60vh, 500px)) / 2);
    height: min(60vh, 500px);
    padding: 0 12px;
  }

  .pm-side {
    width: 130px;
  }

  .fc-dropped--tall {
    width: 70px;
    height: 124px;
    left: 6%;
    bottom: 16%;
  }

  .fc-dropped--sq {
    width: 100px;
    height: 100px;
    left: calc(6% + 78px);
    bottom: 16%;
  }

  .pricing-card {
    padding: 36px 28px;
  }

  .success__card {
    padding: 40px 28px;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer__col--subscribe {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .hero__cta {
    flex-direction: column;
  }

  .hero__cta .btn {
    width: 100%;
  }

  .nav__inner {
    height: 56px;
  }

  .nav__links {
    display: none;
  }

  .nav .btn--figma {
    font-size: 13px;
    padding: 10px 16px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer__form {
    flex-direction: column;
  }

  .hero {
    padding: 110px 0 40px;
  }

  .bento__card {
    padding: 24px;
  }

  .hero-demo__track {
    height: 240vh;
  }

  .hero-demo__sticky {
    top: calc((100vh - min(55vh, 420px)) / 2);
    height: min(55vh, 420px);
    padding: 0 8px;
  }

  .pm-side {
    width: 90px;
  }

  .fc-dropped--tall {
    width: 50px;
    height: 89px;
    left: 4%;
    bottom: 14%;
  }

  .fc-dropped--sq {
    width: 70px;
    height: 70px;
    left: calc(4% + 58px);
    bottom: 14%;
  }

  .fc-cursor img {
    width: 20px;
    height: auto;
  }

  .fc-dropped-label {
    font-size: 7px;
    top: -14px;
  }

  .fc-dropped-inner {
    border-width: 1px;
  }

  .pm-logo-row {
    padding: 0 6px;
  }

  .pm-logo-img {
    height: 16px;
  }

  .pm-nav-item {
    font-size: 10px;
    padding: 6px 10px;
  }

  .pm-nav-sub {
    font-size: 9px;
    padding-left: 18px;
  }

  .pm-new {
    font-size: 10px;
    margin: 0 6px 12px;
    padding: 6px 0;
  }

  .pm-upgrade {
    font-size: 10px;
  }

  .pm-main {
    padding: 12px;
  }

  .pm-title {
    font-size: 14px;
  }

  .pm-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
}
