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

:root {
  --blue:           #2563eb;
  --blue-bright:    #4f84e8;
  --blue-dim:       #1a3a8f;
  --purple:         #5b21b6;
  --purple-bright:  #7c3aed;
  --purple-dim:     #3b1480;
  --grey:           #6b7280;
  --grey-light:     #9ca3af;
  --grey-dim:       #374151;

  --bg:          #08080f;
  --bg2:         #0d0d18;
  --bg3:         #111120;
  --card-bg:     #0e0e1c;

  --text:        #f0f0f8;
  --muted:       #8888a8;
  --border:      rgba(255,255,255,0.08);

  --grad-hero:   linear-gradient(135deg, #1e0a4e 0%, #0f1f6b 50%, #0a1240 100%);
  --grad-btn:    linear-gradient(135deg, var(--blue), var(--purple-bright));
  --grad-accent: linear-gradient(135deg, var(--blue), var(--purple-bright));

  --radius:    16px;
  --radius-sm: 10px;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }

/* ── NAV ──────────────────────────────────────────────────────── */
.nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 100;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.logo {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.beta-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .8px;
  color: var(--grey-light);
  border: 1px solid rgba(156,163,175,.35);
  padding: 2px 7px;
  border-radius: 20px;
}
.nav-links {
  display: flex;
  gap: 28px;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  color: rgba(255,255,255,.7);
  font-size: 14px;
  font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover { color: #fff; }
.nav-auth { display: flex; align-items: center; gap: 10px; }

.btn-signup {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  padding: 9px 22px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  transition: background .2s;
}
.btn-signup:hover { background: rgba(255,255,255,.18); }

.btn-login {
  background: #fff;
  border: none;
  color: #0a0a18;
  padding: 9px 22px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  transition: opacity .2s;
}
.btn-login:hover { opacity: .88; }

/* ── HERO BUTTON ──────────────────────────────────────────────── */
.btn-hero {
  background: var(--grad-btn);
  border: none;
  color: #fff;
  padding: 16px 36px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 700;
  display: inline-block;
  transition: opacity .2s, transform .15s;
  box-shadow: 0 4px 24px rgba(91,33,182,.45);
}
.btn-hero:hover { opacity: .9; transform: translateY(-2px); }
.btn-hero.full { width: 100%; text-align: center; border-radius: var(--radius-sm); padding: 14px; font-size: 15px; }

/* ── HERO ─────────────────────────────────────────────────────── */
.hero {
  background: var(--grad-hero);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 140px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(91,33,182,.35) 0%, transparent 65%);
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-block;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  color: var(--grey-light);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 28px;
}

.hero-content { position: relative; z-index: 1; }

.hero h1 {
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -3px;
  color: #fff;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 18px;
  color: rgba(255,255,255,.65);
  max-width: 520px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

/* ── HERO TOUR ────────────────────────────────────────────────── */
.hero-tour {
  display: flex;
  flex-direction: row;
  gap: 20px;
  justify-content: center;
  align-items: flex-start;
  margin-top: 56px;
  width: 100%;
  max-width: 1100px;
  flex-wrap: wrap;
}

.hero-tour .tour-item {
  flex: 1 1 280px;
  max-width: 340px;
}

/* ── PHOTOSHOP WINDOW MOCKUP ──────────────────────────────────── */
.mockup-wrapper {
  position: relative;
  width: 100%;
  max-width: 1060px;
  margin-top: 56px;
  z-index: 1;
}

.ps-window {
  background: #13131f;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  box-shadow:
    0 60px 120px rgba(0,0,0,.7),
    0 0 0 1px rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.08);
}

.ps-bar {
  background: #1c1c2e;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.ps-dots { display: flex; gap: 6px; }
.ps-dot  { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,.12); }
.ps-dots .ps-dot:nth-child(1) { background: #ff5f57; }
.ps-dots .ps-dot:nth-child(2) { background: #febc2e; }
.ps-dots .ps-dot:nth-child(3) { background: #28c840; }
.ps-title {
  flex: 1;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,.3);
  font-weight: 500;
}
.ps-controls { font-size: 12px; color: rgba(255,255,255,.15); }

.ps-body { display: flex; height: 480px; }

.ps-tools {
  width: 44px;
  background: #181828;
  border-right: 1px solid rgba(255,255,255,.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 0;
  gap: 6px;
  flex-shrink: 0;
}
.ps-tool {
  width: 32px; height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: rgba(255,255,255,.25);
  cursor: default;
}
.ps-tool.active {
  background: rgba(37,99,235,.25);
  color: var(--blue-bright);
}

.ps-canvas {
  flex: 1;
  background: #1e1e2e;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.ps-canvas::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(45deg, #222236 25%, transparent 25%),
    linear-gradient(-45deg, #222236 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #222236 75%),
    linear-gradient(-45deg, transparent 75%, #222236 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0px;
  opacity: .5;
}

.video-placeholder {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.play-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  border: 2px solid rgba(255,255,255,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: rgba(255,255,255,.4);
  margin-bottom: 4px;
}
.video-placeholder p    { font-size: 14px; font-weight: 600; color: rgba(255,255,255,.4); }
.video-placeholder span { font-size: 11px; color: rgba(255,255,255,.2); }

/* ── AI PANEL ─────────────────────────────────────────────────── */
.ai-panel {
  width: 220px;
  background: #0a0a18;
  border-left: 1px solid rgba(255,255,255,.07);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}
.panel-header {
  padding: 12px 14px 10px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  display: flex;
  align-items: center;
  gap: 8px;
}
.panel-logo { font-size: 13px; font-weight: 700; color: #fff; }
.panel-beta {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .6px;
  color: var(--grey-light);
  border: 1px solid rgba(156,163,175,.3);
  padding: 1px 5px;
  border-radius: 10px;
}
.panel-tabs { display: flex; border-bottom: 1px solid rgba(255,255,255,.06); }
.p-tab {
  flex: 1;
  padding: 8px 0;
  font-size: 11px;
  font-weight: 500;
  color: rgba(255,255,255,.3);
  text-align: center;
  cursor: default;
  position: relative;
}
.p-tab.active { color: var(--blue-bright); }
.p-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--blue);
  border-radius: 2px 2px 0 0;
}
.panel-chat {
  flex: 1;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}
.p-bubble {
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 11px;
  line-height: 1.5;
  max-width: 92%;
}
.p-bubble.ai {
  background: #14142a;
  border: 1px solid rgba(255,255,255,.07);
  color: #b0b4cc;
  border-bottom-left-radius: 3px;
  align-self: flex-start;
}
.p-bubble.user {
  background: var(--blue);
  color: #fff;
  border-bottom-right-radius: 3px;
  align-self: flex-end;
}
.panel-input {
  padding: 10px;
  border-top: 1px solid rgba(255,255,255,.06);
  display: flex;
  gap: 6px;
}
.panel-input input {
  flex: 1;
  background: #14142a;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 11px;
  color: rgba(255,255,255,.35);
  outline: none;
  font-family: inherit;
}
.panel-send {
  width: 28px; height: 28px;
  background: var(--blue);
  border: none;
  color: #fff;
  border-radius: 8px;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── FLOATING CHIPS ───────────────────────────────────────────── */
.chip {
  position: absolute;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,.5);
  animation: float 3s ease-in-out infinite;
}
.chip-orange {
  background: linear-gradient(135deg, var(--purple), var(--purple-bright));
  color: #fff;
  bottom: 80px;
  left: -20px;
  animation-delay: 0s;
}
.chip-yellow {
  background: linear-gradient(135deg, var(--blue-dim), var(--blue));
  color: #fff;
  top: 60px;
  right: -10px;
  animation-delay: 1.5s;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

/* ── SECTION COMMON ───────────────────────────────────────────── */
section { padding: 100px 24px; }
.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: 16px;
  text-align: center;
}
section h2 {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  text-align: center;
  margin-bottom: 16px;
}
.section-sub {
  text-align: center;
  color: var(--muted);
  font-size: 17px;
  max-width: 520px;
  margin: 0 auto 60px;
  line-height: 1.7;
}

/* ── FEATURES ─────────────────────────────────────────────────── */
.features { max-width: 1180px; margin: 0 auto; }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  transition: border-color .2s, transform .2s;
}
.feature-card:hover { transform: translateY(-4px); border-color: rgba(37,99,235,.35); }
.card-highlight {
  border-color: rgba(124,58,237,.35);
  background: linear-gradient(145deg, #0e0e1c, #130e22);
  box-shadow: 0 0 60px rgba(91,33,182,.1);
}
.feature-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
}
.icon-blue   { background: rgba(37,99,235,.15);  border: 1px solid rgba(37,99,235,.3); }
.icon-orange { background: rgba(91,33,182,.15);  border: 1px solid rgba(91,33,182,.3); }
.icon-purple { background: rgba(124,58,237,.15); border: 1px solid rgba(124,58,237,.3); }
.icon-grey   { background: rgba(107,114,128,.12); border: 1px solid rgba(107,114,128,.25); }

.feature-card h3 { font-size: 22px; font-weight: 700; margin-bottom: 12px; }
.feature-card p  { color: var(--muted); font-size: 15px; line-height: 1.7; margin-bottom: 20px; }
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.feature-list li {
  font-size: 14px;
  color: var(--muted);
  padding-left: 18px;
  position: relative;
}
.feature-list li::before {
  content: '✓';
  position: absolute; left: 0;
  color: var(--blue-bright);
  font-size: 12px;
  font-weight: 700;
}
.btn-card {
  margin-top: 20px;
  background: rgba(124,58,237,.12);
  border: 1px solid rgba(124,58,237,.35);
  color: var(--purple-bright);
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  transition: background .2s;
}
.btn-card:hover { background: rgba(124,58,237,.22); }

/* ── HOW IT WORKS ─────────────────────────────────────────────── */
.how-it-works {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.how-it-works h2 { margin-bottom: 56px; }
.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
  flex-wrap: wrap;
  row-gap: 32px;
}
.step {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  flex: 1;
  min-width: 220px;
  max-width: 260px;
}
.step-num {
  font-size: 40px;
  font-weight: 900;
  line-height: 1;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}
.step h4 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.step p   { font-size: 14px; color: var(--muted); line-height: 1.6; }
.step-arrow { font-size: 24px; color: var(--grey-dim); padding: 0 12px; flex-shrink: 0; }

/* ── SCREENSHOTS ──────────────────────────────────────────────── */
.screenshots { max-width: 1180px; margin: 0 auto; }
.tour-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.tour-item { display: flex; flex-direction: column; gap: 20px; }
.tour-screen {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 12px;
}
.screen-header {
  background: #141428;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 5px;
  border-bottom: 1px solid var(--border);
}
.screen-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); display: inline-block; }
.screen-name { margin-left: auto; font-size: 11px; font-weight: 600; color: var(--muted); }
.screen-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; min-height: 180px; }
.screen-msg { padding: 8px 12px; border-radius: 10px; font-size: 12px; line-height: 1.5; max-width: 85%; }
.ai-msg   { background: var(--bg2); border: 1px solid var(--border); align-self: flex-start; color: var(--text); }
.user-msg { background: var(--blue); color: #fff; align-self: flex-end; }
.screen-action { font-size: 11px; color: var(--blue-bright); font-weight: 600; padding: 4px 0; }

.scan-btn-demo  { background: var(--grad-accent); color: white; padding: 8px 14px; border-radius: 8px; font-weight: 600; text-align: center; margin-bottom: 4px; }
.scan-result    { padding: 8px 10px; border-radius: 8px; font-size: 11px; line-height: 1.4; }
.scan-result.warn { background: rgba(107,114,128,.1); border: 1px solid rgba(107,114,128,.25); color: var(--grey-light); }
.scan-result.ok   { background: rgba(52,211,153,.07); border: 1px solid rgba(52,211,153,.2); color: #34d399; }
.scan-fix-btn   { margin-top: 4px; background: rgba(37,99,235,.12); border: 1px solid rgba(37,99,235,.3); color: var(--blue-bright); padding: 8px 12px; border-radius: 8px; text-align: center; font-weight: 600; }

.export-label  { font-size: 11px; color: var(--muted); font-weight: 600; letter-spacing: .5px; text-transform: uppercase; }
.export-select { background: var(--bg2); border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; font-size: 12px; color: var(--text); margin-bottom: 4px; }
.export-check  { padding: 7px 10px; border-radius: 8px; font-size: 11px; line-height: 1.4; }
.export-check.ok   { background: rgba(52,211,153,.07); border: 1px solid rgba(52,211,153,.2); color: #34d399; }
.export-check.warn { background: rgba(107,114,128,.1); border: 1px solid rgba(107,114,128,.25); color: var(--grey-light); }
.export-btn    { margin-top: 6px; background: var(--grad-accent); color: white; padding: 8px 14px; border-radius: 8px; font-weight: 600; text-align: center; font-size: 12px; }

.tour-label { display: flex; flex-direction: column; gap: 6px; padding: 0 4px; }
.tour-label strong { font-size: 16px; font-weight: 700; }
.tour-label span   { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ── CTA BANNER ───────────────────────────────────────────────── */
.cta-banner {
  background: var(--grad-hero);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(91,33,182,.3) 0%, transparent 70%);
  pointer-events: none;
}
.cta-banner h2 { margin-bottom: 12px; color: #fff; position: relative; }
.cta-banner p  { color: rgba(255,255,255,.65); font-size: 17px; margin-bottom: 36px; position: relative; }

/* ── FOOTER ───────────────────────────────────────────────────── */
.footer { padding: 40px 24px; border-top: 1px solid var(--border); }
.footer-inner { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.footer-logo  { font-size: 16px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.footer-links { display: flex; gap: 24px; flex: 1; justify-content: center; }
.footer-links a { font-size: 13px; color: var(--muted); transition: color .2s; }
.footer-links a:hover { color: var(--text); }
.footer-copy  { font-size: 13px; color: var(--muted); }

/* ── MODAL ────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(10px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 48px 40px 40px;
  width: 100%;
  max-width: 420px;
  position: relative;
  box-shadow: 0 40px 100px rgba(0,0,0,.6);
  animation: modalIn .25s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(.95) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--muted);
  width: 32px; height: 32px;
  border-radius: 50%;
  font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  transition: color .2s;
}
.modal-close:hover { color: var(--text); }
.modal-icon {
  width: 48px; height: 48px;
  background: var(--grad-btn);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  margin-bottom: 20px;
}
.modal h3  { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.modal-sub { color: var(--muted); font-size: 15px; margin-bottom: 32px; }
.login-form { display: flex; flex-direction: column; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 13px; font-weight: 600; }
.form-group input {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-size: 15px;
  color: var(--text);
  font-family: inherit;
  outline: none;
  transition: border-color .2s;
}
.form-group input:focus { border-color: var(--blue); }
.form-error { font-size: 13px; color: #f87171; min-height: 18px; text-align: center; }
.modal-footer { text-align: center; font-size: 14px; color: var(--muted); margin-top: 20px; }
.modal-footer a { color: var(--purple-bright); font-weight: 600; }
.modal-footer a:hover { text-decoration: underline; }

/* ── RESPONSIVE ───────────────────────────────────────────────── */
@media (max-width: 960px) {
  .tour-grid    { grid-template-columns: 1fr; }
  .ps-tools     { display: none; }
  .ai-panel     { width: 180px; }
}
@media (max-width: 640px) {
  .feature-grid { grid-template-columns: 1fr; }
  .nav-links  { display: none; }
  .steps      { flex-direction: column; align-items: center; }
  .step-arrow { transform: rotate(90deg); }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
  .ps-body    { height: 320px; }
  .chip       { display: none; }
}
