/* =============================================
   SOLO — Portrait Isolation Tool
   Palette: #F5F5F5 / #76ABAE / #303841 / #FF5722
   Fonts: Syne (display) + Inter (body)
   ============================================= */

:root {
  --bg:          #F5F5F5;
  --bg-alt:      #EBEBEB;
  --surface:     #FFFFFF;
  --border:      #DCDCDC;
  --text:        #303841;
  --text-muted:  #6B7280;
  --teal:        #76ABAE;
  --teal-dark:   #5A8F92;
  --teal-light:  #9ECACD;
  --orange:      #FF5722;
  --orange-dark: #E64A19;
  --radius:      12px;
  --radius-sm:   8px;
  --shadow:      0 2px 16px rgba(48,56,65,0.08);
  --shadow-md:   0 4px 32px rgba(48,56,65,0.12);
  --transition:  0.22s cubic-bezier(0.4,0,0.2,1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  min-height: 100vh;
}

/* ---- TOP NAV ---- */
.topnav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 56px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

/* ---- LOGO ---- */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}

.nav-logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 3px rgba(118,171,174,0.35));
  transition: filter var(--transition);
}
.nav-logo:hover .nav-logo-mark {
  filter: drop-shadow(0 2px 8px rgba(118,171,174,0.55));
}

.nav-logo-text {
  font-family: 'Syne', sans-serif;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  transition: color var(--transition);
}
.nav-logo:hover .nav-logo-text { color: var(--teal-dark); }

/* ---- RUNTIMEHUB BUTTON ---- */
.nav-hub-btn {
  text-decoration: none;
  border-radius: 999px;
  padding: 1px;
  background: linear-gradient(135deg, var(--teal) 0%, var(--orange) 100%);
  transition: box-shadow var(--transition), transform var(--transition);
  box-shadow: 0 2px 12px rgba(118,171,174,0.2);
}
.nav-hub-btn:hover {
  box-shadow: 0 4px 20px rgba(118,171,174,0.38);
  transform: translateY(-1px);
}

.nav-hub-btn-inner {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px 7px 10px;
  background: var(--bg);
  border-radius: 999px;
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text);
  transition: background var(--transition), color var(--transition);
}
.nav-hub-btn:hover .nav-hub-btn-inner {
  background: rgba(245,245,245,0.92);
  color: var(--teal-dark);
}

.nav-hub-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--orange));
  flex-shrink: 0;
}

.nav-hub-arrow {
  color: var(--teal);
  transition: transform var(--transition), color var(--transition);
}
.nav-hub-btn:hover .nav-hub-arrow {
  color: var(--orange);
  transform: translate(1px, -1px);
}

/* ---- HERO ---- */
.hero {
  padding: 72px 32px 60px;
  text-align: center;
}

.hero-eyebrow {
  font-family: 'Syne', sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--teal);
  margin-bottom: 24px;
}

.hero-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 8px;
}

.hero-accent {
  color: var(--teal);
  position: relative;
  display: inline-block;
}
.hero-accent::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 0; right: 0;
  height: 4px;
  background: var(--orange);
  border-radius: 2px;
}

.hero-sub {
  max-width: 560px;
  margin: 20px auto 48px;
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ---- WORKSPACE ---- */
.workspace {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* STATUS PILL */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
  transition: background var(--transition);
}

.status-pill.loading .status-dot {
  background: var(--orange);
  animation: pulse 1.2s ease-in-out infinite;
}
.status-pill.ready .status-dot {
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(118, 171, 174, 0.25);
  animation: none;
}
.status-pill.processing .status-dot {
  background: var(--orange);
  animation: pulse 0.8s ease-in-out infinite;
}
.status-pill.ready { border-color: var(--teal); color: var(--teal-dark); }

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* DROP ZONE */
.dropzone {
  width: 100%;
  background: var(--surface);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  overflow: hidden;
}
.dropzone:hover,
.dropzone.drag-over {
  border-color: var(--teal);
  background: rgba(118, 171, 174, 0.04);
  box-shadow: 0 0 0 4px rgba(118, 171, 174, 0.1);
}

.dropzone-inner {
  padding: 64px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  pointer-events: none;
}

.dropzone-icon {
  width: 72px; height: 72px;
  border-radius: var(--radius);
  background: var(--bg-alt);
  display: flex; align-items: center; justify-content: center;
  color: var(--teal);
  margin-bottom: 4px;
  transition: all var(--transition);
}
.dropzone:hover .dropzone-icon { background: rgba(118,171,174,0.15); }

.dropzone-label {
  font-family: 'Syne', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.dropzone-sub {
  font-size: 13px;
  color: var(--text-muted);
}

/* PROGRESS BAR */
.progress-wrap {
  width: 100%;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--orange));
  border-radius: 2px;
  width: 0%;
  transition: width 0.4s ease;
}

/* UPLOAD CARD */
.upload-card {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* PREVIEW STATE inside upload card */
.preview-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 20px;
}

/* RESULT CARD */
.result-card {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 20px 0;
  animation: fadeUp 0.35s ease;
}

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

.result-actions {
  width: 100%;
  padding: 16px 0 20px;
  display: flex;
  gap: 10px;
}

.canvas-label {
  font-family: 'Syne', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

/* canvas-wrap: full width box */
.canvas-wrap {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-alt);
}

.canvas-wrap--checker {
  background-image:
    linear-gradient(45deg, #d0d0d0 25%, transparent 25%),
    linear-gradient(-45deg, #d0d0d0 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #d0d0d0 75%),
    linear-gradient(-45deg, transparent 75%, #d0d0d0 75%);
  background-size: 14px 14px;
  background-position: 0 0, 0 7px, 7px -7px, -7px 0px;
  background-color: #e8e8e8;
}

.canvas-wrap canvas {
  max-width: 100%;
  display: block;
}

/* Spinner overlay while AI is running */
.canvas-processing {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(232,232,232,0.65);
  backdrop-filter: blur(3px);
  border-radius: var(--radius-sm);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.canvas-processing.visible { opacity: 1; }

.spinner-ring {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 3px solid rgba(118,171,174,0.25);
  border-top-color: var(--teal);
  animation: spin 0.75s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- BUTTONS ---- */
.btn-primary {
  flex: 1;
  padding: 13px 20px;
  background: var(--teal);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition);
}
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(118,171,174,0.35); }

.btn-secondary {
  padding: 13px 20px;
  background: none;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-secondary:hover { border-color: var(--text); color: var(--text); }


/* ---- SECTIONS ---- */
.section {
  padding: 88px 32px;
}
.section-alt {
  background: var(--bg-alt);
}

.container {
  max-width: 1040px;
  margin: 0 auto;
}
.container-narrow {
  max-width: 720px;
  margin: 0 auto;
}

.section-eyebrow {
  font-family: 'Syne', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--teal);
  margin-bottom: 16px;
}

.section-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 20px;
}

.section-intro {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: 52px;
  line-height: 1.7;
}

/* ---- CARDS GRID ---- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all var(--transition);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--teal-light);
}

.card-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.card-icon.teal { background: rgba(118,171,174,0.15); color: var(--teal-dark); }
.card-icon.orange { background: rgba(255,87,34,0.1); color: var(--orange); }

.card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}
.card p { font-size: 14px; color: var(--text-muted); line-height: 1.65; }

/* ---- USE CASES LIST ---- */
.use-cases-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.use-case-item {
  display: flex;
  gap: 32px;
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
  transition: all var(--transition);
}
.use-case-item:first-child { border-top: 1px solid var(--border); }
.use-case-item:hover { padding-left: 8px; }

.use-case-num {
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: var(--teal);
  letter-spacing: 0.06em;
  flex-shrink: 0;
  padding-top: 3px;
  width: 28px;
}

.use-case-body h3 {
  font-family: 'Syne', sans-serif;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}
.use-case-body p { font-size: 15px; color: var(--text-muted); line-height: 1.7; }

/* ---- FAQ ---- */
.faq-list { display: flex; flex-direction: column; gap: 4px; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface);
  transition: border-color var(--transition);
}
.faq-item[open] { border-color: var(--teal); }

.faq-q {
  padding: 20px 24px;
  cursor: pointer;
  font-family: 'Syne', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  transition: color var(--transition);
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
  content: '+';
  font-size: 20px;
  font-weight: 300;
  color: var(--teal);
  flex-shrink: 0;
  margin-left: 16px;
  transition: transform var(--transition);
}
.faq-item[open] .faq-q::after { transform: rotate(45deg); }
.faq-item[open] .faq-q { color: var(--teal-dark); }

.faq-a {
  padding: 0 24px 20px;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

/* ---- FOOTER ---- */
.footer {
  background: var(--text);
  color: rgba(255,255,255,0.7);
  padding: 64px 32px 0;
  margin-top: 0;
}


.footer-inner {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
  font-family: 'Syne', sans-serif;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 12px;
}
.footer-brand p {
  font-size: 13px;
  line-height: 1.65;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
}
.footer-suite {
  font-family: 'Syne', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--teal);
}

.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col-title {
  font-family: 'Syne', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 4px;
}
.footer-col a {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--teal); }

.footer-bottom {
  max-width: 1040px;
  margin: 0 auto;
  padding: 20px 0;
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}
.footer-bottom a { color: rgba(255,255,255,0.45); text-decoration: none; }
.footer-bottom a:hover { color: var(--teal); }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .topnav { padding: 0 16px; }
  .hero { padding: 40px 16px 32px; }
  .hero-sub { font-size: 15px; }
  .section { padding: 56px 16px; }
  .workspace { padding: 0 16px; }
  .cards-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .use-case-item { gap: 20px; }
  .result-actions { flex-direction: column; }
}

@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
  .dropzone-inner { padding: 48px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
