:root {
  --bg: #08090d;
  --bg-soft: #11141c;
  --card: #171b25;
  --text: #f5f7fb;
  --muted: #a7afc0;
  --accent: #ff2d2d;
  --accent-soft: rgba(255, 45, 45, 0.18);
  --border: rgba(255, 255, 255, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
}

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

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 9, 13, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.5px;
}

.logo span {
  color: var(--accent);
}

.nav nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 15px;
}

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

.nav-cta {
  padding: 10px 16px;
  background: var(--accent);
  color: white !important;
  border-radius: 999px;
}

.hero {
  padding: 90px 0 70px;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 45, 45, 0.2), transparent 30%),
    linear-gradient(180deg, #11141c 0%, #08090d 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  color: var(--accent);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  font-size: 13px;
}

h1 {
  font-size: clamp(42px, 6vw, 74px);
  line-height: 0.95;
  margin: 16px 0 22px;
  letter-spacing: -2px;
}

h2 {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1;
  margin: 10px 0 18px;
  letter-spacing: -1.5px;
}

h3 {
  margin: 0 0 10px;
  font-size: 21px;
}

p {
  color: var(--muted);
  line-height: 1.65;
}

.lead {
  font-size: 19px;
  max-width: 640px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 32px 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
}

.btn.primary {
  background: var(--accent);
  color: white;
}

.btn.secondary {
  border: 1px solid var(--border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.hero-points {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-points span {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  font-size: 14px;
}

.image-placeholder {
  min-height: 420px;
  border-radius: 28px;
  border: 1px solid var(--border);
  background:
    linear-gradient(135deg, rgba(255, 45, 45, 0.18), transparent),
    #151923;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  overflow: hidden;
}

.section {
  padding: 92px 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 40px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.step-card,
.benefit-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 26px;
}

.step-number {
  color: var(--accent);
  font-size: 14px;
  font-weight: 900;
  margin-bottom: 40px;
}

.dark-section {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 44px;
  align-items: start;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.gallery {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 18px;
}

.gallery-item {
  min-height: 320px;
}

.process-section {
  background: #0c0e14;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.timeline div {
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  text-align: center;
  font-weight: 800;
}

.cta-section {
  padding-top: 60px;
}

.cta-box {
  background:
    radial-gradient(circle at top right, rgba(255, 45, 45, 0.25), transparent 35%),
    var(--card);
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: 54px;
  text-align: center;
}

.cta-box p {
  max-width: 650px;
  margin: 0 auto 28px;
}

.footer {
  padding: 30px 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 900px) {
  .nav nav {
    display: none;
  }

  .hero-grid,
  .split {
    grid-template-columns: 1fr;
  }

  .steps,
  .benefit-grid,
  .timeline,
  .gallery {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 60px;
  }

  .image-placeholder {
    min-height: 300px;
  }

  .cta-box {
    padding: 34px 24px;
  }
}

.hero-image img,
.gallery-item img,
.image-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.hero-image {
  min-height: 420px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.gallery-item {
  min-height: 320px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card);
}

.image-card {
  min-height: 380px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card);
}

.image-text-section {
  background: #0c0e14;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  height: 58px;
}

.site-logo img {
  height: 58px;
  width: auto;
  display: block;
}

.back-to-top {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 100;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 900;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.back-to-top:hover {
  transform: translateY(-2px);
}

@media (max-width: 900px) {
  .site-logo img {
    height: 46px;
  }

  .back-to-top {
    width: 42px;
    height: 42px;
    left: 14px;
    bottom: 14px;
    font-size: 22px;
  }
}

/* Scroll animációk */

.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Balról */

.reveal-left {
    opacity: 0;
    transform: translateX(-80px);
    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

/* Jobbról */

.reveal-right {
    opacity: 0;
    transform: translateX(80px);
    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* Kártyák finom, egymás utáni beúszása */
.step-card,
.benefit-card,
.gallery-item,
.image-card,
.timeline div {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity 0.75s ease,
    transform 0.75s ease;
}

.step-card.active,
.benefit-card.active,
.gallery-item.active,
.image-card.active,
.timeline div.active {
  opacity: 1;
  transform: translateY(0);
}

.steps .step-card:nth-child(1),
.benefit-grid .benefit-card:nth-child(1),
.gallery .gallery-item:nth-child(1),
.timeline div:nth-child(1) { transition-delay: .08s; }

.steps .step-card:nth-child(2),
.benefit-grid .benefit-card:nth-child(2),
.gallery .gallery-item:nth-child(2),
.timeline div:nth-child(2) { transition-delay: .16s; }

.steps .step-card:nth-child(3),
.benefit-grid .benefit-card:nth-child(3),
.gallery .gallery-item:nth-child(3),
.timeline div:nth-child(3) { transition-delay: .24s; }

.steps .step-card:nth-child(4),
.benefit-grid .benefit-card:nth-child(4),
.timeline div:nth-child(4) { transition-delay: .32s; }

.timeline div:nth-child(5) { transition-delay: .40s; }

/* Akinek ki van kapcsolva a mozgás a rendszerében, annak ne animáljunk */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-left,
  .reveal-right,
  .step-card,
  .benefit-card,
  .gallery-item,
  .image-card,
  .timeline div {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* =========================
   Tablet + mobil finomhangolás
   ========================= */

/* Képarányok stabilizálása */
.hero-image,
.gallery-item,
.image-card {
  aspect-ratio: 16 / 10;
  min-height: auto;
}

.hero-image img,
.gallery-item img,
.image-card img {
  height: 100%;
}

/* Tablet */
@media (max-width: 1100px) {
  .container {
    width: min(100% - 32px, 960px);
  }

  .hero {
    padding: 72px 0 56px;
  }

  .hero-grid,
  .split {
    gap: 32px;
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-item:first-child {
    grid-column: span 2;
  }
}

/* Mobil / kisebb tablet */
@media (max-width: 900px) {
  .site-header {
    position: sticky;
  }

  .nav {
    height: auto;
    min-height: 72px;
    padding: 10px 0;
    gap: 12px;
    flex-direction: column;
    align-items: flex-start;
  }

  .site-logo img {
    height: 46px;
  }

  .nav nav {
    display: flex;
    width: 100%;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .nav nav::-webkit-scrollbar {
    display: none;
  }

  .nav nav a {
    flex: 0 0 auto;
    font-size: 13px;
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255,255,255,.04);
  }

  .nav-cta {
    background: var(--accent) !important;
    color: #fff !important;
  }

  .hero {
    padding: 48px 0 46px;
  }

  .hero-grid,
  .split {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(38px, 11vw, 54px);
    line-height: 1;
    letter-spacing: -1.4px;
  }

  h2 {
    font-size: clamp(30px, 8vw, 42px);
    line-height: 1.05;
    letter-spacing: -1px;
  }

  .lead {
    font-size: 17px;
  }

  .section {
    padding: 64px 0;
  }

  .section-head {
    margin-bottom: 28px;
  }

  .steps,
  .benefit-grid,
  .timeline,
  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery-item:first-child {
    grid-column: auto;
  }

  .step-card,
  .benefit-card {
    padding: 22px;
  }

  .step-number {
    margin-bottom: 24px;
  }

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

  .btn {
    width: 100%;
  }

  .hero-points span {
    font-size: 13px;
  }

  .cta-box {
    padding: 34px 22px;
    border-radius: 24px;
  }

  .back-to-top {
    width: 42px;
    height: 42px;
    left: 14px;
    bottom: 14px;
    font-size: 22px;
  }

  /* Mobilon ne legyen oldalirányú beúszás, mert tud vízszintes scrollt okozni */
  .reveal-left,
  .reveal-right {
    transform: translateY(42px);
  }

  .reveal-left.active,
  .reveal-right.active {
    transform: translateY(0);
  }
}

/* Kicsi mobil */
@media (max-width: 560px) {
  .container {
    width: calc(100% - 24px);
  }

  .site-logo img {
    height: 40px;
  }

  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 30px;
  }

  p {
    line-height: 1.55;
  }

  .hero {
    padding-top: 38px;
  }

  .hero-image,
  .gallery-item,
  .image-card {
    border-radius: 18px;
    aspect-ratio: 4 / 3;
  }

  .hero-image {
    aspect-ratio: 16 / 11;
  }

  .section {
    padding: 54px 0;
  }

  .timeline div {
    text-align: left;
  }

  .footer {
    padding-left: 52px;
  }
}
