/* ============================================
   Asset Studio Landing — Dark / Light + Bento
   ============================================ */

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

:root {
  --font-body: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Dark theme (default) */
  --bg: #0a0a0b;
  --bg-card: #141416;
  --bg-card-hover: #1a1a1e;
  --bg-elevated: #1e1e22;
  --border: #252529;
  --border-light: #1e1e22;

  --text: #f0f0f2;
  --text-secondary: #9a9aa0;
  --text-muted: #5a5a62;

  --accent: #6366f1;
  --accent-hover: #818cf8;
  --accent-glow: rgba(99, 102, 241, 0.15);
  --accent-subtle: rgba(99, 102, 241, 0.08);

  --green: #34d399;
  --green-subtle: rgba(52, 211, 153, 0.1);

  --nav-bg: rgba(10, 10, 11, 0.8);
  --nav-bg-mobile: rgba(10, 10, 11, 0.97);
  --cta-bg: #0a0a0b;
  --hero-gradient-from: #fff;
  --hero-gradient-to: #9a9aa0;
  --logo-invert: 1;

  --radius: 12px;
  --radius-lg: 20px;
  --max-w: 1100px;
}

/* Light theme — muted blue-gray to match the app */
[data-theme="light"] {
  --bg: hsl(210, 30%, 92.5%);
  --bg-card: hsl(210, 30%, 97%);
  --bg-card-hover: hsl(210, 28%, 93%);
  --bg-elevated: hsl(210, 25%, 90%);
  --border: hsl(214, 22%, 74%);
  --border-light: hsl(210, 22%, 85%);

  --text: hsl(222, 30%, 14%);
  --text-secondary: hsl(222, 12%, 40%);
  --text-muted: hsl(220, 10%, 55%);

  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --accent-glow: rgba(79, 70, 229, 0.12);
  --accent-subtle: rgba(79, 70, 229, 0.07);

  --green: #059669;
  --green-subtle: rgba(5, 150, 105, 0.08);

  --nav-bg: hsla(210, 30%, 92.5%, 0.85);
  --nav-bg-mobile: hsla(210, 30%, 92.5%, 0.97);
  --cta-bg: hsl(222, 30%, 14%);
  --hero-gradient-from: hsl(222, 30%, 14%);
  --hero-gradient-to: hsl(222, 12%, 40%);
  --logo-invert: 0;
}

html { scroll-behavior: smooth; }
html.theme-transition,
html.theme-transition *,
html.theme-transition *::before,
html.theme-transition *::after {
  transition: background 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s !important;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Nav --- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.nav.scrolled { border-bottom-color: var(--border); }
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.nav-brand img { height: 26px; }
.nav-brand span {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding-left: 0.6rem;
  border-left: 1px solid var(--border);
}
.nav-links {
  display: flex;
  gap: 2rem;
}
.nav-links a {
  font-size: 0.825rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 0.75rem; }

/* Theme toggle */
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: color 0.15s, border-color 0.15s;
}
.theme-toggle:hover { color: var(--text); border-color: var(--text-muted); }
.theme-toggle .icon-sun,
.theme-toggle .icon-moon { width: 16px; height: 16px; }
.theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* Logo inversion for light theme */
.nav-brand img,
.hero-logo,
.footer-brand img { filter: invert(var(--logo-invert)); transition: filter 0.2s; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn .arrow { transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(3px); }

.btn-sm { font-size: 0.8rem; padding: 0.45rem 1rem; }
.btn-lg { font-size: 0.95rem; padding: 0.75rem 1.6rem; }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 24px var(--accent-glow);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--text-muted); }
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 0.75rem 0.5rem;
}
.btn-ghost:hover { color: var(--text); }

/* --- Hero --- */
.hero {
  padding: 10rem 0 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}
.hero-logo {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.5rem;
  opacity: 0.9;
  cursor: pointer;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.hero-logo:hover {
  transform: rotate(180deg);
}
.hero-title {
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  background: linear-gradient(180deg, var(--hero-gradient-from) 30%, var(--hero-gradient-to) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto 2.25rem;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

/* --- Hero media --- */
.hero-media {
  margin-top: 4rem;
  position: relative;
}
.hero-media .media-placeholder {
  max-width: 960px;
  margin: 0 auto;
}

/* --- Media Placeholders --- */
.media-placeholder {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.placeholder-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 3.5rem 2rem;
  color: var(--text-muted);
}
.placeholder-inner span { font-size: 0.8rem; font-weight: 500; }
.placeholder-inner .placeholder-size { font-size: 0.7rem; opacity: 0.6; }

/* --- Audience Marquee --- */
.marquee-section {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  overflow: hidden;
}
.marquee-label {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}
.marquee-track {
  display: flex;
  gap: 0.6rem;
  animation: marquee 40s linear infinite;
  width: max-content;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-tag {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 0.4rem 0.85rem;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- Section base --- */
.section { padding: 5rem 0; }
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.section-title {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
}
.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.65;
}

/* --- Bento Grid (Features) --- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}
.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: border-color 0.2s, background 0.2s;
  display: flex;
  flex-direction: column;
}
.bento-card:hover {
  border-color: var(--text-muted);
  background: var(--bg-card-hover);
}
.bento-card.span-4 { grid-column: span 4; }
.bento-card.span-3 { grid-column: span 3; }
.bento-card.span-2 { grid-column: span 2; }
.bento-card.span-6 { grid-column: span 6; }

.bento-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}
.bento-icon.purple { background: var(--accent-subtle); color: var(--accent); }
.bento-icon.green { background: var(--green-subtle); color: var(--green); }
.bento-icon.amber { background: rgba(251, 191, 36, 0.1); color: #fbbf24; }
.bento-icon.rose { background: rgba(244, 63, 94, 0.1); color: #f43f5e; }

.bento-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.bento-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
  flex-grow: 1;
}
.bento-card .feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}
.feature-tag {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-elevated);
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
}
.bento-card .media-placeholder {
  margin-top: 1.25rem;
  flex-grow: 1;
}
.bento-card .placeholder-inner { padding: 2.5rem 1.5rem; }

/* --- How It Works --- */
.how-section { border-top: 1px solid var(--border-light); }
.flow {
  display: flex;
  align-items: stretch;
  gap: 0;
  position: relative;
}
.flow::before {
  content: "";
  position: absolute;
  top: 36px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}
.flow-step {
  flex: 1;
  text-align: center;
  padding: 0 1.5rem;
  position: relative;
}
.flow-num {
  width: 36px;
  height: 36px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.flow-step h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.flow-step p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.flow-media { margin-top: 3rem; }

/* --- Style Gallery --- */
.style-section { border-top: 1px solid var(--border-light); }
.style-scroll-outer {
  overflow: hidden;
  margin: 0 -1.5rem;
  padding: 0 1.5rem;
}
.style-scroll {
  display: flex;
  gap: 0.5rem;
  animation: marquee 50s linear infinite;
  width: max-content;
}
.style-scroll:hover { animation-play-state: paused; }
.style-chip {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: default;
  transition: border-color 0.15s, color 0.15s;
}
.style-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.style-gallery-media {
  margin-top: 2.5rem;
}

/* --- Pricing --- */
.pricing-section { border-top: 1px solid var(--border-light); }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  max-width: 960px;
  margin: 0 auto;
}
.pricing-annual-note {
  text-align: center;
  font-size: 0.825rem;
  color: var(--text-muted);
  margin-top: 1.25rem;
}
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  position: relative;
  display: flex;
  flex-direction: column;
}
.pricing-card .btn-block {
  margin-top: auto;
}
.pricing-featured {
  border-color: var(--accent);
  box-shadow: 0 0 40px var(--accent-glow);
}
.pricing-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  background: var(--accent);
  padding: 0.25rem 0.8rem;
  border-radius: 20px;
}
.pricing-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.pricing-price {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.pricing-price span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}
.pricing-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}
.pricing-list {
  list-style: none;
  margin-bottom: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.pricing-list li {
  font-size: 0.825rem;
  color: var(--text-secondary);
  padding-left: 1.4rem;
  position: relative;
}
.pricing-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
  font-size: 0.8rem;
}
.pricing-list li.pricing-inherit {
  padding-left: 0;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-light);
}
.pricing-list li.pricing-inherit::before {
  content: none;
}

/* --- Use Cases --- */
.use-cases-section { border-top: 1px solid var(--border-light); }
.use-case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.use-case-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.2s, background 0.2s;
}
.use-case-card:hover {
  border-color: var(--text-muted);
  background: var(--bg-card-hover);
}
.use-case-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-subtle);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
}
.use-case-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.use-case-card p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- FAQ --- */
.faq-section { border-top: 1px solid var(--border-light); }
.faq-list { max-width: 700px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-item summary {
  padding: 1.15rem 0;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--text-muted);
  flex-shrink: 0;
  margin-left: 1rem;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p {
  padding-bottom: 1.15rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- CTA --- */
.cta-section {
  background: var(--cta-bg);
  color: #f0f0f2;
  border-top: 1px solid var(--border-light);
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section .section-title { color: #f0f0f2; }
.cta-section .section-subtitle { color: rgba(240,240,242,0.7); }
.cta-section .btn-primary { background: #6366f1; color: #fff; }
.cta-section .btn-primary:hover { background: #818cf8; }
.cta-section::before {
  content: "";
  position: absolute;
  bottom: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 350px;
  background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 1.5rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 3rem;
  margin-bottom: 2rem;
}
.footer-brand p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.6rem;
}
.footer-links {
  display: flex;
  gap: 3.5rem;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.footer-col h4 {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}
.footer-col a {
  font-size: 0.82rem;
  color: var(--text-secondary);
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: 1.25rem;
}
.footer-bottom p {
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.footer-disclaimer { margin-top: 0.4rem; opacity: 0.7; }

/* --- Responsive --- */
@media (max-width: 900px) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento-card.span-4,
  .bento-card.span-3 { grid-column: span 2; }
  .bento-card.span-6 { grid-column: span 2; }

  .use-case-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr 1fr; max-width: 480px; }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0; right: 0;
    background: var(--nav-bg-mobile);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 0.75rem 1.5rem 1.25rem;
    gap: 0;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.65rem 0; }
  .nav-toggle { display: flex; }
  .nav-actions > a.btn { display: none; }

  .hero { padding: 7rem 0 2rem; }
  .hero-title { font-size: 2.2rem; }
  .hero-actions { flex-direction: column; align-items: center; }

  .bento { grid-template-columns: 1fr; }
  .bento-card.span-4,
  .bento-card.span-3,
  .bento-card.span-2,
  .bento-card.span-6 { grid-column: span 1; }

  .flow { flex-direction: column; gap: 2rem; }
  .flow::before { display: none; }
  .flow-step { padding: 0; }

  .use-case-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 340px; }
  .footer-inner { flex-direction: column; gap: 1.5rem; }
  .footer-links { gap: 2rem; }
}
