:root{
  --bg:#0b1020;
  --surface:#101630;
  --surface-2:#151b3a;
  --text:#e7e9f3;
  --muted:#99a1c1;
  --accent:#7c5cff;
  --accent-2:#19d1ff;
  --ok:#35d39a;
  --shadow:0 18px 60px rgba(0,0,0,.35);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:'Inter',system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(124,92,255,.18), transparent 60%),
    radial-gradient(1000px 500px at 110% 10%, rgba(25,209,255,.12), transparent 60%),
    var(--bg);
  line-height:1.6;
}

/* HERO */
.hero{
  position:relative;
  min-height:72vh;
  display:grid;
  place-items:center;
  background:
    linear-gradient(to bottom, rgba(11,16,32,.3), rgba(11,16,32,.9)),
    url('https://images.unsplash.com/photo-1496307042754-b4aa456c4a2d?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
  overflow:hidden;
}
.hero-overlay{
  position:absolute; inset:0;
  background:
    radial-gradient(800px 400px at 70% -10%, rgba(124,92,255,.25), transparent 60%),
    radial-gradient(900px 400px at 10% 110%, rgba(25,209,255,.15), transparent 60%);
  pointer-events:none;
}
.hero-inner{
  position:relative; z-index:1;
  text-align:center;
  padding:24px;
}
.hero h1{
  font-family:'Playfair Display',serif;
  font-size: clamp(38px, 6vw, 68px);
  letter-spacing:.5px;
  margin:0 0 8px;
  text-shadow: 0 6px 30px rgba(0,0,0,.6);
}
.hero .sub{
  color: var(--muted);
  font-size: clamp(16px, 1.9vw, 20px);
  margin:0 0 22px;
}
.cta{
  display:inline-flex; align-items:center; gap:10px;
  padding:14px 20px;
  border-radius:14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color:white; text-decoration:none; font-weight:700;
  box-shadow: var(--shadow);
  transform: translateZ(0);
  transition: transform .25s ease, filter .25s ease;
}
.cta:hover{ transform: translateY(-2px); filter: brightness(1.05); }

/* LAYOUT */
.container{ width:min(1100px, 92%); margin:40px auto; }
.panel{
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border:1px solid rgba(255,255,255,.06);
  border-radius:24px;
  box-shadow: var(--shadow);
  padding:28px;
}
.panel-head{ display:flex; align-items:center; justify-content:space-between; gap:18px; flex-wrap:wrap; }
.panel-title{ display:flex; align-items:center; gap:12px; }
.title-mark{
  width:42px; height:42px; border-radius:12px; object-fit:cover;
  box-shadow:0 8px 24px rgba(124,92,255,.35);
}
.panel-sub{ margin:0; color:var(--muted); }

.controls{ display:flex; flex-wrap:wrap; gap:12px; margin-top:18px; }
.select{
  flex:1 1 260px; min-width:240px;
  padding:14px 16px; border-radius:14px; border:1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  color: gray; /* itt állítjuk a szöveg színét feketére */
  backdrop-filter: blur(6px);
  outline:none;
  transition: border .2s ease, background .2s ease;
}
.select:focus{ border-color: rgba(124,92,255,.6); background: rgba(255,255,255,.07); }
.btn{
  padding:14px 18px; border-radius:14px; border:none; cursor:pointer;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color:white; font-weight:700;
  box-shadow: var(--shadow);
  transition: transform .2s ease, filter .2s ease;
}
.btn:hover{ transform: translateY(-2px); filter:brightness(1.05); }

/* RESULT */
.result-card{
  margin-top:18px;
  background: rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.08);
  border-radius:20px;
  overflow:hidden;
  transform-origin: top center;
  transition: opacity .35s ease, transform .35s ease;
}
.result-card.hidden{ opacity:0; transform: translateY(8px) scale(.98); pointer-events:none; }
.result-top{ padding:22px 22px 10px; }
.badge{
  display:inline-flex; gap:8px; align-items:center;
  padding:6px 10px; border-radius:999px; font-size:12px; font-weight:700;
  background: rgba(124,92,255,.18); color:#e8e3ff; border:1px solid rgba(124,92,255,.4);
}
.result-top h3{ margin:12px 0 6px; font-size: clamp(22px, 2.5vw, 28px); }
.result-top p{ margin:0; color:var(--text); }

.result-illustration img{ width:100%; display:block; opacity:.95; }

.result-actions{
  display:flex; gap:10px; justify-content:flex-end; padding:14px 18px 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.04));
}


.result-illustration {
  text-align: center; /* középre igazítás */
  margin: 15px 15px 15px 0; /* jobb és alul 15px távolság */;
}

.result-illustration img {
  width: 200px;    /* tényleges szélesség */
  height: auto;    /* arány megtartása */
  display: inline-block;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}


.ghost{
  background: transparent; color: var(--text); border:1px solid rgba(255,255,255,.15);
  padding:10px 14px; border-radius:12px; cursor:pointer; font-weight:600;
  transition: background .2s ease, transform .2s ease, border .2s ease;
}
.ghost:hover{ background: rgba(255,255,255,.06); transform: translateY(-1px); border-color: rgba(255,255,255,.28); }

/* GRID CARDS */
.grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:18px;
}
.card{
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border:1px solid rgba(255,255,255,.06);
  border-radius:20px; overflow:hidden;
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover{ transform: translateY(-4px); box-shadow: 0 22px 60px rgba(0,0,0,.45); }
.card img{ width:100%; display:block; }
.card-body{ padding:16px 18px 20px; }
.card-body h4{ margin:2px 0 8px; }
.card-body p{ margin:0; color:var(--muted); }

/* FOOTER */
.footer{ margin: 40px 0 20px; }
.footer-inner{
  width:min(1100px, 92%); margin:0 auto; text-align:center; color:var(--muted);
  padding:14px 0; border-top:1px solid rgba(255,255,255,.08);
}

/* ANIMÁCIÓK */
.fade-in{ opacity:0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.fade-in.visible{ opacity:1; transform: translateY(0); }

/* KISEBB KIJELZŐK */
@media (max-width: 900px){
  .grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px){
  .panel-head{ flex-direction:column; align-items:flex-start; }
  .grid{ grid-template-columns: 1fr; }
}
.sr-only{
  position:absolute !important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden;
  clip:rect(0,0,0,0); border:0;
}
