:root {
  --bg: #f4f3ee;
  --bg-alt: #eae8e0;
  --ink: #0e0f0c;
  --muted: #5d5f57;
  --line: #d6d3c8;
  --card: #fbfaf6;
  --signal: #c6f432;
  --signal-ink: #0e0f0c;
  --radius: 18px;
  --wrap: 1180px;
  --font: "Inter Tight", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0f0c;
    --bg-alt: #151612;
    --ink: #f1f0ea;
    --muted: #9a9c92;
    --line: #2a2c25;
    --card: #181a15;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  background: var(--ink); color: var(--bg);
  padding: 14px 24px; border-radius: 999px;
  font-weight: 600; text-decoration: none; font-size: 16px;
  border: 1.5px solid var(--ink);
  transition: transform .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); background: var(--signal); color: var(--signal-ink); border-color: var(--signal); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-sm { padding: 8px 18px; font-size: 15px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 19px; letter-spacing: -.02em; }
.logo b { font-weight: 800; }
.logo-mark {
  width: 32px; height: 32px; border-radius: 9px;
  background: #0e0f0c; color: var(--signal);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--signal) 35%, transparent);
  display: grid; place-items: center; font-weight: 800; font-size: 16px;
}
.menu { display: flex; align-items: center; gap: 28px; }
.menu a:not(.btn) { text-decoration: none; font-size: 15px; color: var(--muted); transition: color .2s; }
.menu a:not(.btn):hover { color: var(--ink); }
.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 9px; right: 9px; height: 2px; background: var(--ink); transition: transform .25s, top .25s; }
.nav-toggle span:first-child { top: 15px; }
.nav-toggle span:last-child { top: 23px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 19px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 19px; transform: rotate(-45deg); }

/* ---------- hero ---------- */
.hero { padding: 96px 0 72px; position: relative; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 10%, transparent 75%);
  opacity: .6;
}
.eyebrow { font-size: 13px; color: var(--muted); letter-spacing: .02em; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.18); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(34,197,94,0); } }
h1 {
  font-size: clamp(42px, 7.2vw, 92px);
  line-height: .98; letter-spacing: -.045em; font-weight: 800;
  max-width: 14ch;
}
h1 em {
  font-style: normal; position: relative; white-space: nowrap;
  background: linear-gradient(transparent 62%, var(--signal) 62%, var(--signal) 92%, transparent 92%);
}
@media (prefers-color-scheme: dark) { h1 em { background: none; color: var(--signal); } }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 60ch; margin-top: 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: 72px; border-top: 1px solid var(--line);
}
.stats div { padding: 22px 20px 0 0; }
.stats div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.stats dt { font-size: clamp(32px, 4vw, 48px); font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.stats dd { color: var(--muted); font-size: 15px; margin-top: 6px; }

/* ---------- marquee ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; background: var(--ink); color: var(--bg); }
.marquee-track { display: flex; width: max-content; animation: scroll 40s linear infinite; font-size: 14px; }
.marquee-track span { padding: 14px 28px; white-space: nowrap; }
.marquee-track span::before { content: "✦"; color: var(--signal); margin-right: 28px; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: 112px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { margin-bottom: 56px; max-width: 720px; }
h2 { font-size: clamp(32px, 4.6vw, 56px); line-height: 1.04; letter-spacing: -.035em; font-weight: 800; }
.section-head .muted { margin-top: 16px; font-size: 18px; }
h3 { font-size: 22px; letter-spacing: -.02em; line-height: 1.2; font-weight: 700; }

/* ---------- projects ---------- */
.project {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.project:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 24px 48px -28px color-mix(in srgb, var(--accent) 60%, transparent); }
.project-visual {
  padding: 28px 28px 0; aspect-ratio: 16 / 9; overflow: hidden;
  background: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--accent) 35%, transparent), transparent 60%), color-mix(in srgb, var(--accent) 10%, var(--card));
}
.project-body { padding: 26px 28px 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.project-body p { color: var(--muted); font-size: 16px; }
.project-body .tag { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.links { display: flex; flex-wrap: wrap; gap: 16px; margin-top: auto; padding-top: 6px; }
.links a { font-family: var(--mono); font-size: 14px; text-decoration: none; border-bottom: 1.5px solid var(--accent); padding-bottom: 2px; }
.links a:hover { color: var(--accent); }

.featured { display: grid; grid-template-columns: 1.15fr 1fr; margin-bottom: 24px; }
.featured .project-visual { aspect-ratio: auto; padding: 40px 0 0 40px; min-height: 380px; }
.featured .project-body { padding: 40px; justify-content: center; }
.featured h3 { font-size: 32px; }
.features { list-style: none; display: grid; gap: 8px; margin: 6px 0 8px; }
.features li { padding-left: 26px; position: relative; font-size: 15.5px; }
.features li::before { content: "→"; position: absolute; left: 0; font-family: var(--mono); color: var(--ink); background: var(--accent); border-radius: 4px; font-size: 12px; width: 18px; height: 18px; display: grid; place-items: center; top: 3px; color: #0e0f0c; }

.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

/* browser mockups */
.browser {
  background: #fff; border-radius: 12px 12px 0 0; height: 100%;
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.35); overflow: hidden; color: #0e0f0c;
}
.featured .browser { border-radius: 12px 0 0 0; }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #f1f1ef; border-bottom: 1px solid #e4e4e0; }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d4d4cf; }
.browser-bar span { margin-left: 10px; font-size: 11px; color: #777; background: #fff; padding: 3px 12px; border-radius: 6px; flex: 1; max-width: 220px; }
.mock { padding: 22px; height: 100%; display: flex; flex-direction: column; gap: 10px; }
.mock b { font-size: 20px; letter-spacing: -.02em; }
.mock small { color: #666; font-size: 13px; }

.mock-shop { background: #0f1115; color: #fff; }
.mock-shop small { color: #9aa; }
.mock-hero { padding: 18px; border-radius: 10px; background: linear-gradient(120deg, #1d2410, #2c3a0c); display: flex; flex-direction: column; gap: 4px; }
.mock-hero b { color: var(--signal); font-size: 24px; }
.mock-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; flex: 1; }
.mock-grid span { background: #1b1e24; border-radius: 8px; min-height: 64px; position: relative; }
.mock-grid span::after { content: ""; position: absolute; left: 10px; right: 30%; bottom: 10px; height: 6px; border-radius: 3px; background: #333944; }

.mock-fonix { background: #111; color: #fff; justify-content: center; }
.mock-fonix b { font-size: 24px; background: linear-gradient(90deg, #ff5f1f, #ffc62e); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mock-fonix small { color: #aaa; }
.pill { align-self: flex-start; background: #ff5f1f; color: #fff; font-weight: 600; font-size: 12px; padding: 8px 14px; border-radius: 999px; margin-top: 6px; }

.mock-pc { background: #f5f8ff; }
.bars { display: flex; align-items: flex-end; gap: 10px; flex: 1; padding-top: 10px; }
.bars span { flex: 1; height: var(--h); background: linear-gradient(#3b82f6, #93c5fd); border-radius: 6px 6px 0 0; }

.mock-szobor { background: #f7f1ea; justify-content: center; }
.mock-szobor b { font-family: Georgia, serif; font-weight: 400; font-size: 26px; }
.score { align-self: flex-start; font-size: 12px; background: #0cce6b; color: #fff; padding: 6px 12px; border-radius: 999px; margin-top: 6px; }

.mock-cal { background: #fff6f8; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; flex: 1; }
.cal span { background: #fde6ec; border-radius: 6px; min-height: 22px; }
.cal span.on { background: #e8a3b8; }

.mock-table { background: #f6f4ff; }
.rows { display: grid; gap: 8px; }
.rows span { height: 22px; background: #fff; border: 1px solid #e3defc; border-radius: 6px; position: relative; }
.rows span::after { content: ""; position: absolute; right: 10px; top: 7px; width: 22%; height: 6px; border-radius: 3px; background: #a78bfa; }

.mock-video { background: #14080b; color: #fff; justify-content: center; }
.wave { display: flex; align-items: center; gap: 5px; height: 60px; }
.wave span { flex: 1; background: #f43f5e; border-radius: 3px; animation: wave 1.2s ease-in-out infinite; }
.wave span:nth-child(odd) { animation-delay: -.4s; }
.wave span:nth-child(3n) { animation-delay: -.8s; }
@keyframes wave { 0%,100% { height: 20%; } 50% { height: 100%; } }

/* ---------- services ---------- */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.service .ico { font-size: 13px; align-self: flex-start; background: var(--signal); color: var(--signal-ink); padding: 4px 10px; border-radius: 6px; }
.service p { color: var(--muted); font-size: 15.5px; }

/* ---------- steps ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border-top: 1px solid var(--line); }
.steps li { padding: 28px 24px 0 0; display: flex; flex-direction: column; gap: 10px; }
.steps li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.steps li > span { font-size: 13px; color: var(--muted); }
.steps p { color: var(--muted); font-size: 15.5px; }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: 1.3fr 1fr; gap: 72px; align-items: start; }
.about-text h2 { margin-bottom: 28px; }
.about-text p + p { margin-top: 16px; }
.about-text p:not(.eyebrow) { color: var(--muted); font-size: 18px; }
.about-facts { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); margin-top: 8px; }
.about-facts li { padding: 20px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.about-facts b { font-size: 18px; }
.about-facts span { color: var(--muted); font-size: 15.5px; }

/* ---------- contact ---------- */
.contact { text-align: left; }
.contact h2 { font-size: clamp(36px, 6vw, 76px); max-width: 16ch; }
.contact-mail {
  display: inline-block; margin-top: 40px;
  font-size: clamp(28px, 5vw, 56px); font-weight: 800; letter-spacing: -.035em;
  text-decoration: none; border-bottom: 4px solid var(--signal); line-height: 1.15;
  transition: color .2s;
}
.contact-mail:hover { color: var(--muted); }
.contact-links { display: flex; gap: 24px; margin-top: 32px; font-size: 14px; }
.contact-links a { text-decoration: none; color: var(--muted); }
.contact-links a:hover { color: var(--ink); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: 13px; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer a { text-decoration: none; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.project.reveal.in:hover { transform: translateY(-4px); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track, .wave span, .dot { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; border-top: 0; }
  .steps li, .steps li + li { padding: 24px 0; border-left: 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 60px 200px 1fr; align-items: baseline; gap: 16px; }
  .featured { grid-template-columns: 1fr; }
  .featured .project-visual { min-height: 300px; padding: 32px 32px 0; }
  .featured .browser { border-radius: 12px 12px 0 0; }
  .about { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .nav-toggle { display: block; }
  .menu {
    position: fixed; inset: 68px 0 auto 0; background: var(--bg);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 20px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%); transition: transform .3s; z-index: -1;
  }
  .menu.open { transform: none; }
  .menu a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; color: var(--ink); }
  .menu .btn { margin-top: 16px; justify-content: center; }
  .hero { padding: 64px 0 48px; }
  .stats { grid-template-columns: repeat(2, 1fr); margin-top: 48px; }
  .stats div, .stats div + div { padding: 20px 0; border-left: 0; }
  .stats div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
  .stats div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 36px; }
  .project-grid, .services { grid-template-columns: 1fr; }
  .project-visual { padding: 20px 20px 0; }
  .featured .project-visual { min-height: 240px; padding: 20px 20px 0; }
  .project-body, .featured .project-body { padding: 22px 20px 24px; }
  .featured h3 { font-size: 26px; }
  .steps li, .steps li + li { grid-template-columns: 1fr; gap: 6px; }
  .contact-mail { word-break: break-all; }
}

/* ---------- valódi képernyőképek ---------- */
.shot { width: 100%; height: auto; display: block; }
.project-visual .browser { height: auto; }
.project-visual { position: relative; }
.featured .project-visual { display: block; }
.featured .project-visual > .browser:first-child { margin-right: 0; }
.browser-float {
  position: absolute; width: 52%; right: 24px; bottom: -40px;
  border-radius: 12px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.45);
  transform: rotate(-2deg); transition: transform .4s;
}
.project:hover .browser-float { transform: rotate(0) translateY(-10px); }
@media (max-width: 760px) {
  .browser-float { width: 58%; right: 12px; bottom: -24px; }
}

/* ---------- fő funkciók ---------- */
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 6px; }
.chips li {
  font-size: 12.5px; line-height: 1; padding: 7px 10px; border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  color: var(--ink); white-space: nowrap;
}
