/* ============================================
   MACHAON AI — STYLESHEET
   Theme: Dark Studio / Amber Gold
   Fonts: Cormorant (display) + Figtree (body)
   ============================================ */

:root {
  --bg:        #0c0b0a;
  --surface:   #141210;
  --surface2:  #1c1a17;
  --border:    rgba(232, 178, 60, 0.15);
  --gold:      #e8b23c;
  --gold-dim:  rgba(232, 178, 60, 0.25);
  --gold-glow: rgba(232, 178, 60, 0.08);
  --text:      #f0ebe0;
  --text-muted:#9a9080;
  --text-dim:  #5a5448;
  --radius:    12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Figtree', sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.65;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; }
a { color: var(--text-muted); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }

/* ── GRAIN ── */
.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 26px;
  border-radius: 8px;
  font-family: 'Figtree', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn--gold {
  background: var(--gold);
  color: #0c0b0a;
}
.btn--gold:hover {
  background: #f0c050;
  box-shadow: 0 0 28px rgba(232, 178, 60, 0.4);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--gold);
}
.btn--outline:hover {
  background: var(--gold-dim);
}
.btn--outline:disabled {
  opacity: 0.4;
  cursor: default;
}

.btn--ghost {
  background: var(--surface2);
  color: var(--text-muted);
  border: 1.5px solid var(--border);
}
.btn--ghost:hover { border-color: var(--gold); color: var(--text); }

.btn--full { width: 100%; }

/* ── NAV ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 68px;
  background: rgba(12, 11, 10, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav__logo-text {
  font-family: 'Cormorant', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.01em;
}
.nav__logo-text em {
  font-style: italic;
  color: var(--gold);
}

.nav__links {
  display: flex;
  gap: 32px;
  font-size: 14px;
  font-weight: 500;
}

.nav__cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.free-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gold);
  background: var(--gold-glow);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 100px;
}

/* ── HERO ── */
.hero {
  padding: 80px 40px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(232, 178, 60, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero__tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--border);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
  animation: fadeUp 0.6s ease both;
}

.hero__title {
  font-family: 'Cormorant', serif;
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 20px;
  animation: fadeUp 0.6s 0.1s ease both;
}
.hero__title em {
  font-style: italic;
  color: var(--gold);
}

.hero__sub {
  max-width: 520px;
  margin: 0 auto 60px;
  color: var(--text-muted);
  font-size: 16px;
  animation: fadeUp 0.6s 0.2s ease both;
}

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

/* ── HERO WORKSPACE ── */
.hero__workspace {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 1080px;
  margin: 0 auto;
  animation: fadeUp 0.6s 0.3s ease both;
}

/* ── EXAMPLE PANEL ── */
.example-panel {
  text-align: left;
}

.panel-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 12px;
}

/* ── BEFORE/AFTER SLIDER ── */
.ba-container {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: ew-resize;
  user-select: none;
  background: var(--surface2);
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}

.ba-after, .ba-before {
  position: absolute;
  inset: 0;
}

.ba-after img, .ba-before img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba-before {
  /* Full size — clipping is done via clip-path in JS */
  clip-path: inset(0 50% 0 0);
}

.ba-badge {
  position: absolute;
  bottom: 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
}
.ba-badge--before {
  left: 14px;
  background: rgba(12,11,10,0.8);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.ba-badge--after {
  right: 14px;
  background: rgba(232, 178, 60, 0.15);
  color: var(--gold);
  border: 1px solid var(--border);
}

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.ba-handle__line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--gold);
  transform: translateX(-50%);
}
.ba-handle__circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(232, 178, 60, 0.5);
  z-index: 2;
}

.example-hint {
  text-align: center;
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 10px;
  letter-spacing: 0.05em;
}

/* ── UPLOAD PANEL ── */
.upload-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.runs-indicator {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.runs-indicator__text {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
}
.runs-indicator__text strong {
  color: var(--gold);
  font-weight: 600;
}
.runs-indicator__track {
  height: 4px;
  border-radius: 2px;
  background: var(--surface);
  overflow: hidden;
}
.runs-indicator__fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #c8922a, var(--gold));
  border-radius: 2px;
  transition: width 0.5s ease;
}

/* ── DROPZONE ── */
.dropzone {
  border: 1.5px dashed rgba(232, 178, 60, 0.35);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: all var(--transition);
  flex: 1;
  position: relative;
}

.dropzone:hover, .dropzone.drag-over {
  border-color: var(--gold);
  background: var(--gold-glow);
  box-shadow: 0 0 0 4px rgba(232, 178, 60, 0.06);
}

.dropzone__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  gap: 8px;
  text-align: center;
}

.dropzone__icon { margin-bottom: 8px; opacity: 0.7; }
.dropzone:hover .dropzone__icon { opacity: 1; }

.dropzone__title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
}
.dropzone__hint { font-size: 14px; color: var(--text-muted); }
.dropzone__browse {
  color: var(--gold);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.dropzone__formats {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 4px;
}

/* ── PROCESSING STATE ── */
.processing {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
}
.processing__preview {
  position: relative;
  aspect-ratio: 4/3;
}
.processing__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.processing__overlay {
  position: absolute;
  inset: 0;
  background: rgba(12,11,10,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}
.processing__spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.processing__label {
  padding: 14px 20px 8px;
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}
.processing__bar {
  height: 3px;
  background: var(--surface2);
  margin: 0 20px 20px;
  border-radius: 2px;
  overflow: hidden;
}
.processing__progress {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #c8922a, var(--gold));
  border-radius: 2px;
  transition: width 0.3s ease;
}

/* ── RESULT STATE ── */
.result img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.result__actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

/* ── UPLOAD FEATURES ── */
.upload-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.upload-feature {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.upload-feature__icon { color: var(--gold); font-size: 10px; }

.upload-privacy {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-dim);
  justify-content: center;
}

/* ── HOW IT WORKS ── */
.how {
  padding: 100px 40px;
  border-top: 1px solid var(--border);
}
.how__inner {
  max-width: 1080px;
  margin: 0 auto;
}
.steps {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.step {
  flex: 1;
  min-width: 180px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  position: relative;
  transition: border-color var(--transition), transform var(--transition);
}
.step:hover {
  border-color: rgba(232, 178, 60, 0.4);
  transform: translateY(-4px);
}
.step__num {
  font-family: 'Cormorant', serif;
  font-size: 42px;
  font-weight: 300;
  color: var(--gold-dim);
  line-height: 1;
  margin-bottom: 12px;
}
.step h3 {
  font-family: 'Cormorant', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.step p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
}
.step__arrow {
  font-size: 24px;
  color: var(--text-dim);
  flex-shrink: 0;
}

/* ── SECTION HELPERS ── */
.section-title {
  font-family: 'Cormorant', serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  color: var(--text);
  line-height: 1.15;
}
.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.section-sub {
  color: var(--text-muted);
  font-size: 16px;
  margin-top: 10px;
}

/* ── PRICING ── */
.pricing {
  padding: 100px 40px;
  border-top: 1px solid var(--border);
  position: relative;
}
.pricing::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(232, 178, 60, 0.05) 0%, transparent 70%);
  pointer-events: none;
}
.pricing__header {
  max-width: 1080px;
  margin: 0 auto 56px;
}
.pricing__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1080px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  transition: all var(--transition);
}
.pricing-card:hover {
  transform: translateY(-6px);
  border-color: rgba(232, 178, 60, 0.3);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.pricing-card--pro {
  border-color: rgba(232, 178, 60, 0.5);
  background: linear-gradient(160deg, rgba(232, 178, 60, 0.07) 0%, var(--surface) 60%);
  box-shadow: 0 0 0 1px rgba(232, 178, 60, 0.25), 0 20px 60px rgba(0,0,0,0.3);
}
.pricing-card__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: #0c0b0a;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 100px;
  white-space: nowrap;
}

.pricing-card__top { display: flex; flex-direction: column; gap: 8px; }
.pricing-card__name {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.pricing-card__price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.pricing-card__amount {
  font-family: 'Cormorant', serif;
  font-size: 52px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}
.pricing-card__period {
  font-size: 14px;
  color: var(--text-muted);
}

.pricing-card__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
  flex: 1;
}
.pricing-card__features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
}
.pricing-card__features li.muted { color: var(--text-dim); }
.pricing-card__features .check { color: var(--gold); font-size: 10px; flex-shrink: 0; }

.pricing__note {
  text-align: center;
  font-size: 13px;
  color: var(--text-dim);
  max-width: 1080px;
  margin: 32px auto 0;
}

/* ── FAQ ── */
.faq {
  padding: 100px 40px;
  border-top: 1px solid var(--border);
}
.faq__inner {
  max-width: 720px;
  margin: 0 auto;
}
.faq__inner .section-title { margin-bottom: 40px; }
.faq__list { display: flex; flex-direction: column; gap: 0; }

.faq__item {
  border-bottom: 1px solid var(--border);
}
.faq__q {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  text-align: left;
  gap: 16px;
  transition: color var(--transition);
}
.faq__q:hover { color: var(--gold); }
.faq__arrow {
  color: var(--gold);
  font-size: 18px;
  transition: transform var(--transition);
  flex-shrink: 0;
}
.faq__item.open .faq__arrow { transform: rotate(180deg); }

.faq__a {
  display: none;
  padding-bottom: 20px;
}
.faq__item.open .faq__a { display: block; }
.faq__a p { color: var(--text-muted); font-size: 14px; line-height: 1.7; }

/* ── FOOTER ── */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 40px;
}
.footer__inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Cormorant', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}
.footer__links {
  display: flex;
  gap: 24px;
  font-size: 13px;
}
.footer__copy {
  font-size: 12px;
  color: var(--text-dim);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero__workspace { grid-template-columns: 1fr; }
  .pricing__cards { grid-template-columns: 1fr; }
  .steps { flex-direction: column; align-items: stretch; }
  .step__arrow { display: none; }
  .nav__links { display: none; }
  .nav { padding: 0 20px; }
  .hero, .how, .pricing, .faq { padding-left: 20px; padding-right: 20px; }
  .footer { padding-left: 20px; padding-right: 20px; }
  .footer__inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .upload-features { grid-template-columns: 1fr; }
  .result__actions { flex-direction: column; }
}
