/* CORE Marketing arculat – a coremarketing.hu tokenjeiből.
   Közös a foglaló oldalon, az adminban és a későbbi CRM-ben. */
:root {
  /* a site saját HSL tokenjei */
  --background: 240 10% 1.5%;
  --foreground: 0 0% 100%;
  --card: 240 10% 6%;
  --primary: 177 85% 38%;
  --secondary: 263 70% 42%;
  --muted: 220 15% 12%;
  --mist: 215 20% 72%;
  --destructive: 0 84% 60%;

  --bg: #030304;
  --fg: #fff;
  --card-bg: hsl(var(--card));
  --mist-c: hsl(var(--mist));
  --brand: #0fb3ab;
  --brand-2: #148f89;
  --cyan: #13ece1;
  --violet: #5a20b6;
  --ok: #34d399;
  --bad: hsl(var(--destructive));
  --line: hsl(0 0% 100% / 0.08);
  --field-line: hsl(0 0% 100% / 0.12);
  --field-bg: hsl(0 0% 100% / 0.05);
  --soft: hsl(0 0% 100% / 0.06);

  --r-sm: 0.75rem;
  --r: 1rem;
  --r-card: 1.5rem;
  --glass: linear-gradient(135deg, #ffffff0f, #ffffff03);
  --shadow-glass: 0 8px 32px -8px #0006, 0 0 60px -20px #0fb3ab1a;
  --shadow-glow: 0 0 40px -10px #0fb3ab99, 0 4px 20px -5px #0006;
  --ring: 0 0 0 3px #0fb3ab40;

  --font: Outfit, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
h1, h2, h3 { font-weight: 800; line-height: 1.15; margin: 0 0 0.5rem; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.75rem, 6.2vw + 0.6rem, 2.75rem); }
h2 { font-size: 1.25rem; }
p { margin: 0 0 0.75rem; }
a { color: var(--brand); }
.muted { color: var(--mist-c); }
.hidden, [hidden] { display: none !important; }
.gradient-text {
  background-image: linear-gradient(90deg, #fff, #13ece1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
::selection { background: #0fb3ab66; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #09090b; }
::-webkit-scrollbar-thumb { background: #ffffff1a; border-radius: 4px; }

/* ---------- aurora háttér ---------- */
.aurora { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.orb { position: absolute; border-radius: 50%; filter: blur(40px); will-change: transform; transform: translateZ(0); }
.orb-a { width: 440px; height: 440px; top: -140px; right: -140px; background: radial-gradient(circle, #0fb3ab59, #0fb3ab00 70%); animation: aurora-1 18s ease-in-out infinite; }
.orb-b { width: 400px; height: 400px; bottom: -140px; left: -140px; background: radial-gradient(circle, #5a20b640, #5a20b600 70%); animation: aurora-2 22s ease-in-out infinite; }
@media (min-width: 900px) {
  .orb-a { width: 720px; height: 720px; top: -220px; right: -160px; }
  .orb-b { width: 640px; height: 640px; bottom: -220px; left: -200px; }
}
@keyframes aurora-1 { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); } 33% { transform: translate3d(-60px, 40px, 0) scale(1.15); } 66% { transform: translate3d(30px, 70px, 0) scale(0.95); } }
@keyframes aurora-2 { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); } 40% { transform: translate3d(70px, -40px, 0) scale(1.12); } 70% { transform: translate3d(20px, -80px, 0) scale(0.96); } }
@media (prefers-reduced-motion: reduce) { .orb { animation: none; } html { scroll-behavior: auto; } * { transition: none !important; } }

/* ---------- oldalvázak ---------- */
.site { position: relative; z-index: 1; }
.container { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 16px; }

/* üveg-pill navigáció */
.topnav {
  position: sticky; top: 10px; z-index: 30;
  margin: 10px 12px 0;
  max-width: 1040px; min-height: 60px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 6px 12px 6px 18px;
  border-radius: 9999px;
  background: var(--glass), rgb(3 3 4 / 0.55);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: var(--shadow-glass), inset 0 0 0 1px var(--line);
}
@media (min-width: 1064px) { .topnav { margin-left: auto; margin-right: auto; } }
.topnav .logo { display: flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font-weight: 700; }
.topnav .logo img { height: 40px; width: auto; display: block; }
.topnav .navlink { color: var(--mist-c); text-decoration: none; font-size: 0.95rem; padding: 10px 14px; border-radius: 9999px; white-space: nowrap; }
.topnav .navlink:hover { color: #fff; background: var(--soft); }

.topnav .tabs { display: flex; gap: 4px; background: var(--soft); border-radius: 9999px; padding: 4px; box-shadow: inset 0 0 0 1px var(--line); }
.topnav .tabs a { color: var(--mist-c); text-decoration: none; font-weight: 600; font-size: 0.92rem; padding: 9px 16px; border-radius: 9999px; min-height: 40px; display: inline-flex; align-items: center; }
.topnav .tabs a.on { background: linear-gradient(135deg, #0fb3ab, #148f89); color: #fff; box-shadow: var(--shadow-glow); }

/* ---------- komponensek ---------- */
.glass-card {
  position: relative;
  background: var(--glass);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-glass), inset 0 0 0 1px var(--line);
}
.card {
  position: relative;
  background: var(--glass);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-glass), inset 0 0 0 1px var(--line);
  padding: 20px;
}
.card + .card { margin-top: 16px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 14px 28px;
  border: 0; border-radius: 9999px;
  background: linear-gradient(135deg, #0fb3ab, #148f89);
  color: #fff; font: inherit; font-weight: 600; text-decoration: none; text-align: center;
  box-shadow: var(--shadow-glow);
  cursor: pointer; touch-action: manipulation;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s;
}
@media (hover: hover) { .btn:hover { box-shadow: 0 0 60px -5px #0fb3abcc, 0 8px 30px -5px #00000080; transform: translateY(-2px) scale(1.02); } }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; transform: none; }
.btn.ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1px var(--field-line); }
@media (hover: hover) { .btn.ghost:hover { background: var(--soft); box-shadow: inset 0 0 0 1px #ffffff33; transform: none; } }
.btn.danger { background: transparent; color: var(--bad); box-shadow: inset 0 0 0 1px hsl(var(--destructive) / 0.4); }
.btn.small { min-height: 40px; padding: 8px 16px; font-size: 0.9rem; }
.btn.block { width: 100%; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 6px; }
input[type='text'], input[type='email'], input[type='tel'], input[type='password'], input[type='number'],
input[type='time'], input[type='date'], input[type='url'], select, textarea {
  width: 100%; min-height: 52px;
  background: var(--field-bg);
  border: 1px solid var(--field-line);
  border-radius: var(--r-sm);
  padding: 13px 16px;
  color: var(--fg); font: inherit; font-size: 16px; /* 16px: iOS ne nagyítson rá fókuszkor */
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
textarea { min-height: 110px; resize: vertical; }
select { appearance: none; -webkit-appearance: none; padding-right: 42px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23a9b7c9' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
select option { background: #0e0e11; color: #fff; }
input::placeholder, textarea::placeholder { color: #9ca3af; opacity: 1; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); background: hsl(0 0% 100% / 0.07); }
input[aria-invalid='true'], select[aria-invalid='true'] { border-color: var(--bad); }
input[type='checkbox'], input[type='radio'] { accent-color: var(--brand); }
input[type='color'] { padding: 4px; }
.field { margin-bottom: 16px; }
.err { color: var(--bad); font-size: 0.9rem; margin: 8px 0 0; min-height: 1.3em; }
.field-err { color: var(--bad); font-size: 0.85rem; margin: 6px 0 0; }
