@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg-dark: #14151f;
  --bg-card: rgba(255, 255, 255, 0.12);
  --bg-card-strong: rgba(255, 255, 255, 0.18);
  --text-primary: #f6f6f9;
  --text-secondary: rgba(224, 225, 235, 0.78);
  --text-muted: rgba(224, 225, 235, 0.6);
  --accent: #7b6dff;
  --accent-2: #f093fb;
  --accent-3: #f5576c;
  --accent-glow: rgba(123, 109, 255, 0.45);
  --border: rgba(255, 255, 255, 0.2);
  --success: #4ade80;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --primary-gradient: linear-gradient(135deg, #7b6dff 0%, #f093fb 55%, #f5576c 100%);
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'DM Sans', 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg-dark);
  background-image:
    radial-gradient(1200px 800px at 10% 10%, rgba(102, 126, 234, 0.35), transparent 60%),
    radial-gradient(900px 700px at 90% 15%, rgba(118, 75, 162, 0.28), transparent 55%),
    radial-gradient(800px 600px at 15% 90%, rgba(240, 147, 251, 0.3), transparent 60%),
    radial-gradient(900px 700px at 85% 85%, rgba(245, 87, 108, 0.25), transparent 60%);
  color: var(--text-primary);
  margin: 0;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'ss01' 1, 'ss02' 1;
  font-variant-numeric: tabular-nums;
  scroll-behavior: smooth;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='.15'/%3E%3C/svg%3E");
  opacity: 0.08;
  mix-blend-mode: soft-light;
  z-index: 0;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4 {
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.75rem;
}

.hidden {
  display: none !important;
}

.hidden-mobile {
  display: none;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.8s ease-out forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

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

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.float {
  animation: float 6s ease-in-out infinite;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
  gap: 0.5rem;
  min-width: 120px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--primary-gradient);
  color: #0b0c14;
  border: none;
  box-shadow: 0 10px 30px rgba(123, 109, 255, 0.4);
}

.btn-primary:hover {
  box-shadow: 0 16px 40px rgba(123, 109, 255, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border);
}

.btn-lg {
  padding: 0.95rem 1.9rem;
  font-size: 1rem;
  border-radius: 18px;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  min-width: auto;
}

.glass-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
}

/* LANDING PAGE */
#landing-page {
  min-height: 100vh;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

.landing-main {
  flex: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(20, 21, 31, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(20, 21, 31, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
}

.header-inner {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-link {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--text-primary);
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.14);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.hero {
  padding-top: 7rem;
  padding-bottom: 5rem;
  display: grid;
  gap: 3rem;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.6rem, 4vw, 3.8rem);
  line-height: 1.1;
  margin: 0 0 1.5rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.lead {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 540px;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0 1.5rem;
}

.hero .cta-group {
  align-items: stretch;
}

.hero .cta-group .btn {
  flex: 1 1 220px;
  min-width: 200px;
  justify-content: center;
  transition: box-shadow 0.2s ease, background 0.2s ease;
  transform: translateY(0);
}

.hero .cta-group .btn:hover {
  transform: translateY(0);
}

/* Sponsor Section */
.sponsor-section {
  padding-top: 3rem;
  padding-bottom: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.sponsor-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.support-label {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.support-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.support-logo-link:hover {
  transform: scale(1.03);
}

.support-logo-img {
  height: 72px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.12));
}

/* Wiro Credit */
.wiro-credit {
  text-align: center;
  max-width: 600px;
}

.wiro-credit-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.wiro-github-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  font-size: 2.5rem;
  color: #00D26A;
  transition: color 0.2s ease, transform 0.2s ease;
}

.wiro-github-link:hover {
  color: #00ff80;
  transform: scale(1.1);
}

.wiro-credit-main {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.wiro-credit-main a {
  color: #00D26A;
  font-weight: 600;
  transition: color 0.2s ease;
}

.wiro-credit-main a:hover {
  color: #00ff80;
}

.wiro-credit-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  line-height: 1.6;
}

.wiro-highlight {
  color: #00D26A;
}

.hero-visual {
  position: relative;
  display: grid;
  gap: 1.5rem;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(0);
  opacity: 0.6;
  z-index: 0;
  animation: float 6s ease-in-out infinite;
}

.orb-1 {
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(123, 109, 255, 0.7), transparent 70%);
  top: -30px;
  right: 10px;
}

.orb-2 {
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(240, 147, 251, 0.5), transparent 70%);
  bottom: -40px;
  left: -20px;
  animation-delay: 1s;
}

.glass-stack {
  position: relative;
  display: grid;
  gap: 1.25rem;
  z-index: 1;
  max-width: 420px;
  width: 100%;
  align-items: flex-start;
}

.glass-stack .glass-card {
  width: 100%;
}

.glass-card {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  padding: 1.5rem;
}

.glass-card-main {
  min-height: 240px;
}

.glass-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  margin-bottom: 1rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  background: rgba(255, 255, 255, 0.18);
  color: var(--text-primary);
}

.glass-code {
  display: grid;
  gap: 0.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.glass-card-footer {
  margin-top: 1.5rem;
  display: flex;
  justify-content: flex-start;
}

.glass-footer-note {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.glass-card-secondary {
  padding: 1.2rem 1.4rem;
  display: grid;
  gap: 0.4rem;
  width: 100%;
}

.glass-card-tiny {
  padding: 0.8rem 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  max-width: 180px;
}

.mini-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}

.mini-value {
  font-size: 1.1rem;
  font-weight: 700;
}

.mini-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Ecosystem Section */
.ecosystem {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
}

.ecosystem .section-heading {
  text-align: center;
}

.section-heading {
  text-align: left;
  margin-bottom: 2.5rem;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
}

.section-label {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 0.75rem;
}

.tool-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
  justify-content: center;
}

.tool-item {
  color: var(--text-secondary);
  font-size: 1.05rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: color 0.3s;
}

.tool-item:hover {
  color: var(--text-primary);
}

.tool-item i {
  color: rgba(224, 225, 235, 0.7);
}

/* How it works */
.how-it-works {
  padding-top: 5rem;
  padding-bottom: 3rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.step-card {
  padding: 2rem;
}

.step-number {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.step-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.4rem;
}

.step-card p {
  margin: 0;
  color: var(--text-secondary);
}

/* Output */
.output-section {
  padding-top: 4rem;
  padding-bottom: 5rem;
}

.output-grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

.output-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 2rem;
  display: grid;
  gap: 0.75rem;
}

.output-list li {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
}

.output-list strong {
  color: var(--text-primary);
  font-weight: 600;
}

.output-preview {
  padding: 2rem;
}

.output-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-weight: 600;
}

.output-preview .code-block {
  margin: 0;
}

.output-preview-footer {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Final CTA */
.final-cta {
  padding-top: 4rem;
  padding-bottom: 6rem;
}

.final-cta-card {
  padding: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

/* Footer */
.landing-footer {
  padding: 2.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 10, 18, 0.6);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  position: relative;
  z-index: 1;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-brand {
  font-weight: 600;
}

.footer-links {
  display: flex;
  gap: 1rem;
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-note {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--text-primary);
}

/* APP LAYOUT */
#app-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.app-main {
  flex: 1;
  padding-top: 2.5rem;
  padding-bottom: 4rem;
  max-width: 1400px;
  width: min(1400px, 94vw);
}

.stepper {
  display: flex;
  gap: 0.5rem;
  margin: 2rem 0;
}

.step-dot {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  transition: 0.3s;
}

.step-dot.active {
  background: var(--accent);
  box-shadow: 0 0 12px rgba(123, 109, 255, 0.6);
}

.step-dot.completed {
  background: var(--success);
}

.step-header {
  text-align: center;
  margin-bottom: 3rem;
}

.step-header h2 {
  font-size: 2.3rem;
  margin-bottom: 0.5rem;
}

.step-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

/* GRID SYSTEM */
.options-grid {
  display: grid;
  gap: 1.5rem;
  padding-bottom: 2rem;
}

.options-grid[data-cols="4"] {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.options-grid[data-cols="2"] {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

/* CARDS */
.option-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
  height: 100%;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
}

.option-card:hover {
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-4px);
}

.option-card.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(123, 109, 255, 0.6);
}

.card-img {
  aspect-ratio: 16/9;
  width: 100%;
  object-fit: cover;
  background: #0c0f1a;
}

.palette-preview {
  height: 120px;
  display: flex;
  width: 100%;
}

.card-body {
  padding: 1.25rem;
  flex: 1;
}

.card-title {
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* COLOR WHEEL */
.color-tool-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 3rem;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 3rem;
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
}

.wheel-area {
  position: relative;
  width: 300px;
  height: 300px;
  aspect-ratio: 1 / 1;
}

canvas#canvaWheel {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  cursor: default;
}

.controls-area {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  justify-content: center;
}

.harmony-selector {
  display: flex;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.5rem;
  border-radius: 12px;
}

.harmony-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 0.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
}

.harmony-btn.active {
  background: var(--accent);
  color: #0b0c14;
}

.generated-palette {
  display: flex;
  height: 100px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.gen-swatch {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: white;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  flex-direction: column;
  gap: 0.25rem;
}

/* FOOTER (APP) */
.app-footer {
  position: sticky;
  bottom: 0;
  background: rgba(20, 21, 31, 0.85);
  backdrop-filter: blur(16px) saturate(180%);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.5rem 0;
  z-index: 50;
  margin-top: auto;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

#footer-status {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Result Area */
.code-block {
  background: rgba(15, 18, 32, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 2rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  color: #e2e8f0;
  line-height: 1.7;
  white-space: pre-wrap;
}

/* Spec Page */
.spec-page .spec-main {
  padding: 6rem 0 4rem;
  position: relative;
  z-index: 1;
}

.spec-hero {
  padding: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: center;
}

.spec-meta {
  display: grid;
  gap: 0.5rem;
  color: var(--text-secondary);
}

.spec-grid {
  display: grid;
  gap: 1.5rem;
  margin: 3rem 0;
}

.spec-card {
  padding: 1.8rem;
}

.spec-card h2 {
  margin-top: 0;
}

.spec-card ul,
.spec-steps ol {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text-secondary);
}

.spec-steps {
  padding: 2rem;
}

.spec-code {
  margin: 3rem 0;
}

.spec-code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

/* Responsive */
@media (min-width: 900px) {
  .hidden-mobile {
    display: inline-flex;
  }

  .hero {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .output-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

@media (max-width: 900px) {
  .site-header,
  .app-header {
    position: static;
  }

  .site-header .header-inner {
    height: auto;
    padding: 0.75rem 0;
    justify-content: center;
  }

  .site-header .nav-cta {
    display: none;
  }

  .app-header .header-inner {
    height: auto;
    padding: 0.75rem 0;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .hero {
    padding-top: 4.5rem;
    padding-bottom: 3.5rem;
    gap: 2rem;
  }

  .cta-group {
    gap: 0.75rem;
    margin: 1.5rem 0 1rem;
  }

  .hero .cta-group .btn {
    flex: 1 1 160px;
    min-width: 0;
  }

  .hero-support {
    margin-top: 1.25rem;
  }

  .support-logo-img {
    height: 52px;
  }

  .hero-visual {
    margin-top: 0.5rem;
  }

  .ecosystem,
  .how-it-works,
  .output-section,
  .final-cta {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  .steps-grid,
  .output-grid {
    gap: 1.5rem;
  }

  .output-preview {
    padding: 1.5rem;
  }

  .final-cta-card {
    padding: 2rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-content {
    flex-direction: column;
    gap: 1rem;
  }

  #footer-status {
    position: static;
    transform: none;
  }
}

@media (max-width: 768px) {
  .hero {
    padding-top: 2.5rem;
    padding-bottom: 2rem;
  }

  .orb {
    display: none;
  }

  .cta-group {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    margin: 1.5rem 0 1rem;
  }

  .btn {
    padding: 0.65rem 1.25rem;
    font-size: 0.9rem;
    min-width: 0;
    min-height: 44px;
  }

  .btn-lg {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    border-radius: 14px;
    min-height: 48px;
  }

  .lead {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
  }

  .section-heading {
    margin-bottom: 1.75rem;
  }

  .section-heading h2 {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
  }

  .hero .cta-group .btn {
    width: 100%;
    flex: none;
  }

  .hero-copy h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .tool-grid {
    gap: 1rem;
  }

  .tool-item {
    font-size: 0.95rem;
  }

  .sponsor-section,
  .how-it-works,
  .output-section,
  .final-cta {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  .sponsor-section {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .output-list li {
    padding: 0.75rem 0.9rem;
  }

  .step-card {
    padding: 1.5rem;
  }

  .final-cta-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .color-tool-container {
    grid-template-columns: 1fr;
  }

  .wheel-area {
    width: 100%;
    height: auto;
  }

  .app-main {
    padding-bottom: 6rem;
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 1.25rem;
  }

  /* Force side padding on all sections */
  .hero,
  .sponsor-section,
  .ecosystem,
  .how-it-works,
  .output-section,
  .final-cta {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  /* Hero Section */
  .hero-copy {
    text-align: center;
  }

  .hero-copy h1 {
    font-size: 1.75rem;
    line-height: 1.15;
  }

  .hero {
    padding-top: 2rem;
    padding-bottom: 2.5rem;
  }

  .eyebrow {
    font-size: 0.7rem;
    margin-bottom: 0.75rem;
    justify-content: center;
  }

  .lead {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-left: auto;
    margin-right: auto;
  }

  .cta-group {
    gap: 0.6rem;
    margin: 1.25rem 0 1rem;
  }

  .btn {
    padding: 0.6rem 1rem;
    font-size: 0.875rem;
    min-height: 42px;
  }

  .btn-lg {
    padding: 0.7rem 1rem;
    font-size: 0.875rem;
    border-radius: 12px;
    min-height: 46px;
  }

  .code-block {
    padding: 1.25rem;
    font-size: 0.8rem;
  }

  .cta-group .btn,
  .final-cta-card .btn {
    width: 100%;
  }

  /* Sponsor */
  .hero-support {
    flex-direction: column;
    align-items: center;
    margin-top: 1.25rem;
    gap: 0.6rem;
    width: 100%;
  }

  .support-label {
    font-size: 0.7rem;
  }

  .support-logo-img {
    height: 64px;
  }

  .wiro-credit {
    margin-top: 0.75rem;
    max-width: 100%;
  }

  .wiro-credit-header {
    flex-direction: column;
    gap: 0.75rem;
  }

  .wiro-github-link {
    font-size: 2.25rem;
    width: 40px;
    height: 40px;
  }

  .wiro-credit-main {
    font-size: 0.95rem;
  }

  .wiro-credit-desc {
    font-size: 0.8rem;
  }

  /* Glass Cards */
  .glass-card {
    padding: 1.25rem;
  }

  .glass-stack {
    gap: 1rem;
  }

  .glass-card-main {
    min-height: auto;
    padding: 1.25rem;
  }

  .glass-code {
    font-size: 0.8rem;
    gap: 0.35rem;
  }

  /* Sponsor Section */
  .sponsor-section {
    padding-top: 2rem;
    padding-bottom: 2rem;
    gap: 1.5rem;
  }

  /* Ecosystem Section */
  .ecosystem {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
    border: none;
  }

  /* How it Works Section */
  .how-it-works {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .step-card {
    padding: 1.25rem;
  }

  .step-card h3 {
    font-size: 1.2rem;
  }

  /* Output Section */
  .output-section {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .output-preview {
    padding: 1.25rem;
  }

  .output-list li {
    padding: 0.65rem 0.85rem;
    font-size: 0.875rem;
  }

  /* Final CTA Section */
  .final-cta {
    padding-top: 2.5rem;
    padding-bottom: 3rem;
  }

  .final-cta-card {
    text-align: center;
    align-items: center;
    padding: 1.75rem 1.25rem;
  }

  .final-cta-card h2 {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
  }

  .final-cta-card .lead {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }

  /* Tool Grid */
  .tool-grid {
    justify-content: flex-start;
    gap: 0.75rem;
  }

  .tool-item {
    font-size: 0.85rem;
  }

  /* Section Headings */
  .section-heading {
    margin-bottom: 1.5rem;
  }

  .section-heading h2 {
    font-size: 1.5rem;
  }

  .section-heading .lead {
    font-size: 0.875rem;
    margin-top: 0.5rem;
  }
}
