@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;600;700&family=JetBrains+Mono:wght@400;700&display=swap');

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

:root {
  --bg: #0a0a0f;
  --surface: #12121a;
  --border: #1e1e2e;
  --text: #e0e0e8;
  --text-dim: #7a7a8c;
  --accent: #ff4d00;
  --accent-glow: #ff6a2a;
  --fire: #ff2d00;
  --gold: #ffc53d;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  cursor: default;
}

#sparks {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}

/* ---- HERO ROW ---- */

.hero-row {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255, 77, 0, 0.12) 0%, transparent 70%),
    var(--bg);
}

.hero-columns {
  display: flex;
  align-items: stretch;
  flex: 1;
}

/* ---- HEADER / HERO ---- */

header {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  position: relative;
}

.title {
  font-size: clamp(3rem, 10vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 1.5rem;
}

.highlight {
  background: linear-gradient(135deg, var(--accent), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.whip-icon {
  display: inline-block;
  animation: wiggle 2s ease-in-out infinite;
}

.whip-icon:last-child {
  animation-delay: 0.3s;
}

@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-8deg); }
  75% { transform: rotate(8deg); }
}

.tagline {
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  color: var(--text-dim);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.download-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.download-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.9rem 1.6rem;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  color: var(--text);
  position: relative;
  overflow: hidden;
}

.download-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s;
  border-radius: 14px;
}

.download-btn.mac::before {
  background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.06), transparent 70%);
}

.download-btn.win::before {
  background: radial-gradient(circle at 30% 50%, rgba(0, 120, 215, 0.1), transparent 70%);
}

.download-btn.linux::before {
  background: radial-gradient(circle at 30% 50%, rgba(255, 196, 0, 0.08), transparent 70%);
}

.download-btn:hover::before {
  opacity: 1;
}

.download-btn:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(255, 77, 0, 0.2);
}

.download-btn:active {
  transform: translateY(-1px);
}

.download-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  transition: transform 0.3s;
}

.download-btn:hover .download-icon {
  transform: scale(1.2);
}

.download-btn.mac .download-icon { color: #fff; }
.download-btn.win .download-icon { color: #0078d7; }
.download-btn.linux .download-icon { color: #f0c000; }

.download-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.2;
}

.download-label {
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.download-platform {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold);
}

.sub-tagline {
  color: var(--text-dim);
  font-size: 0.95rem;
}

/* ---- SECTIONS ---- */

section {
  padding: 3rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  text-align: center;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  text-align: center;
  color: var(--text-dim);
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

/* ---- WORKS WITH MARQUEE ---- */

.works-with {
  max-width: 100%;
  padding: 1rem 0;
  overflow: hidden;
}

.works-with-title {
  font-size: clamp(1.6rem, 4vw, 1rem);
  text-align: center;
  margin-bottom: 0.7rem;
  color: var(--text-dim);
  letter-spacing: -0.02em;
}

.marquee-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.marquee-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: marqueeScroll 30s linear infinite;
}

.marquee-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
  transition: transform 0.3s, opacity 0.3s;
  opacity: 0.6;
}

.marquee-item:hover {
  opacity: 1;
  transform: scale(1.1);
}

.marquee-item img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(255, 77, 0, 0.15));
}

.marquee-item span {
  font-size: 0.75rem;
  color: var(--text-dim);
  white-space: nowrap;
  font-weight: 500;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-wrapper:hover .marquee-track {
  animation-play-state: paused;
}

/* ---- HOW IT WORKS ---- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  position: relative;
  transition: all 0.3s;
}

.step:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 40px rgba(255, 77, 0, 0.1);
}

.step-number {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: white;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.step p {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ---- WHIP STYLES ---- */

.whip-styles {
  border-top: 1px solid var(--border);
}

.styles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.style-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  overflow: visible;
}

.style-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(255, 77, 0, 0.08), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
}

.style-card:hover::before {
  opacity: 1;
}

.style-card:hover {
  border-color: var(--accent);
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 40px rgba(255, 77, 0, 0.15);
  z-index: 5;
}

.style-card img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 1rem;
  filter: drop-shadow(0 4px 12px rgba(255, 77, 0, 0.3));
  transition: transform 0.3s;
  position: relative;
}

.style-card:hover img {
  transform: scale(3.4) rotate(-5deg);
  z-index: 10;
}

.style-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--gold);
}

.style-card p {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.4;
}

/* ---- DEMO SECTION ---- */

.demo-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
  border-top: none;
  max-width: none;
  margin: 0;
}

.mac-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 2rem;
}

.mac-bezel {
  background: #1a1a1a;
  border-radius: 16px;
  padding: 8px 8px 8px 8px;
  width: 100%;
  max-width: 900px;
  position: relative;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.08),
    0 20px 60px rgba(0,0,0,0.6),
    0 0 80px rgba(255,77,0,0.05);
}

.mac-notch {
  width: 120px;
  height: 24px;
  background: #1a1a1a;
  border-radius: 0 0 12px 12px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  top: 0;
}

.mac-notch::after {
  content: '';
  width: 6px;
  height: 6px;
  background: #2a2a2a;
  border-radius: 50%;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
}

.mac-screen {
  background: #1e1e2e;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.mac-menubar {
  height: 28px;
  background: rgba(30, 30, 40, 0.95);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  font-size: 12px;
  color: rgba(255,255,255,0.85);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  user-select: none;
  position: relative;
  z-index: 20;
}

.menubar-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.traffic-lights {
  display: flex;
  align-items: center;
  gap: 6px;
}

.traffic-btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  position: relative;
  padding: 0;
  transition: filter 0.15s;
}

.traffic-btn.close { background: #ff5f57; }
.traffic-btn.minimize { background: #febc2e; }
.traffic-btn.maximize { background: #28c840; }

.traffic-btn:hover { filter: brightness(1.2); }
.traffic-btn:active { filter: brightness(0.85); }

/* Show icons on hover */
.traffic-lights:hover .traffic-btn::after {
  opacity: 1;
}

.traffic-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.15s;
  background-size: 8px 8px;
  background-position: center;
  background-repeat: no-repeat;
}

.traffic-btn.close::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cline x1='2' y1='2' x2='8' y2='8' stroke='%23820b00' stroke-width='1.2' stroke-linecap='round'/%3E%3Cline x1='8' y1='2' x2='2' y2='8' stroke='%23820b00' stroke-width='1.2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.traffic-btn.minimize::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cline x1='2' y1='5' x2='8' y2='5' stroke='%23985600' stroke-width='1.2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.traffic-btn.maximize::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 3.5L5 1.5L8 3.5' stroke='%23006500' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3Cpath d='M2 6.5L5 8.5L8 6.5' stroke='%23006500' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
}

.menubar-apple {
  width: 13px;
  height: 13px;
  opacity: 0.9;
}

.menubar-app-name {
  font-weight: 600;
  font-size: 12.5px;
}

.menubar-menu {
  opacity: 0.75;
  font-size: 12px;
}

.menubar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menubar-item {
  opacity: 0.75;
  font-size: 11px;
}

.tray-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  padding: 12px;
  margin: -12px;
}

.menubar-tray-icon {
  width: 20px;
  height: 20px;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.15s;
  object-fit: contain;
  filter: brightness(1.1);
}

.menubar-tray-icon:hover {
  background: rgba(255,255,255,0.15);
  transform: scale(1.15);
}

.menubar-tray-icon.active {
  background: rgba(255,77,0,0.3);
  box-shadow: 0 0 8px rgba(255,77,0,0.4);
}

.menubar-time {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.mac-desktop {
  width: 100%;
  height: 450px;
  background:
    radial-gradient(ellipse 120% 80% at 30% 70%, rgba(88,40,120,0.3), transparent),
    radial-gradient(ellipse 80% 60% at 70% 30%, rgba(30,60,120,0.4), transparent),
    linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  position: relative;
  overflow: hidden;
  cursor: default;
}

.mac-desktop #demoCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 15;
  pointer-events: none;
}

/* ---- MOCK TERMINAL ---- */

.mock-terminal {
  position: absolute;
  top: 40px;
  left: 30px;
  width: 380px;
  z-index: 10;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(30, 30, 30, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.06);
  font-family: 'JetBrains Mono', monospace;
}

.mock-terminal-titlebar {
  height: 28px;
  background: linear-gradient(180deg, #3a3a3a, #2a2a2a);
  display: flex;
  align-items: center;
  padding: 0 10px;
  cursor: grab;
  user-select: none;
  touch-action: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.4);
}

.mock-terminal-titlebar.dragging {
  cursor: grabbing;
}

.mock-terminal-traffic {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.tt-btn {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: block;
}

.tt-btn.tt-close { background: #ff5f57; }
.tt-btn.tt-minimize { background: #febc2e; }
.tt-btn.tt-maximize { background: #28c840; }

.mock-terminal-title {
  flex: 1;
  text-align: center;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mock-terminal-spacer {
  width: 48px;
  flex-shrink: 0;
}

.mock-terminal-body {
  padding: 8px 12px;
  max-height: 280px;
  overflow-y: auto;
  font-size: 11px;
  line-height: 1.6;
  color: #c8c8c8;
}

.mock-terminal-body::-webkit-scrollbar {
  width: 4px;
}

.mock-terminal-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
}

.term-line {
  white-space: pre-wrap;
  word-break: break-word;
}

.term-prompt-char {
  color: #4ec94e;
  font-weight: 700;
}

.term-response {
  color: #999;
}

.term-dim {
  color: #666;
}

.term-crack-msg {
  color: var(--accent);
  animation: crackMsgAppear 0.3s ease-out;
  text-shadow: 0 0 6px rgba(255, 77, 0, 0.4);
}

.term-crack-response {
  color: #7a7;
  animation: crackMsgAppear 0.3s ease-out;
}

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

.term-cursor::after {
  content: '\2588';
  color: #4ec94e;
  animation: blink 1s step-end infinite;
}

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

.demo-hint {
  position: absolute;
  top: 40px;
  right: -47px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: hintPulse 2s ease-in-out infinite;
  pointer-events: none;
  transition: opacity 0.4s;
}

.demo-hint.hidden {
  opacity: 0;
}

.hint-arrow {
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 8px solid rgba(255,77,0,0.9);
}

.demo-hint span {
  background: rgba(255,77,0,0.9);
  color: white;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(255,77,0,0.3);
}

@keyframes hintPulse {
  0%, 100% { opacity: 1; transform: translateY(0); }
  50% { opacity: 0.7; transform: translateY(3px); }
}

/* Mac stand */
.mac-stand {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mac-stand-neck {
  width: 60px;
  height: 40px;
  background: linear-gradient(180deg, #1a1a1a 0%, #2a2a2a 100%);
  border-radius: 0 0 2px 2px;
}

.mac-stand-base {
  width: 160px;
  height: 8px;
  background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 100%);
  border-radius: 0 0 8px 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* ---- DEMO MAXIMIZED STATE ---- */

.mac-display.maximized {
  position: fixed;
  inset: 0;
  z-index: 9990;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.mac-display.maximized .mac-bezel {
  max-width: 100%;
  border-radius: 0;
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.mac-display.maximized .mac-notch {
  display: none;
}

.mac-display.maximized .mac-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  border-radius: 0;
}

.mac-display.maximized .mac-desktop {
  flex: 1;
  height: auto;
}

.mac-display.maximized .mac-stand {
  display: none;
}

.mac-display.maximized .traffic-btn.maximize::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 6.5L5 8.5L8 6.5' stroke='%23006500' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round' fill='none' transform='rotate(180 5 5)'/%3E%3Cpath d='M2 3.5L5 1.5L8 3.5' stroke='%23006500' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round' fill='none' transform='rotate(180 5 5)'/%3E%3C/svg%3E");
}

/* ---- FAQ ---- */

.faq {
  border-top: 1px solid var(--border);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  transition: border-color 0.3s;
}

.faq-item:hover {
  border-color: var(--accent);
}

.faq-item h3 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: var(--gold);
}

.faq-item p {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ---- ROADMAP ---- */

.roadmap {
  border-top: 1px solid var(--border);
}

.roadmap-list {
  list-style: none;
  max-width: 650px;
  margin: 3rem auto 0;
}

.roadmap-list li {
  padding: 1rem 1rem 1rem 2.5rem;
  position: relative;
  font-size: 1rem;
  color: var(--text-dim);
  border-left: 2px solid var(--border);
  margin-left: 0.75rem;
  transition: color 0.2s;
}

.roadmap-list li:hover {
  color: var(--text);
}

.roadmap-list li::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 1.25rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border);
  border: 2px solid var(--bg);
}

.roadmap-list li.done {
  color: var(--accent);
}

.roadmap-list li.done::before {
  background: var(--accent);
  box-shadow: 0 0 10px rgba(255, 77, 0, 0.5);
}

/* ---- FOOTER ---- */

footer {
  text-align: center;
  padding: 4rem 2rem;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.9rem;
}

.footer-links {
  margin-top: 1rem;
}

.footer-links a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--gold);
}

.sep {
  margin: 0 0.75rem;
  color: var(--border);
}

/* ---- WHIP CURSOR ---- */

.whip-cursor {
  position: fixed;
  width: 24px;
  height: 24px;
  pointer-events: none;
  z-index: 10000;
  transition: transform 0.1s;
  opacity: 0;
}

.whip-cursor.active {
  opacity: 1;
}

/* ---- CRACK ANIMATION ---- */

.crack-effect {
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  animation: crack 0.4s ease-out forwards;
}

@keyframes crack {
  0% { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(2); opacity: 0; }
}

/* ---- RESPONSIVE ---- */

@media (max-width: 960px) {
  .hero-columns {
    flex-direction: column;
  }

  .demo-section {
    border-top: 1px solid var(--border);
  }
}

@media (max-width: 600px) {
  section {
    padding: 4rem 1.5rem;
  }

  .styles-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .mac-desktop {
    height: 300px;
  }

  .menubar-menu {
    display: none;
  }

  .mock-terminal {
    width: 260px;
    left: 10px;
    top: 20px;
  }

  .mock-terminal-body {
    font-size: 10px;
    max-height: 200px;
  }
}
