:root {
  --bg-dark: #050816;
  --bg-section: #0b1020;
  --accent: #3b82f6;
  --accent-soft: rgba(59, 130, 246, 0.1);
  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --border-subtle: #1f2937;
  --max-width: 1080px;
  --radius-lg: 16px;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.65);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: radial-gradient(circle at top, #111827 0, #020617 55%, #000 100%);
  color: var(--text-main);
  line-height: 1.7;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* NAV */

.nav-wrapper {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.96),
    rgba(15, 23, 42, 0.82),
    transparent
  );
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.6rem 1.25rem;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #e5e7eb;
}

.logo-badge {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid rgba(59, 130, 246, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  background: radial-gradient(circle at 30% 0%, #3b82f6 0, #0b1120 55%);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.9);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
}

.nav-links a {
  font-size: 0.85rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid transparent;
  color: #e5e7eb;
  text-decoration: none;
  background: transparent;
  transition: background 0.15s ease, border-color 0.15s ease,
    color 0.15s ease, transform 0.08s ease;
  white-space: nowrap;
}

.nav-links a:hover {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(148, 163, 184, 0.4);
  transform: translateY(-1px);
}

.nav-links a.btn-primary-nav {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  font-weight: 600;
}

.nav-links a.btn-primary-nav:hover {
  background: #2563eb;
  border-color: #2563eb;
}

/* LAYOUT */

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 4rem;
}

section {
  margin: 2.5rem 0;
  padding: 2rem 1.75rem;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top left, #111827 0, #020617 60%);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  /* NAV OVERLAP FIX – amikor anchorre ugorsz, hagyjon helyet a sticky menünek */
  scroll-margin-top: 80px;
}

section + section {
  margin-top: 2.25rem;
}

.section-header {
  margin-bottom: 1rem;
}

.section-kicker {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 0.2rem;
  font-weight: 600;
}

h1,
h2 {
  margin: 0;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.1rem, 3.6vw, 2.8rem);
}

h2 {
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
}

.hero h1 {
  font-size: clamp(1.8rem, 2.4vw, 2.2rem);
  line-height: 1.15;
}

p {
  margin: 0.3rem 0;
  color: var(--text-main);
}

.text-muted {
  color: var(--text-muted);
}

/* HERO */

#top {
  margin-top: 3.5rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2rem;
  /* make grid items stretch so .hero-copy and .hero-visual share the same height */
  align-items: stretch;
  margin-top: 1.5rem;
  margin-bottom: 2.5rem;
}

.hero-copy {
  padding: 2.2rem 2rem;
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: radial-gradient(circle at top left, #111827 0, #020617 60%);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.hero-copy::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(
    circle at top,
    rgba(59, 130, 246, 0.18),
    transparent 60%
  );
  opacity: 0.8;
  pointer-events: none;
  z-index: -1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.4);
  margin-bottom: 0.9rem;
  color: #e5e7eb;
}

.hero-eyebrow span {
  font-weight: 500;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.9);
}

.hero-lead {
  font-size: 0.98rem;
  margin-top: 0.75rem;
  color: #e5e7eb;
}

.hero-actions {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(to right, #3b82f6, #6366f1);
  color: white;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(59, 130, 246, 0.55);
  transition: transform 0.08s ease, box-shadow 0.12s ease,
    filter 0.12s ease;
  white-space: nowrap;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.7);
  filter: brightness(1.05);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.8);
  color: #e5e7eb;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  gap: 0.4rem;
  transition: background 0.15s ease, border-color 0.15s ease,
    transform 0.08s ease;
}

.btn-ghost:hover {
  background: rgba(15, 23, 42, 0.95);
  transform: translateY(-1px);
}

.hero-metrics {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero-metrics div strong {
  display: block;
  color: #e5e7eb;
  font-size: 0.9rem;
}

.hero-visual {
  padding: 1.9rem 1.75rem;
  border-radius: 24px;
  background: radial-gradient(circle at top left, #111827 0, #020617 60%);
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: var(--shadow-soft);
  text-align: left;
}

.hero-visual-header {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.5);
  font-size: 0.75rem;
  margin-bottom: 0.9rem;
  color: #e5e7eb;
}

.hero-visual h2 {
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
}

.hero-benefits {
  margin: 0.8rem 0 0.8rem;
  padding-left: 1.1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.hero-benefits li + li {
  margin-top: 0.2rem;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.45rem;
  margin-top: 0.7rem;
  font-size: 0.75rem;
}

.pill-list span {
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.8);
  color: #e5e7eb;
  white-space: nowrap;
}

/* GRID / CARDS */

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 1.4rem;
}

.card {
  padding: 1.3rem 1.25rem;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(31, 41, 55, 0.9);
}

.card-title {
  font-weight: 600;
  margin-bottom: 0.35rem;
  font-size: 0.98rem;
}

.tagline {
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
  color: var(--text-muted);
}

ul {
  margin: 0.4rem 0 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

li + li {
  margin-top: 0.2rem;
}

/* CONTACT */

.contact-block {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.95rem;
}

/* CONTACT FORM */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.contact-form label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.85);
  color: var(--text-main);
  font-size: 0.95rem;
  resize: vertical;
}

.contact-form textarea {
  min-height: 110px;
}

/* Simple modal */
.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease-in-out;
  z-index: 80;
}

.modal.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-panel {
  background: radial-gradient(circle at top left, #111827 0, #020617 60%);
  border: 1px solid rgba(148, 163, 184, 0.25);
  padding: 1.25rem 1.4rem;
  border-radius: 12px;
  max-width: 520px;
  width: calc(100% - 2rem);
  box-shadow: 0 18px 45px rgba(0,0,0,0.65);
  color: var(--text-main);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Center the form submit button */
.contact-form > div:last-child {
  display: flex;
  justify-content: center;
}

/* Make hero action buttons share available space and allow wrapping
   - Use flex so both buttons match width without clipping long text
*/
.hero-actions {
  display: flex; /* already set, but keep for specificity */
}

.hero-actions > * {
  flex: 1 1 0;
  min-width: 120px;
  justify-content: center;
  white-space: normal; /* allow wrapping for long labels */
  text-align: center;
}

/* Responsive: stack buttons full-width on narrow viewports */
@media (max-width: 768px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions > * {
    width: 100%;
  }
}


.contact-item-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}

.contact-email {
  font-size: 1.05rem;
  font-weight: 600;
}

/* FOOTER */

footer {
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  padding: 1.3rem 1.25rem 2.3rem;
  background: linear-gradient(
    to top,
    rgba(15, 23, 42, 0.98),
    rgba(15, 23, 42, 0.9),
    transparent
  );
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-links a {
  font-size: 0.8rem;
  text-decoration: none;
}

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

/* RESPONSIVE */

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

  .nav-links {
    justify-content: flex-start;
  }

  main {
    padding-inline: 1rem;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-copy {
    padding: 1.7rem 1.4rem;
  }

  .hero-visual {
    margin-top: 1rem;
    padding: 1.7rem 1.4rem;
  }

  section {
    padding: 1.7rem 1.4rem;
  }

  .grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Turnstile widget styling */
#turnstile-container {
  min-height: 70px;
  display: flex;
  justify-content: center;
  align-items: center;
}

#turnstile-container iframe {
  max-width: 100%;
}

/* Cookie Consent Banner */
#cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  transform: translateY(100%);
  transition: transform 400ms cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 100;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

#cookie-consent-banner.open {
  transform: translateY(0);
  pointer-events: auto;
}

.cookie-consent-panel {
  background: linear-gradient(to top, rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.80));
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(148, 163, 184, 0.3);
  padding: 1.25rem 2rem;
  color: var(--text-main);
  max-width: 100%;
  width: 100%;
}

.cookie-consent-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2.5rem;
}

.cookie-consent-content {
  flex: 0 1 auto;
  min-width: 0;
}

.cookie-consent-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.cookie-icon {
  width: 32px;
  height: 32px;
  background: radial-gradient(circle at 30% 30%, #3b82f6 0%, #1e40af 70%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
  flex-shrink: 0;
}

.cookie-consent-header h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
}

.cookie-consent-body {
  margin-bottom: 0;
}

.cookie-consent-body p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

.cookie-settings-toggle-btn {
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: var(--accent);
  padding: 0.7rem 1.25rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 150ms ease;
  white-space: nowrap;
}

.cookie-settings-toggle-btn:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: var(--accent);
}

#cookie-consent-details {
  display: none;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.cookie-option {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.cookie-option:last-child {
  border-bottom: none;
}

.cookie-option-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.cookie-option-toggle input[type="checkbox"] {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.cookie-toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: rgba(148, 163, 184, 0.3);
  border-radius: 24px;
  transition: background 200ms ease;
}

.cookie-toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: transform 200ms ease;
}

.cookie-option-toggle input:checked + .cookie-toggle-slider {
  background: var(--accent);
}

.cookie-option-toggle input:checked + .cookie-toggle-slider:before {
  transform: translateX(20px);
}

.cookie-option-toggle input:disabled + .cookie-toggle-slider {
  opacity: 0.5;
  cursor: not-allowed;
}

.cookie-option-info {
  flex: 1;
}

.cookie-option-info strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
  color: var(--text-main);
}

.cookie-option-info span {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.cookie-consent-actions {
  display: flex;
  gap: 0.625rem;
  flex-wrap: nowrap;
  flex-shrink: 0;
  align-items: center;
  align-self: flex-end;
}

.cookie-consent-actions button {
  padding: 0.625rem 1.125rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 150ms ease;
  border: none;
  white-space: nowrap;
}

#cookie-accept-all {
  background: var(--accent);
  color: white;
}

#cookie-accept-all:hover {
  background: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

#cookie-reject-all {
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: var(--text-muted);
}

#cookie-reject-all:hover {
  border-color: rgba(148, 163, 184, 0.5);
  color: var(--text-main);
}

#cookie-save-preferences {
  background: rgba(59, 130, 246, 0.15);
  color: var(--accent);
  border: 1px solid var(--accent);
}

#cookie-save-preferences:hover {
  background: rgba(59, 130, 246, 0.25);
}

#cookie-settings-toggle {
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: var(--accent);
}

#cookie-settings-toggle:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: var(--accent);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .cookie-consent-panel {
    padding: 1.25rem 1.5rem;
  }

  .cookie-consent-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .cookie-consent-content {
    max-width: 100%;
  }

  .cookie-consent-actions {
    justify-content: flex-end;
    flex-wrap: wrap;
  }
}

@media (max-width: 600px) {
  .cookie-consent-panel {
    padding: 1rem;
  }

  .cookie-consent-header h3 {
    font-size: 0.95rem;
  }

  .cookie-consent-body p {
    font-size: 0.8rem;
  }

  .cookie-consent-actions button {
    padding: 0.65rem 0.9rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 400px) {
  .cookie-consent-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-consent-actions button {
    width: 100%;
    padding: 0.7rem 1rem;
  }
}
