/* PSITMAN.HU – brand tokens from logo */
:root {
  --green: #2ecc71;
  --green-dark: #27ae60;
  --green-glow: rgba(46, 204, 113, 0.35);
  --navy: #1a4d5c;
  --navy-deep: #0f3540;
  --navy-muted: #2a6b7d;
  --gray-50: #f4f6f7;
  --gray-100: #e8ecef;
  --gray-200: #c5cdd3;
  --gray-600: #5a6a73;
  --gray-900: #1c2529;
  --white: #ffffff;
  --font: "DM Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --header-h: 72px;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(15, 53, 64, 0.08);
  --shadow-lg: 0 12px 48px rgba(15, 53, 64, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--gray-900);
  background: var(--gray-50);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--navy);
  text-decoration: none;
}

a:hover {
  color: var(--green-dark);
}

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

/* Subtle infrastructure grid */
.grid-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(26, 77, 92, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 77, 92, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, black 0%, transparent 85%);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 53, 64, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
}

.brand:hover {
  color: var(--white);
  opacity: 0.95;
}

.brand img {
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text strong {
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.brand-text small {
  font-size: 0.7rem;
  opacity: 0.65;
  font-weight: 400;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.2s;
}

.site-nav a:hover {
  color: var(--green);
}

.nav-cta {
  padding: 0.5rem 1.1rem;
  background: var(--green);
  color: var(--navy-deep) !important;
  border-radius: 8px;
  font-weight: 600 !important;
}

.nav-cta:hover {
  background: var(--green-dark);
  color: var(--white) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 1px;
  transition: transform 0.25s, opacity 0.25s;
}

/* Hero */
.hero {
  padding: 4rem 0 5rem;
  background: linear-gradient(165deg, var(--navy-deep) 0%, var(--navy) 45%, #1e5a6b 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 60%;
  height: 120%;
  background: radial-gradient(ellipse, var(--green-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--green);
  margin: 0 0 1rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 1.25rem;
  letter-spacing: -0.02em;
}

.hero .highlight {
  color: var(--green);
}

.lead {
  font-size: 1.125rem;
  opacity: 0.88;
  max-width: 32rem;
  margin: 0 0 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--green);
  color: var(--navy-deep);
  box-shadow: 0 4px 20px var(--green-glow);
}

.btn-primary:hover {
  background: var(--green-dark);
  color: var(--white);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--green);
  color: var(--green);
}

/* Monitor panel */
.hero-panel {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  font-family: var(--mono);
  font-size: 0.8125rem;
  box-shadow: var(--shadow-lg);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
}

.panel-title {
  color: var(--green);
}

.metrics {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.metric-label {
  display: block;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.25rem;
}

.metric-value {
  float: right;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.metric-value.ok {
  color: var(--green);
}

.metric-bar {
  clear: both;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 0.35rem;
}

.metric-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--navy-muted), var(--green));
  border-radius: 2px;
  animation: bar-grow 1.2s ease-out forwards;
}

.metric-bar-backup {
  width: 100% !important;
  background: var(--green) !important;
}

@keyframes bar-grow {
  from { width: 0 !important; }
}

.log-lines {
  list-style: none;
  margin: 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.8;
}

.log-lines code {
  color: var(--green);
  margin-right: 0.35rem;
}

.log-lines .dim {
  color: rgba(255, 255, 255, 0.35);
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-head {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 3rem;
}

.section-head.align-left {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.section-head h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--navy-deep);
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--gray-600);
}

/* Service cards */
.services {
  background: var(--white);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  border-color: var(--green);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.hex-card {
  position: relative;
}

.hex-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.75rem;
  width: 40px;
  height: 3px;
  background: var(--green);
  clip-path: polygon(8% 0, 92% 0, 100% 100%, 0 100%);
}

.card-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 1rem;
  color: var(--navy);
}

.card-icon svg {
  width: 100%;
  height: 100%;
}

.card h3 {
  font-size: 1.125rem;
  color: var(--navy-deep);
  margin: 0 0 0.5rem;
}

.card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--gray-600);
  line-height: 1.55;
}

.card-details {
  margin: 0.85rem 0 0;
  padding: 0 0 0 1.1rem;
  font-size: 0.875rem;
  color: var(--gray-600);
  line-height: 1.5;
}

.card-details li {
  margin-bottom: 0.35rem;
}

.card-details li:last-child {
  margin-bottom: 0;
}

/* Tech */
.tech {
  background: var(--gray-50);
}

.tech-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tech-tags li {
  padding: 0.45rem 0.9rem;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--navy);
}

.tech-visual {
  display: flex;
  justify-content: center;
}

.topology {
  position: relative;
  width: 280px;
  height: 200px;
}

.topology-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  stroke: var(--gray-200);
  stroke-width: 2;
}

.node {
  position: absolute;
  padding: 0.5rem 0.85rem;
  background: var(--white);
  border: 2px solid var(--gray-100);
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--navy);
  box-shadow: var(--shadow);
}

.node-core {
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  border-color: var(--green);
  color: var(--green-dark);
  background: rgba(46, 204, 113, 0.08);
}

.topology .node:nth-child(2) { top: 100px; left: 30px; }
.topology .node:nth-child(3) { top: 100px; left: 50%; transform: translateX(-50%); }
.topology .node:nth-child(4) { top: 100px; right: 30px; left: auto; }
.topology .node:nth-child(5) { bottom: 10px; left: 50%; transform: translateX(-50%); }

/* About */
.about {
  background: var(--white);
}

.about-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3rem;
  align-items: start;
}

.about-logo {
  opacity: 0.95;
}

.about p {
  color: var(--gray-600);
  margin: 0 0 1rem;
}

.check-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.check-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.65rem;
  color: var(--gray-900);
  font-weight: 500;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(-45deg);
}

/* Contact */
.contact-box {
  background: linear-gradient(135deg, var(--navy-deep), var(--navy));
  color: var(--white);
  border-radius: calc(var(--radius) + 4px);
  padding: 3rem 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.contact-box .section-head h2,
.contact-box .section-head p {
  color: var(--white);
}

.contact-box .section-head p {
  opacity: 0.8;
}

.contact-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.25rem 2rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  color: var(--white);
  min-width: 220px;
  transition: background 0.2s, border-color 0.2s;
}

.contact-item:hover {
  background: rgba(46, 204, 113, 0.15);
  border-color: var(--green);
  color: var(--white);
}

.contact-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.6;
}

.contact-value {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--green);
}

.contact-item:hover .contact-value {
  color: var(--white);
}

.contact-note {
  font-size: 0.8125rem;
  opacity: 0.5;
  margin: 0;
}

.contact-note code {
  font-family: var(--mono);
  font-size: 0.75rem;
  background: rgba(0, 0, 0, 0.2);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

/* Footer */
.site-footer {
  padding: 1.5rem 0;
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.875rem;
}

.footer-inner p {
  margin: 0;
  text-align: center;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid,
  .tech-split,
  .about-inner {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    order: -1;
    max-width: 400px;
  }

  .about-logo {
    margin: 0 auto;
  }

  .section-head.align-left {
    text-align: center;
  }

  .check-list {
    max-width: 28rem;
    margin-inline: auto;
  }
}

@media (max-width: 640px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 1.5rem;
    background: var(--navy-deep);
    gap: 1rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s, opacity 0.3s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .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);
  }

  .hero {
    padding-top: 2.5rem;
  }

  .section {
    padding: 3.5rem 0;
  }
}
