/* =========================================================================
   Torma.AI — bemutatkozó oldal
   Bespoke stíluslap. Design rendszer: navy (struktúra) / gold (primary) /
   sky (accent). Outfit display · Inter body · IBM Plex Mono data.
   ========================================================================= */

/* ---- Paletta (brand: gold-sky) ---------------------------------------- */
:root {
  --navy-50:  #F1F2F8;
  --navy-100: #E1E4F0;
  --navy-150: #D3D8E8;
  --navy-200: #C3C9E1;
  --navy-300: #9FA7CB;
  --navy-400: #747EAF;
  --navy-500: #4E5888;
  --navy-600: #3A426F;
  --navy-700: #2A2F5B;
  --navy-800: #22274A;
  --navy-850: #1C2042;
  --navy-900: #181C35;
  --navy-950: #0F1224;

  --gold-300: #E8CF7C;
  --gold-400: #E2C15F;
  --gold-500: #E0B84C;
  --gold-550: #D2AB46;
  --gold-600: #C49E40;
  --gold-700: #A18134;

  --sky-300: #7DD3FC;
  --sky-400: #38BDF8;
  --sky-500: #00B8FB;
  --sky-550: #00A7E3;
  --sky-600: #0096CC;
  --sky-700: #007299;

  /* Szemantikus tokenek — világos mód (alapértelmezett) */
  --bg:          var(--navy-50);
  --bg-grid:     rgba(58, 66, 111, 0.05);
  --surface:     #FFFFFF;
  --surface-2:   #F7F8FC;
  --surface-3:   var(--navy-50);
  --border:      var(--navy-100);
  --border-2:    var(--navy-150);
  --text:        var(--navy-900);
  --text-muted:  var(--navy-600);
  --text-faint:  var(--navy-300);

  --primary:        var(--gold-500);
  --primary-hover:  var(--gold-600);
  --primary-ink:    #FFFFFF;            /* md: text-white gold háttéren */
  --gold-text:      var(--gold-600);   /* gold indikátor / label szöveg */

  --accent:        var(--sky-500);
  --accent-hover:  var(--sky-600);
  --accent-ink:    #FFFFFF;             /* md: text-white sky háttéren */
  --accent-text:   var(--sky-600);     /* sky label szöveg */
  --focus:         var(--sky-700);     /* fókusz-gyűrű */

  --glow:        rgba(224, 184, 76, 0.18);
  --glow-accent: rgba(0, 184, 251, 0.12);
  --shadow:      0 1px 2px rgba(15, 18, 36, 0.06), 0 8px 24px -12px rgba(15, 18, 36, 0.18);
  --shadow-lift: 0 1px 2px rgba(15, 18, 36, 0.08), 0 18px 40px -16px rgba(15, 18, 36, 0.28);

  --font-sans:  "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head:  "Outfit", var(--font-sans);
  --font-mono:  "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --wrap: 1180px;
  --radius: 14px;
  --radius-sm: 9px;
}

html.dark {
  --bg:          var(--navy-950);
  --bg-grid:     rgba(116, 126, 175, 0.06);
  --surface:     var(--navy-900);
  --surface-2:   var(--navy-850);
  --surface-3:   var(--navy-850);
  --border:      var(--navy-850);
  --border-2:    var(--navy-800);
  --text:        var(--navy-50);
  --text-muted:  var(--navy-200);
  --text-faint:  var(--navy-500);

  --gold-text:     var(--gold-400);
  --accent-text:   var(--sky-400);
  --focus:         var(--sky-400);

  --glow:        rgba(224, 184, 76, 0.22);
  --glow-accent: rgba(0, 184, 251, 0.16);
  --shadow:      0 1px 2px rgba(0, 0, 0, 0.3), 0 14px 40px -18px rgba(0, 0, 0, 0.6);
  --shadow-lift: 0 1px 2px rgba(0, 0, 0, 0.4), 0 24px 60px -20px rgba(0, 0, 0, 0.7);
}

/* ---- Alap ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Finom pontháló-textúra a háttéren */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: radial-gradient(var(--bg-grid) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

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

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

::selection { background: rgba(224, 184, 76, 0.3); color: var(--text); }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

/* színek/árnyékok lágy átmenete témaváltáskor */
body, .nav, .card, .panel, .btn, input, textarea, .product, .footer, .chip, .tag {
  transition: background-color .25s ease, border-color .25s ease,
              color .25s ease, box-shadow .25s ease;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 200;
  background: var(--surface);
  color: var(--text);
  padding: 10px 16px;
  border: 1px solid var(--border-2);
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* ---- Elrendezés-segédek ----------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }

.section { padding-block: clamp(64px, 9vw, 120px); }
.section + .section { border-top: 1px solid var(--border); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--primary);
}

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: -0.02em; color: var(--text); }

.h1 { font-weight: 600; font-size: clamp(2.05rem, 4.4vw, 2.95rem); letter-spacing: -0.03em; text-wrap: balance; }
.h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.h3 { font-size: 1.18rem; font-weight: 600; }

.hl-sky  { color: var(--sky-500); }
.hl-gold { color: var(--gold-500); }

.lead { font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: var(--text-muted); line-height: 1.65; max-width: 56ch; }
.lead--wide { max-width: none; }

.section-head { max-width: 60ch; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head--wide { max-width: none; }
.section-head .h2 { margin-top: 14px; }
.section-head .lead { margin-top: 12px; }

/* ---- Gombok ----------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  padding: 13px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .12s ease, box-shadow .2s ease;
}
.btn:active { transform: translateY(1px); }

.btn--cta { background: var(--accent); color: var(--accent-ink); }
.btn--cta:hover { background: var(--accent-hover); }

.btn--primary { background: var(--primary); color: var(--primary-ink); }
.btn--primary:hover { background: var(--primary-hover); }

.btn--outline {
  background: transparent;
  color: var(--gold-500);
  border-color: var(--gold-500);
}
.btn--outline:hover { background: var(--gold-600); border-color: var(--gold-600); color: #FFFFFF; }

.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---- Navigáció -------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 30px; width: auto; }
.brand .logo-light { display: block; }
.brand .logo-dark  { display: none; }
html.dark .brand .logo-light { display: none; }
html.dark .brand .logo-dark  { display: block; }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  position: relative;
  padding-block: 4px;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1.5px;
  background: var(--primary);
  transition: width .2s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.is-active { color: var(--text); }
.nav-links a.is-active::after { width: 100%; }

.nav-tools { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-2);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
}
.icon-btn:hover { color: var(--primary); border-color: var(--primary); }
.icon-btn svg { width: 17px; height: 17px; }

/* Mobil hamburger + lenyíló panel */
.nav-burger { display: none; }
.nav-burger svg { width: 18px; height: 18px; }

.mobile-nav {
  position: absolute;
  top: 100%; left: 0; right: 0;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 6px 0;
}
.mobile-nav[hidden] { display: none; }
.mobile-nav a {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--text-muted);
  padding: 14px 24px;
}
.mobile-nav a:hover, .mobile-nav a:focus-visible { color: var(--gold-text); background: var(--surface-2); }

.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface);
  font-family: var(--font-mono);
}
.lang-toggle button {
  border: 0;
  background: transparent;
  color: var(--text-faint);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 9px 11px;
  cursor: pointer;
  text-transform: uppercase;
}
.lang-toggle button[aria-pressed="true"] { background: var(--primary); color: var(--primary-ink); }

.theme-sun { display: none; }
html.dark .theme-sun  { display: block; }
html.dark .theme-moon { display: none; }

/* ---- Hero ------------------------------------------------------------- */
.hero { position: relative; padding-top: clamp(54px, 8vw, 96px); padding-bottom: clamp(48px, 7vw, 90px); overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero-copy { max-width: 40rem; }
.hero .h1 { margin-top: 20px; }
.hero .lead { margin-top: 14px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Signature panel: animált jel + monospace status-board */
.panel {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.panel-mark {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px 30px;
  border-bottom: 1px solid var(--border);
}
.panel-mark object { width: 124px; height: 124px; pointer-events: none; }

.status-list { display: flex; flex-direction: column; }
.status-row {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "name badge" "meta link";
  gap: 4px 12px;
  padding: 14px 18px;
  font-family: var(--font-mono);
  font-size: 13px;
}
.status-row + .status-row { border-top: 1px solid var(--border); }
.status-row .s-name { grid-area: name; color: var(--text); font-weight: 500; }
.status-row .s-meta { grid-area: meta; color: var(--text-muted); font-size: 11.5px; }
.status-row .s-link {
  grid-area: link;
  color: var(--gold-text);
  display: inline-flex; align-items: center; gap: 6px;
  justify-self: end;
}
.status-row .s-link:hover { text-decoration: underline; }
.status-row .s-link .arrow { transition: transform .2s ease; }
.status-row .s-link:hover .arrow { transform: translateX(3px); }

.badge {
  grid-area: badge;
  justify-self: end;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 5px;
  border: 1px solid transparent;
}
.badge--live { color: var(--accent-text); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.badge--soon { color: var(--gold-text); border-color: color-mix(in srgb, var(--primary) 50%, transparent); }
.badge--open { color: var(--text-muted); border-color: var(--border-2); }

/* ---- Irányok (3 pillér) ----------------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px 30px;
  box-shadow: var(--shadow);
}
.card::before {
  content: "";
  position: absolute;
  left: 0; top: 22px;
  width: 3px; height: 34px;
  border-radius: 0 3px 3px 0;
  background: var(--primary);
}
.card:hover { border-color: var(--border-2); box-shadow: var(--shadow-lift); transform: translateY(-3px); }
.card-key {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--gold-text);
  text-transform: lowercase;
}
.card .h3 { margin-top: 14px; }
.card-desc { margin-top: 12px; color: var(--text-muted); font-size: 0.97rem; flex: 1 1 auto; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0;
  color: var(--text-muted);
  padding: 3px 8px;
  border: 1px solid var(--border-2);
  border-radius: 6px;
  background: var(--surface-2);
  white-space: nowrap;
}

/* ---- Termékek --------------------------------------------------------- */
.products { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.product {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow);
}
.product:hover { border-color: var(--border-2); box-shadow: var(--shadow-lift); }
.product.is-wide { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 28px; flex-wrap: wrap; }
.product.is-wide .product-body { flex: 1 1 340px; }

.product-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.product-name { font-family: var(--font-head); font-weight: 600; font-size: 1.35rem; letter-spacing: -0.02em; }
.product-desc { margin-top: 14px; color: var(--text-muted); flex: 1 1 auto; }
.product-platforms { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chip {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  padding: 4px 11px;
  border: 1px solid var(--border-2);
  border-radius: 999px;
}
.product-actions { margin-top: 24px; }
.product.is-wide .product-actions { margin-top: 0; }

/* ---- Kapcsolat -------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact-aside .lead { margin-top: 16px; }

.form {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 34px);
  box-shadow: var(--shadow);
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.field input, .field textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 0.97rem;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
html.dark .field input, html.dark .field textarea { background: var(--navy-950); }
.field textarea { min-height: 132px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(224, 184, 76, 0.18);
}
.field input:user-invalid, .field textarea:user-invalid { border-color: #d9534f; }

/* honeypot — sosem látszik, csak botoknak */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.form-note { font-size: 12.5px; color: var(--text-muted); max-width: 34ch; }
.form .btn--primary { min-width: 168px; }

.form-status {
  margin-top: 16px;
  font-size: 0.92rem;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  display: none;
}
.form-status.is-on { display: block; }
.form-status.is-ok { display: block; color: var(--accent-text); background: color-mix(in srgb, var(--accent) 10%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.form-status.is-err { display: block; color: #d9534f; background: rgba(217, 83, 79, 0.08); border: 1px solid rgba(217, 83, 79, 0.35); }

button[aria-busy="true"] { opacity: 0.7; cursor: progress; }

/* ---- Footer ----------------------------------------------------------- */
.footer { border-top: 1px solid var(--border); padding-block: 44px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-links { display: flex; align-items: center; gap: 20px; }
.footer-links a { color: var(--text-muted); font-size: 14px; display: inline-flex; align-items: center; gap: 7px; }
.footer-links a:hover { color: var(--gold-text); }
.footer-links svg { width: 17px; height: 17px; }
.footer-note { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-muted); letter-spacing: 0.04em; }

/* ---- Scroll-reveal ---------------------------------------------------- */
html.js .reveal { opacity: 0; transform: translateY(18px); }
html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity .6s cubic-bezier(.2,.6,.2,1), transform .6s cubic-bezier(.2,.6,.2,1);
}
html.js .stagger > * { opacity: 0; transform: translateY(16px); }
html.js .stagger.is-visible > * {
  opacity: 1; transform: none;
  transition: opacity .55s ease, transform .55s ease;
}
html.js .stagger.is-visible > *:nth-child(2) { transition-delay: .08s; }
html.js .stagger.is-visible > *:nth-child(3) { transition-delay: .16s; }

/* ---- Reduced motion --------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html.js .reveal, html.js .stagger > * { opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn:active { transform: none; }
  .card:hover, .product:hover { transform: none; }
}

/* ---- Reszponzív ------------------------------------------------------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 460px; }
  .cards { grid-template-columns: 1fr; }
  .products { grid-template-columns: 1fr; }
  .product.is-wide { flex-direction: column; align-items: flex-start; }
  .contact-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }
  .icon-btn { width: 44px; height: 44px; }
  .lang-toggle button { min-height: 44px; }
}

/* Desktopon sosem jelenik meg a mobil-nav, akkor sem, ha nyitva maradt átméretezéskor */
@media (min-width: 961px) {
  .mobile-nav, .nav-burger { display: none !important; }
}

@media (max-width: 520px) {
  .wrap { padding-inline: 18px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .brand img { height: 26px; }
  .nav-tools { gap: 6px; }
  .lang-toggle button { padding-inline: 9px; }
}
