:root {
  --bg: #030712;
  --bg-soft: #020617;
  --bg-elevated: #020617;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --accent: #3b82f6;
  --accent-soft: rgba(59, 130, 246, 0.14);
  --border-subtle: rgba(148, 163, 184, 0.3);
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-soft: 0 20px 45px rgba(15, 23, 42, 0.7);
  --shadow-subtle: 0 14px 30px rgba(15, 23, 42, 0.6);
  --max-width: 1120px;
}

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

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

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

/* Layout */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.4rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: linear-gradient(
    to bottom,
    rgba(3, 7, 18, 0.98),
    rgba(3, 7, 18, 0.9),
    rgba(3, 7, 18, 0.4),
    transparent
  );
  border-bottom: 1px solid rgba(15, 23, 42, 0.85);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.86rem;
  color: #e5e7eb;
}

.logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #e0f2fe, #3b82f6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #020617;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.8);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  font-size: 0.9rem;
}

.main-nav a {
  position: relative;
  color: var(--muted);
  text-decoration: none;
  padding-bottom: 0.15rem;
  transition: color 0.18s ease-out;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.15rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #3b82f6, #22d3ee);
  transition: width 0.18s ease-out;
}

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

.main-nav a:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.7);
  color: #dbeafe;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.9);
}

/* Hero */

.hero {
  padding: 3.5rem 0 3.1rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.1fr);
  gap: 2.4rem;
  align-items: center;
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  color: #60a5fa;
  margin-bottom: 0.8rem;
}

.hero-text h1 {
  font-size: clamp(2.3rem, 4vw, 3.1rem);
  line-height: 1.06;
  letter-spacing: -0.04em;
  margin: 0 0 0.9rem;
}

.hero-text h1 span {
  color: #bfdbfe;
}

.hero-subtitle {
  margin: 0 0 1.7rem;
  color: var(--muted);
  max-width: 35rem;
  font-size: 0.98rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.4rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.8rem;
}

.hero-pill {
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.5);
}

.hero-pill-soft {
  background: rgba(30, 64, 175, 0.5);
  border-color: rgba(59, 130, 246, 0.7);
}

/* Hero preview */

.hero-preview {
  display: flex;
  justify-content: flex-end;
}

.preview-frame {
  background: radial-gradient(circle at top, #111827, #020617);
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  padding: 1rem;
  box-shadow: var(--shadow-soft);
  max-width: 420px;
  width: 100%;
}

.preview-tag {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #bfdbfe;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(59, 130, 246, 0.7);
  margin-bottom: 0.6rem;
}

.preview-frame img {
  width: 100%;
  border-radius: 14px;
  display: block;
}

.preview-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.6rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.preview-label {
  display: block;
}

.preview-value {
  color: #e5e7eb;
}

/* Buttons */

.btn {
  border-radius: 999px;
  padding: 0.65rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.15s ease-out,
              box-shadow 0.15s ease-out,
              background 0.15s ease-out,
              color 0.15s ease-out,
              border-color 0.15s ease-out;
}

.btn-primary {
  background: linear-gradient(135deg, #3b82f6, #0ea5e9);
  color: #e0f2fe;
  box-shadow: var(--shadow-subtle);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border-color: rgba(148, 163, 184, 0.6);
}

.btn-ghost:hover {
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
}

/* Sections */

.section {
  padding: 2.6rem 0 2.9rem;
}

.section-alt {
  background: radial-gradient(circle at top, #020617, #020617 45%, #000 100%);
  border-top: 1px solid rgba(15, 23, 42, 0.9);
  border-bottom: 1px solid rgba(15, 23, 42, 0.9);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 1.4rem;
  align-items: flex-end;
  margin-bottom: 1.7rem;
}

.section-heading h2 {
  margin: 0;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  margin: 0;
  max-width: 26rem;
  font-size: 0.9rem;
  color: var(--muted);
  text-align: right;
}

/* About */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.1fr);
  gap: 2rem;
}

.about-grid p {
  color: var(--muted);
  font-size: 0.95rem;
}

.about-card {
  background: rgba(15, 23, 42, 0.95);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.3rem;
  border: 1px solid rgba(148, 163, 184, 0.6);
  box-shadow: var(--shadow-subtle);
  font-size: 0.9rem;
}

.about-card h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
}

.about-card ul {
  margin: 0;
  padding-left: 1.1rem;
}

/* Cards (Services) */

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

.card {
  background: rgba(15, 23, 42, 0.96);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.3rem;
  border: 1px solid rgba(30, 64, 175, 0.6);
  box-shadow: var(--shadow-subtle);
  font-size: 0.92rem;
}

.card h3 {
  margin: 0 0 0.5rem;
}

.card p {
  margin: 0 0 0.7rem;
  color: var(--muted);
}

.card-list {
  padding-left: 1.1rem;
  margin: 0;
  color: #cbd5f5;
  font-size: 0.9rem;
}

/* Portfolio */

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

.portfolio-item {
  background: rgba(15, 23, 42, 0.96);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(37, 99, 235, 0.7);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
}

.portfolio-item img {
  width: 100%;
  display: block;
  object-fit: cover;
  height: 190px;
}

.portfolio-tag {
  position: absolute;
}

.portfolio-item {
  position: relative;
}

.portfolio-tag {
  top: 0.8rem;
  left: 0.8rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(59, 130, 246, 0.8);
  color: #bfdbfe;
}

.portfolio-info {
  padding: 0.8rem 1rem 1rem;
  font-size: 0.9rem;
}

.portfolio-info h3 {
  margin: 0 0 0.35rem;
}

.portfolio-info p {
  margin: 0;
  color: var(--muted);
}

.portfolio-note {
  margin-top: 1.2rem;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Workflow steps */

.steps {
  margin: 0;
  padding-left: 1.4rem;
  display: grid;
  gap: 1.1rem;
}

.steps li {
  margin-left: 0.3rem;
}

.steps h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.steps p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Kontakt */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.2fr);
  gap: 2rem;
}

.contact-box {
  margin-top: 1rem;
  background: rgba(15, 23, 42, 0.96);
  border-radius: var(--radius-lg);
  padding: 1rem 1.1rem;
  border: 1px solid rgba(37, 99, 235, 0.7);
  box-shadow: var(--shadow-subtle);
  font-size: 0.9rem;
}

.contact-box p {
  margin: 0.3rem 0;
}

.contact-box a {
  color: #93c5fd;
  text-decoration: none;
}

/* Form */

.contact-form {
  background: rgba(15, 23, 42, 0.96);
  border-radius: var(--radius-lg);
  padding: 1.3rem 1.4rem 1.4rem;
  border: 1px solid rgba(30, 64, 175, 0.9);
  box-shadow: var(--shadow-soft);
  font-size: 0.9rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.8rem;
}

label {
  font-size: 0.8rem;
  color: var(--muted);
}

input,
select,
textarea {
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.8);
  padding: 0.5rem 0.6rem;
  font-family: inherit;
  font-size: 0.9rem;
  background: #020617;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s ease-out,
              box-shadow 0.15s ease-out,
              background 0.15s ease-out;
}

input::placeholder,
textarea::placeholder {
  color: #64748b;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.6);
  background: #020617;
}

textarea {
  resize: vertical;
}

.form-note {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0.2rem 0 0.8rem;
}

/* Footer */

.site-footer {
  border-top: 1px solid rgba(15, 23, 42, 0.9);
  padding: 1.2rem 0 1.6rem;
  background: #020617;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.footer-links {
  opacity: 0.8;
}

/* Responsive */

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-preview {
    justify-content: flex-start;
  }
}

@media (max-width: 820px) {
  .about-grid,
  .card-grid,
  .portfolio-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .card-grid,
  .portfolio-grid {
    gap: 1rem;
  }
}

@media (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

  .main-nav {
    flex-wrap: wrap;
    gap: 0.9rem;
  }

  .section-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-subtitle {
    text-align: left;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

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