/* =========================================================================
   Szelepdiagnosztika — landing oldal stílus
   D.E.Á.K. Irányítástechnikai Kft. (deak.hu)
   ========================================================================= */

:root {
  --navy:      #0b1f3a;
  --navy-2:    #10294c;
  --steel:     #1e4b7a;
  --accent:    #ff7a29;
  --accent-2:  #ff9a54;
  --teal:      #21c7b6;
  --ink:       #0e1b2e;
  --muted:     #5b6b80;
  --muted-2:   #8a99ad;
  --line:      #e4ebf3;
  --bg:        #ffffff;
  --bg-soft:   #f4f8fd;
  --bg-soft-2: #eef4fb;
  --white:     #ffffff;

  --radius:    16px;
  --radius-sm: 10px;
  --radius-lg: 26px;
  --shadow:    0 10px 30px -12px rgba(11, 31, 58, .18);
  --shadow-lg: 0 30px 70px -25px rgba(11, 31, 58, .35);
  --container:  1180px;
  --ease:      cubic-bezier(.22, .61, .36, 1);

  --font-head: "Sora", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.14; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }

.section { padding: 96px 0; }
.section--tight { padding: 72px 0; }
.section--soft { background: var(--bg-soft); }
.section--navy { background: var(--navy); color: #cfe0f2; }
.section--navy h2, .section--navy h3 { color: #fff; }

/* ---- accent / helpers ---- */
.accent { color: var(--accent); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: 13px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); border-radius: 2px; }
.section--navy .eyebrow { color: var(--accent-2); }

.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(30px, 4vw, 46px); margin-bottom: 18px; }
.section-head p { color: var(--muted); font-size: 18px; }
.section--navy .section-head p { color: #a9c1de; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: 15.5px;
  padding: 15px 28px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid transparent; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 12px 26px -10px rgba(255,122,41,.7); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -10px rgba(255,122,41,.8); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--steel); color: var(--steel); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn-outline-light:hover { border-color: #fff; transform: translateY(-2px); }

/* =========================================================================
   Header
   ========================================================================= */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 18px 0; transition: background .3s, box-shadow .3s, padding .3s;
}
.site-header.scrolled { background: rgba(255,255,255,.92); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); padding: 12px 0; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 700; font-size: 19px; color: #fff; transition: color .3s; letter-spacing: -.01em; }
.site-header.scrolled .brand { color: var(--ink); }
.brand .mark {
  width: 40px; height: 40px; border-radius: 11px; flex: 0 0 auto;
  display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), #ff5e00);
  box-shadow: 0 8px 18px -8px rgba(255,122,41,.8);
}
.brand .mark svg { width: 22px; height: 22px; }
.brand small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 11.5px; letter-spacing: .04em; opacity: .7; margin-top: -2px; }

.nav { display: flex; align-items: center; gap: 34px; }
.nav a { font-weight: 500; font-size: 15px; color: rgba(255,255,255,.85); transition: color .2s; }
.site-header.scrolled .nav a { color: var(--muted); }
.nav a:hover { color: var(--accent); }
.header-cta { display: flex; align-items: center; gap: 14px; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 44px; height: 44px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: currentColor; margin: 5px auto; border-radius: 2px; transition: .3s; color: #fff; }
.site-header.scrolled .nav-toggle span { background: var(--ink); }

/* =========================================================================
   Hero
   ========================================================================= */
.hero {
  position: relative; padding: 168px 0 110px; color: #eaf2fb;
  background:
    radial-gradient(900px 500px at 82% -8%, rgba(255,122,41,.24), transparent 60%),
    radial-gradient(700px 500px at 4% 20%, rgba(33,199,182,.16), transparent 55%),
    linear-gradient(160deg, #0a1c34 0%, var(--navy) 46%, #071627 100%);
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 54px 54px; mask-image: radial-gradient(1000px 600px at 70% 0%, #000, transparent 75%);
}
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero .badge {
  display: inline-flex; align-items: center; gap: 9px; padding: 8px 16px; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  font-size: 13.5px; font-weight: 500; color: #d8e6f6; margin-bottom: 26px;
}
.hero .badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(33,199,182,.25); }
.hero h1 { font-size: clamp(38px, 5.4vw, 66px); color: #fff; margin-bottom: 24px; }
.hero h1 .grad { background: linear-gradient(100deg, var(--accent-2), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { font-size: 19.5px; color: #aac4e0; max-width: 560px; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 40px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 26px 40px; }
.hero-trust div { }
.hero-trust b { font-family: var(--font-head); font-size: 26px; color: #fff; display: block; }
.hero-trust span { font-size: 13.5px; color: #90aacb; }

/* hero visual panel */
.hero-panel {
  position: relative; background: linear-gradient(160deg, rgba(255,255,255,.09), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius-lg); padding: 28px;
  box-shadow: var(--shadow-lg); backdrop-filter: blur(6px);
}
.hero-panel h4 { color: #fff; font-size: 16px; margin-bottom: 4px; }
.hero-panel .sub { font-size: 13px; color: #8fa9c8; margin-bottom: 22px; }
.gauge { position: relative; width: 190px; height: 190px; margin: 6px auto 20px; }
.gauge svg { transform: rotate(-90deg); }
.gauge-track { fill: none; stroke: rgba(255,255,255,.1); stroke-width: 14; }
.gauge-fill { fill: none; stroke: url(#gaugeGrad); stroke-width: 14; stroke-linecap: round; stroke-dasharray: 471; stroke-dashoffset: 471; transition: stroke-dashoffset 1.6s var(--ease); }
.gauge-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.gauge-center b { font-family: var(--font-head); font-size: 40px; color: #fff; line-height: 1; }
.gauge-center span { font-size: 12px; color: #8fa9c8; letter-spacing: .05em; }
.panel-rows { display: grid; gap: 12px; }
.panel-row { display: flex; align-items: center; justify-content: space-between; padding: 13px 16px; background: rgba(255,255,255,.05); border-radius: 12px; border: 1px solid rgba(255,255,255,.07); }
.panel-row span { font-size: 14px; color: #c4d6ec; display: flex; align-items: center; gap: 9px; }
.panel-row .ok { width: 9px; height: 9px; border-radius: 50%; background: var(--teal); }
.panel-row .warn { background: var(--accent); }
.panel-row b { font-family: var(--font-head); font-size: 14px; color: #fff; }

/* marquee logos */
.logos { border-top: 1px solid rgba(255,255,255,.08); background: #081527; padding: 26px 0; }
.logos p { text-align: center; font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: #6f88a8; margin-bottom: 16px; }
.logos-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 40px; }
.logos-row span { font-family: var(--font-head); font-weight: 600; color: #7f9abb; font-size: 16px; opacity: .85; }

/* =========================================================================
   Intro / feature split
   ========================================================================= */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split .media {
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg);
  background: linear-gradient(160deg, var(--navy), var(--steel)); aspect-ratio: 4/3; position: relative;
}
.split .media .diagram { position: absolute; inset: 0; display: grid; place-content: center; }
.lead-list { display: grid; gap: 18px; margin-top: 28px; }
.lead-list li { display: flex; gap: 14px; }
.lead-list .ic { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 9px; background: rgba(255,122,41,.12); color: var(--accent); display: grid; place-items: center; }
.lead-list .ic svg { width: 17px; height: 17px; }
.lead-list b { font-family: var(--font-head); display: block; font-size: 16.5px; }
.lead-list p { color: var(--muted); font-size: 15.5px; }

/* =========================================================================
   Stat band
   ========================================================================= */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.stat { text-align: center; padding: 12px; }
.stat b { font-family: var(--font-head); font-size: clamp(38px, 5vw, 54px); background: linear-gradient(120deg, var(--accent-2), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; display: block; letter-spacing: -.03em; }
.stat span { color: #a9c1de; font-size: 15px; }

/* =========================================================================
   Cards grid
   ========================================================================= */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 30px; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; height: 100%;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card .ic {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 22px;
  background: linear-gradient(150deg, rgba(255,122,41,.14), rgba(255,122,41,.06)); color: var(--accent);
}
.card .ic svg { width: 26px; height: 26px; }
.card h3 { font-size: 20px; margin-bottom: 12px; }
.card p { color: var(--muted); font-size: 15.5px; }
.card .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; color: var(--accent); font-weight: 600; font-family: var(--font-head); font-size: 14.5px; }
.card .more svg { width: 15px; height: 15px; transition: transform .25s; }
.card:hover .more svg { transform: translateX(4px); }

/* method list (numbered, on navy) */
.methods { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.method { display: flex; gap: 20px; padding: 26px; border-radius: var(--radius); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); transition: background .3s, transform .3s; }
.method:hover { background: rgba(255,255,255,.07); transform: translateY(-4px); }
.method .num { font-family: var(--font-head); font-weight: 700; font-size: 15px; flex: 0 0 auto; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: linear-gradient(150deg, var(--accent), #ff5e00); color: #fff; }
.method h3 { font-size: 18px; margin-bottom: 8px; color: #fff; }
.method p { color: #a3bbd8; font-size: 15px; }

/* =========================================================================
   Process timeline
   ========================================================================= */
.timeline { position: relative; display: grid; gap: 8px; }
.tl-step { display: grid; grid-template-columns: 90px 1fr; gap: 26px; padding: 26px 0; border-bottom: 1px solid var(--line); align-items: start; }
.tl-step:last-child { border-bottom: 0; }
.tl-num { font-family: var(--font-head); font-weight: 700; font-size: 44px; color: transparent; -webkit-text-stroke: 1.5px var(--accent); line-height: 1; }
.tl-step h3 { font-size: 21px; margin-bottom: 8px; }
.tl-step p { color: var(--muted); }
.tl-step .tag { display: inline-block; margin-top: 10px; font-size: 12.5px; font-weight: 600; color: var(--steel); background: var(--bg-soft-2); padding: 4px 12px; border-radius: 999px; }

/* =========================================================================
   Checklist / signs
   ========================================================================= */
.checklist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 34px; }
.checklist li { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.checklist .ic { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; background: rgba(255,122,41,.12); color: var(--accent); display: grid; place-items: center; }
.checklist .ic svg { width: 15px; height: 15px; }
.checklist b { font-family: var(--font-head); font-size: 16px; display: block; margin-bottom: 2px; }
.checklist span { color: var(--muted); font-size: 14.5px; }

/* industries chips */
.industries { display: flex; flex-wrap: wrap; gap: 14px; }
.chip { display: flex; align-items: center; gap: 11px; padding: 14px 22px; background: #fff; border: 1px solid var(--line); border-radius: 999px; font-family: var(--font-head); font-weight: 600; font-size: 15px; transition: transform .25s, border-color .25s, color .25s; }
.chip:hover { transform: translateY(-3px); border-color: var(--accent); color: var(--accent); }
.chip .ic { color: var(--steel); display: grid; place-items: center; }
.chip:hover .ic { color: var(--accent); }
.chip .ic svg { width: 19px; height: 19px; }

/* =========================================================================
   FAQ
   ========================================================================= */
.faq { max-width: 840px; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; padding: 26px 48px 26px 0; position: relative; font-family: var(--font-head); font-weight: 600; font-size: 18.5px; color: var(--ink); }
.faq-q::after { content: ""; position: absolute; right: 6px; top: 30px; width: 12px; height: 12px; border-right: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(45deg); transition: transform .3s; }
.faq-item.open .faq-q::after { transform: rotate(-135deg); top: 34px; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq-a p { color: var(--muted); padding-bottom: 26px; font-size: 16px; }

/* =========================================================================
   CTA band
   ========================================================================= */
.cta {
  position: relative; overflow: hidden; border-radius: 0;
  background: radial-gradient(700px 400px at 15% 10%, rgba(255,122,41,.5), transparent 55%), linear-gradient(150deg, var(--steel), var(--navy));
  color: #fff; text-align: center;
}
.cta .container { position: relative; z-index: 2; }
.cta h2 { font-size: clamp(30px, 4.4vw, 50px); color: #fff; margin-bottom: 18px; }
.cta p { color: #cfe0f3; font-size: 19px; max-width: 640px; margin: 0 auto 34px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.cta-note { margin-top: 26px; font-size: 14.5px; color: #a9c1de; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.cta-note a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* =========================================================================
   Footer
   ========================================================================= */
.footer { background: #071627; color: #93aaca; padding: 76px 0 34px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 52px; }
.footer .brand { color: #fff; margin-bottom: 20px; }
.footer-about p { font-size: 15px; color: #86a0c0; max-width: 320px; }
.footer h4 { color: #fff; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 20px; font-family: var(--font-head); }
.footer-links li { margin-bottom: 12px; }
.footer-links a { font-size: 15px; color: #93aaca; transition: color .2s; }
.footer-links a:hover { color: var(--accent); }
.footer-contact li { display: flex; gap: 12px; margin-bottom: 16px; font-size: 15px; color: #b7c9e0; align-items: flex-start; }
.footer-contact .ic { color: var(--accent); flex: 0 0 auto; margin-top: 2px; }
.footer-contact .ic svg { width: 18px; height: 18px; }
.footer-contact a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 28px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13.5px; color: #6f88a8; }
.footer-bottom a { color: #93aaca; }
.footer-bottom a:hover { color: var(--accent); }

/* back to top */
.to-top { position: fixed; right: 26px; bottom: 26px; z-index: 90; width: 50px; height: 50px; border-radius: 50%; border: 0; cursor: pointer; background: var(--accent); color: #fff; display: grid; place-items: center; box-shadow: 0 12px 26px -10px rgba(255,122,41,.8); opacity: 0; visibility: hidden; transform: translateY(14px); transition: .3s; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 20px; height: 20px; }

/* =========================================================================
   Reveal animation
   ========================================================================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 980px) {
  .hero-grid, .split { grid-template-columns: 1fr; gap: 44px; }
  .hero-panel { max-width: 460px; }
  .grid-3, .methods, .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 34px; }
  .footer-grid { gap: 34px; }
}
@media (max-width: 720px) {
  .section { padding: 72px 0; }
  .nav, .header-cta .btn-ghost { display: none; }
  .nav-toggle { display: block; }
  .nav.open { display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: #fff; padding: 12px 24px 24px; box-shadow: var(--shadow); border-top: 1px solid var(--line); }
  .nav.open a { padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); width: 100%; }
  .grid-3, .grid-2, .methods, .checklist, .footer-grid { grid-template-columns: 1fr; }
  .tl-step { grid-template-columns: 60px 1fr; gap: 18px; }
  .tl-num { font-size: 34px; }
  .footer-bottom { flex-direction: column; }
}
