/* ──────────────────────────────────────────────────────────────────────
   SolaRAG microsite — cyan glassmorphism, sjednocený s admin SPA design
   tokens. Bez build pipeline; statické CSS, importy z Google Fonts v HTML.
   ────────────────────────────────────────────────────────────────────── */

:root {
  /* Brand colors — sjednoceno s admin --accent-rgb / --brand-secondary-rgb */
  --accent-rgb: 90 242 213;          /* cyan #5af2d5 — interaktivní */
  --brand-secondary-rgb: 122 139 255; /* purple #7a8bff — dekorativní */
  --bg-deep: #080b14;
  --bg-elevated: #0f1525;
  --bg-card: rgba(13, 18, 34, 0.8);
  --text-primary: #e5ecff;
  --text-muted: #808a99;
  --text-soft: #5a6473;
  --border-soft: rgba(255, 255, 255, 0.08);
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 9999px;
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Outfit', system-ui, sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Decorative background blobs ─────────────────────────────────────────── */

.bg-decor {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.18;
  will-change: transform;
}
.blob--1 {
  top: -10%; left: -10%;
  width: 600px; height: 600px;
  background: rgb(var(--brand-secondary-rgb));
  animation: blobFloat 22s ease-in-out infinite;
}
.blob--2 {
  bottom: -20%; right: -10%;
  width: 700px; height: 700px;
  background: rgb(var(--accent-rgb));
  opacity: 0.10;
  animation: blobFloat 28s ease-in-out infinite reverse;
}
.blob--3 {
  top: 40%; left: 50%;
  width: 500px; height: 500px;
  background: rgb(var(--brand-secondary-rgb));
  opacity: 0.08;
  animation: blobFloat 26s ease-in-out infinite;
}
@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(40px, -30px) scale(1.05); }
  66%      { transform: translate(-30px, 20px) scale(0.95); }
}

@media (prefers-reduced-motion: reduce) {
  .blob { animation: none; }
  html { scroll-behavior: auto; }
}

/* Layout primitives ──────────────────────────────────────────────────── */

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.section {
  padding: 96px 0;
}
.section--tight {
  padding: 64px 0;
}
.section--contact {
  padding-bottom: 128px;
}

/* Header ─────────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  background: rgba(8, 11, 20, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-soft);
  z-index: 100;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}
.logo img {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(122, 139, 255, 0.1);
  border: 1px solid rgba(122, 139, 255, 0.2);
  padding: 6px;
  object-fit: contain;
}
.logo__text {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.site-nav {
  display: flex;
  gap: 16px;
  align-items: center;
}
.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  transition: color 0.15s var(--ease-spring), background-color 0.15s var(--ease-spring);
}
.nav-link:hover {
  color: rgb(var(--accent-rgb));
  background: rgb(var(--accent-rgb) / 0.08);
}
/* Sprint H8 — text-only cyan accent variant pro nav položky, které jsou
   důležité (klikatelné, primary action) ale nepotřebují border-button look. */
.nav-link--accent {
  color: rgb(var(--accent-rgb));
}
.nav-link--accent:hover {
  color: rgb(var(--accent-rgb));
  background: rgb(var(--accent-rgb) / 0.1);
  text-shadow:
    0 0 8px  rgb(var(--accent-rgb) / 0.6),
    0 0 16px rgb(var(--accent-rgb) / 0.4);
}

.nav-link--cta {
  color: rgb(var(--accent-rgb));
  border: 1px solid rgb(var(--accent-rgb) / 0.4);
}
.nav-link--cta:hover {
  background: rgb(var(--accent-rgb));
  color: var(--bg-deep);
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgb(var(--accent-rgb) / 0.35);
}

/* Typography ─────────────────────────────────────────────────────────── */

.kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgb(var(--brand-secondary-rgb));
  margin: 0 0 16px;
}

.display {
  font-family: 'Syne', sans-serif;
  font-size: clamp(40px, 7vw, 68px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
}
/* Sprint H8 — text gradient na headline accent.
   Pravidla:
   - Adjacent hues (≤ 60° na color wheelu): violet 252° → blue-purple 233° → indigo 240°.
     Všechno v rámci 20° rozsahu = velmi soft transitions.
   - Direction 135° = "premium angle" (depth + dimension, ne flat 0°/90°).
   - Multi-stop (4 colors) simuluje mesh gradient v rámci linear (CSS text gradient
     mesh nepodporuje; multi-stop je nejbližší ekvivalent).
   - Slabý text-shadow přidává halo / depth bez ztráty čitelnosti.
   - Solid body text zachován; gradient JEN na headlineu. */
.display .accent {
  background: linear-gradient(
    135deg,
    #c4b5fd 0%,
    #a78bfa 35%,
    #7a8bff 65%,
    #6366f1 100%
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 0 24px rgb(167 139 250 / 0.35));
}

.lead {
  font-size: 19px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 0 32px;
}

.section-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(32px, 4vw, 42px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}
.section-subtitle {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}
section.section .section-title {
  text-align: center;
}

.card-title {
  font-family: 'Syne', sans-serif;
  font-size: 26px;
  line-height: 1.3;
  font-weight: 600;
  margin: 0 0 16px;
  color: rgb(var(--brand-secondary-rgb));
}

/* Hero ───────────────────────────────────────────────────────────────── */

.hero {
  padding: 96px 0 64px;
  position: relative;
}
.hero__inner {
  max-width: 880px;
}
.hero__cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
}

/* Buttons ────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.15s var(--ease-spring),
              box-shadow 0.15s var(--ease-spring),
              background-color 0.15s var(--ease-spring),
              color 0.15s var(--ease-spring);
}
.btn--primary {
  background: rgb(var(--accent-rgb));
  color: var(--bg-deep);
  box-shadow: 0 4px 16px rgb(var(--accent-rgb) / 0.25), 0 0 24px rgb(var(--accent-rgb) / 0.08);
}
.btn--primary:hover {
  transform: scale(1.05);
  box-shadow:
    0 6px 24px rgb(var(--accent-rgb) / 0.4),
    0 0 0 3px  rgb(var(--accent-rgb) / 0.15),
    0 0 24px   rgb(var(--accent-rgb) / 0.25);
}
.btn--primary:active {
  transform: scale(0.97);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.3);
}
.btn--ghost {
  background: transparent;
  color: rgb(var(--accent-rgb));
  border: 1px solid rgb(var(--accent-rgb) / 0.4);
}
.btn--ghost:hover {
  background: rgb(var(--accent-rgb));
  color: var(--bg-deep);
  border-color: rgb(var(--accent-rgb));
  transform: scale(1.05);
  box-shadow:
    0 6px 24px rgb(var(--accent-rgb) / 0.4),
    0 0 0 3px  rgb(var(--accent-rgb) / 0.15),
    0 0 24px   rgb(var(--accent-rgb) / 0.25);
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Glass cards ────────────────────────────────────────────────────────── */

.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.4),
    0 8px 24px rgba(0, 0, 0, 0.3),
    0 0 60px rgb(var(--brand-secondary-rgb) / 0.04);
}
.glass-card--tight {
  padding: 24px;
}
.glass-card--centered {
  text-align: center;
}
.glass-card--centered .lead {
  margin-left: auto;
  margin-right: auto;
}

/* Grid ──────────────────────────────────────────────────────────────── */

.grid {
  display: grid;
  gap: 24px;
}
.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
}
.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

/* Feature list ──────────────────────────────────────────────────────── */

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.feature-list li {
  position: relative;
  padding: 8px 0 8px 28px;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text-muted);
  font-size: 15px;
}
.feature-list li:last-child {
  border-bottom: none;
}
.feature-list li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 17px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgb(var(--brand-secondary-rgb));
  box-shadow: 0 0 12px rgb(var(--brand-secondary-rgb) / 0.5);
}
.feature-list strong {
  color: var(--text-primary);
}

/* Inline code ──────────────────────────────────────────────────────── */

code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.92em;
  padding: 2px 6px;
  background: rgb(var(--brand-secondary-rgb) / 0.1);
  border-radius: 4px;
  color: rgb(var(--brand-secondary-rgb));
}

/* Form ─────────────────────────────────────────────────────────────── */

.contact-form {
  margin-top: 24px;
}
.contact-form__grid {
  margin-bottom: 16px;
}
.field {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}
.field-label {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.field-help {
  font-size: 14px;
  color: var(--text-soft);
  margin: 8px 0;
  flex: 1;
}

.input {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgb(var(--accent-rgb) / 0.3);
  color: var(--text-primary);
  padding: 12px 16px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input:focus {
  border-color: rgb(var(--accent-rgb));
  box-shadow:
    0 0 0 2px rgb(var(--accent-rgb) / 0.5),
    0 0 8px   rgb(var(--accent-rgb) / 0.35),
    0 0 20px  rgb(var(--accent-rgb) / 0.2);
}
.input--textarea {
  resize: vertical;
  min-height: 120px;
  font-family: inherit;
}

.contact-form__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-soft);
}

/* Honeypot — hidden bot trap */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Submit button states */
.cf-submit__spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(0, 0, 0, 0.3);
  border-top-color: var(--bg-deep);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.btn[data-loading="true"] .cf-submit__label { opacity: 0.5; }
.btn[data-loading="true"] .cf-submit__spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Status messages */
.cf-status {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 15px;
  display: none;
}
.cf-status--success {
  display: block;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #22c55e;
}
.cf-status--error {
  display: block;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

/* Footer ───────────────────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--border-soft);
  padding: 32px 0;
  background: rgba(8, 11, 20, 0.5);
}
.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
  color: var(--text-muted);
}
.site-footer__brand {
  margin: 0 0 4px;
  color: var(--text-primary);
}
.site-footer__meta {
  margin: 0;
}
.site-footer__legal {
  text-align: right;
  font-size: 13px;
  color: var(--text-soft);
}
.site-footer__legal p {
  margin: 0;
}
.footer-link {
  color: rgb(var(--accent-rgb));
  text-decoration: none;
}
.footer-link:hover {
  text-shadow:
    0 0 8px  rgb(var(--accent-rgb) / 0.6),
    0 0 16px rgb(var(--accent-rgb) / 0.4);
}

/* Mobile tweaks ─────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .hero { padding: 64px 0 32px; }
  .glass-card { padding: 24px; }
  .site-footer__legal { text-align: left; }
}
