:root {
  --navy: #0b2540;
  --navy-2: #12345a;
  --blue: #0a6fb8;
  --teal: #12a4a8;
  --teal-soft: #e3f5f5;
  --ink: #1b2733;
  --muted: #5b6b7b;
  --line: #e2e8ee;
  --bg: #ffffff;
  --bg-alt: #f5f8fb;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(11, 37, 64, .06), 0 8px 24px rgba(11, 37, 64, .06);
  --container: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; color: var(--navy); letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 600; }
p { margin: 0 0 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--teal);
  color: #fff;
  font-weight: 600;
  padding: .85em 1.5em;
  border-radius: 999px;
  border: 2px solid var(--teal);
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  transition: background .2s, border-color .2s, transform .2s;
}
.btn:hover { background: #0e8d91; border-color: #0e8d91; text-decoration: none; transform: translateY(-1px); }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn-small { padding: .5em 1.1em; font-size: .92rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: wait; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  font-weight: 600;
  color: var(--teal);
  margin-bottom: .8em;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: .5em; color: var(--blue); font-weight: 700; font-size: 1.3rem; }
.logo span { color: var(--navy); }
.logo b { color: var(--teal); }
.logo:hover { text-decoration: none; }
.main-nav ul { display: flex; align-items: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.main-nav a:not(.btn) { color: var(--ink); font-weight: 500; font-size: .95rem; white-space: nowrap; }
.main-nav a:not(.btn):hover { color: var(--blue); text-decoration: none; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span:not(.sr-only) { display: block; width: 22px; height: 2px; background: var(--navy); margin: 5px 0; transition: transform .2s, opacity .2s; }

/* Hero */
.hero {
  position: relative;
  color: #fff;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(18,164,168,.45), transparent 60%),
    radial-gradient(800px 400px at 0% 100%, rgba(10,111,184,.5), transparent 60%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  padding: 96px 0 140px;
  overflow: hidden;
}
.hero h1 { color: #fff; max-width: 16ch; }
.hero .eyebrow { color: #7fd8da; }
.hero .lead { font-size: 1.15rem; color: #cfdeea; max-width: 56ch; }
.hero-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: center; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-stats {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.hero-stats li {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius);
  padding: 22px;
  backdrop-filter: blur(4px);
}
.hero-stats strong { display: block; font-size: 2rem; line-height: 1; margin-bottom: 8px; }
.hero-stats span { font-size: .88rem; color: #b9cde0; }
.hero-wave { position: absolute; bottom: -1px; left: 0; width: 100%; height: 80px; color: var(--bg); }

/* Sections */
.section { padding: 88px 0; }
.section.alt { background: var(--bg-alt); }
.section.dark { background: var(--navy); color: #cfdeea; }
.section.dark h2, .section.dark h3 { color: #fff; }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head p:last-child { color: var(--muted); font-size: 1.05rem; }
.section.dark .section-head p:last-child { color: #b9cde0; }

.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--teal-soft); color: var(--teal);
  margin-bottom: 18px;
}
.icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.problem p, .card p, .area p { color: var(--muted); margin: 0; font-size: .96rem; }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow .25s, transform .25s, border-color .25s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: transparent; }

/* Areas */
.areas { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.area { padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.area h3 { position: relative; padding-left: 16px; }
.area h3::before { content: ""; position: absolute; left: 0; top: .3em; width: 4px; height: .9em; border-radius: 2px; background: var(--teal); }
.industries { margin-top: 32px; color: var(--muted); }
.industries span { font-weight: 600; color: var(--navy); margin-right: .4em; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; counter-reset: s; }
.steps li { position: relative; padding-top: 22px; border-top: 2px solid rgba(255,255,255,.15); }
.steps li::before { content: ""; position: absolute; top: -2px; left: 0; width: 40px; height: 2px; background: var(--teal); }
.steps .num { display: block; font-size: .85rem; font-weight: 600; color: #7fd8da; margin-bottom: 10px; }
.steps p { font-size: .94rem; margin: 0; }

/* About */
.about { display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: start; }
.about > div > p { color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 24px 0 0; }
.checks li { position: relative; padding-left: 30px; margin-bottom: 10px; font-weight: 500; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .25em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--teal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312a4a8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center/12px no-repeat;
}
.team { background: var(--bg-alt); border-radius: var(--radius); padding: 28px; }
.team ul { list-style: none; margin: 0; padding: 0; }
.team li { display: grid; padding: 14px 0; border-bottom: 1px solid var(--line); }
.team li:last-child { border-bottom: 0; }
.team span { color: var(--muted); font-size: .9rem; }
.team a { font-size: .92rem; font-weight: 500; }

/* Certs */
.cert {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: grid; gap: 4px;
  border-top: 4px solid var(--teal);
}
.cert strong { font-size: 1.25rem; color: var(--navy); }
.cert span { color: var(--muted); }
.docs { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 28px; }
.doc-link { font-weight: 600; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
.contact-info > p { color: var(--muted); }
.contact-info dl { display: grid; grid-template-columns: auto 1fr; gap: 12px 24px; margin: 28px 0 0; }
.contact-info dt { font-weight: 600; color: var(--navy); }
.contact-info dd { margin: 0; color: var(--muted); }
.contact-form {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow);
}
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; color: var(--navy); }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: .8em 1em; border: 1px solid #cdd7e1; border-radius: 10px; background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(18,164,168,.18); }
.field.invalid input, .field.invalid textarea { border-color: #d64545; }
.form-status { margin: 14px 0 0; font-size: .95rem; min-height: 1.4em; }
.form-status.ok { color: #0e8a5f; }
.form-status.err { color: #c03a3a; }

/* Footer */
.site-footer { background: var(--navy); color: #9fb4c8; padding: 40px 0; font-size: .92rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer-inner p { margin: 4px 0 0; }
.footer-inner ul { display: flex; flex-wrap: wrap; gap: 20px; list-style: none; margin: 0; padding: 0; }
.footer-inner a { color: #cfdeea; }
.logo-footer { color: #fff; font-size: 1.15rem; }
.copy { width: 100%; border-top: 1px solid rgba(255,255,255,.1); padding-top: 16px; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Responsive */
@media (max-width: 980px) {
  .hero-inner, .about, .contact { grid-template-columns: 1fr; gap: 40px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .areas { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
}
@media (max-width: 1100px) {
  .nav-toggle { display: block; }
  .main-nav ul {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 20px 20px;
    display: none;
  }
  .main-nav ul.open { display: flex; }
  .main-nav li a:not(.btn) { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .main-nav li .btn { margin-top: 14px; text-align: center; display: block; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .section { padding: 64px 0; }
  .hero { padding: 64px 0 110px; }
  .grid-4, .grid-3, .areas, .steps { grid-template-columns: 1fr; }
  .contact-form { padding: 22px; }
}

/* Távfelügyelet */
.remote { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.remote-lead { font-size: 1.08rem; color: #b9cde0; max-width: 56ch; }
.remote-features { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 22px; }
.remote-features li { display: grid; grid-template-columns: 46px 1fr; gap: 16px; align-items: start; }
.remote-features .icon { margin: 0; background: rgba(18,164,168,.15); color: #7fd8da; }
.remote-features h3 { margin-bottom: .3em; }
.remote-features p { margin: 0; font-size: .95rem; }
.monitor {
  margin: 0; position: relative;
  background: linear-gradient(180deg, #102f50, #0d2945);
  border: 1px solid rgba(255,255,255,.12); border-radius: 18px;
  padding: 22px; box-shadow: 0 20px 50px rgba(0,0,0,.35);
}
.monitor-head { display: flex; align-items: center; gap: 10px; color: #fff; font-size: .95rem; margin-bottom: 16px; }
.monitor-site { margin-left: auto; font-size: .82rem; color: #8fa8bf; }
.dot-live { width: 9px; height: 9px; border-radius: 50%; background: #2fd18b; box-shadow: 0 0 0 0 rgba(47,209,139,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(47,209,139,0); } 100% { box-shadow: 0 0 0 0 rgba(47,209,139,0); } }
.monitor-chart { width: 100%; height: 120px; background: rgba(255,255,255,.03); border-radius: 10px; }
.monitor-chart .band { fill: rgba(47,209,139,.08); }
.monitor-chart .line { fill: none; stroke: #7fd8da; stroke-width: 2.2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.monitor-chart .alert-pt { fill: #f2a93b; stroke: #0d2945; stroke-width: 2; }
.monitor-rows { list-style: none; margin: 16px 0 0; padding: 0; }
.monitor-rows li { display: flex; align-items: center; gap: 10px; padding: 10px 2px; border-top: 1px solid rgba(255,255,255,.08); font-size: .92rem; color: #dbe7f1; }
.monitor-rows em { margin-left: auto; font-style: normal; font-size: .82rem; color: #8fa8bf; }
.monitor-rows li.alarm { color: #ffd08a; }
.monitor-rows li.alarm em { color: #f2a93b; }
.monitor-rows .ok, .monitor-rows .warn { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.monitor-rows .ok { background: #2fd18b; }
.monitor-rows .warn { background: #f2a93b; }
.monitor figcaption { position: absolute; right: 16px; bottom: -26px; font-size: .75rem; color: #6f88a0; }
@media (prefers-reduced-motion: reduce) { .dot-live { animation: none; } }
@media (max-width: 980px) { .remote { grid-template-columns: 1fr; gap: 48px; } }
.areas.areas-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 600px) { .areas.areas-2 { grid-template-columns: 1fr; } }
.remote-params-title { margin: 28px 0 10px; font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #7fd8da; }
.remote-params { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.remote-params li { padding: .4em .95em; border: 1px solid rgba(127,216,218,.4); border-radius: 999px; background: rgba(18,164,168,.12); color: #fff; font-size: .9rem; font-weight: 500; }
.remote-note { margin: 14px 0 0; font-size: .93rem; color: #9fb4c8; max-width: 58ch; }
