/* ============================================================
   CHOICE.MARKETS — CSS Design System
   Colors: #000 (black), #ff0000 (red accent), #cfcfcf (gray), #eee (card)
   Fonts: Space Grotesk (headings), Inter (body)
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  --black: #000000;
  --white: #ffffff;
  --red: #ff0000;
  --red-dark: #cc0000;
  --gray-05: #0d0d0d;
  --gray-10: #1a1a1a;
  --gray-15: #262626;
  --gray-50: #808080;
  --gray-80: #cccccc;
  --gray-90: #e6e6e6;
  --card-bg: #eeeeee;
  --nav-bg: #cfcfcf;
  --max-width: 1400px;
  --content-width: 85.44vw;
  --radius-card: 2.198vw;
  --radius-pill: 100vw;
  --noise-svg: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='a'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23a)'/%3E%3C/svg%3E");
  --noise-light: url("data:image/svg+xml;charset=utf-8,%3Csvg opacity='.3' viewBox='0 0 200 10' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='a'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='2' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23a)'/%3E%3C/svg%3E");
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background-color: var(--red);
  background-image: var(--noise-light);
  font-family: 'Inter', 'Space Grotesk', system-ui, -apple-system, Helvetica, sans-serif;
  color: var(--black);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul, ol, li { list-style: none; }
img { max-width: 100%; user-select: none; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ---------- Noise overlay mixin ---------- */
.part1-noise, .part2-noise, .part3-noise, .part4-bg,
.footer-noise, .card-noise, .p4-card-noise, .part5-noise {
  position: absolute;
  inset: 0;
  background-image: var(--noise-svg);
  opacity: 0.04;
  pointer-events: none;
  border-radius: inherit;
  z-index: 0;
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed;
  top: 2.747vw;
  left: 50%;
  transform: translateX(-50%);
  width: var(--content-width);
  max-width: calc(var(--max-width) * 0.8544);
  height: 3.297vw;
  min-height: 42px;
  z-index: 999;
  transition: top var(--transition);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 1.648vw;
  background-color: var(--nav-bg);
  background-image: var(--noise-svg);
  border: 0.046vw solid var(--gray-15);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(12px);
}

.logo-link { display: flex; align-items: center; }
.logo { min-width: 7.692vw; min-width: 80px; display: flex; align-items: center; }
.logo svg text { font-family: 'Space Grotesk', sans-serif !important; }

.header-right {
  display: flex;
  align-items: center;
  gap: 0.22vw;
}

.nav-link {
  color: var(--black);
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(12px, 1.099vw, 15px);
  font-weight: 400;
  padding: 0.22vw 1.099vw;
  border-radius: var(--radius-pill);
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}
.nav-link:hover {
  background: rgba(0,0,0,0.08);
}
.nav-link--app {
  background: var(--black);
  color: var(--white) !important;
  font-weight: 600;
  padding: 0.3vw 1.1vw;
}
.nav-link--app:hover { background: var(--gray-15); }

/* ---------- Hamburger ---------- */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ---------- Mobile Nav ---------- */
.mobile-nav {
  display: none;
  position: fixed;
  top: 70px;
  left: 16px;
  right: 16px;
  background: var(--nav-bg);
  border: 1px solid var(--gray-15);
  border-radius: 20px;
  padding: 16px;
  z-index: 998;
  flex-direction: column;
  gap: 4px;
  transform: translateY(-20px);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--transition), opacity var(--transition);
}
.mobile-nav.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-nav-link {
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 12px;
  color: var(--black);
  transition: background var(--transition);
}
.mobile-nav-link:hover { background: rgba(0,0,0,0.06); }

/* ============================================================
   HOME WRAPPER
   ============================================================ */
.home {
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: center;
}

/* ============================================================
   PART 1 — HERO (Black)
   ============================================================ */
.part1 {
  background-color: var(--black);
  border-radius: 0 0 4.286vw 4.286vw;
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 6vw;
  overflow: hidden;
}

/* Animated grid */
.part1-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,0,0,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,0,0,0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
  animation: gridPulse 8s ease-in-out infinite;
}
@keyframes gridPulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.part1 .content-box {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: var(--content-width);
  max-width: var(--max-width);
  padding-top: 10vw;
  padding-bottom: 2vw;
  text-align: center;
}

/* --- Eyebrow --- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.65);
  font-size: clamp(11px, 0.9vw, 13px);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.5vw;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 100px;
  padding: 5px 14px 5px 10px;
  background: rgba(255,255,255,0.04);
}
.eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red);
  animation: blink 1.8s ease-in-out infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

/* --- Title --- */
.title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(38px, 6.593vw, 92px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 1.5vw;
}
.title-red {
  color: var(--red);
  display: block;
}
.title-white {
  color: var(--white);
  display: block;
}

/* --- Brief --- */
.brief {
  color: rgba(255,255,255,0.55);
  font-size: clamp(13px, 1.209vw, 17px);
  font-weight: 300;
  line-height: 1.7;
  max-width: 38.462vw;
  margin-bottom: 2.5vw;
}

/* --- Hero Preview --- */
.hero-preview-wrap {
  width: clamp(280px, 35.165vw, 520px);
  border-radius: clamp(12px, 1.099vw, 16px);
  box-shadow: 0 0 clamp(20px, 3.297vw, 50px) rgba(255,255,255,0.08), 0 0 80px rgba(255,0,0,0.15);
  overflow: hidden;
  margin-bottom: 1.5vw;
  border: 1px solid rgba(255,255,255,0.1);
}
.hero-preview {
  background: #0d0d0d;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Feed items inside preview */
.feed-item {
  background: #151515;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 14px;
  text-align: left;
}
.feed-item-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.feed-tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--red);
  background: rgba(255,0,0,0.1);
  border: 1px solid rgba(255,0,0,0.2);
  border-radius: 100px;
  padding: 2px 8px;
}
.feed-vol { font-size: 10px; color: rgba(255,255,255,0.4); }
.feed-question {
  font-size: clamp(11px, 0.9vw, 13px);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1.4;
}
.feed-bars { display: flex; flex-direction: column; gap: 5px; margin-bottom: 10px; }
.feed-bar { display: flex; align-items: center; gap: 8px; }
.bar-label { font-size: 9px; font-weight: 700; color: rgba(255,255,255,0.5); width: 22px; }
.bar-track { flex: 1; height: 4px; background: rgba(255,255,255,0.08); border-radius: 4px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--red); border-radius: 4px; }
.bar-fill--no { background: rgba(255,255,255,0.25); }
.bar-pct { font-size: 9px; font-weight: 700; color: rgba(255,255,255,0.6); width: 24px; text-align: right; }
.feed-actions { display: flex; gap: 6px; }
.btn-trade {
  flex: 1;
  font-size: 10px;
  font-weight: 700;
  border-radius: 100px;
  padding: 5px 8px;
  transition: transform var(--transition), opacity var(--transition);
}
.btn-trade:hover { transform: scale(1.02); }
.btn-yes { background: var(--red); color: var(--white); }
.btn-no { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.7); border: 1px solid rgba(255,255,255,0.15); }

/* --- CTA Buttons --- */
.btn-box {
  display: flex;
  align-items: center;
  gap: 0.989vw;
  margin-top: 1.099vw;
  margin-bottom: 2vw;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: var(--radius-pill);
  font-size: clamp(12px, 1.067vw, 15px);
  font-weight: 700;
  padding: 0.769vw 1.923vw;
  min-height: 42px;
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: scale(1.03); box-shadow: 0 4px 20px rgba(0,0,0,0.3); }
.btn-primary {
  background: var(--white);
  color: var(--black);
}
.btn-primary:hover { box-shadow: 0 4px 24px rgba(255,255,255,0.25); }
.btn-secondary {
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.2);
}
.btn-red {
  background: var(--red);
  background-image: var(--noise-light);
  color: var(--black);
  border: 1px solid rgba(0,0,0,0.15);
}
.btn-red:hover { box-shadow: 0 4px 24px rgba(255,0,0,0.5); }
.btn-white { background: var(--white); color: var(--black); }
.btn-white:hover { box-shadow: 0 4px 24px rgba(255,255,255,0.3); }
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.35);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.08); }

/* --- Hero Stats --- */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 2vw;
}
.stat-item { text-align: center; }
.stat-num {
  display: block;
  font-size: clamp(18px, 1.8vw, 26px);
  font-weight: 700;
  color: var(--white);
  font-family: 'Space Grotesk', sans-serif;
}
.stat-label { font-size: clamp(10px, 0.75vw, 12px); color: rgba(255,255,255,0.4); margin-top: 2px; }
.stat-divider {
  width: 1px;
  height: 32px;
  background: rgba(255,255,255,0.12);
}

/* --- Scroll indicator --- */
.scroll-indicator {
  position: absolute;
  bottom: 2vw;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 38px;
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 100px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 6px;
}
.scroll-dot {
  width: 4px;
  height: 8px;
  background: rgba(255,255,255,0.5);
  border-radius: 100px;
  animation: scrollAnim 2.5s ease-in-out infinite;
}
@keyframes scrollAnim {
  0% { transform: translateY(0); opacity: 1; }
  80% { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ============================================================
   PART 2 — FEATURES (White)
   ============================================================ */
.part2 {
  background-color: var(--white);
  position: relative;
  width: 100%;
  padding: 6vw 0;
  overflow: hidden;
}

.part2 .content-box {
  margin: 0 auto;
  width: var(--content-width);
  max-width: var(--max-width);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.overline {
  font-size: clamp(10px, 0.769vw, 12px);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.8vw;
}
.overline--dark { color: var(--gray-15); }
.overline--white { color: rgba(255,255,255,0.5); }

.title-max {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(26px, 4.066vw, 58px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-align: center;
  color: var(--black);
  margin-bottom: 0.8vw;
}
.title-max--white { color: var(--white); }

.brief-max {
  font-size: clamp(13px, 1.119vw, 16px);
  font-weight: 400;
  color: var(--gray-50);
  text-align: center;
  margin-bottom: 4.396vw;
  line-height: 1.7;
}

/* --- Features Grid --- */
.features-grid {
  display: flex;
  align-items: stretch;
  gap: 1.648vw;
  width: 100%;
}

.feature-card {
  background-color: var(--card-bg);
  background-image: var(--noise-svg);
  border: 0.11vw solid var(--black);
  border-radius: var(--radius-card);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}
.feature-card-inner { position: relative; z-index: 1; padding: 3.297vw; height: 100%; }

.feature-card--large { flex: 1; min-height: 30.22vw; }
.feature-col-right { display: flex; flex: 1; flex-direction: column; gap: 1.648vw; }
.feature-card--sm { flex: 1; }

.feature-tag {
  display: inline-block;
  font-size: clamp(9px, 0.7vw, 11px);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.45);
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 100px;
  padding: 2px 10px;
  margin-bottom: 1.2vw;
}

.feature-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(20px, 2.198vw, 32px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--black);
  margin-bottom: 1.099vw;
}
.feature-text {
  font-size: clamp(12px, 0.9vw, 14px);
  font-weight: 400;
  color: rgba(0,0,0,0.6);
  line-height: 1.7;
}

/* AI Pulse visual */
.feature-visual {
  margin-top: 2vw;
  display: flex;
  align-items: center;
  gap: 1.5vw;
}
.ai-pulse {
  position: relative;
  width: clamp(60px, 5vw, 80px);
  height: clamp(60px, 5vw, 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ai-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid var(--red);
  animation: ringPulse 2.5s ease-out infinite;
}
.ai-ring--1 { width: 100%; height: 100%; opacity: 0.15; animation-delay: 0s; }
.ai-ring--2 { width: 70%; height: 70%; opacity: 0.3; animation-delay: 0.6s; }
.ai-ring--3 { width: 40%; height: 40%; opacity: 0.5; animation-delay: 1.2s; }
@keyframes ringPulse {
  0% { transform: scale(0.8); opacity: 0.5; }
  100% { transform: scale(1.4); opacity: 0; }
}
.ai-core {
  width: 28px; height: 28px;
  background: var(--black);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  z-index: 1;
}

.ai-feed-sim {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ai-feed-line {
  height: 8px;
  background: rgba(0,0,0,0.12);
  border-radius: 4px;
  animation: feedLoad 2s ease-in-out infinite;
}
.ai-feed-line--2 { width: 80%; animation-delay: 0.3s; }
.ai-feed-line--3 { width: 60%; animation-delay: 0.6s; }
@keyframes feedLoad {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* Orderbook sim */
.orderbook-sim {
  margin-top: 1vw;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ob-row {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 20px;
  border-radius: 4px;
  padding: 0 8px;
  font-size: 10px;
  font-weight: 600;
  position: relative;
  overflow: hidden;
}
.ob-row::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: var(--w);
  opacity: 0.2;
  border-radius: 4px;
}
.ob-row--buy { color: #00a855; }
.ob-row--buy::before { background: #00a855; }
.ob-row--sell { color: #ff3333; }
.ob-row--sell::before { background: #ff3333; }
.ob-row span { position: relative; z-index: 1; }

/* Resolution sim */
.resolution-sim {
  margin-top: 1vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.res-check {
  display: flex;
  align-items: center;
  gap: 10px;
}
.res-check-icon {
  width: 32px; height: 32px;
  background: #00a855;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: white;
  font-weight: 700;
  animation: checkPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}
@keyframes checkPop {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.res-check-bar {
  width: 80px; height: 4px;
  background: #00a855;
  border-radius: 4px;
}
.res-label { font-size: 11px; font-weight: 600; color: #00a855; }

/* ============================================================
   PART 3 — PLATFORM DEMO (Gray)
   ============================================================ */
.part3 {
  background-color: #d7d7d7;
  background-image: var(--noise-svg);
  border-radius: 4.286vw 4.286vw 0 0;
  width: 100%;
  padding: 5.5vw 0;
  position: relative;
  overflow: hidden;
}

.part3 .content-box {
  margin: 0 auto;
  width: var(--content-width);
  max-width: var(--max-width);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.part3 .title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 4.066vw, 58px);
  font-weight: 400;
  letter-spacing: -0.03em;
  text-align: center;
  color: var(--black);
  margin-bottom: 3.5vw;
}

.part3-content {
  display: flex;
  align-items: flex-start;
  gap: 4vw;
  width: 100%;
}

/* Demo window */
.part3-visual { flex: 1.2; }
.demo-window {
  background: #1a1a1a;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.demo-window-bar {
  background: #2a2a2a;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.demo-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
}
.demo-dot:nth-child(1) { background: #ff5f57; }
.demo-dot:nth-child(2) { background: #febc2e; }
.demo-dot:nth-child(3) { background: #28c840; }
.demo-url { margin-left: 8px; font-size: 11px; color: rgba(255,255,255,0.35); font-family: monospace; }

.demo-body { display: flex; height: 280px; }
.demo-sidebar {
  width: 110px;
  background: #141414;
  border-right: 1px solid rgba(255,255,255,0.05);
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dsb-item {
  padding: 8px 10px;
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  border-radius: 8px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.dsb-item:hover { background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.7); }
.dsb-item--active { background: rgba(255,0,0,0.15); color: var(--red); font-weight: 600; }

.demo-feed { flex: 1; padding: 12px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.demo-card {
  background: #222;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 12px;
}
.demo-card--active { border-color: rgba(255,0,0,0.3); }
.dc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.dc-tag {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--red);
  background: rgba(255,0,0,0.1);
  border-radius: 100px;
  padding: 2px 7px;
}
.dc-ends { font-size: 9px; color: rgba(255,255,255,0.3); }
.dc-question { font-size: 12px; font-weight: 600; color: var(--white); margin-bottom: 8px; line-height: 1.4; }
.dc-bars { display: flex; gap: 6px; }
.dc-bar-yes, .dc-bar-no {
  flex: 1;
  padding: 5px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
}
.dc-bar-yes { background: rgba(255,0,0,0.15); color: var(--red); }
.dc-bar-no { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.5); }

/* Part3 text */
.part3-text { flex: 1; padding-top: 0.5vw; }
.steps-list { display: flex; flex-direction: column; gap: 1.5vw; margin-bottom: 2vw; }
.step-item { display: flex; gap: 1.2vw; align-items: flex-start; }
.step-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(22px, 2.5vw, 36px);
  font-weight: 700;
  color: rgba(0,0,0,0.12);
  line-height: 1;
  min-width: 3ch;
  flex-shrink: 0;
}
.step-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(14px, 1.2vw, 18px);
  font-weight: 600;
  color: var(--black);
  margin-bottom: 4px;
}
.step-desc {
  font-size: clamp(12px, 0.9vw, 14px);
  color: rgba(0,0,0,0.55);
  line-height: 1.65;
}

/* ============================================================
   PART 4 — MORE FEATURES (Black)
   ============================================================ */
.part4 {
  background: var(--black);
  border-radius: 0 0 4.286vw 4.286vw;
  padding: 7.692vw 0;
  position: relative;
  width: 100%;
  overflow: hidden;
}
.part4-bg {
  background-image: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(255,0,0,0.1), transparent 70%);
  opacity: 1;
}

.part4 .content-box {
  margin: 0 auto;
  position: relative;
  width: var(--content-width);
  max-width: var(--max-width);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
}

.part4-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.198vw;
  width: 100%;
  margin-top: 4.396vw;
}

.p4-card {
  background-color: var(--card-bg);
  background-image: var(--noise-svg);
  border: 0.11vw solid var(--black);
  border-radius: var(--radius-card);
  padding: 2.198vw;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.p4-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 50px rgba(0,0,0,0.5);
}

.p4-icon {
  width: clamp(36px, 2.8vw, 44px);
  height: clamp(36px, 2.8vw, 44px);
  background: var(--black);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  margin-bottom: 1.2vw;
  position: relative;
  z-index: 1;
}
.p4-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(16px, 1.617vw, 24px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--black);
  margin-bottom: 0.7vw;
  position: relative;
  z-index: 1;
}
.p4-desc {
  font-size: clamp(12px, 0.9vw, 14px);
  font-weight: 400;
  color: var(--gray-50);
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

/* ============================================================
   PART 5 — CTA BANNER (Red)
   ============================================================ */
.part5 { width: 100%; padding: 6vw 0; }
.part5-inner {
  margin: 0 auto;
  width: var(--content-width);
  max-width: var(--max-width);
  background: var(--red);
  background-image: var(--noise-light);
  border-radius: var(--radius-card);
  padding: 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  gap: 3vw;
}

.part5-noise { opacity: 0.06; }

.part5-content { position: relative; z-index: 1; flex: 1; }
.part5-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 3.5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--black);
  line-height: 1.1;
  margin-bottom: 1vw;
}
.part5-title em { font-style: italic; }
.part5-sub { font-size: clamp(13px, 1vw, 15px); color: rgba(0,0,0,0.6); margin-bottom: 2vw; line-height: 1.6; }
.part5-btns { display: flex; gap: 1vw; flex-wrap: wrap; }

/* Globe rings visual */
.part5-visual {
  position: relative;
  width: clamp(120px, 12vw, 180px);
  height: clamp(120px, 12vw, 180px);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.globe-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(0,0,0,0.2);
}
.globe-ring--1 { width: 100%; height: 100%; animation: globeSpin 12s linear infinite; }
.globe-ring--2 { width: 70%; height: 70%; animation: globeSpin 8s linear infinite reverse; }
.globe-ring--3 { width: 40%; height: 40%; animation: globeSpin 5s linear infinite; border-color: rgba(0,0,0,0.4); }
@keyframes globeSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--black);
  width: 100%;
  padding-top: 4vw;
  padding-bottom: 2.747vw;
  position: relative;
  overflow: hidden;
}
.footer-noise { background: rgba(255,255,255,0.03); }

.footer .content-box {
  margin: 0 auto;
  width: var(--content-width);
  max-width: var(--max-width);
  display: flex;
  justify-content: space-between;
  gap: 3vw;
  position: relative;
  z-index: 1;
}

.footer-left { max-width: 240px; }
.footer-logo { margin-bottom: 1vw; }
.footer-brief {
  color: rgba(255,255,255,0.45);
  font-size: clamp(11px, 0.769vw, 13px);
  font-weight: 300;
  line-height: 1.65;
  margin-bottom: 1.5vw;
}

.footer-socials { display: flex; flex-direction: column; gap: 0.7vw; }
.footer-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,0.08);
  border: 0.055vw solid rgba(255,255,255,0.1);
  border-radius: var(--radius-pill);
  padding: 0.33vw 1.099vw;
  color: var(--white);
  font-size: clamp(11px, 0.769vw, 13px);
  font-weight: 500;
  transition: background var(--transition);
}
.footer-social-btn:hover { background: rgba(255,255,255,0.14); }

.footer-right {
  display: flex;
  gap: 3vw;
  flex: 1;
  justify-content: flex-end;
}
.footer-col { display: flex; flex-direction: column; gap: 0.3vw; }
.footer-col-title {
  color: var(--white);
  font-size: clamp(12px, 0.879vw, 14px);
  font-weight: 600;
  margin-bottom: 0.8vw;
}
.footer-link {
  color: rgba(255,255,255,0.45);
  font-size: clamp(11px, 0.769vw, 12px);
  font-weight: 400;
  padding: 3px 0;
  transition: color var(--transition);
  white-space: nowrap;
}
.footer-link:hover { color: var(--white); }

.footer-bottom {
  margin: 0 auto;
  margin-top: 3vw;
  padding-top: 1.5vw;
  border-top: 1px solid rgba(255,255,255,0.06);
  width: var(--content-width);
  max-width: var(--max-width);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1vw;
  position: relative;
  z-index: 1;
}
.footer-copy, .footer-disclaimer {
  font-size: clamp(10px, 0.64vw, 11px);
  color: rgba(255,255,255,0.25);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
.bounce-in-top {
  animation: bounceInTop 1.1s both;
}
@keyframes bounceInTop {
  0% { opacity: 0; transform: translateY(-40px); animation-timing-function: ease-in; }
  38% { opacity: 1; transform: translateY(0); animation-timing-function: ease-out; }
  55% { transform: translateY(-8px); animation-timing-function: ease-in; }
  72% { transform: translateY(0); animation-timing-function: ease-out; }
  90% { transform: translateY(-3px); animation-timing-function: ease-in; }
  100% { transform: translateY(0); }
}

.scale-up-center {
  animation: scaleUpCenter 0.7s 0.2s cubic-bezier(0.39, 0.575, 0.565, 1) both;
}
@keyframes scaleUpCenter {
  0% { transform: scale(0.85); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* Scroll-reveal (JS adds .visible class) */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ============================================================
   RESPONSIVE — TABLET & MOBILE
   ============================================================ */
@media screen and (max-width: 1024px) {
  :root { --content-width: 92vw; --radius-card: 20px; }

  .part4-grid { gap: 16px; }
  .p4-title { font-size: 18px; }
  .p4-card { padding: 24px; }
}

@media screen and (max-width: 768px) {
  :root { --content-width: 100%; }

  /* Header */
  .header {
    height: 48px;
    top: 14px;
    left: 0;
    transform: none;
    padding: 0 16px;
    width: 100%;
  }
  .header-content {
    border-radius: 80px;
    height: 100%;
    padding: 0 16px;
    margin: 0 4px;
  }
  .logo { min-width: 80px; }
  .header-right { display: none; }
  .hamburger { display: flex; }
  .mobile-nav { display: flex; }

  /* Part 1 */
  .part1 { border-radius: 0 0 28px 28px; min-height: 100svh; }
  .part1 .content-box { padding: 100px 20px 40px; width: 100%; }
  .title { font-size: clamp(34px, 9vw, 52px); }
  .brief { max-width: 100%; font-size: 14px; }
  .hero-preview-wrap { width: 100%; }
  .btn-box { gap: 10px; }
  .btn { padding: 10px 20px; font-size: 13px; min-height: 40px; }
  .hero-stats { gap: 5vw; }
  .stat-num { font-size: 18px; }
  .stat-label { font-size: 10px; }

  /* Part 2 */
  .part2 { padding: 50px 0; }
  .part2 .content-box { padding: 0 20px; }
  .title-max { font-size: 26px; letter-spacing: 0; }
  .brief-max { font-size: 14px; }
  .features-grid { flex-direction: column; gap: 16px; }
  .feature-card { min-height: auto !important; }
  .feature-card-inner { padding: 28px; }
  .feature-title { font-size: 20px; }
  .feature-text { font-size: 13px; }
  .feature-col-right { gap: 16px; }

  /* Part 3 */
  .part3 { border-radius: 24px 24px 0 0; padding: 40px 0; }
  .part3 .content-box { padding: 0 20px; }
  .part3 .title { font-size: 26px; margin-bottom: 24px; }
  .part3-content { flex-direction: column; gap: 28px; }
  .demo-window { min-height: 260px; }
  .demo-body { height: 220px; }
  .demo-sidebar { width: 85px; }
  .dsb-item { font-size: 10px; padding: 6px 8px; }
  .steps-list { gap: 20px; }
  .step-num { font-size: 26px; min-width: 2.5ch; }
  .step-title { font-size: 15px; }
  .step-desc { font-size: 13px; }

  /* Part 4 */
  .part4 { border-radius: 0 0 28px 28px; padding: 50px 0; }
  .part4 .content-box { padding: 0 20px; }
  .part4-grid { grid-template-columns: 1fr; gap: 14px; margin-top: 30px; }
  .p4-card { padding: 24px; border-radius: 20px; }
  .p4-icon { width: 38px; height: 38px; margin-bottom: 14px; }
  .p4-title { font-size: 18px; margin-bottom: 8px; }
  .p4-desc { font-size: 13px; }

  /* Part 5 */
  .part5 { padding: 24px 16px; }
  .part5-inner {
    flex-direction: column;
    padding: 36px 28px;
    border-radius: 20px;
    text-align: center;
    align-items: center;
  }
  .part5-title { font-size: 28px; margin-bottom: 12px; }
  .part5-sub { font-size: 14px; margin-bottom: 20px; }
  .part5-btns { justify-content: center; }
  .part5-visual { width: 80px; height: 80px; }

  /* Footer */
  .footer { padding: 40px 0 40px; }
  .footer .content-box {
    flex-direction: column;
    padding: 0 20px;
    gap: 30px;
    align-items: center;
    text-align: center;
  }
  .footer-left { max-width: 100%; }
  .footer-brief { font-size: 13px; }
  .footer-socials { flex-direction: row; justify-content: center; gap: 10px; }
  .footer-social-btn { padding: 8px 16px; font-size: 12px; }
  .footer-right { flex-wrap: wrap; gap: 20px; justify-content: center; }
  .footer-col { align-items: center; min-width: 120px; }
  .footer-col-title { font-size: 13px; }
  .footer-link { font-size: 12px; }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 6px;
    padding: 16px 20px 0;
  }
  .footer-copy, .footer-disclaimer { font-size: 11px; }

  .d-none-sm { display: none; }
}

@media screen and (max-width: 480px) {
  .title { font-size: 30px; }
  .hero-stats { flex-wrap: wrap; justify-content: center; gap: 16px; }
  .stat-divider { display: none; }
  .part5-btns { flex-direction: column; align-items: center; }
}
