/* AdBeam SmartPole — premium landing */

:root {
  --bg: #050505;
  --bg-card: rgba(17, 17, 17, 0.72);
  --text: #f5f5f7;
  --text-muted: #a1a1a6;
  --text-dim: #6e6e73;
  --accent: #c8a96e;
  --border: rgba(255, 255, 255, 0.1);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --ease-out: cubic-bezier(0.25, 0.1, 0.25, 1);
  --header-h: 52px;
  --content-max: min(90rem, 94vw);
  --content-text: min(52rem, 100%);
  --overlay-vignette: linear-gradient(
    180deg,
    rgba(5, 5, 5, 0.72) 0%,
    rgba(5, 5, 5, 0.45) 35%,
    rgba(5, 5, 5, 0.45) 65%,
    rgba(5, 5, 5, 0.78) 100%
  );
  --overlay-radial: radial-gradient(
    ellipse 85% 70% at 50% 45%,
    rgba(5, 5, 5, 0.25) 0%,
    rgba(5, 5, 5, 0.65) 100%
  );
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
}

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

img {
  display: block;
  max-width: 100%;
}

/* Fix háttér rétegek */
.page-bgs {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.page-bg {
  position: absolute;
  inset: 0;
  opacity: 0;
  will-change: opacity;
}

.page-bg.is-active {
  opacity: 1;
}

.page-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* Hero kép: oszlop jobbra, szöveg balra */
.page-bg--hero img {
  object-position: 58% center;
}

.page-bg--hero::before {
  background:
    linear-gradient(
      90deg,
      rgba(5, 5, 5, 0.9) 0%,
      rgba(5, 5, 5, 0.78) 38%,
      rgba(5, 5, 5, 0.35) 52%,
      rgba(5, 5, 5, 0.08) 68%,
      transparent 100%
    ),
    var(--overlay-vignette);
}

.page-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--overlay-radial), var(--overlay-vignette);
}

.page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: 0.3;
}

.page-content {
  position: relative;
  z-index: 1;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 clamp(1rem, 3vw, 2.5rem);
  max-width: 100%;
  background: linear-gradient(to bottom, rgba(5, 5, 5, 0.88), transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.logo {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 2rem);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
}

.header-nav a:hover {
  color: var(--text);
  transition: color 0.25s var(--ease-out);
}

.nav-cta {
  color: var(--text) !important;
  padding: 0.4rem 0.9rem;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.1);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: transform 0.3s var(--ease-out), background 0.3s var(--ease-out);
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
}

.btn-primary:hover {
  transform: scale(1.03);
  background: #e8e8ed;
}

.btn-arrow {
  font-size: 1.1em;
  opacity: 0.7;
}

/* Sections — középre igazított tartalom */
.section {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.section-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: calc(var(--header-h) + clamp(2rem, 5vh, 3.5rem)) clamp(1.25rem, 4vw, 3rem)
    clamp(3rem, 8vh, 5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Hero — bal oldali szöveg a kép bal felén */
.hero {
  align-items: stretch;
  justify-content: center;
  text-align: left;
}

.hero .section-inner {
  align-items: flex-start;
  text-align: left;
}

.hero-content {
  width: 100%;
  max-width: min(36rem, 48%);
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: clamp(2rem, 4.5vw, 4.25rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  font-size: clamp(0.9375rem, 1.6vw, 1.125rem);
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 100%;
  margin: 0 0 2.5rem;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.45);
}

.hero .btn-primary {
  align-self: flex-start;
}

.hero-scroll-hint {
  position: absolute;
  bottom: clamp(1.25rem, 3vh, 2rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  animation: pulse-hint 2.5s ease-in-out infinite;
}

@keyframes pulse-hint {
  0%, 100% { opacity: 0.4; transform: translateX(-50%) translateY(0); }
  50% { opacity: 0.8; transform: translateX(-50%) translateY(4px); }
}

/* Story / funkciók */
.story .section-inner {
  gap: clamp(2rem, 4vh, 3rem);
  align-items: stretch;
}

.story-intro {
  align-self: center;
  width: 100%;
  max-width: var(--content-text);
  text-align: center;
  font-size: clamp(0.75rem, 1.2vw, 0.8125rem);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  line-height: 1.4;
}

.features-grid {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 5vh, 3rem);
  padding: clamp(1rem, 3vh, 2rem) 0;
}

.feature {
  width: 100%;
  max-width: 26rem;
  padding: clamp(1.5rem, 3vw, 2rem);
  border-radius: 16px;
  background: rgba(5, 5, 5, 0.5);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-align: left;
}

.feature-title {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.feature-text {
  font-size: clamp(0.875rem, 1.25vw, 1rem);
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Specs */
.specs .section-inner {
  width: 100%;
}

.specs-heading {
  width: 100%;
  max-width: var(--content-text);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
}

.specs-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: 20px;
  overflow: hidden;
}

.spec-card {
  background: var(--bg-card);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.35s var(--ease-out);
}

.spec-card:hover {
  background: rgba(22, 22, 22, 0.88);
}

.spec-icon {
  width: 48px;
  height: 48px;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.spec-icon svg {
  width: 100%;
  height: 100%;
}

.spec-title {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.spec-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 18rem;
}

/* Footer */
.footer {
  min-height: 70vh;
  min-height: 70dvh;
}

.footer-inner {
  width: 100%;
  max-width: var(--content-text);
}

.breadcrumb {
  margin-bottom: 1.5rem;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.5rem;
  list-style: none;
  font-size: 0.75rem;
  color: var(--text-dim);
}

.breadcrumb-list li + li::before {
  content: "/";
  margin-right: 0.5rem;
  color: var(--text-dim);
  pointer-events: none;
}

.breadcrumb-list a {
  color: var(--text-muted);
  transition: color 0.25s var(--ease-out);
}

.breadcrumb-list a:hover {
  color: var(--accent);
}

.breadcrumb-list [aria-current="page"] {
  color: var(--text);
}

.footer-cta {
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
}

.footer-lead {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.footer-email {
  display: inline-block;
  font-weight: 500;
  color: var(--accent);
  margin-left: 0.25rem;
  transition: opacity 0.25s;
}

.footer-email:hover {
  opacity: 0.75;
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.footer-brand {
  color: var(--text-muted);
  transition: color 0.25s var(--ease-out);
}

.footer-brand:hover {
  color: var(--accent);
}

/* Asztali — elszórt funkció dobozok */
@media (min-width: 900px) {
  .features-grid {
    gap: clamp(5rem, 12vh, 9rem);
    padding: clamp(2rem, 6vh, 4rem) 0 clamp(3rem, 8vh, 6rem);
  }

  .feature {
    width: min(26rem, 36vw);
    max-width: none;
  }

  .features-grid .feature:nth-child(1) {
    align-self: flex-start;
    margin-left: clamp(0rem, 3vw, 4rem);
  }

  .features-grid .feature:nth-child(2) {
    align-self: flex-end;
    margin-right: clamp(1rem, 10vw, 12rem);
    width: min(24rem, 32vw);
    text-align: right;
  }

  .features-grid .feature:nth-child(3) {
    align-self: flex-start;
    margin-left: clamp(3rem, 16vw, 14rem);
    width: min(22rem, 30vw);
  }

  .features-grid .feature:nth-child(4) {
    align-self: flex-end;
    margin-right: clamp(0rem, 6vw, 8rem);
    width: min(28rem, 38vw);
    text-align: right;
  }
}

@media (min-width: 1100px) {
  .specs-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .spec-desc {
    max-width: none;
  }
}

/* Mobil */
@media (max-width: 768px) {
  :root {
    --content-max: 100%;
  }

  .header-nav a:not(.nav-cta) {
    display: none;
  }

  .section {
    min-height: auto;
  }

  .hero {
    min-height: 100svh;
    text-align: center;
  }

  .hero .section-inner {
    align-items: center;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .page-bg--hero img {
    object-position: 65% center;
  }

  .page-bg--hero::before {
    background: linear-gradient(
        180deg,
        rgba(5, 5, 5, 0.85) 0%,
        rgba(5, 5, 5, 0.6) 50%,
        rgba(5, 5, 5, 0.8) 100%
      ),
      var(--overlay-radial);
  }

  .section-inner {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    padding-bottom: 3rem;
  }

  .hero-title {
    font-size: clamp(1.75rem, 8vw, 2.25rem);
  }

  .hero-subtitle {
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 2rem;
  }

  .hero .btn-primary {
    align-self: center;
    width: 100%;
    max-width: 20rem;
  }

  .btn {
    width: 100%;
    max-width: 20rem;
  }

  .story .section-inner {
    gap: 2rem;
  }

  .features-grid {
    gap: 1.75rem;
    padding: 0.5rem 0 1rem;
  }

  .feature {
    max-width: 100%;
    padding: 1.25rem;
    align-self: stretch !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    text-align: left !important;
    width: 100% !important;
  }

  .specs-grid {
    grid-template-columns: 1fr;
    border-radius: 16px;
  }

  .spec-card {
    padding: 1.5rem;
  }

  .footer {
    min-height: 60svh;
  }

  .page-bg::before {
    background: linear-gradient(
        180deg,
        rgba(5, 5, 5, 0.82) 0%,
        rgba(5, 5, 5, 0.55) 50%,
        rgba(5, 5, 5, 0.85) 100%
      ),
      var(--overlay-radial);
  }
}

@media (max-width: 380px) {
  .logo {
    font-size: 1rem;
  }

  .nav-cta {
    padding: 0.35rem 0.7rem;
    font-size: 0.75rem;
  }
}

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

  .hero-scroll-hint {
    animation: none;
  }

  .page-bg {
    transition: opacity 0.4s ease;
  }
}
