/* RackForest – domain landing
   Közös stílus a HU és EN oldalhoz. */

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

:root {
  --green: #259b24;
  --green-light: #4fd44e;      /* sötét háttéren olvasható zöld */
  --bg: #141414;
  --text: #ffffff;
  --muted: #c3cbc4;            /* NEM azonos a --text-tel, kell a hierarchia */
  --card: rgba(75, 75, 75, 0.8);
  --border: rgba(202, 202, 202, 0.12);
  --border-strong: rgba(202, 202, 202, 0.2);
  --shadow: 0 15px 40px rgba(22, 179, 95, 0.08);
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
          "Liberation Mono", monospace;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Háttér-glow */
body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
}

body::before {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(22, 179, 95, 0.12) 0%, transparent 70%);
  top: -200px;
  right: -200px;
  animation: float 10s ease-in-out infinite alternate;
}

body::after {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(22, 179, 95, 0.08) 0%, transparent 70%);
  bottom: -200px;
  left: -200px;
  animation: float2 12s ease-in-out infinite alternate;
}

@keyframes float {
  from { transform: translate(0, 0); }
  to   { transform: translate(-50px, 50px); }
}

@keyframes float2 {
  from { transform: translate(0, 0); }
  to   { transform: translate(40px, -40px); }
}

/* ---------- Fejléc ---------- */

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 28px 40px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  min-height: 40px;
}

.brand a {
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
}

.logo-img {
  display: block;
  height: 40px;
  width: auto;
  /* ha a kép nem tölt be, az alt szöveg olvasható marad */
  color: var(--text);
  font-weight: 700;
  font-size: 20px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.lang-switcher {
  display: flex;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  padding: 4px;
  border: 1px solid var(--border);
  backdrop-filter: blur(5px);
}

.lang-btn {
  text-decoration: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  transition: color .3s ease, background .3s ease;
}

.lang-btn:hover {
  color: #ffffff;
}

.lang-btn.active {
  background: linear-gradient(135deg, var(--green), #2fb92d);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(22, 179, 95, 0.25);
}

/* ---------- Törzs ---------- */

.container {
  flex: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(79, 212, 78, 0.1);
  color: var(--green-light);
  font-weight: 600;
  font-size: 14px;
  border: 1px solid rgba(79, 212, 78, 0.25);
  animation: fadeUp .8s ease both;
}

.success-icon {
  width: 95px;
  height: 95px;
  border-radius: 50%;
  margin: 35px auto 25px;
  background: linear-gradient(135deg, var(--green), #2fb92d);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow:
    0 20px 50px rgba(22, 179, 95, 0.3),
    inset 0 0 20px rgba(255, 255, 255, 0.2);
  animation: popIn .8s ease both;
  position: relative;
}

.success-icon::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: inherit;
  border: 2px solid rgba(22, 179, 95, 0.25);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%   { transform: scale(1);   opacity: 1; }
  100% { transform: scale(1.3); opacity: 0; }
}

h1 {
  font-size: clamp(36px, 6vw, 78px);
  line-height: 1.05;
  font-weight: 800;
  margin-bottom: 22px;
  letter-spacing: -2px;
  text-wrap: balance;
  animation: fadeUp .8s ease both;
  animation-delay: .05s;
}

.green {
  color: var(--green-light);
}

/* A domain, amit a látogató épp néz */
.domain-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  margin-bottom: 26px;
  padding: 10px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-strong);
  font-family: var(--mono);
  font-size: clamp(15px, 2.2vw, 19px);
  font-weight: 600;
  letter-spacing: -0.3px;
  word-break: break-all;
  animation: fadeUp .8s ease both;
  animation-delay: .1s;
}

.domain-dot {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green-light);
  box-shadow: 0 0 0 4px rgba(79, 212, 78, 0.18);
}

.subtitle {
  max-width: 760px;
  margin: 0 auto;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.8;
  color: var(--muted);
  text-wrap: pretty;
  animation: fadeUp .8s ease both;
  animation-delay: .15s;
}

/* ---------- Kártyák ---------- */

.cards {
  margin-top: 70px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.card {
  position: relative;
  overflow: hidden;
  text-align: left;
  padding: 35px;
  background: var(--card);
  backdrop-filter: blur(10px);
  border-radius: 28px;
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition:
    transform .35s ease,
    box-shadow .35s ease,
    border-color .35s ease;
  animation: fadeUp .8s ease both;
}

.cards .card:nth-child(1) { animation-delay: .2s; }
.cards .card:nth-child(2) { animation-delay: .3s; }
.cards .card:nth-child(3) { animation-delay: .4s; }

.card:hover {
  transform: translateY(-10px);
  border-color: rgba(79, 212, 78, 0.35);
  box-shadow:
    0 25px 50px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(79, 212, 78, 0.15);
}

.card-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: rgba(79, 212, 78, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  color: var(--green-light);
}

.card h2 {
  font-size: clamp(21px, 2.4vw, 26px);
  font-weight: 700;
  margin-bottom: 14px;
  line-height: 1.3;
}

.card p {
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 25px;
  font-size: 16px;
}

.card-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--green-light);
  font-weight: 700;
  transition: gap .3s ease;
}

.card:hover .card-btn {
  gap: 16px;
}

/* ---------- Lábléc ---------- */

footer {
  margin-top: 80px;
  border-top: 1px solid var(--border);
  padding: 30px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-text {
  color: var(--muted);
  font-size: 14px;
}

.support-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: none;
  background: linear-gradient(135deg, var(--green), #2fb92d);
  color: #ffffff;
  padding: 16px 28px;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform .3s ease, box-shadow .3s ease;
  box-shadow: 0 10px 25px rgba(22, 179, 95, 0.25);
  position: relative;
  overflow: hidden;
}

.support-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(22, 179, 95, 0.35);
}

.support-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: translateX(-100%);
}

.support-btn:hover::before {
  animation: shine 1s ease;
}

@keyframes shine {
  100% { transform: translateX(100%); }
}

@keyframes popIn {
  from { transform: scale(0.5); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

@keyframes fadeUp {
  from { transform: translateY(30px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* ---------- Fókusz (billentyűzetes navigáció) ---------- */

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--green-light);
  outline-offset: 3px;
  border-radius: 8px;
}

/* ---------- Reszponzív ---------- */

@media (max-width: 768px) {
  header { padding: 20px; }
  .cards { margin-top: 45px; }
  .card  { padding: 28px; }
  footer {
    padding: 25px 20px;
    justify-content: center;
    text-align: center;
  }
  h1 { letter-spacing: -1px; }
}

/* ---------- Csökkentett mozgás ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  body::before,
  body::after { animation: none; }
}
