/* ============================================
   CLIPFLOW — Theme CSS
   ============================================ */

/* FONTS */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=DM+Sans:wght@400;500&display=swap');

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
  --bg: #0D0D0D;
  --bg-2: #141414;
  --bg-3: #1A1A1A;
  --fg: #F2F2F2;
  --fg-muted: #8A8A8A;
  --fg-dim: #555555;
  --accent: #6366F1;
  --accent-dim: rgba(99, 102, 241, 0.15);
  --accent-glow: rgba(99, 102, 241, 0.4);
  --coral: #F97316;
  --coral-dim: rgba(249, 115, 22, 0.15);
  --tiktok: #FF0040;
  --reels: #E1306C;
  --shorts: #FF0000;
  --border: rgba(255, 255, 255, 0.07);
  --border-accent: rgba(99, 102, 241, 0.25);
  --radius: 14px;
  --radius-sm: 8px;
  --font-head: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--accent);
  color: #fff;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }

/* ============================================
   NOISE TEXTURE
   ============================================ */
.noise-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
  pointer-events: none;
  z-index: 0;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.section-label {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-headline {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--fg);
  margin-bottom: 1.5rem;
}

/* ============================================
   NAV
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 2rem;
  backdrop-filter: blur(12px);
  background: rgba(13, 13, 13, 0.8);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.04em;
  color: var(--fg);
}

.nav-tagline {
  font-size: 0.8rem;
  color: var(--fg-muted);
  border-left: 1px solid var(--border);
  padding-left: 1.5rem;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 8rem 2rem 4rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 20% 50%, rgba(99, 102, 241, 0.08) 0%, transparent 60%),
              radial-gradient(ellipse 60% 40% at 80% 30%, rgba(249, 115, 22, 0.05) 0%, transparent 50%),
              linear-gradient(180deg, var(--bg) 0%, #0F0F1A 100%);
  z-index: 0;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.hero-glow-1 {
  width: 500px;
  height: 400px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
  top: 10%;
  left: 5%;
}

.hero-glow-2 {
  width: 300px;
  height: 250px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.1) 0%, transparent 70%);
  top: 40%;
  right: 10%;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 1.5rem;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-headline {
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  color: var(--fg);
  margin-bottom: 1.5rem;
  line-height: 1.05;
}

.headline-accent {
  color: var(--accent);
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 480px;
}

/* Screen visuals */
.hero-screens {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.screen-wrapper {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  align-items: flex-end;
}

.screen {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  backdrop-filter: blur(8px);
}

.screen-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.dot-red, .dot-yel, .dot-grn {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.dot-red { background: #FF5F57; }
.dot-yel { background: #FFBD2E; }
.dot-grn { background: #28CA41; }

.screen-label {
  font-family: var(--font-head);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--fg-dim);
  text-transform: uppercase;
  margin-left: auto;
}

.screen-body { display: flex; justify-content: center; }

.phone-frame {
  width: 100px;
  height: 160px;
  border-radius: 12px;
  border: 2px solid var(--border);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-card {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  position: relative;
}

.video-card-tiktok { background: linear-gradient(135deg, #1A0010 0%, #2D0A1F 100%); }
.video-card-reels { background: linear-gradient(135deg, #1A0010 0%, #3D1025 100%); }
.video-card-shorts { background: linear-gradient(135deg, #1A0010 0%, #2D0A0A 100%); }

.video-play {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.8);
}

.video-metrics {
  display: flex;
  gap: 0.5rem;
}

.video-metrics span {
  font-family: var(--font-head);
  font-size: 0.5rem;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
}

/* ============================================
   MANIFESTO
   ============================================ */
.manifesto {
  padding: 6rem 2rem;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  position: relative;
}

.manifesto-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.manifesto-headline {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  color: var(--fg);
  max-width: 640px;
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

.manifesto-body {
  font-size: 1rem;
  color: var(--fg-muted);
  max-width: 540px;
  margin-bottom: 3rem;
  line-height: 1.7;
}

.manifesto-verts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.vert-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.vert-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
}

.vert-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.vert-name {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.75rem;
}

.vert-desc {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* ============================================
   PLATFORMS
   ============================================ */
.platforms {
  padding: 6rem 2rem;
  position: relative;
}

.platforms-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.platforms-header {
  margin-bottom: 3rem;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.platform-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.platform-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.platform-tiktok::before { background: var(--tiktok); }
.platform-reels::before { background: var(--reels); }
.platform-shorts::before { background: var(--shorts); }

.platform-card:hover { border-color: var(--border-accent); }

.platform-badge {
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: inline-block;
}

.platform-tiktok .platform-badge { color: var(--tiktok); }
.platform-reels .platform-badge { color: var(--reels); }
.platform-shorts .platform-badge { color: var(--shorts); }

.platform-desc {
  font-size: 0.95rem;
  color: var(--fg-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.platform-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  background: var(--bg-3);
  color: var(--fg-muted);
  border: 1px solid var(--border);
}

/* ============================================
   TURNAROUND / PROCESS
   ============================================ */
.turnaround {
  padding: 6rem 2rem;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.turnaround-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.turnaround-body {
  font-size: 1rem;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 400px;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline-item {
  display: flex;
  gap: 1.5rem;
  position: relative;
  padding-bottom: 2.5rem;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-item::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 28px;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, var(--accent) 0%, transparent 100%);
}

.timeline-item:last-child::before { display: none; }

.timeline-dot {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  position: relative;
  z-index: 1;
  margin-top: 0.25rem;
}

.timeline-step {
  font-family: var(--font-head);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.timeline-title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.5rem;
}

.timeline-desc {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* ============================================
   PRICING
   ============================================ */
.pricing {
  padding: 6rem 2rem;
}

.pricing-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.pricing-header {
  margin-bottom: 3rem;
}

.pricing-sub {
  font-size: 1rem;
  color: var(--fg-muted);
  max-width: 480px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.pricing-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.pricing-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
}

.pricing-featured {
  border-color: var(--border-accent);
  background: linear-gradient(180deg, rgba(99,102,241,0.08) 0%, var(--bg-2) 100%);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-head);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--accent);
  color: #fff;
  padding: 0.25rem 1rem;
  border-radius: 20px;
}

.pricing-tier {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 1rem;
}

.pricing-amount {
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 800;
  color: var(--fg);
  letter-spacing: -0.04em;
  margin-bottom: 0.5rem;
}

.pricing-per {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--fg-muted);
}

.pricing-tagline {
  font-size: 0.85rem;
  color: var(--fg-muted);
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pricing-features li {
  font-size: 0.9rem;
  color: var(--fg-muted);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.pricing-features li::before {
  content: '→';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

.pricing-note {
  text-align: center;
  font-family: var(--font-head);
  font-size: 0.875rem;
  color: var(--fg-dim);
  font-weight: 500;
}

/* ============================================
   CLOSING
   ============================================ */
.closing {
  position: relative;
  padding: 8rem 2rem;
  overflow: hidden;
}

.closing-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(99, 102, 241, 0.06) 0%, transparent 70%);
  z-index: 0;
}

.closing-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(99,102,241,0.08) 0%, transparent 70%);
  filter: blur(60px);
}

.closing-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.closing-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--border);
}

.closing-stat { text-align: center; }

.stat-number {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--fg);
  margin-bottom: 0.75rem;
  line-height: 1;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.5;
  max-width: 220px;
  margin: 0 auto;
}

.closing-statement {
  max-width: 640px;
  margin: 0 auto;
}

.closing-statement p {
  font-family: var(--font-head);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 600;
  color: var(--fg);
  line-height: 1.5;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 4rem 2rem 2rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--fg);
  display: block;
  margin-bottom: 0.75rem;
}

.footer-desc {
  font-size: 0.85rem;
  color: var(--fg-muted);
  line-height: 1.6;
  max-width: 240px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-col-label {
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 0.5rem;
}

.footer-col > div {
  font-size: 0.85rem;
  color: var(--fg-muted);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--fg-dim);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; gap: 3rem; }
  .hero-screens { justify-content: flex-start; }
  .turnaround-inner { grid-template-columns: 1fr; gap: 3rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .closing-stat-row { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .manifesto-verts { grid-template-columns: 1fr; }
  .platform-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; }
  .hero { padding-top: 7rem; }
  .screen-wrapper { justify-content: center; }
  .nav-tagline { display: none; }
}

@media (max-width: 480px) {
  .hero-headline { font-size: 2.5rem; }
  .pricing-amount { font-size: 2.5rem; }
  .screen-wrapper { gap: 0.5rem; }
  .phone-frame { width: 80px; height: 130px; }
}