/* BrandLAB design tokens */
:root {
  --color-bg: #0b0b0d;
  --color-bg-2: #26262b;
  --color-surface: #ffffff;
  --color-surface-soft: #f6f7f9;
  --color-text: #14181f;
  --color-text-muted: #626c7a;
  --color-border: #e4e7ee;
  --color-brand: #ff7a18;
  --color-brand-hover: #ffc107;
  --color-brand-soft: #fff2e4;
  --color-on-brand: #ffffff;
  --gradient-brand: linear-gradient(135deg, #ff5f0f 0%, #ff9d2e 100%);
  --gradient-brand-hover: linear-gradient(135deg, #ff7a18 0%, #ffd23f 100%);
  --font-body: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --maxw: 860px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 18px 44px rgba(0, 0, 0, 0.45);
  --space-1: 6px;
  --space-2: 12px;
  --space-3: 18px;
  --space-4: 26px;
  --space-5: 40px;
}

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

/* Page background: dark gradient + bottom glow */
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  background: linear-gradient(180deg, #0b0b0d 0%, #26262b 70%, #141417 100%);
  background-attachment: fixed;
  margin: 0;
  padding: 0;
  color: var(--color-text);
  min-height: 100%;
  position: relative;
  z-index: 0;
}

body::before {
  content: "";
  position: fixed;
  left: 50%;
  bottom: -260px;
  transform: translateX(-50%);
  width: min(1200px, 160vw);
  height: 520px;
  background:
    radial-gradient(ellipse at center, rgba(255, 210, 63, 0.55) 0%, transparent 65%),
    radial-gradient(ellipse at center, rgba(255, 122, 24, 0.5) 0%, transparent 70%);
  filter: blur(30px);
  pointer-events: none;
  z-index: 0;
}

/* Floating Header */
.header-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  padding: 12px 20px;
  background: rgba(18, 18, 21, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.offer-text {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 600;
  text-align: center;
}

/* Logo Container */
.logo-container {
  display: flex;
  justify-content: center;
  margin: 0 auto;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  width: fit-content;
  position: relative;
  z-index: 1;
}

.logo {
  height: 40px;
  width: auto;
  display: block;
}

/* Main Container */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 20px var(--space-5);
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* Header */
.header {
  text-align: center;
  margin-bottom: var(--space-5);
}

.title {
  font-size: clamp(1.55rem, 3.2vw, 2.05rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-2) 0;
  color: #ffffff;
  background: none;
  -webkit-text-fill-color: unset;
}

.subtitle {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.72);
  margin: 0 auto;
  font-weight: 400;
  max-width: 38em;
}

/* Main Content Layout */
.main-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  align-items: start;
}

.controls-section {
  height: 70vh;
  overflow-y: auto;
  padding-right: 10px;
}

.controls-section::-webkit-scrollbar {
  width: 6px;
}

.controls-section::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
}

.controls-section::-webkit-scrollbar-thumb {
  background: var(--gradient-brand);
  border-radius: 999px;
}

.controls-section::-webkit-scrollbar-thumb:hover {
  background: var(--gradient-brand-hover);
}

.preview-section {
  position: sticky;
  top: 20px;
  height: fit-content;
}

@media (max-width: 1024px) {
  .main-content {
    grid-template-columns: 1fr;
  }

  .controls-section {
    height: auto;
    overflow-y: visible;
  }

  .preview-section {
    position: static;
  }
}

/* Content cards — white surface + orange brand border */
.modern-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  border: 1px solid var(--color-brand);
  box-shadow: var(--shadow-md);
  margin-bottom: var(--space-3);
}

.modern-card h3 {
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-3) 0;
  color: var(--color-text);
}

/* Control Groups */
.control-group {
  margin-bottom: var(--space-3);
}

.control-group-horizontal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.control-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--color-text);
  font-size: 0.95rem;
}

.control-label-inline {
  display: block;
  font-weight: 500;
  color: var(--color-text);
  font-size: 0.95rem;
  min-width: 120px;
  flex-shrink: 0;
}

/* Modern Slider */
.modern-slider {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  outline: none;
  -webkit-appearance: none;
  margin-bottom: 8px;
}

.modern-slider-inline {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  outline: none;
  -webkit-appearance: none;
}

.modern-slider,
.modern-slider-inline {
  background: var(--gradient-brand);
}

.modern-slider::-webkit-slider-thumb,
.modern-slider-inline::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: var(--color-surface);
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid var(--color-brand);
  box-shadow: var(--shadow-sm);
}

.modern-slider::-moz-range-thumb,
.modern-slider-inline::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: var(--color-surface);
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid var(--color-brand);
  box-shadow: var(--shadow-sm);
}

.slider-value {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--color-text);
  min-width: 60px;
  text-align: center;
  padding: 4px 8px;
  outline: none;
}

.slider-value:focus {
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px var(--color-brand-soft);
}

.slider-value:hover {
  border-color: var(--color-brand-hover);
}

/* Modern Color Input */
.modern-color-input {
  width: 60px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  cursor: pointer;
  overflow: hidden;
}

.modern-color-input:hover {
  border-color: var(--color-brand-hover);
}

.modern-color-input:focus {
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px var(--color-brand-soft);
  outline: none;
}

.modern-color-input::-webkit-color-swatch-wrapper {
  padding: 0;
}

.modern-color-input::-webkit-color-swatch {
  border: none;
  border-radius: var(--radius-sm);
}

/* Modern Checkbox */
.modern-checkbox {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--color-text);
}

.modern-checkbox input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 20px;
  height: 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  margin-right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  accent-color: var(--color-brand);
}

.modern-checkbox:hover .checkmark {
  border-color: var(--color-brand-hover);
}

.modern-checkbox input[type="checkbox"]:checked + .checkmark {
  background: var(--gradient-brand);
  border-color: var(--color-brand);
}

.modern-checkbox input[type="checkbox"]:checked + .checkmark::after {
  content: "✓";
  color: var(--color-on-brand);
  font-weight: bold;
  font-size: 12px;
}

/* Modern Select */
.modern-select {
  width: 100%;
  padding: 13px 15px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  cursor: pointer;
}

.modern-select:hover {
  border-color: var(--color-brand-hover);
}

.modern-select:focus {
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px var(--color-brand-soft);
}

.modern-select option {
  background: var(--color-surface);
  color: var(--color-text);
}

/* Preview Container — stage for the glass demo */
.preview-container {
  background: linear-gradient(180deg, #0b0b0d 0%, #26262b 70%, #141417 100%);
  background-image: url('background.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-blend-mode: overlay;
  border-radius: var(--radius-md);
  padding: 60px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.glassmorphism-preview {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  color: #ffffff;
  text-align: center;
  transition: all 0.3s ease-out;
  cursor: pointer;
}

.glassmorphism-preview h2 {
  margin: 0 0 16px 0;
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.glassmorphism-preview p {
  margin: 0;
  opacity: 0.9;
  line-height: 1.55;
  font-size: 0.95rem;
  font-weight: 400;
}

/* Tabs */
.tabs {
  display: flex;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-3);
}

.tab-button {
  background: none;
  border: none;
  padding: 12px 24px;
  color: var(--color-text-muted);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.15s ease;
  border-bottom: 2px solid transparent;
}

.tab-button.active {
  color: var(--color-brand);
  border-bottom-color: var(--color-brand);
  font-weight: 600;
}

.tab-button:hover {
  color: var(--color-text);
}

/* Tab Content */
.tab-content {
  position: relative;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

.code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border);
}

.code-header span {
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.9rem;
}

.copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-brand);
  border: none;
  border-radius: 999px;
  padding: 6px 13px;
  color: var(--color-on-brand);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  transition: background 0.15s ease, opacity 0.15s ease;
}

.copy-button:hover {
  background: var(--gradient-brand-hover);
}

/* Code Blocks */
pre {
  background: var(--color-surface-soft);
  border-radius: var(--radius-md);
  padding: 20px;
  overflow-x: auto;
  margin: 0;
  border: 1px solid var(--color-border);
}

code {
  color: var(--color-text);
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 0.9rem;
  line-height: 1.6;
  white-space: pre-wrap;
}

/* Masthead */
.masthead {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 24px 18px 0;
}

.suite-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.25em;
  margin: var(--space-1) auto 0;
  text-align: center;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.1;
  color: #ff9d2e;
  letter-spacing: 0.01em;
  position: relative;
  z-index: 1;
}

.suite-part { color: #ff9d2e; font-family: var(--font-body); }
.suite-hue,
.suite-studio {
  font-family: "Gochi Hand", cursive;
  font-size: 1.4em;
  position: relative;
  top: 2px;
  color: #ffc107;
}
.suite-lab {
  font-family: var(--font-body);
  font-weight: 700;
  margin-left: -0.08em;
  color: #ffc107;
}

/* Skip link + breadcrumbs */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: #fff;
  color: #14181f;
  padding: 8px 12px;
  z-index: 100;
  border-radius: 0 0 8px 0;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

.breadcrumbs {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: var(--space-3) auto 0;
  padding: 0 20px;
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.82rem;
  color: #ffb45a;
}
.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 10px;
  opacity: 0.7;
}
.breadcrumbs a {
  color: #ffc107;
  text-decoration: none;
}
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: #ffe2a8; }

/* Page shell */
.page-shell {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--space-3) 20px var(--space-5);
  display: grid;
  gap: var(--space-3);
}

.generator-main.container {
  max-width: none;
  margin: 0;
  padding: 0;
  min-height: 0;
}

.generator-intro {
  margin-bottom: var(--space-3);
  text-align: left;
}

.generator-heading {
  margin: 0 0 var(--space-1);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.generator-intro .subtitle {
  color: rgba(255, 255, 255, 0.72);
  max-width: 40em;
  margin: 0;
}

/* Hero */
.welcome-card {
  text-align: left;
}

.welcome-kicker {
  margin: 0 0 var(--space-2);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-brand);
}

.welcome-headline {
  margin: 0;
  font-size: clamp(1.55rem, 3.2vw, 2.05rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--color-text);
  background: none;
  -webkit-text-fill-color: unset;
}

.welcome-body {
  margin: var(--space-3) 0 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--color-text-muted);
  max-width: 42em;
}

.welcome-benefits {
  margin: var(--space-3) 0 0;
  padding-left: 1.2em;
  color: var(--color-text);
  line-height: 1.55;
}
.welcome-benefits li { margin: 0 0 6px; }

.welcome-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: var(--space-3);
  font-size: 0.88rem;
  color: var(--color-text-muted);
}
.welcome-trust a {
  color: var(--color-brand);
  font-weight: 600;
  text-decoration: none;
}
.welcome-trust a:hover { text-decoration: underline; }

.welcome-actions { margin-top: var(--space-4); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 999px;
  padding: 11px 22px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn.primary {
  background: var(--gradient-brand);
  color: var(--color-on-brand);
}
.btn.primary:hover {
  background: var(--gradient-brand-hover);
}

.welcome-cta {
  min-width: min(100%, 260px);
  font-size: 1rem;
  padding: 14px 26px;
}

.welcome-micro {
  margin: 10px 0 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* Generator microcopy */
.control-hint {
  margin: -8px 0 var(--space-3);
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.field-hint {
  margin: 6px 0 0;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.45;
}

/* SEO content stack */
.seo-stack {
  display: grid;
  gap: var(--space-3);
}

.seo-card h2 {
  margin: 0 0 var(--space-2);
  font-size: 1.25rem;
  line-height: 1.3;
  color: var(--color-text);
}

.seo-card p,
.seo-card li {
  color: var(--color-text);
  line-height: 1.6;
}

.seo-card a {
  color: var(--color-brand);
  font-weight: 600;
  text-decoration: none;
}
.seo-card a:hover { text-decoration: underline; }

.seo-card code {
  font-size: 0.88em;
  background: var(--color-surface-soft);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 1px 6px;
  white-space: normal;
}

.seo-steps {
  margin: 0;
  padding-left: 1.2em;
  display: grid;
  gap: 10px;
}

.seo-grid {
  margin: 0;
  padding-left: 1.2em;
  columns: 2;
  gap: 18px;
}

.seo-note {
  margin: var(--space-3) 0 0;
  color: var(--color-text-muted) !important;
  font-size: 0.95rem;
}

.seo-links {
  margin: var(--space-2) 0 0;
  padding-left: 1.2em;
  display: grid;
  gap: 8px;
}

.faq-list { display: grid; gap: 10px; }
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  background: var(--color-surface-soft);
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--color-text);
}
.faq-item p {
  margin: 10px 0 0;
  color: var(--color-text-muted) !important;
}

/* Site footer */
.site-footer {
  margin-top: var(--space-2);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  background: rgba(18, 18, 21, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffb45a;
}
.site-footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
}
.site-footer-title {
  margin: 0 0 10px;
  font-size: 0.9rem;
  color: #ffc107;
}
.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}
.site-footer a {
  color: #ffe2a8;
  text-decoration: none;
  font-size: 0.88rem;
}
.site-footer a:hover { text-decoration: underline; color: #fff; }
.site-footer-legal,
.site-footer-social {
  margin: var(--space-3) 0 0;
  font-size: 0.8rem;
  color: #c9a36a;
}
.site-footer-legal a,
.site-footer-social a {
  color: #ffc107;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-shell {
    padding: 18px 15px 30px;
  }

  .logo-container {
    margin-top: 12px;
  }

  .title,
  .welcome-headline {
    font-size: clamp(1.55rem, 5vw, 1.85rem);
  }

  .subtitle {
    font-size: 0.95rem;
  }

  .modern-card {
    padding: var(--space-3);
  }

  .welcome-cta { width: 100%; }
  .seo-grid { columns: 1; }
  .site-footer-grid { grid-template-columns: 1fr; }
  .offer-text {
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .glassmorphism-preview,
  .copy-button,
  .tab-button,
  .checkmark,
  .btn {
    transition: none;
  }
}
