/* =======================================================
   EcoSoft Kft. — landing page styles
   Brand: türkiz #57C7C2 (primary) + narancs #F25900 (accent)
   Tipográfia: Manrope (sans) + JetBrains Mono (mono)
   ======================================================= */


/* ========== 1. TOKENS / CSS VARIABLES ========== */
:root {
  /* Háttér + szöveg */
  --bg: #ffffff;
  --bg-soft: #f5fafa;
  --bg-warm: #f8fbfb;
  --ink: #0f1f1f;
  --ink-soft: #2e3a3a;
  --ink-mute: #6b7575;
  --line-soft: #dde5e4;
  --paper: #ffffff;

  /* Brand: türkiz = elsődleges */
  --primary: #57C7C2;
  --primary-dark: #3da8a3;
  --primary-soft: #e9f7f6;
  --primary-glow: rgba(87, 199, 194, 0.22);

  /* Brand: narancs = kiemelt info / CTA */
  --accent: #F25900;
  --accent-dark: #d44c00;
  --accent-soft: #fff1e6;
  --accent-glow: rgba(242, 89, 0, 0.22);

  /* Sötét felületek */
  --night: #0f1f1f;
  --night-2: #182929;

  /* Tipográfia */
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Consolas, monospace;
}


/* ========== 2. RESET + BASE ========== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }


/* ========== 3. LAYOUT PRIMITIVES ========== */
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 28px; }
@media (max-width: 720px) { .wrap { padding: 0 20px; } }


/* ========== 4. TOP BAR ========== */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
}
.brand {
  display: flex; align-items: center; gap: 12px;
}
/* A logó SVG viewBox-a ~158x160 (közel négyzet). Magasság-alapú méretezés. */
.brand-logo {
  height: 44px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.brand-logo-lg { height: 56px; }
.brand-text {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.025em;
  line-height: 1;
}
.brand-text small {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-mute);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  margin-top: 3px;
}
@media (max-width: 540px) {
  .brand-text { display: none; }
}

.nav { display: flex; gap: 26px; align-items: center; }
.nav a {
  font-size: 14px; font-weight: 600;
  color: var(--ink-soft);
  transition: color 0.2s;
}
.nav a:hover { color: var(--accent); }
.nav .cta-mini {
  font-size: 13px;
  font-weight: 700;
  padding: 10px 16px;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  transition: all 0.2s;
}
.nav .cta-mini:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-1px);
}
@media (max-width: 880px) {
  .nav a:not(.cta-mini) { display: none; }
}


/* ========== 5. HERO ========== */
.hero {
  padding: 80px 0 70px;
  position: relative;
  overflow: hidden;
}
/* Halvány türkiz "labirintus" háttér-grafika a hero jobb felső sarkában */
.hero-bg {
  position: absolute;
  top: -80px; right: -120px;
  width: 720px; height: 720px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
}
@media (max-width: 880px) {
  .hero-bg { width: 480px; height: 480px; right: -160px; top: -40px; }
}
.hero > .wrap { position: relative; z-index: 1; }

.hero-meta {
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-mute);
  margin-bottom: 44px;
}
.hero-meta .pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: var(--paper);
  font-weight: 500;
}
.hero-meta .pill strong { color: var(--accent); font-weight: 700; }
.hero-meta .pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-glow);
  animation: pulse 2s infinite;
}
.hero-meta-right { margin-left: auto; }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 var(--accent-glow); }
  70%  { box-shadow: 0 0 0 9px rgba(242, 89, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(242, 89, 0, 0); }
}

.hero h1 {
  font-weight: 800;
  font-size: clamp(44px, 7.5vw, 110px);
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.hero h1 .accent { color: var(--accent); }
.hero h1 .line2 { display: block; }

.hero-bottom {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  margin-top: 56px;
  align-items: end;
}
@media (max-width: 880px) {
  .hero-bottom { grid-template-columns: 1fr; gap: 36px; }
}

.hero-lead {
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 56ch;
}
.hero-lead strong { font-weight: 700; color: var(--ink); }

.hero-cta-stack { display: flex; flex-direction: column; gap: 12px; }


/* ========== 6. BUTTONS ========== */
.btn {
  display: inline-flex; align-items: center; justify-content: space-between;
  gap: 14px;
  padding: 18px 22px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 24px -8px var(--accent-glow);
}
.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -10px rgba(242, 89, 0, 0.4);
}
.btn-secondary {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--line-soft);
}
.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
  transform: translateY(-2px);
}
.btn .arrow {
  display: inline-block;
  transition: transform 0.25s;
  font-family: var(--mono);
  font-size: 18px;
}
.btn:hover .arrow { transform: translateX(4px); }
.btn-sub {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.75;
  margin-bottom: 4px;
  font-weight: 500;
}


/* ========== 7. TICKER / MARQUEE ========== */
.ticker {
  background: var(--primary);
  color: var(--ink);
  padding: 14px 0;
  overflow: hidden;
  white-space: nowrap;
  margin-top: 70px;
  position: relative;
}
.ticker::after {
  /* alsó vékony narancs swoosh — utalás a logó alatti vonalra */
  content: "";
  position: absolute;
  left: 50%; bottom: -2px;
  transform: translateX(-50%);
  width: 60%; height: 3px;
  background: var(--accent);
  border-radius: 2px;
  opacity: 0.8;
}
.ticker-track {
  display: inline-block;
  animation: scroll 40s linear infinite;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
}
.ticker-track span { margin: 0 28px; }
.ticker-track .star { margin: 0 16px; color: var(--accent); }
@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}


/* ========== 8. SECTION HEADINGS (közös) ========== */
.sec-label {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary-dark);
  margin-bottom: 24px;
  font-weight: 600;
}
.sec-label::before {
  content: ""; width: 24px; height: 2px; background: var(--primary);
}
.sec-h2 {
  font-weight: 800;
  font-size: clamp(34px, 4.5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 22ch;
  margin-bottom: 56px;
}
.sec-h2 .accent  { color: var(--accent); }
.sec-h2 .primary { color: var(--primary-dark); }


/* ========== 9. BRAND CARD (penztargepem.hu) ========== */
.brand-section {
  padding: 110px 0 80px;
  position: relative;
}
.brand-card {
  background: var(--night);
  border-radius: 24px;
  padding: 56px;
  color: #fff;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 880px) {
  .brand-card { grid-template-columns: 1fr; padding: 36px 28px; gap: 36px; }
}
.brand-card::before {
  content: "";
  position: absolute;
  top: -20%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(87,199,194,0.40) 0%, transparent 65%);
  pointer-events: none;
}
.brand-card::after {
  content: "";
  position: absolute;
  bottom: -30%; left: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(242,89,0,0.20) 0%, transparent 65%);
  pointer-events: none;
}
.brand-card-content { position: relative; z-index: 2; }
.brand-logo-label {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary);
  margin-bottom: 20px;
  font-weight: 600;
}
.brand-card h3 {
  font-weight: 800;
  font-size: clamp(40px, 5.2vw, 64px);
  letter-spacing: -0.035em;
  line-height: 1;
  margin-bottom: 24px;
  color: var(--accent);
}
.brand-card h3 .url-dot { color: #fff; }
.brand-card p {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255,255,255,0.82);
  max-width: 48ch;
  margin-bottom: 32px;
}
.brand-card-cta {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--accent);
  color: #fff;
  padding: 16px 26px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  transition: all 0.25s;
}
.brand-card-cta:hover {
  background: #fff;
  color: var(--ink);
  transform: translateY(-2px);
}
.brand-card-cta-arrow { font-family: var(--mono); }

.brand-card-visual {
  position: relative;
  z-index: 2;
  aspect-ratio: 1 / 1;
  display: flex; align-items: center; justify-content: center;
}


/* ========== 10. RECEIPT (nyugta dekoráció) ========== */
.receipt {
  background: #fff;
  color: var(--ink);
  border-radius: 6px;
  padding: 28px 24px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.6;
  width: 100%;
  max-width: 280px;
  position: relative;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6);
  transform: rotate(-3deg);
}
.receipt::before, .receipt::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 12px;
  background:
    radial-gradient(circle at 6px 6px, var(--night) 4px, transparent 4.5px) repeat-x;
  background-size: 12px 12px;
}
.receipt::before { top: -6px; }
.receipt::after  { bottom: -6px; transform: rotate(180deg); }
.receipt-head {
  text-align: center;
  border-bottom: 1px dashed var(--ink-mute);
  padding-bottom: 12px;
  margin-bottom: 12px;
}
.receipt-head .name {
  font-weight: 800;
  font-size: 18px;
  font-family: var(--sans);
  letter-spacing: -0.02em;
  color: var(--primary-dark);
}
.receipt-head .sub {
  font-size: 9px;
  color: var(--ink-mute);
  margin-top: 2px;
  letter-spacing: 0.05em;
}
.receipt-line { display: flex; justify-content: space-between; }
.receipt-line span:last-child { color: var(--accent); font-weight: 700; }
.receipt-total {
  border-top: 1px dashed var(--ink-mute);
  margin-top: 10px; padding-top: 10px;
  font-weight: 700;
  font-size: 13px;
}
.receipt-total span:last-child { color: var(--accent); }


/* ========== 11. BENTO GRID ========== */
.bento-section { padding: 80px 0 110px; background: var(--bg-soft); }
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  grid-auto-rows: minmax(180px, auto);
}
.tile {
  border-radius: 18px;
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
              border-color 0.3s, box-shadow 0.3s;
  display: flex; flex-direction: column;
}
.tile:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 18px 36px -16px rgba(87, 199, 194, 0.3);
}
.tile-tag {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-mute);
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
  font-weight: 500;
}
.tile-tag .num {
  background: var(--primary);
  color: #fff;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 700;
}
.tile h4 {
  font-weight: 800;
  font-size: 26px;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
}
.tile-h4-big { font-size: 36px; }
.tile p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
  margin-bottom: auto;
}
.tile-p-big { font-size: 16px; max-width: 38ch; }
.tile-foot {
  margin-top: 20px;
  display: flex; align-items: center; gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}
.tile-foot .arrow { font-family: var(--mono); transition: transform 0.25s; }
.tile:hover .tile-foot .arrow { transform: translateX(4px); }

/* Tile méretvariációk */
.tile.t-wide  { grid-column: span 3; }
.tile.t-half  { grid-column: span 2; }
.tile.t-third { grid-column: span 2; }

/* Tile színvariációk */
.tile.t-feature {
  grid-column: span 4;
  grid-row: span 2;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
  border-color: transparent;
}
.tile.t-feature .tile-tag { color: rgba(255,255,255,0.85); }
.tile.t-feature .tile-tag .num { background: #fff; color: var(--accent); }
.tile.t-feature p { color: rgba(255,255,255,0.93); }
.tile.t-feature .tile-foot { color: #fff; }
.tile.t-feature:hover {
  box-shadow: 0 22px 44px -16px rgba(242, 89, 0, 0.5);
  border-color: transparent;
}

.tile.t-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border-color: transparent;
}
.tile.t-primary .tile-tag { color: rgba(255,255,255,0.9); }
.tile.t-primary .tile-tag .num { background: #fff; color: var(--primary-dark); }
.tile.t-primary p { color: rgba(255,255,255,0.92); }
.tile.t-primary .tile-foot { color: #fff; }
.tile.t-primary:hover {
  box-shadow: 0 22px 44px -16px rgba(87, 199, 194, 0.55);
  border-color: transparent;
}

.tile.t-dark { background: var(--ink); color: #fff; border-color: transparent; }
.tile.t-dark .tile-tag { color: rgba(255,255,255,0.5); }
.tile.t-dark p { color: rgba(255,255,255,0.72); }
.tile.t-dark .tile-foot { color: var(--accent); }
.tile.t-dark:hover { border-color: var(--accent); }

@media (max-width: 980px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile.t-wide, .tile.t-half, .tile.t-third, .tile.t-feature {
    grid-column: span 2; grid-row: auto;
  }
}

.feature-art {
  position: absolute;
  inset: auto -20% -30% auto;
  width: 70%;
  aspect-ratio: 1 / 1;
  pointer-events: none;
  opacity: 0.7;
}


/* ========== 12. TIMELINE ========== */
.timeline-section {
  background: var(--night);
  color: #fff;
  padding: 110px 0;
  position: relative;
  overflow: hidden;
}
.timeline-section::before {
  content: "";
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(87,199,194,0.18) 0%, transparent 60%);
  pointer-events: none;
}
.timeline-section .sec-label { color: var(--primary); }
.timeline-section .sec-label::before { background: var(--primary); }
.timeline-section .sec-h2 { color: #fff; }
.timeline-section .sec-h2 .accent  { color: var(--accent); }
.timeline-section .sec-h2 .primary { color: var(--primary); }

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 50px;
  border-top: 1px solid rgba(255,255,255,0.15);
  position: relative;
  z-index: 1;
}
@media (max-width: 880px) { .timeline { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .timeline { grid-template-columns: 1fr; } }
.tl-step {
  padding: 32px 24px 32px 0;
  border-right: 1px solid rgba(255,255,255,0.15);
}
.tl-step:last-child { border-right: none; }
.tl-year {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.15em;
  margin-bottom: 14px;
  font-weight: 600;
}
.tl-step h5 {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  line-height: 1.15;
}
.tl-step p {
  font-size: 13px;
  color: rgba(255,255,255,0.68);
  line-height: 1.5;
}


/* ========== 13. CONTACT ========== */
.contact-section {
  padding: 110px 0;
  background: var(--bg-warm);
  border-top: 1px solid var(--line-soft);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 880px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

.contact-h {
  font-weight: 800;
  font-size: clamp(36px, 4.6vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
}
.contact-h .accent  { color: var(--accent); }
.contact-h .primary { color: var(--primary-dark); }
.contact-lead {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 44ch;
  margin-bottom: 36px;
}
.contact-cta { max-width: 360px; }

.contact-info { display: flex; flex-direction: column; gap: 4px; }
.info-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: baseline;
}
.info-row:first-child { border-top: 1px solid var(--line-soft); }
.info-key {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-mute);
  font-weight: 500;
}
.info-val { font-size: 16px; font-weight: 600; }
.info-val a { transition: color 0.2s; }
.info-val a:hover { color: var(--accent); }
.info-val small {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-mute);
  margin-top: 4px;
}


/* ========== 14. FOOTER ========== */
.footer {
  background: var(--night);
  color: rgba(255,255,255,0.72);
  padding: 64px 0 36px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
@media (max-width: 720px) {
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
}

.footer-brand-row {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 16px;
}
.footer-brand-row .name {
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -0.025em;
  color: #fff;
  line-height: 1;
}
.footer-brand-row .name .accent { color: var(--accent); }
.footer-brand p { font-size: 14px; max-width: 38ch; }

.footer-col h6 {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary);
  margin-bottom: 18px;
  font-weight: 600;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap; gap: 16px;
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.05em;
}


/* ========== 15. ENTRANCE ANIMATIONS ========== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.35s; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
