/* =============================================
   GLOBÁLIS DESIGN TOKENEK
   ============================================= */
:root {
  /* Színek */
  --bg:           #08050f;
  --panel:        rgba(18, 15, 28, .78);
  --panel-strong: rgba(24, 18, 36, .92);
  --text:         #f7f4ff;
  --muted:        #b7afc9;
  --purple:       #8b42ff;
  --green:        #3cff93;
  --orange:       #ff8a1f;
  --line:         rgba(255, 255, 255, .14);
  --shadow:       0 24px 70px rgba(0, 0, 0, .55);

  /* Tipográfia */
  --font-base:    Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: Orbitron, Inter, sans-serif;

  --fs-xs:   .62rem;
  --fs-sm:   .78rem;
  --fs-base: 1rem;
  --fs-md:   1.05rem;
  --fs-lg:   1.3rem;
  --fs-h1:   clamp(2rem, 8vw, 6.85rem);
  --fs-h2:   clamp(1.6rem, 4vw, 3.4rem);
  --fs-h3:   1.2rem;
  --fs-lab:  clamp(1.2rem, 3.5vw, 2.35rem);
  --fs-time: clamp(1.8rem, 6vw, 4.4rem);

  /* Layout */
  --radius-sm:   13px;
  --radius-md:   18px;
  --radius-lg:   22px;
  --radius-xl:   26px;
  --radius-xxl:  28px;
  --radius-full: 999px;

  /* Animáció */
  --anim-fast:   .2s ease;
  --anim-normal: .24s ease;

  /* Glassmorphism */
  --glass:        linear-gradient(145deg, rgba(24, 18, 36, .82), rgba(8, 5, 15, .64));
  --glass-border: 1px solid var(--line);
}

/* =============================================
   RESET & ALAP
   ============================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-base);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  line-height: .96;
  text-transform: uppercase;
  text-shadow: 0 0 16px rgba(139, 66, 255, .55), 0 0 40px rgba(60, 255, 147, .14);
}

h2 { font-size: var(--fs-h2); line-height: 1; margin-bottom: 0; }
h3 { font-size: var(--fs-h3); }

/* =============================================
   HÁTTÉR / STAGE
   ============================================= */
.stage {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 14%, rgba(139, 66, 255, .32), transparent 32%),
    radial-gradient(circle at 85% 28%, rgba(255, 138, 31, .18), transparent 28%),
    radial-gradient(circle at 70% 82%, rgba(60, 255, 147, .12), transparent 32%),
    linear-gradient(135deg, #020104 0%, #10061e 42%, #05020a 100%);
}

.stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at center, black 0%, transparent 76%);
  animation: gridMove 22s linear infinite;
}

.stage::after {
  content: "";
  position: absolute;
  inset: -30%;
  background: conic-gradient(from 180deg, transparent, rgba(139, 66, 255, .18), transparent, rgba(60, 255, 147, .12), transparent);
  animation: slowSpin 28s linear infinite;
}

#matrix {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .32;
}

.scanline {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(180deg, rgba(255,255,255,.035) 0, rgba(255,255,255,.035) 1px, transparent 1px, transparent 6px);
  mix-blend-mode: overlay;
  pointer-events: none;
}

.beam {
  position: absolute;
  width: 54vw;
  height: 2px;
  filter: blur(.5px);
  opacity: .72;
  transform: rotate(-22deg);
}

.beam-a {
  left: -12vw;
  top: 22vh;
  background: linear-gradient(90deg, transparent, var(--purple), var(--green), transparent);
  animation: beamSlide 7s ease-in-out infinite;
}

.beam-b {
  right: -12vw;
  bottom: 24vh;
  background: linear-gradient(90deg, transparent, var(--orange), var(--purple), transparent);
  animation: beamSlide 8s ease-in-out infinite reverse;
}

/* =============================================
   TOPBAR
   ============================================= */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px clamp(14px, 4vw, 58px);
  background: linear-gradient(180deg, rgba(8, 5, 15, .96), rgba(8, 5, 15, .88));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.brand-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-chip img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(139, 66, 255, .65);
}

.brand-chip strong { display: block; font-weight: 900; letter-spacing: .02em; font-size: .9rem; }
.brand-chip small  { display: block; }

.eyebrow,
.brand-chip small {
  color: var(--green);
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  letter-spacing: .14em;
  text-transform: uppercase;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.topnav::-webkit-scrollbar { display: none; }

.topnav a {
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  color: var(--muted);
  font-size: .84rem;
  white-space: nowrap;
  transition: var(--anim-fast);
}

.topnav a:hover,
.topnav a:focus-visible {
  color: var(--text);
  border-color: rgba(60, 255, 147, .35);
  background: rgba(60, 255, 147, .08);
}

/* =============================================
   LAYOUT
   ============================================= */
main {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
}

.section { padding: 44px 0; }

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.section-head.compact { display: block; margin-bottom: 16px; }

.grid { display: grid; gap: 14px; }

/* Desktop: 5 és 4 oszlop */
.cards-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  gap: 16px;
}

/* =============================================
   HERO
   ============================================= */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, .92fr);
  align-items: center;
  gap: clamp(24px, 4vw, 72px);
  padding: clamp(32px, 6vw, 80px) 0 48px;
}

.hero-copy { position: relative; }

.hero-copy::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 16px;
  width: 3px;
  height: 74%;
  background: linear-gradient(var(--green), var(--purple), var(--orange));
  border-radius: 99px;
  box-shadow: 0 0 22px rgba(60, 255, 147, .45);
}

.lead {
  max-width: 660px;
  color: var(--muted);
  font-size: clamp(.95rem, 2vw, var(--fs-lg));
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.lab-title {
  font-family: var(--font-display);
  font-size: var(--fs-lab);
  font-weight: 900;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #fff7ff;
  text-shadow:
    0 0 12px rgba(139, 66, 255, .82),
    0 0 28px rgba(255, 138, 31, .28),
    0 0 44px rgba(60, 255, 147, .16);
}

/* =============================================
   KERESÉS
   ============================================= */
.search-console {
  position: relative;
  margin: 28px 0 16px;
  max-width: 100%;
}

.search-console label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-weight: 700;
  font-size: .9rem;
}

.search-box {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 8px 8px 8px 16px;
  border: 1px solid rgba(139, 66, 255, .5);
  border-radius: var(--radius-md);
  background:
    linear-gradient(rgba(8, 5, 15, .84), rgba(8, 5, 15, .84)) padding-box,
    linear-gradient(135deg, rgba(60, 255, 147, .72), rgba(139, 66, 255, .62), rgba(255, 138, 31, .52)) border-box;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), 0 0 36px rgba(139, 66, 255, .2);
  transition: box-shadow var(--anim-fast), transform var(--anim-fast);
}

.search-box:focus-within {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 0 44px rgba(60, 255, 147, .22), 0 0 60px rgba(139, 66, 255, .22);
  transform: translateY(-1px);
}

.google-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  flex-shrink: 0;
  background: conic-gradient(from -45deg, #4285f4 0 25%, #34a853 0 50%, #fbbc05 0 75%, #ea4335 0 100%);
  color: #fff;
  font: 900 1.1rem/1 var(--font-base);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .42);
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  /* iOS zoom gát: legalább 16px szükséges */
  font-size: max(1rem, 16px);
}

.search-box button {
  border: 0;
  border-radius: var(--radius-sm);
  color: #06030a;
  background: linear-gradient(135deg, var(--green), #9dffcc);
  padding: 12px 16px;
  font-weight: 900;
  font-size: .88rem;
  white-space: nowrap;
  cursor: pointer;
  /* iOS tap */
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: transform var(--anim-fast), box-shadow var(--anim-fast);
}

.search-box button:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(60, 255, 147, .24); }
.search-box button:active { transform: translateY(0); }

.search-suggestions {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 30;
  overflow: hidden;
  border: 1px solid rgba(139, 66, 255, .48);
  border-radius: var(--radius-md);
  background: rgba(8, 5, 15, .97);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .5), 0 0 28px rgba(139, 66, 255, .22);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.search-suggestions[hidden] { display: none; }

.suggestion-item {
  width: 100%;
  min-height: 48px; /* nagyobb tap célterület mobilon */
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  padding: 10px 16px;
  color: var(--text);
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.suggestion-item:last-child { border-bottom: 0; }
.suggestion-item::before { content: "⌕"; color: var(--green); font-size: 1.1rem; }
.suggestion-item::after {
  content: "Google";
  color: var(--orange);
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .75;
}
.suggestion-item:hover,
.suggestion-item.is-active {
  background: linear-gradient(90deg, rgba(139, 66, 255, .32), rgba(60, 255, 147, .08));
  color: #fff;
}

/* =============================================
   KÁRTYÁK — KÖZÖS ALAP
   ============================================= */
.time-card,
.panel,
.project-card {
  border: var(--glass-border);
  background: var(--glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.app-card::before,
.mini-card::before,
.project-card::before,
.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(139, 66, 255, .24), transparent 40%, rgba(60, 255, 147, .13));
  opacity: 0;
  transition: opacity var(--anim-normal);
  pointer-events: none;
}

.app-card:hover,
.mini-card:hover,
.project-card:hover {
  transform: translateY(-5px);
  border-color: rgba(60, 255, 147, .48);
  box-shadow: 0 22px 60px rgba(0, 0, 0, .5), 0 0 26px rgba(139, 66, 255, .18);
}

.app-card:hover::before,
.mini-card:hover::before,
.project-card:hover::before,
.panel:hover::before { opacity: 1; }

.app-card,
.mini-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  background: linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  box-shadow: 0 14px 40px rgba(0, 0, 0, .34);
  transition: transform var(--anim-normal), border-color var(--anim-normal), box-shadow var(--anim-normal);
  -webkit-tap-highlight-color: transparent;
}

.app-card {
  min-height: 160px;
  display: grid;
  place-items: center;
  gap: 10px;
  padding: 16px 12px;
  border-radius: var(--radius-lg);
  text-align: center;
}

.app-card.security { min-height: 140px; }

.app-card img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(0,0,0,.45));
}

.app-card span { font-weight: 900; font-size: .9rem; }

.mini-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.mini-card {
  min-height: 130px;
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 14px 8px;
  border-radius: var(--radius-md);
  text-align: center;
}

.mini-card img { width: 56px; height: 56px; object-fit: contain; }
.mini-card span { font-weight: 800; font-size: .82rem; }

/* =============================================
   PANEL
   ============================================= */
.panel {
  position: relative;
  overflow: hidden;
  min-height: auto;
  padding: 24px;
  border-radius: var(--radius-xl);
}

.system-panel { display: flex; flex-direction: column; justify-content: center; }
.system-panel p { color: var(--muted); line-height: 1.7; }
.system-panel a {
  width: fit-content;
  color: var(--green);
  font-weight: 900;
  border-bottom: 1px solid rgba(60, 255, 147, .5);
}

/* =============================================
   STÁTUSZ PANEL & ÓRA
   ============================================= */
.status-panel {
  position: relative;
  display: grid;
  gap: 20px;
  justify-items: center;
}

.time-card {
  width: 100%;
  padding: 20px;
  border-radius: 20px;
}

.time-card span,
.time-card small { display: block; color: var(--muted); font-size: .88rem; }

.time-card strong {
  display: block;
  margin: 6px 0;
  color: var(--green);
  font-family: var(--font-display);
  font-size: var(--fs-time);
  text-shadow: 0 0 24px rgba(60, 255, 147, .36);
}

.orbital-logo {
  position: relative;
  width: min(72vw, 380px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.orbital-logo img {
  width: 80%;
  border-radius: 50%;
  filter: drop-shadow(0 0 32px rgba(139, 66, 255, .5));
  animation: floatLogo 6s ease-in-out infinite;
}

.orbit-ring {
  position: absolute;
  inset: 7%;
  border: 2px solid rgba(139, 66, 255, .42);
  border-left-color: var(--green);
  border-right-color: var(--orange);
  border-radius: 50%;
  animation: orbit 10s linear infinite;
}

.ring-two {
  inset: 1%;
  animation-duration: 16s;
  animation-direction: reverse;
  opacity: .55;
}

/* =============================================
   PROJEKT KÁRTYÁK
   ============================================= */
.project-grid {
  display: grid;
  grid-template-columns: 1.2fr .9fr .9fr;
  gap: 16px;
}

.project-card {
  position: relative;
  overflow: hidden;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: var(--radius-xxl);
}

.project-card > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .68;
  transform: scale(1.03);
  transition: transform .4s ease, opacity .4s ease;
}

.project-card:hover > img { opacity: .82; transform: scale(1.08); }

.project-card .project-content {
  position: relative;
  z-index: 1;
  padding: 22px;
  background: linear-gradient(180deg, transparent, rgba(4, 2, 8, .92) 36%);
}

.project-card .project-content > span {
  color: var(--orange);
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  letter-spacing: .14em;
  text-transform: uppercase;
}

.project-card .project-content p { color: var(--muted); line-height: 1.5; font-size: .9rem; }

/* Site előnézet */
.project-card .site-preview {
  position: absolute;
  inset: 12px;
  overflow: hidden;
  border: 1px solid rgba(139, 66, 255, .36);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 50% 26%, rgba(139, 66, 255, .34), transparent 34%),
    linear-gradient(180deg, rgba(12, 4, 22, .96), rgba(5, 4, 9, .94));
  box-shadow: inset 0 0 40px rgba(139, 66, 255, .18), 0 0 28px rgba(139, 66, 255, .22);
  opacity: .88;
  transform: scale(1.02);
  transition: transform .4s ease, opacity .4s ease;
}

.project-card .site-preview img {
  position: static;
  width: 100%;
  height: auto;
  object-fit: contain;
  opacity: 1;
  transform: none;
}

.project-card:hover .site-preview { opacity: .96; }

/* YouTube előnézet */
.youtube-preview {
  position: absolute;
  inset: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 0, 0, .42), transparent 32%),
    linear-gradient(160deg, rgba(16, 16, 18, .98), rgba(5, 5, 8, .92));
  box-shadow: inset 0 0 36px rgba(255, 0, 0, .12), 0 0 28px rgba(139, 66, 255, .18);
  opacity: .9;
  transform: scale(1.02);
  transition: opacity .35s ease, transform .35s ease;
}

.youtube-play {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 68px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(180deg, #ff2b2b, #b40707);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  text-indent: 3px;
  box-shadow: 0 0 24px rgba(255, 0, 0, .34);
}

.project-card:hover .youtube-preview { opacity: .98; transform: scale(1.055); }

.channel-head {
  position: absolute;
  left: 16px;
  right: 14px;
  top: 72px;
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 12px;
  align-items: center;
}

.channel-head img {
  position: static;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  opacity: 1;
  transform: none;
  filter: drop-shadow(0 0 14px rgba(139, 66, 255, .72));
}

.channel-head strong,
.channel-head small,
.channel-head em { display: block; }

.channel-head strong {
  color: #fff;
  font-size: 1rem;
  line-height: 1.1;
  font-weight: 900;
}

.channel-head small { margin-top: 4px; color: rgba(255, 255, 255, .7); font-size: .65rem; }
.channel-head em { margin-top: 6px; color: rgba(255, 255, 255, .84); font-size: .7rem; font-style: normal; }

.channel-pills {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 80px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.channel-pills span {
  display: inline-grid;
  place-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, .13);
  color: #fff;
  font-size: .65rem;
  font-weight: 900;
}

/* Weboldal preview belső elemek */
.preview-title {
  padding-top: 12px;
  color: #fff5ff;
  font-weight: 900;
  font-size: .95rem;
  text-align: center;
  text-shadow: 0 0 14px rgba(255, 143, 255, .8);
}

.preview-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  padding: 10px 8px 8px;
  border-bottom: 1px solid rgba(255, 42, 143, .28);
}

.preview-nav span,
.preview-hero b {
  display: grid;
  place-items: center;
  min-height: 22px;
  border: 1px solid rgba(255, 42, 143, .72);
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #9b2cff, #d825b4);
  color: #fff;
  font-size: .44rem;
  font-weight: 900;
  white-space: nowrap;
}

.preview-ring {
  width: 38%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin: 10px auto 8px;
  border: 1px solid rgba(139, 66, 255, .36);
  border-radius: 10px;
  background: rgba(12, 4, 22, .66);
  filter: drop-shadow(0 0 14px rgba(139, 66, 255, .55));
  animation: floatLogo 6s ease-in-out infinite;
}

.preview-ring img {
  width: 80%;
  border-radius: 50%;
  filter: drop-shadow(0 0 28px rgba(139, 66, 255, .5));
}

.preview-hero {
  width: calc(100% - 24px);
  margin: 0 auto;
  padding: 12px 10px 14px;
  border: 1px solid rgba(139, 66, 255, .5);
  border-radius: 14px;
  background: rgba(3, 4, 10, .78);
  text-align: center;
}

.preview-hero strong,
.preview-hero small,
.preview-hero b { display: block; }

.preview-hero strong {
  color: #ffdfff;
  font-size: .92rem;
  font-weight: 900;
  text-transform: uppercase;
  text-shadow: 0 0 14px rgba(255, 143, 255, .82);
}

.preview-hero small {
  margin: 6px auto 10px;
  max-width: 200px;
  color: rgba(255, 255, 255, .78);
  line-height: 1.3;
  font-size: .72rem;
}

.preview-hero b {
  width: fit-content;
  min-width: 90px;
  margin: 0 auto;
  padding: 0 12px;
  font-size: .6rem;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  width: min(1220px, calc(100% - 32px));
  margin: 32px auto 0;
  padding: 24px 0 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: space-between;
  color: var(--muted);
  font-size: .88rem;
  border-top: 1px solid var(--line);
}

.footer a { color: var(--green); font-weight: 800; }

/* =============================================
   ANIMÁCIÓK
   ============================================= */
@keyframes gridMove { to { transform: translate3d(54px, 54px, 0); } }
@keyframes slowSpin { to { transform: rotate(360deg); } }
@keyframes beamSlide { 50% { transform: translate3d(22vw, 8vh, 0) rotate(-22deg); } }
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes floatLogo { 50% { transform: translateY(-10px) scale(1.012); } }

/* =============================================
   TABLET  (max 1040px)
   ============================================= */
@media (max-width: 1040px) {
  .hero { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr 1fr; }

  .cards-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mini-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  /* Hero status panel tableten ne nyomja le a logót */
  .status-panel { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .orbital-logo { width: min(55vw, 320px); }
}

/* =============================================
   MOBIL  (max 640px)
   ============================================= */
@media (max-width: 640px) {
  main, .footer { width: calc(100% - 24px); }

  .section { padding: 32px 0; }

  /* Topbar — sticky marad, kompaktabb */
  .topbar { padding: 10px 14px; gap: 8px; }
  .brand-chip img { width: 32px; height: 32px; }
  .brand-chip strong { font-size: .82rem; }

  /* Hero */
  .hero {
    grid-template-columns: 1fr;
    padding: 28px 0 32px;
    gap: 28px;
  }

  .hero-copy::before { left: -14px; width: 3px; }

  h1 { font-size: clamp(1.9rem, 9vw, 2.8rem); line-height: 1.04; margin-bottom: 12px; }

  .lead { font-size: .95rem; }

  /* Orbital logó mobilon kicsi */
  .orbital-logo { width: min(60vw, 240px); }

  /* Status panel mobilon egymás alatt kompaktan */
  .status-panel { gap: 14px; }
  .time-card { padding: 16px; border-radius: 16px; }

  /* Keresés */
  .search-console { margin: 20px 0 12px; }
  .search-box {
    grid-template-columns: auto 1fr;
    min-height: 52px;
    padding: 6px 6px 6px 14px;
    gap: 8px;
  }
  .search-box button {
    grid-column: 1 / -1;
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    margin-top: 2px;
  }

  /* Projektek: mobilon egymás alatt */
  .project-grid { grid-template-columns: 1fr; }
  .project-card { min-height: 280px; }

  /* Launchpad: 2+3 elrendezés */
  .cards-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-card { min-height: 130px; }
  .app-card img { width: 58px; height: 58px; }

  /* Security: 2 oszlop marad */
  .cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* Hírek mini grid: 2 oszlop */
  .mini-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mini-card { min-height: 110px; }

  /* Panel */
  .panel { padding: 18px; border-radius: var(--radius-lg); min-height: auto; }

  /* Section head */
  .section-head { display: block; }
  .section-head .lab-title { margin-top: 4px; }

  /* Projekt kártya tartalom */
  .project-card .project-content { padding: 16px; }

  /* Channel head kisebb képernyőre */
  .channel-head { top: 56px; grid-template-columns: 48px 1fr; gap: 10px; }
  .channel-head img { width: 48px; height: 48px; }
  .channel-pills { bottom: 70px; }
}

/* =============================================
   KIS MOBIL  (max 380px)
   ============================================= */
@media (max-width: 380px) {
  .cards-5,
  .cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mini-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-grid { grid-template-columns: 1fr; }
  h1 { font-size: clamp(1.7rem, 8vw, 2.2rem); }
}

/* =============================================
   CSÖKKENTETT MOZGÁS
   ============================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}