/**
 * Castaro Web Studio
 *
 * Copyright (C) 2026 Udo Winkenjohann
 *
 * This file is part of Castaro Web Studio.
 *
 * Castaro Web Studio is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * Castaro Web Studio is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with Castaro Web Studio.  If not, see <https://www.gnu.org/licenses/>.
 */
:root {
  --bg: #121416;
  --bg-elevated: #1a1d21;
  --bg-card: #232629;
  --text: #e8eaed;
  --text-muted: #9aa0a6;
  --accent: #2dd4bf;
  --accent-soft: rgba(45, 212, 191, 0.12);
  --accent-warm: #f59e0b;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 14px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

a {
  color: var(--accent);
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(18, 20, 22, 0.88);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  --brand-logo-height: 88px;
  height: var(--brand-logo-height);
}

.brand-logo__icon {
  display: block;
  height: var(--brand-logo-height);
  width: auto;
  aspect-ratio: 1;
  object-fit: contain;
}

.brand-logo__wordmark {
  display: block;
  height: var(--brand-logo-height);
  width: auto;
  object-fit: contain;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  font-size: 0.95rem;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--text);
}

.hero {
  padding: 4.5rem 0 3rem;
  background:
    radial-gradient(circle at 20% 10%, rgba(45, 212, 191, 0.12), transparent 35%),
    radial-gradient(circle at 80% 0%, rgba(245, 158, 11, 0.08), transparent 30%),
    var(--bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.eyebrow {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-open-source {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(245, 158, 11, 0.45);
  background: rgba(245, 158, 11, 0.12);
  color: var(--accent-warm);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.15;
}

.hero-lead {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  font-size: 1.08rem;
  max-width: 38rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #06211d;
}

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

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.22);
}

.hero-note {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.hero-shot {
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

section {
  padding: 4rem 0;
}

.section-head {
  max-width: 42rem;
  margin-bottom: 2rem;
}

.section-head h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

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

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.screenshot-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.screenshot-card figcaption {
  padding: 0.9rem 1rem 1rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.split-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: center;
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.08), rgba(245, 158, 11, 0.06));
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  padding: 1.5rem;
}

.split-panel h2 {
  margin-top: 0;
}

.split-panel p,
.split-panel li {
  color: var(--text-muted);
}

.split-panel ul {
  margin: 0;
  padding-left: 1.1rem;
}

.cta-band {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cta-band .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cta-band h2 {
  margin: 0 0 0.35rem;
}

.cta-band p {
  margin: 0;
  color: var(--text-muted);
}

.github-placeholder {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.9rem;
  color: var(--accent-warm);
}

.site-footer-spacer {
  margin-top: 0;
}

.cookie-consent {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 1000;
  padding: 1rem;
  background: rgba(234, 239, 241, 0.99);
  color: #424a4d;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.18);
}

.cookie-consent__inner {
  width: min(960px, calc(100% - 1rem));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.cookie-consent__text {
  flex: 1 1 18rem;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.cookie-consent__text a {
  color: #424a4d;
  text-decoration: underline;
}

.cookie-consent__btn {
  flex: 0 0 auto;
  border: 0;
  border-radius: 4px;
  padding: 0.65rem 1.25rem;
  background: #424a4d;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.cookie-consent__btn:hover {
  opacity: 0.9;
}

@media (max-width: 900px) {
  .hero-grid,
  .features-grid,
  .screenshots-grid,
  .split-panel {
    grid-template-columns: 1fr;
  }

  .site-header .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand-logo {
    --brand-logo-height: 72px;
  }
}

@media (max-width: 520px) {
  .brand-logo {
    --brand-logo-height: 60px;
    gap: 8px;
  }
}
