/* ============================================================
   SRPOST - Design System (taste-skill)
   Dark production aesthetic · Outfit font · Refined violet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* --- TOKENS ------------------------------------------------ */
:root {
  --bg:           #09090B;
  --surface:      #18181B;
  --surface-2:    #27272A;
  --surface-3:    #3F3F46;
  --border:       #3F3F46;
  --border-subtle:#2D2D30;

  --accent:       #7C3AED;
  --accent-2:     #4F46E5;
  --accent-grad:  linear-gradient(135deg, #7C3AED 0%, #4F46E5 100%);
  --accent-glow:  rgba(124, 58, 237, 0.15);

  --text:         #FAFAFA;
  --text-muted:   #A1A1AA;
  --text-subtle:  #71717A;

  --success:      #10B981;
  --warning:      #F59E0B;
  --error:        #EF4444;

  --radius-sm:    8px;
  --radius:       14px;
  --radius-lg:    20px;
  --radius-xl:    28px;

  --ease:         cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:     cubic-bezier(0, 0, 0.2, 1);
  --ease-spring:  cubic-bezier(0.34, 1.56, 0.64, 1);

  --shadow:       0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-accent:0 0 40px rgba(124, 58, 237, 0.12);
}

/* --- RESET ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  font-size: 16px;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* --- LAYOUT ----------------------------------------------- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
.container--narrow { max-width: 720px; margin: 0 auto; padding: 0 20px; }

/* --- HEADER ----------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9,9,11,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 16px 0;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
.logo {
  display: flex;
  align-items: center;
}
.header__nav { display: flex; gap: 24px; align-items: center; }
.header__nav a {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.2s var(--ease);
}
.header__nav a:hover { color: var(--text); }

/* --- BUTTONS ---------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
}
.btn--primary {
  background: var(--accent-grad);
  color: #fff;
  box-shadow: 0 4px 20px rgba(124,58,237,0.3);
}
.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(124,58,237,0.45);
}
.btn--primary:active { transform: translateY(0); }
.btn--ghost {
  background: var(--surface-2);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn--ghost:hover { background: var(--surface-3); color: var(--text); }
.btn--sm { padding: 8px 16px; font-size: 0.875rem; border-radius: var(--radius-sm); }
.btn--lg { padding: 16px 32px; font-size: 1.05rem; border-radius: var(--radius-lg); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* --- CARDS ------------------------------------------------ */
.card {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.card:hover { border-color: var(--border); }
.card--accent-border { border-color: var(--accent); box-shadow: var(--shadow-accent); }

/* --- FORM ELEMENTS ---------------------------------------- */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}
.form-label span { color: var(--error); margin-left: 2px; }
.form-input,
.form-textarea,
.form-select {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  outline: none;
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.15);
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-subtle); }
.form-textarea { resize: vertical; min-height: 100px; }
.form-select { cursor: pointer; appearance: none; }
.form-error {
  font-size: 0.8rem;
  color: var(--error);
  display: none;
}
.form-group.has-error .form-input,
.form-group.has-error .form-textarea { border-color: var(--error); }
.form-group.has-error .form-error { display: block; }

/* --- CHECKBOX SERVICE CARD -------------------------------- */
.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 600px) { .service-grid { grid-template-columns: 1fr; } }

.service-card {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  background: var(--surface-2);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s var(--ease);
  user-select: none;
}
.service-card:hover { border-color: var(--border); background: var(--surface-3); }
.service-card.selected {
  border-color: var(--accent);
  background: rgba(124,58,237,0.08);
  box-shadow: 0 0 0 1px var(--accent);
}
.service-card input[type="checkbox"] { position: absolute; opacity: 0; width: 0; height: 0; }
.service-check {
  width: 20px; height: 20px;
  border: 2px solid var(--border);
  border-radius: 5px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s var(--ease);
  margin-top: 1px;
}
.service-card.selected .service-check {
  background: var(--accent-grad);
  border-color: var(--accent);
}
.service-check svg { display: none; }
.service-card.selected .service-check svg { display: block; }
.service-info { flex: 1; }
.service-name { font-size: 0.9rem; font-weight: 600; color: var(--text); }
.service-desc { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }
.service-price {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* --- STEPPER ---------------------------------------------- */
.stepper {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 40px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.stepper::-webkit-scrollbar { height: 3px; }
.stepper::-webkit-scrollbar-track { background: var(--surface); }
.stepper::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.step {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.step__num {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: all 0.25s var(--ease);
  flex-shrink: 0;
}
.step.active .step__num {
  background: var(--accent-grad);
  border-color: transparent;
  color: #fff;
}
.step.done .step__num {
  background: var(--success);
  border-color: transparent;
  color: #fff;
}
.step__label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-subtle);
  white-space: nowrap;
}
.step.active .step__label { color: var(--text); }
.step.done .step__label { color: var(--success); }
.step__line {
  flex: 1;
  min-width: 24px;
  height: 2px;
  background: var(--border-subtle);
  margin: 0 8px;
  border-radius: 1px;
}
.step__line.done { background: var(--success); }

/* --- UPLOAD AREA ------------------------------------------ */
.upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  background: var(--surface-2);
}
.upload-area:hover, .upload-area.drag-over {
  border-color: var(--accent);
  background: rgba(124,58,237,0.05);
}
.upload-icon { color: var(--text-muted); margin-bottom: 12px; }
.upload-text { font-size: 0.95rem; color: var(--text-muted); }
.upload-text strong { color: var(--text); }
.upload-hint { font-size: 0.8rem; color: var(--text-subtle); margin-top: 6px; }

/* --- PROGRESS BAR ----------------------------------------- */
.progress-bar { height: 6px; background: var(--surface-3); border-radius: 3px; overflow: hidden; }
.progress-bar__fill {
  height: 100%;
  background: var(--accent-grad);
  border-radius: 3px;
  transition: width 0.3s var(--ease-out);
}

/* --- PRICE SUMMARY ---------------------------------------- */
.price-summary {
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
}
.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 0.9rem;
}
.price-row--total {
  border-top: 1px solid var(--border);
  margin-top: 10px;
  padding-top: 14px;
  font-size: 1.1rem;
  font-weight: 700;
}
.price-amount {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.price-row--total .price-amount { color: var(--accent); font-size: 1.2rem; }

/* --- STATUS STEPPER --------------------------------------- */
.status-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.status-step {
  display: flex;
  gap: 16px;
  position: relative;
}
.status-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 19px; top: 40px;
  width: 2px;
  height: calc(100% - 16px);
  background: var(--border-subtle);
}
.status-step.done::after { background: var(--success); }
.status-step.active::after { background: linear-gradient(to bottom, var(--accent), var(--border-subtle)); }
.status-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
  background: var(--surface-2);
  transition: all 0.3s var(--ease);
  z-index: 1;
}
.status-step.done .status-icon { border-color: var(--success); background: rgba(16,185,129,0.1); }
.status-step.active .status-icon { border-color: var(--accent); background: rgba(124,58,237,0.1); animation: pulse 2s infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(124,58,237,0.3); }
  50% { box-shadow: 0 0 0 8px rgba(124,58,237,0); }
}
.status-content { padding: 8px 0 24px; }
.status-title { font-weight: 600; font-size: 0.95rem; }
.status-desc { font-size: 0.82rem; color: var(--text-muted); margin-top: 2px; }
.status-time { font-size: 0.75rem; color: var(--text-subtle); margin-top: 4px; }

/* --- FORMAT TAGS ------------------------------------------ */
.format-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.format-tag {
  padding: 8px 14px;
  background: var(--surface-2);
  border: 1.5px solid var(--border-subtle);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s var(--ease);
  user-select: none;
}
.format-tag:hover { border-color: var(--border); }
.format-tag.selected {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.format-tag input { position: absolute; opacity: 0; width: 0; height: 0; }

/* --- HERO ------------------------------------------------- */
.hero {
  padding: 80px 0 60px;
  overflow: hidden;
}
.hero__layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 60px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero__layout { grid-template-columns: 1fr; gap: 40px; }
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(124,58,237,0.1);
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #A78BFA;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero__eyebrow span { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #A78BFA; }
.hero__title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.hero__title em {
  font-style: normal;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__sub { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 36px; max-width: 480px; line-height: 1.7; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }

.hero__visual {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow), 0 0 60px rgba(124,58,237,0.08);
}
.hero__visual-inner { aspect-ratio: 16/10; background: var(--bg); border-radius: var(--radius-lg); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.hero__visual-mockup {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  background: linear-gradient(135deg, #18181B 0%, #0f0f14 100%);
}
.mockup-bar { height: 36px; background: var(--surface); display: flex; align-items: center; gap: 8px; padding: 0 14px; border-bottom: 1px solid var(--border-subtle); }
.mockup-dot { width: 10px; height: 10px; border-radius: 50%; }
.mockup-timeline { flex: 1; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.mockup-clip {
  height: 28px; border-radius: 5px; opacity: 0.7;
  animation: shimmer 2.5s ease-in-out infinite;
}
.mockup-clip:nth-child(1) { width: 70%; background: linear-gradient(90deg, #7C3AED, #4F46E5); animation-delay: 0s; }
.mockup-clip:nth-child(2) { width: 50%; background: linear-gradient(90deg, #4F46E5, #7C3AED); animation-delay: 0.3s; }
.mockup-clip:nth-child(3) { width: 85%; background: linear-gradient(90deg, #6D28D9, #4338CA); animation-delay: 0.6s; }
.mockup-clip:nth-child(4) { width: 40%; background: linear-gradient(90deg, #5B21B6, #3730A3); animation-delay: 0.9s; }
@keyframes shimmer {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.85; }
}
.mockup-playhead {
  position: absolute;
  top: 50px; left: 40%;
  width: 2px; height: calc(100% - 60px);
  background: #A78BFA;
  animation: playhead 3s ease-in-out infinite alternate;
}
@keyframes playhead { to { left: 60%; } }

/* --- FEATURES SECTION ------------------------------------- */
.features { padding: 60px 0; }
.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.section-sub { color: var(--text-muted); margin-bottom: 40px; }
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}
@media (max-width: 768px) { .features-grid { grid-template-columns: 1fr; } }
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 24px;
  transition: border-color 0.2s var(--ease);
}
.feature-card:hover { border-color: var(--border); }
.feature-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius);
  background: rgba(124,58,237,0.12);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  font-size: 1.3rem;
}
.feature-title { font-weight: 700; margin-bottom: 6px; }
.feature-desc { font-size: 0.875rem; color: var(--text-muted); line-height: 1.65; }

/* --- SERVICES TABLE --------------------------------------- */
.services-section { padding: 60px 0; border-top: 1px solid var(--border-subtle); }
.services-list { display: flex; flex-direction: column; gap: 2px; }
.service-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.service-row:last-child { border-bottom: none; }
.service-row-info { display: flex; flex-direction: column; gap: 4px; }
.service-row-name { font-weight: 600; }
.service-row-desc { font-size: 0.85rem; color: var(--text-muted); }
.service-row-price { font-size: 1.1rem; font-weight: 700; color: var(--accent); white-space: nowrap; }

/* --- FOOTER ----------------------------------------------- */
footer {
  border-top: 1px solid var(--border-subtle);
  padding: 32px 0;
  color: var(--text-subtle);
  font-size: 0.85rem;
}
.footer__inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
  max-width: 1100px; margin: 0 auto; padding: 0 20px;
}

/* --- MISC ------------------------------------------------- */
.divider { height: 1px; background: var(--border-subtle); margin: 32px 0; }
.badge {
  display: inline-flex; align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.badge--success { background: rgba(16,185,129,0.12); color: var(--success); }
.badge--warning { background: rgba(245,158,11,0.12); color: var(--warning); }
.badge--accent { background: rgba(124,58,237,0.15); color: #A78BFA; }
.badge--error { background: rgba(239,68,68,0.12); color: var(--error); }

.section-fade {
  animation: fadeInUp 0.5s var(--ease-out) both;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hidden { display: none !important; }
.text-muted { color: var(--text-muted); }
.text-subtle { color: var(--text-subtle); }
.text-accent { color: var(--accent); }
.text-success { color: var(--success); }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .grid-2 { grid-template-columns: 1fr; } }
