/* ===== Root + reset ===== */
:root {
  --burgundy: #7b1435;
  --burgundy-dark: #4d0c21;
  --burgundy-soft: #a3214a;
  --bg-dark: #050308;
  --bg-light: #f5f4f7;
  --text-main: #111111;
  --text-muted: #555555;
  --white: #ffffff;
  --border-subtle: #dedbe5;
  --shadow-soft: 0 18px 38px rgba(0, 0, 0, 0.35);
  --radius-lg: 14px;
  --radius-pill: 999px;
  --nav-height: 72px;
  --max-width: 1120px;
  --transition-fast: 0.2s ease-out;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

body {
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: #000;
}

/* ===== Header / Top bar ===== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  backdrop-filter: blur(16px);
  background: linear-gradient(
    to bottom,
    rgba(5, 3, 8, 0.92),
    rgba(5, 3, 8, 0.65),
    transparent
  );
  z-index: 20;
}

.nav-container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Brand / Logo */

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--white);
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: radial-gradient(circle at 30% 30%, var(--burgundy-soft), var(--burgundy-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.brand-tagline {
  font-size: 0.75rem;
  color: #cccccc;
}

/* Nav links */

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
}

.nav-link {
  position: relative;
  font-size: 0.9rem;
  color: #d6d3e5;
  text-decoration: none;
  padding: 4px 0;
}

/* underline effect for nav links */
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--burgundy-soft);
  transition: width var(--transition-fast);
}

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

/* Right side (search + CTA + toggle) */

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 6px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.06);
}

.icon-search {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 2px solid #e0dcee;
  position: relative;
}

.icon-search::after {
  /* small "handle" for the magnifying glass */
  content: "";
  position: absolute;
  width: 7px;
  height: 2px;
  border-radius: 999px;
  background: #e0dcee;
  transform: rotate(45deg);
  right: -4px;
  bottom: 0;
}

/* Buttons */

.btn-outline,
.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  padding: 8px 18px;
  white-space: nowrap;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.6);
  color: #ffffff;
  background: transparent;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-outline.small {
  padding: 6px 14px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--burgundy-soft), var(--burgundy-dark));
  color: var(--white);
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}

.btn-ghost {
  background: rgba(5, 3, 8, 0.7);
  color: #f4eef5;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

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

/* Mobile toggle */

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(5, 3, 8, 0.7);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  background: #f5f4ff;
}

/* ===== Dropdown (Szolgáltatások) ===== */

.dropdown {
  position: relative;
}

.dropdown-toggle {
  border: none;
  background: transparent;
  color: #d6d3e5;
  font-size: 0.9rem;
  padding: 4px 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.dropdown-toggle:focus {
  outline: none;
}

.dropdown-caret {
  font-size: 0.7rem;
}

.dropdown-menu {
  position: absolute;
  top: 170%;
  left: 0;
  min-width: 220px;
  background: rgba(5, 3, 8, 0.97);
  border-radius: 10px;
  padding: 10px 10px 8px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  z-index: 30;
}

.dropdown.open .dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.dropdown-title {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #a59ac5;
  margin: 0 4px 6px;
}

.dropdown-item {
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 0.85rem;
  color: #e5ddff;
  cursor: pointer;
}

.dropdown-item:hover {
  background: rgba(123, 20, 53, 0.55);
}

/* ===== HERO ===== */

.hero {
  position: relative;
  height: min(88vh, 720px);
  margin-top: var(--nav-height);
  overflow: hidden;
  background: radial-gradient(circle at 20% 0, #410519, #050308 55%, #020107 100%);
  color: #f7f2ff;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1) contrast(1.05) brightness(1.0);
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 0, rgba(123, 20, 53, 0.45), transparent 55%),
    radial-gradient(circle at 80% 75%, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.45));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 20px 40px;
}

.hero-eyebrow {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  color: #ffd8e2;
  margin-bottom: 10px;
}

.hero h1 {
  font-size: clamp(2.1rem, 3vw, 2.8rem);
  line-height: 1.1;
  margin: 0 0 16px;
}

.hero-subtitle {
  max-width: 540px;
  color: #f3e8ff;
  font-size: 0.98rem;
  line-height: 1.6;
  margin: 0 0 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.hero-meta {
  font-size: 0.8rem;
  color: #f7d3ea;
}

/* ===== Sections ===== */

.section {
  padding: 64px 16px;
}

.section-light {
  background: var(--bg-light);
  color: var(--text-main);
}

.section-dark {
  background: #1a1218;
  color: #f7f2ff;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section h2 {
  font-size: 1.7rem;
  margin-bottom: 12px;
}

.section p {
  font-size: 0.98rem;
  color: var(--text-muted);
  max-width: 720px;
}

/* Features */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.feature-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 18px 18px 20px;
  box-shadow: 0 12px 24px rgba(26, 18, 24, 0.1);
  border: 1px solid var(--border-subtle);
}

.feature-card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

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

/* Solutions */

.solution-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.solution-card {
  border-radius: var(--radius-lg);
  padding: 18px 18px 20px;
  background: radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.08), transparent 55%),
              linear-gradient(to bottom right, #2a1621, #07030b);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.solution-card h3 {
  margin: 4px 0 8px;
  font-size: 1.05rem;
}

.solution-card p {
  margin: 0;
  font-size: 0.9rem;
  color: #e9d5ff;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* ===== Footer ===== */

.site-footer {
  background: #050308;
  color: #d1c6e0;
  padding: 18px 16px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
}

.footer-logo {
  font-size: 0.9rem;
}

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

.footer-text {
  color: #9f92b9;
}

.footer-links {
  display: flex;
  gap: 14px;
  font-size: 0.8rem;
}

.footer-links a {
  color: #d1c6e0;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* ===== Responsive ===== */

@media (max-width: 960px) {
  .main-nav {
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(5, 3, 8, 0.98);
    padding: 12px 20px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
  }

  .main-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .btn-outline.small {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-content {
    padding-top: 70px;
  }

  .feature-grid,
  .solution-grid {
    grid-template-columns: 1fr;
  }

  .dropdown-menu {
    position: static;
    margin-top: 6px;
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.16);
  }
}
