/* ============================================================
   TRIMR — design.css  |  https://trimr.net
   Dark Hacker — Black × Green
   ============================================================ */

/* ── Web Fonts ─────────────────────────────────────────────── */
@font-face{font-family:'Bebas Neue';font-style:normal;font-weight:400;font-display:swap;src:url('https://fonts.gstatic.com/s/bebasneue/v14/JTUSjIg69CK48gW7PXooxW5rygbi49c.woff2') format('woff2')}
@font-face{font-family:'Space Mono';font-style:normal;font-weight:400;font-display:swap;src:url('https://fonts.gstatic.com/s/spacemono/v13/i7dPIFZifjKcF5UAWdDRYER8.woff2') format('woff2')}
@font-face{font-family:'Space Mono';font-style:normal;font-weight:700;font-display:swap;src:url('https://fonts.gstatic.com/s/spacemono/v13/i7dMIFZifjKcF5UAWdDRaPpZUFWaHg.woff2') format('woff2')}

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  --bg:          #0a0a0a;
  --bg2:         #111111;
  --surface:     #111111;
  --surface2:    #1a1a1a;
  --border:      #2a2a2a;
  --border-dark: #3a3a3a;
  --red:         #00ff88;
  --red-dark:    #00cc6a;
  --red-light:   rgba(0,255,136,0.06);
  --red-mid:     rgba(0,255,136,0.2);
  --text:        #e8e8e8;
  --text-muted:  #888888;
  --text-faint:  #555555;
  --white:       #e8e8e8;

  --font-mono:    'Space Mono', ui-monospace, 'Courier New', monospace;
  --font-display: 'Bebas Neue', 'Arial Black', sans-serif;
  --font-body:    'Space Mono', ui-monospace, 'Courier New', monospace;

  --radius:    4px;
  --radius-md: 4px;
  --radius-lg: 4px;
  --max-w:     1100px;
  --transition: 0.15s ease;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.5);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.6);
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
img, svg { display: block; max-width: 100%; }
a { color: var(--red); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--red-dark); text-decoration: underline; }

/* ── Base ──────────────────────────────────────────────────── */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── Site Header ───────────────────────────────────────────── */
.site-header {
  width: 100%;
  max-width: var(--max-w);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 0 24px;
  height: 64px;
  margin: 0 auto;
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1.5px solid var(--border);
}

.site-header .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.site-header .brand:hover { opacity: 0.85; }

.logo-icon { width: 28px; height: 28px; color: var(--red); flex-shrink: 0; }

.brand-text { display: flex; flex-direction: column; gap: 1px; }

.site-header .logo {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 3px;
  color: var(--text);
  line-height: 1;
  text-transform: uppercase;
}

.site-header .tagline {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-faint);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.site-nav { display: flex; gap: 0; align-items: center; }

.site-nav a {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--text-muted);
  padding: 8px 16px;
  border-left: 1px solid var(--border);
  transition: all var(--transition);
}
.site-nav a:first-child { border-left: none; }
.site-nav a:hover, .site-nav a.active { color: var(--red); background: var(--red-light); }

/* ── Main ──────────────────────────────────────────────────── */
main {
  width: 100%;
  max-width: var(--max-w);
  flex: 1;
  padding: 0 24px 60px;
}

/* ── Hero Section ──────────────────────────────────────────── */
.hero-section {
  padding: 64px 0 48px;
  border-bottom: 1.5px solid var(--border);
  margin-bottom: 48px;
}

.hero-content { max-width: 680px; }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(56px, 9vw, 110px);
  font-weight: 400;
  font-style: normal;
  letter-spacing: 6px;
  line-height: 0.95;
  color: var(--text);
  margin-bottom: 20px;
}

.hero-subtitle {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.7;
  letter-spacing: 0.3px;
  max-width: 480px;
}

.hero-features { display: flex; gap: 0; flex-wrap: wrap; }

.feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  background: transparent;
  border: 1px solid var(--border);
  border-right: none;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all var(--transition);
}
.feature-pill:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.feature-pill:last-child  { border-right: 1px solid var(--border); border-radius: 0 var(--radius) var(--radius) 0; }
.feature-pill svg  { color: var(--red); }
.feature-pill:hover { background: var(--red-light); color: var(--red); border-color: var(--red-mid); }

/* ── Card ──────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--red);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

/* ── Section Label ─────────────────────────────────────────── */
.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--red);
  color: #000;
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

/* ── Drop Zone ─────────────────────────────────────────────── */
#dropzone {
  border: 2px dashed var(--border-dark);
  border-radius: var(--radius-md);
  padding: 56px 24px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--bg);
  position: relative;
}
#dropzone:hover, #dropzone.drag-over { border-color: var(--red); background: var(--red-light); }

#dropzone input {
  position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%;
}

.dropzone-content { pointer-events: none; }

.dropzone-icon {
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
  color: var(--red);
}

.dropzone-main {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.dropzone-sub { font-size: 14px; color: var(--text-muted); margin-bottom: 12px; }
.dropzone-sub strong { color: var(--red); font-weight: 600; }

.dropzone-formats {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ── File Info ─────────────────────────────────────────────── */
#file-info {
  display: none;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  letter-spacing: 0.5px;
}
#file-info span { color: var(--red); font-weight: 500; }

/* ── Waveform ──────────────────────────────────────────────── */
#waveform-card { display: none; }

.waveform-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 10px;
}

#waveform-wrap {
  position: relative;
  height: 96px;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: crosshair;
  border: 1.5px solid var(--border);
  background: var(--bg);
  margin-bottom: 16px;
  user-select: none;
}

#waveform-canvas { display: block; width: 100%; height: 100%; }
#trim-overlay    { position: absolute; inset: 0; pointer-events: none; width: 100%; height: 100%; }

#trim-left-shade, #trim-right-shade {
  position: absolute; top: 0; height: 100%;
  background: rgba(26,23,20,0.18); pointer-events: none;
}

#trim-region {
  position: absolute; top: 0; height: 100%;
  border: 2px solid var(--red);
  pointer-events: none;
  border-radius: 2px;
}

.handle {
  position: absolute; top: 0; width: 18px; height: 100%;
  display: flex; align-items: center; justify-content: center;
  cursor: ew-resize; pointer-events: all; z-index: 10;
  background: var(--red);
}
#handle-left  { left: -9px;  border-radius: var(--radius) 0 0 var(--radius); }
#handle-right { right: -9px; border-radius: 0 var(--radius) var(--radius) 0; }

.handle-bar {
  width: 2px; height: 24px;
  background: rgba(255,255,255,0.65); border-radius: 1px;
}

#playhead {
  position: absolute; top: 0; width: 2px; height: 100%;
  background: var(--text); opacity: 0.5; pointer-events: none; display: none;
}

/* ── Timecodes ─────────────────────────────────────────────── */
.timecodes {
  display: flex; gap: 24px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 12px; color: var(--text-muted);
  margin-bottom: 16px; padding: 12px 16px;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-md);
  align-items: center;
}
.tc-label  { color: var(--text-faint); margin-right: 4px; }
.tc-value  { color: var(--text); font-weight: 500; }
.tc-value.region { color: var(--red); }

/* ── Controls / Buttons ────────────────────────────────────── */
.controls { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

button {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 10px 18px;
  border: 1.5px solid var(--border);
  background: var(--surface); color: var(--text-muted);
  cursor: pointer; border-radius: var(--radius-md);
  transition: all var(--transition);
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
}
button:hover { border-color: var(--red); color: var(--red); background: var(--red-light); }
button:disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }
button.primary { background: var(--red); color: #000; border-color: var(--red); font-weight: 700; }
button.primary:hover { background: var(--red-dark); border-color: var(--red-dark); color: #000; }
button.active { border-color: var(--red-dark); color: var(--red-dark); background: var(--red-light); }

/* ── Format Selector ───────────────────────────────────────── */
.format-selector {
  display: flex; gap: 0; flex-wrap: wrap;
  margin-top: 24px; padding-top: 24px;
  border-top: 1px solid var(--border); align-items: center;
}

.fmt-label {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 2px; color: var(--text-faint);
  text-transform: uppercase; font-weight: 500; margin-right: 14px;
}

.fmt-btn {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 1px; padding: 9px 18px;
  border: 1.5px solid var(--border); border-right: none;
  background: var(--surface); color: var(--text-muted);
  cursor: pointer; transition: all var(--transition); text-transform: uppercase; border-radius: 0;
}
.fmt-btn:first-of-type { border-radius: var(--radius-md) 0 0 var(--radius-md); }
.fmt-btn:last-of-type  { border-right: 1.5px solid var(--border); border-radius: 0 var(--radius-md) var(--radius-md) 0; }
.fmt-btn:hover    { background: var(--red-light); color: var(--red); border-color: var(--red-mid); }
.fmt-btn.selected { background: var(--red); color: #000; border-color: var(--red); z-index: 1; position: relative; font-weight: 700; }

.fmt-note {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--text-faint); margin-top: 12px;
  letter-spacing: 0.3px; width: 100%;
}

/* ── Export Progress ───────────────────────────────────────── */
#export-progress {
  display: none; margin-top: 20px; padding: 16px;
  background: var(--bg); border-radius: var(--radius-md); border: 1px solid var(--border);
}
#export-status {
  font-family: var(--font-mono); font-size: 12px; color: var(--text-muted);
  font-weight: 500; margin-bottom: 10px; letter-spacing: 0.5px; text-transform: uppercase; display: block;
}
.progress-bar-wrap { height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; }
.progress-bar-fill { height: 100%; background: var(--red); width: 0%; transition: width 0.3s; border-radius: 2px; }

/* ── How It Works ──────────────────────────────────────────── */
.how-it-works {
  width: 100%;
  max-width: var(--max-w);
  padding: 56px 24px 40px;
  border-top: 1.5px solid var(--border);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 400;
  font-style: normal;
  letter-spacing: 4px;
  text-align: left;
  margin-bottom: 36px;
  color: var(--text);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.step-card {
  background: var(--surface); padding: 28px 24px;
  transition: background var(--transition);
  border-right: 1.5px solid var(--border);
}
.step-card:last-child { border-right: none; }
.step-card:hover      { background: var(--red-light); }

.step-icon {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  color: var(--red); letter-spacing: 2px; margin-bottom: 16px; display: block;
}
.step-card h3 {
  font-family: var(--font-display); font-size: 26px; font-weight: 400;
  letter-spacing: 3px;
  color: var(--text); margin-bottom: 10px;
}
.step-card p { font-size: 13px; color: var(--text-muted); line-height: 1.65; }

/* ── Features Section ──────────────────────────────────────── */
.features-section { width: 100%; max-width: var(--max-w); padding: 40px 24px 60px; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5px;
  background: var(--border);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.feature-card { background: var(--surface); padding: 28px; transition: background var(--transition); }
.feature-card:hover { background: var(--red-light); }

.feature-icon { display: block; margin-bottom: 14px; color: var(--red); }

.feature-card h3 {
  font-family: var(--font-display); font-size: 22px; font-weight: 400;
  letter-spacing: 3px;
  color: var(--text); margin-bottom: 8px;
}
.feature-card p { font-size: 13px; color: var(--text-muted); line-height: 1.65; }

/* ── Footer ────────────────────────────────────────────────── */
.site-footer {
  width: 100%; max-width: var(--max-w);
  margin: 0 auto; padding: 32px 24px 24px;
  border-top: 1.5px solid var(--border);
}

.footer-top {
  display: grid; grid-template-columns: 1fr auto;
  gap: 40px; margin-bottom: 24px; align-items: start;
}

.footer-logo {
  font-family: var(--font-mono); font-size: 14px; font-weight: 500;
  letter-spacing: 3px; color: var(--red); margin-bottom: 10px; text-transform: uppercase;
}
.footer-desc {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--text-faint); line-height: 1.7; max-width: 360px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; text-align: right; }
.footer-links a {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 1px;
  color: var(--text-faint); text-transform: uppercase; transition: color var(--transition);
}
.footer-links a:hover { color: var(--red); }

.footer-bottom {
  font-family: var(--font-mono); font-size: 11px; color: var(--text-faint);
  letter-spacing: 0.5px; padding-top: 20px; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}
.footer-bottom a { color: var(--red); }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .site-header { padding: 0 16px; height: 56px; }
  main { padding: 0 16px 40px; }
  .card { padding: 24px 20px; }
  .hero-section { padding: 40px 0 32px; }
  .footer-top { grid-template-columns: 1fr; gap: 24px; }
  .footer-links { text-align: left; }
  .footer-bottom { flex-direction: column; gap: 6px; text-align: center; }
  .steps-grid { grid-template-columns: 1fr; }
  .step-card { border-right: none; border-bottom: 1.5px solid var(--border); }
  .step-card:last-child { border-bottom: none; }
  .features-grid { grid-template-columns: 1fr; }
  .timecodes { gap: 12px; }
  .how-it-works, .features-section { padding-left: 16px; padding-right: 16px; }
}

/* ── Accessibility ─────────────────────────────────────────── */
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ── Scrollbar & Selection ─────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-dark); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--red); }
::selection { background: var(--red); color: #fff; }

/* ── Content Pages ─────────────────────────────────────────── */
.page-hero { padding: 48px 0 28px; border-bottom: 1.5px solid var(--border); margin-bottom: 36px; }
.page-hero h1 { font-family: var(--font-display); font-size: clamp(32px,5vw,52px); font-weight: 300; font-style: italic; color: var(--text); margin-bottom: 8px; }
.page-hero .meta { font-family: var(--font-mono); font-size: 10px; color: var(--text-faint); letter-spacing: 2px; text-transform: uppercase; }

.prose { max-width: 720px; }
.prose h2 { font-family: var(--font-display); font-size: 22px; font-weight: 400; color: var(--text); margin: 32px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.prose h3 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--red); margin: 20px 0 8px; }
.prose p  { font-size: 14px; color: var(--text-muted); line-height: 1.85; margin-bottom: 14px; }
.prose ul { padding-left: 20px; margin-bottom: 14px; }
.prose ul li { font-size: 14px; color: var(--text-muted); line-height: 1.85; margin-bottom: 6px; }
.prose a  { color: var(--red); }
.prose a:hover { text-decoration: underline; }
.prose strong { color: var(--text); }

.highlight-box {
  background: var(--red-light); border: 1.5px solid var(--red-mid);
  border-left: 3px solid var(--red); border-radius: var(--radius-md);
  padding: 14px 16px; margin: 18px 0;
}
.highlight-box p { margin: 0; font-size: 13px; color: var(--text-muted); }

/* ── Contact Form ──────────────────────────────────────────── */
.contact-form { max-width: 540px; margin-top: 8px; }
.form-row { margin-bottom: 20px; display: flex; flex-direction: column; gap: 8px; }
.form-row label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-faint); font-weight: 500; }
.form-row input,
.form-row textarea,
.form-row select {
  width: 100%; background: var(--bg); border: 1.5px solid var(--border);
  border-radius: var(--radius-md); color: var(--text); font-family: var(--font-body);
  font-size: 14px; padding: 11px 14px; transition: border-color var(--transition);
  outline: none; appearance: none; display: block;
}
.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus { border-color: var(--red); background: var(--surface); }
.form-row textarea { resize: vertical; min-height: 140px; line-height: 1.6; }

.form-success {
  display: none; background: var(--red-light); border: 1.5px solid var(--red-mid);
  border-radius: var(--radius-md); padding: 14px 16px;
  font-family: var(--font-mono); font-size: 12px; color: var(--red);
  letter-spacing: 1px; margin-top: 14px;
}
