/* Better-than-NAS · Tron Style + Responsive Layout */

:root {
  --bg-main: #020617;
  --bg-card: rgba(15, 23, 42, 0.9);
  --bg-card-soft: rgba(15, 23, 42, 0.8);
  --border-strong: #22d3ee;
  --accent: #22d3ee;
  --accent-soft: rgba(34, 211, 238, 0.12);
  --accent-strong: #06b6d4;
  --text-main: #e5f4ff;
  --text-muted: #9ca3af;
  --danger: #f97373;
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.8);
  --radius-lg: 18px;
  --radius-xl: 24px;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body.layout {
  min-height: 100vh;
  background: radial-gradient(circle at top, #020617 0, #020617 30%, #000 100%);
  color: var(--text-main);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.page {
  padding-bottom: 2rem;
}

/* Container & Grid */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 2.5rem 0;
}

/* Header & Navigation */
.header {
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
  backdrop-filter: blur(10px);
  background: linear-gradient(to right, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.8));
  position: sticky;
  top: 0;
  z-index: 20;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.badge {
  display: inline-flex;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ca3af;
  margin-bottom: 0.2rem;
}

.brand h1 {
  font-size: 1.45rem;
  margin: 0;
  font-weight: 650;
  letter-spacing: 0.03em;
}

.logo-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  background: radial-gradient(circle at 30% 20%, rgba(34, 211, 238, 0.3), transparent 60%);
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.5);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  background: rgba(15, 23, 42, 0.9);
  color: var(--text-main);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease,
    box-shadow 0.12s ease, color 0.15s ease;
  white-space: nowrap;
}

.btn:hover {
  background: rgba(30, 64, 175, 0.9);
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.9);
  transform: translateY(-1px);
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  border-color: var(--accent);
  color: #0f172a;
  box-shadow: 0 10px 30px rgba(34, 211, 238, 0.55);
}

.btn.primary:hover {
  background: linear-gradient(135deg, #0ea5e9, var(--accent-strong));
  border-color: #0ea5e9;
  color: #0b1220;
}

.btn.ghost {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.7);
  color: #e5e7eb;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Hero */
.hero {
  position: relative;
  padding: 3.2rem 0 2.6rem;
  text-align: center;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero h2 {
  margin: 0;
  font-size: 2.0rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hero-text {
  max-width: 780px;
  margin: 0.85rem auto 0;
  font-size: 1rem;
  color: var(--text-main);
}

.hero-cta {
  margin-top: 1.1rem;
  justify-content: center;
}

.hero-meta {
  margin-top: 0.85rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

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

.kbd {
  display: inline-flex;
  padding: 0.2rem 0.45rem;
  border-radius: 0.35rem;
  border: 1px solid rgba(148, 163, 184, 0.7);
  font-size: 0.75rem;
  background: rgba(15, 23, 42, 0.9);
}

/* Tron Grid Background */
.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(34, 211, 238, 0.12) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(34, 211, 238, 0.12) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.6;
  mask-image: radial-gradient(circle at center, black 0, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at center, black 0, transparent 70%);
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
  justify-items: stretch;
}

.card {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.1rem 1.0rem 1.0rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: radial-gradient(circle at top left, rgba(34, 211, 238, 0.14), transparent 55%),
              radial-gradient(circle at bottom right, rgba(37, 99, 235, 0.18), transparent 60%),
              var(--bg-card);
  box-shadow: var(--shadow-soft);
}

.card h3,
.card h4 {
  margin-top: 0;
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
}

.card p {
  margin: 0 0 0.8rem;
  font-size: 0.9rem;
  color: var(--text-main);
}

.card code {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.82rem;
  background: rgba(15, 23, 42, 0.95);
  padding: 0.15rem 0.3rem;
  border-radius: 0.25rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
}

.actions {
  margin-top: auto;
  display: flex;
  justify-content: flex-start;
}

/* YouTube */
.yt-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.yt {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.7);
  box-shadow: var(--shadow-soft);
  background: #020617;
}

.yt iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.yt-hint {
  text-align: center;
  margin-top: 0.75rem;
}

/* Forms (Builder-Seiten) */
form {
  margin-top: 0.8rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.9rem;
}

.form-group label {
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 0.45rem 0.55rem;
  border-radius: 0.55rem;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.95);
  color: var(--text-main);
  font-size: 0.9rem;
  font-family: inherit;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.checkbox input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
}

/* Footer */
.footer {
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  margin-top: 1.5rem;
  background: rgba(15, 23, 42, 0.96);
}

.footer-inner {
  text-align: center;
  padding: 1.2rem 0 1.8rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 900px) {
  .brand h1 {
    font-size: 1.25rem;
  }
}

@media (max-width: 768px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    padding-top: 2.2rem;
  }

  .hero h2 {
    font-size: 1.6rem;
  }
}

@media (max-width: 540px) {
  .hero h2 {
    font-size: 1.4rem;
  }

  .hero-text {
    font-size: 0.95rem;
  }

  .card {
    padding: 0.9rem 0.85rem 0.85rem;
  }
}
