﻿:root {
  --bg: #ffffff;
  --panel: #ffffff;
  --panel-soft: #f6f6f7;
  --line: #e6e6e8;
  --text: #111111;
  --muted: #66666e;
  --black: #0f0f12;
  --accent-purple: #6f56e8;
  --accent-pink: #ff3f86;
  --accent-yellow: #ffd537;
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(255, 255, 255, 0.72);
}

body.theme-light {
  background: var(--bg) !important;
  --bg: #ffffff;
  --panel: #ffffff;
  --panel-soft: #f6f6f7;
  --line: #e6e6e8;
  --text: #111111;
  --muted: #66666e;
  --black: #0f0f12;
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(255, 255, 255, 0.72);
}

body.theme-dark {
  background: var(--bg) !important;
  --bg: #0d0f14;
  --panel: #151a22;
  --panel-soft: #121720;
  --line: #2a3241;
  --text: #f3f5f8;
  --muted: #98a3b7;
  --black: #f2f4f8;
  --glass-bg: rgba(29, 36, 49, 0.45);
  --glass-border: rgba(173, 188, 214, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  margin: 0;
  min-height: 100%;
  background: #0d0f14;
}

body {
  margin: 0;
  min-height: 100%;
  padding: 0;
  font-family: "Space Grotesk", sans-serif;
  background: var(--bg);
  color: var(--text);
  transition: background-color 220ms ease, color 220ms ease;
}

.glass-blur {
  background: var(--glass-bg);
  backdrop-filter: blur(12px) saturate(130%);
  -webkit-backdrop-filter: blur(12px) saturate(130%);
  border: 1px solid var(--glass-border);
}

.app-shell {
  width: min(1220px, 94vw);
  margin: 28px auto 0;
  display: grid;
  gap: 16px;
}

.hero,
.control-panel,
.workspace,
.tutorial-card,
.quick-links,
.product-card,
.media-showcase,
.features-section {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}

.hero {
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(111, 86, 232, 0.2), transparent 70%);
  pointer-events: none;
}

.hero-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.hero-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  color: var(--muted);
}

.support-badge {
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.75rem;
  color: var(--text);
}

.theme-toggle {
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.75rem;
  color: var(--text);
  cursor: pointer;
}

.hero h1 {
  margin: 10px 0 8px;
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  letter-spacing: 0.08em;
}

.lead {
  margin: 0;
  max-width: 72ch;
  color: var(--muted);
}

.control-panel {
  padding: 16px;
  display: grid;
  gap: 14px;
  grid-template-columns: 1.2fr 0.8fr;
}

.field-group {
  display: grid;
  gap: 8px;
}

.field-label {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.segmented-btn,
select,
.action-btn,
.link-btn,
.product-btn,
.theme-toggle {
  font: inherit;
}

.segmented-btn {
  border-radius: 11px;
  color: var(--text);
  padding: 11px;
  font-weight: 600;
  cursor: pointer;
}

.segmented-btn.active {
  background: var(--black);
  border-color: var(--black);
  color: var(--bg);
}

.select-wrap {
  position: relative;
}

select {
  width: 100%;
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: color-mix(in srgb, var(--panel) 85%, #fafafa 15%);
  color: var(--text);
  padding: 11px 36px 11px 11px;
  font-weight: 600;
}

.select-wrap::after {
  content: ">";
  position: absolute;
  right: 12px;
  top: 50%;
  translate: 0 -50%;
  rotate: 90deg;
  color: var(--muted);
  pointer-events: none;
}

.layout-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: start;
}

.workspace {
  padding: 18px;
}

.workspace-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
}

.workspace-head h2 {
  margin: 0;
  font-size: clamp(1.12rem, 2.2vw, 1.35rem);
}

.workspace-head p {
  margin: 6px 0 0;
  color: var(--muted);
}

.status-pill {
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}

.textarea-wrap {
  display: block;
}

.textarea-title {
  display: inline-block;
  margin: 0 0 8px;
  color: color-mix(in srgb, var(--text) 75%, transparent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.76rem;
}

textarea {
  width: 100%;
  min-height: clamp(260px, 44vh, 470px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--panel) 85%, #fcfcfc 15%);
  color: var(--text);
  padding: 14px;
  resize: vertical;
  font: 500 0.95rem/1.55 "Consolas", "Courier New", monospace;
}

textarea:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--line) 45%, #bdbdc5 55%);
  box-shadow: 0 0 0 4px rgba(120, 132, 156, 0.12);
}

.workspace-foot {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.action-btn {
  border: 1px solid var(--black);
  background: var(--black);
  color: var(--bg);
  border-radius: 11px;
  padding: 10px 15px;
  font-weight: 700;
  cursor: pointer;
}

.output-wrap {
  margin-top: 14px;
}

#outputText {
  min-height: clamp(220px, 32vh, 380px);
}

.sidebar {
  display: grid;
  gap: 12px;
}

.product-card {
  padding: 12px;
}

.product-thumb-wrap {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.product-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.product-copy h3 {
  margin: 10px 0 6px;
}

.product-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.product-btn {
  margin-top: 10px;
  display: inline-block;
  text-decoration: none;
  border-radius: 10px;
  color: var(--text);
  padding: 9px 11px;
  font-weight: 600;
}

.tutorial-card {
  padding: 16px;
  background: var(--panel-soft);
}

.tutorial-card h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.tutorial-list {
  margin: 0;
  padding-left: 18px;
  color: color-mix(in srgb, var(--text) 78%, transparent);
  line-height: 1.45;
}

.tutorial-list li + li {
  margin-top: 8px;
}

.tutorial-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.quick-links {
  padding: 12px;
  display: grid;
  gap: 8px;
}

.link-btn {
  text-decoration: none;
  border-radius: 10px;
  padding: 10px 11px;
  color: var(--text);
  font-weight: 600;
}

.link-btn:hover,
.product-btn:hover,
.theme-toggle:hover {
  filter: brightness(1.06);
}

.media-showcase {
  padding: 12px;
}

.showcase-banner {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
}

.showcase-banner img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.showcase-label {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(15, 15, 18, 0.85);
  color: #fff;
  border-radius: 9px;
  padding: 7px 10px;
  font-size: 0.8rem;
}

.showcase-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.showcase-grid img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.features-section {
  padding: 16px;
}

.features-section h2 {
  margin: 0 0 12px;
  font-size: 1.1rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.feature-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: var(--panel);
}

.feature-card h3 {
  margin: 0 0 6px;
  font-size: 0.98rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.feature-card.accent {
  border-color: color-mix(in srgb, var(--accent-purple) 35%, var(--line) 65%);
  background: color-mix(in srgb, var(--panel) 80%, #f7f2ff 20%);
}

.site-footer {
  margin-top: 4px;
  background: #0c0c10;
  color: #f6f6fa;
  border-radius: 16px 16px 0 0;
  padding: 22px;
  display: grid;
  gap: 12px;
}

.footer-brand h3 {
  margin: 0;
  letter-spacing: 0.06em;
}

.footer-brand p {
  margin: 6px 0 0;
  color: #b1b1bd;
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #f6f6fa;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}

.footer-note {
  color: #9c9ca9;
  font-size: 0.84rem;
}

@media (max-width: 1080px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .showcase-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 960px) {
  .control-panel,
  .layout-grid {
    grid-template-columns: 1fr;
  }

  .workspace-foot,
  .hero-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-actions {
    width: 100%;
  }

  .action-btn,
  .product-btn,
  .theme-toggle {
    width: 100%;
    text-align: center;
  }
}




