/* ===================================
   AssetFrame — Theme CSS
   =================================== */

:root {
  --bg: #0B0E14;
  --bg-2: #111520;
  --bg-3: #161B26;
  --accent: #FF9500;
  --accent-dim: rgba(255, 149, 0, 0.15);
  --accent-glow: rgba(255, 149, 0, 0.08);
  --text-primary: #F2F0EC;
  --text-secondary: #7A8394;
  --text-dim: #4A5263;
  --green: #22c55e;
  --amber: #f59e0b;
  --border: rgba(255,255,255,0.06);
  --border-accent: rgba(255,149,0,0.25);
  --radius: 10px;
  --radius-lg: 16px;
}

/* ---- Reset & Base ---- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: 'DM Sans', system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Syne', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
svg { display: block; }

/* ---- Navbar ---- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 14, 20, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-name {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}
.navbar-tagline {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 300;
}

/* ---- Hero ---- */
.hero {
  padding: 80px 32px 64px;
  max-width: 1200px;
  margin: 0 auto;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 64px;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}
.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.hero-headline {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--text-primary);
}
.hero-lede {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 480px;
}

/* ---- Browser Window ---- */
.browser-window {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,149,0,0.05);
}
.browser-bar {
  background: var(--bg-3);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}
.browser-dots {
  display: flex;
  gap: 6px;
}
.browser-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-dim);
}
.browser-dots span:nth-child(1) { background: #FF5F57; }
.browser-dots span:nth-child(2) { background: #FFBD2E; }
.browser-dots span:nth-child(3) { background: #28CA41; }
.browser-url {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-family: 'DM Mono', monospace;
  background: var(--bg);
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid var(--border);
}
.browser-body { padding: 16px; }

.banner-grid-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
  font-weight: 500;
}
.banner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 8px;
  margin-bottom: 12px;
}
.banner-thumb {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  overflow: hidden;
}
.th-lg { min-height: 60px; }
.th-md { min-height: 80px; }
.th-sk { min-height: 100px; }
.th-mob { min-height: 40px; }
.th-hp { min-height: 120px; }
.th-bb { min-height: 60px; }

.bt-label {
  font-size: 0.6rem;
  color: var(--text-dim);
  font-family: 'DM Mono', monospace;
  position: absolute;
  top: 4px;
  right: 5px;
}
.bt-bar {
  height: 8px;
  background: var(--accent);
  border-radius: 2px;
  width: 60%;
  opacity: 0.7;
}
.bt-logo {
  width: 16px;
  height: 16px;
  background: var(--text-secondary);
  border-radius: 2px;
  opacity: 0.5;
}
.bt-cta {
  height: 6px;
  background: var(--text-primary);
  border-radius: 2px;
  width: 40%;
  opacity: 0.3;
}
.bt-legal {
  height: 4px;
  background: var(--text-dim);
  border-radius: 2px;
  width: 70%;
  opacity: 0.2;
  font-size: 0.5rem;
}

.compliance-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--green);
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34,197,94,0.2);
  border-radius: 20px;
  padding: 5px 10px;
  width: fit-content;
}

/* ---- Stats ---- */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  border-top: 1px solid var(--border);
  padding-top: 40px;
}
.stat {
  flex: 1;
  text-align: center;
}
.stat-value {
  font-family: 'Syne', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  display: block;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 0.78rem;
  color: var(--text-secondary);
}
.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
}

/* ---- Manifesto ---- */
.manifesto {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 50%, var(--bg) 100%);
  padding: 64px 32px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.manifesto-inner { max-width: 800px; margin: 0 auto; text-align: center; }
.manifesto-quote {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.7;
}
.manifesto-answer {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--accent);
}

/* ---- Section Shared ---- */
.section-header {
  margin-bottom: 48px;
}
.section-num {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  font-family: 'DM Mono', monospace;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 14px;
  max-width: 560px;
}
.section-sub {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 540px;
}

/* ---- Asset Library ---- */
.asset-library {
  padding: 80px 32px;
  max-width: 1200px;
  margin: 0 auto;
}
.folder-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.folder-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color 0.2s, background 0.2s;
}
.folder-card:hover {
  border-color: var(--border-accent);
  background: var(--bg-3);
}
.folder-icon {
  margin-bottom: 12px;
  opacity: 0.8;
}
.folder-name {
  font-family: 'Syne', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-primary);
}
.folder-count {
  font-size: 0.75rem;
  color: var(--text-dim);
}
.folder-add {
  border: 1px dashed var(--text-dim);
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  cursor: pointer;
}
.folder-add:hover { border-color: var(--border-accent); }
.add-icon {
  font-size: 1.5rem;
  color: var(--text-dim);
  margin-bottom: 8px;
  font-weight: 300;
}

/* ---- Compliance ---- */
.compliance {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 32px;
}
.compliance-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.compliance-list {
  list-style: none;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.compliance-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.check-icon {
  flex-shrink: 0;
  margin-top: 2px;
  display: flex;
}

/* ---- Compliance Panel ---- */
.compliance-panel {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 40px;
}
.panel-header {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}
.rule-list {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rule-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  padding: 8px 10px;
  border-radius: 6px;
}
.rule-pass { background: rgba(34,197,94,0.05); color: var(--text-secondary); }
.rule-warn { background: rgba(245,158,11,0.05); color: var(--text-secondary); }
.panel-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--green);
  font-weight: 500;
  background: rgba(34,197,94,0.05);
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2s ease-in-out infinite;
}

/* ---- Output ---- */
.output-section {
  padding: 80px 32px;
  max-width: 1200px;
  margin: 0 auto;
}
.sizes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.size-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.2s;
}
.size-card:hover { border-color: var(--border-accent); }
.size-visual {
  border-radius: 6px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.sv-lg  { height: 40px; }
.sv-md  { height: 80px; }
.sv-sk  { height: 120px; }
.sv-mob { height: 24px; }
.sv-hp  { height: 120px; }
.sv-bb  { height: 40px; }

.sv-lg::after, .sv-md::after, .sv-sk::after,
.sv-hp::after, .sv-bb::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 6px;
  height: 6px;
  width: 30%;
  background: var(--accent);
  border-radius: 2px;
  opacity: 0.6;
}
.sv-mob::after {
  content: '';
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  height: 6px;
  width: 25%;
  background: var(--text-primary);
  border-radius: 2px;
  opacity: 0.4;
}
.size-dim {
  font-family: 'DM Mono', monospace;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
}
.size-name {
  font-size: 0.8rem;
  color: var(--text-dim);
}
.size-info { display: flex; flex-direction: column; gap: 2px; }

.export-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px 24px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.export-label {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 500;
}
.export-items {
  display: flex;
  gap: 8px;
  flex: 1;
}
.export-tag {
  font-size: 0.72rem;
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 4px 10px;
  border-radius: 20px;
}
.export-cta {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* ---- Closing ---- */
.closing {
  padding: 100px 32px 80px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}
.closing-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 1px solid var(--border-accent);
  background: var(--accent-dim);
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 28px;
}
.closing-headline {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.1;
}
.closing-sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto 56px;
  line-height: 1.7;
}
.closing-creds {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-align: left;
}
.cred-item {
  background: var(--bg-2);
  padding: 28px 24px;
}
.cred-value {
  font-family: 'Syne', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-primary);
}
.cred-label {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.5;
}

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 32px;
  text-align: center;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 10px;
}
.footer-tagline {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 12px;
}
.footer-copy {
  font-size: 0.72rem;
  color: var(--text-dim);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-text { order: 1; }
  .hero-visual { order: 2; }
  .hero-stats { flex-direction: column; gap: 20px; }
  .stat-divider { width: 40px; height: 1px; }
  .folder-grid { grid-template-columns: repeat(2, 1fr); }
  .compliance-inner { grid-template-columns: 1fr; }
  .sizes-grid { grid-template-columns: repeat(2, 1fr); }
  .closing-creds { grid-template-columns: 1fr; }
  .export-row { flex-direction: column; align-items: flex-start; }
  .navbar-tagline { display: none; }
}
@media (max-width: 480px) {
  .folder-grid { grid-template-columns: 1fr; }
  .sizes-grid { grid-template-columns: 1fr; }
}