@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Space+Grotesk:wght@500;700&display=swap');

:root {
  color-scheme: dark;
  --bg: #0a0c10;
  --bg-subtle: #0f1218;
  --surface: #141720;
  --surface-card: #13161f;
  --surface-hover: #1a1f2c;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-light: #cbd5e1;
  --accent: #ff4d4d;
  --accent-glow: rgba(255, 77, 77, 0.2);
  --red: #e63946;
  --red-hover: #d90429;
  --blue: #0284c7;
  --green: #10b981;
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 18px;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'Space Grotesk', monospace;
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  --shadow-hover: 0 20px 40px -15px rgba(0, 0, 0, 0.7), 0 0 30px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background-color: var(--bg);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(2, 132, 199, 0.07), transparent 45%),
    radial-gradient(circle at 85% 25%, rgba(230, 57, 70, 0.05), transparent 40%),
    radial-gradient(circle at 15% 70%, rgba(2, 132, 199, 0.04), transparent 35%);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-underline-offset: 4px;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent);
}

button {
  font: inherit;
}

button, a, summary {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

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

.container {
  width: min(1240px, calc(100% - 48px));
  margin-inline: auto;
}

/* Header & Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 12, 16, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  gap: 24px;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-sans);
  font-weight: 800;
  letter-spacing: -0.04em;
  text-decoration: none;
  font-size: 26px;
  white-space: nowrap;
  line-height: 1;
}

.wordmark span {
  color: var(--accent);
}

.wordmark small {
  font-size: 11px;
  letter-spacing: 0.5px;
  vertical-align: top;
  margin-left: 4px;
  font-family: var(--font-mono);
  color: var(--muted);
  font-weight: 700;
}

.brand-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--green);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 4px 8px;
  border-radius: 20px;
  margin-right: 12px;
}

.status-dot, .dot-online {
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px var(--green);
  animation: pulse-live 2s infinite;
}

@keyframes pulse-live {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

#main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

#main-nav a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted-light);
  padding: 8px 0;
  position: relative;
}

#main-nav a:hover {
  color: var(--text);
}

#main-nav .nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-strong);
  padding: 10px 18px;
  border-radius: 8px;
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  transition: all 0.2s ease;
}

#main-nav .nav-phone:hover {
  background: rgba(230, 57, 70, 0.1);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 15px var(--accent-glow);
}

.phone-ico {
  font-size: 12px;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -100px;
  z-index: 200;
  background: var(--text);
  color: var(--bg);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.skip-link:focus {
  top: 16px;
}

/* Hero */
.hero {
  padding: 60px 0 70px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 50px;
}

.hero-copy {
  padding: 10px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  background: rgba(255, 77, 77, 0.08);
  border: 1px solid rgba(255, 77, 77, 0.2);
  padding: 6px 14px;
  border-radius: 20px;
  margin: 0 0 24px;
}

h1, h2, h3 {
  color: var(--text);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.035em;
  margin: 0;
}

h1 {
  font-size: clamp(34px, 4.2vw, 56px);
  max-width: 820px;
}

h1 span {
  background: linear-gradient(135deg, #ffffff 30%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-size: clamp(28px, 3.2vw, 42px);
  margin-bottom: 32px;
  max-width: 900px;
}

h3 {
  font-size: 21px;
  line-height: 1.3;
  margin-bottom: 14px;
}

.lead {
  font-size: 18px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 620px;
  margin: 24px 0 32px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 14px 26px;
  border: 1px solid var(--red);
  border-radius: 10px;
  background: linear-gradient(135deg, #e63946 0%, #c71f2c 100%);
  color: white;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(230, 57, 70, 0.35);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.button:hover {
  background: linear-gradient(135deg, #f04855 0%, #d90429 100%);
  box-shadow: 0 6px 28px rgba(230, 57, 70, 0.55);
  transform: translateY(-2px);
  color: white;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-strong);
  color: var(--text);
  box-shadow: none;
}

.button.secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
  transform: translateY(-2px);
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  margin-top: 26px;
}

.hero-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.8), 0 0 40px rgba(2, 132, 199, 0.15);
  background: var(--surface);
}

.hero-image img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.image-caption {
  position: absolute;
  inset: 0;
  padding: 24px;
  background: linear-gradient(180deg, rgba(9, 11, 15, 0.2) 0%, rgba(9, 11, 15, 0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
}

.image-caption span:first-child {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  font-weight: 700;
  color: #fff;
  background: rgba(10, 14, 22, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 12px;
  border-radius: 6px;
}

.image-caption strong {
  font-size: clamp(22px, 2.5vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #fff;
}

.image-caption span:last-child {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--accent);
  font-weight: 700;
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 32px;
}

.breadcrumbs a {
  color: var(--muted-light);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.breadcrumbs span[aria-hidden="true"] {
  color: rgba(255, 255, 255, 0.2);
}

.breadcrumbs span[aria-current="page"] {
  color: var(--accent);
  font-weight: 600;
}

.inner-hero {
  padding: 40px 0 60px;
}

/* Sections */
.section {
  padding: 85px 0;
  border-top: 1px solid var(--line);
  position: relative;
}

.section.muted {
  background: var(--bg-subtle);
}

/* Cards & Grid */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(20, 24, 34, 0.7) 0%, rgba(15, 18, 25, 0.9) 100%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-shadow: var(--shadow-card);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-hover);
}

.card.has-media {
  padding: 0;
}

.card-media {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #000;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card:hover .card-media img {
  transform: scale(1.04);
}

.card.has-media .card-content {
  padding: 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 100%;
}

.card-index {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  background: rgba(255, 77, 77, 0.1);
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 77, 77, 0.2);
}

.card h3 {
  font-size: 20px;
  line-height: 1.3;
  margin-bottom: 12px;
}

.card p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 24px;
}

.text-link {
  margin-top: auto;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--accent);
}

.text-link:hover {
  color: #fff;
}

/* Brand pillars */
.brand-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.pillar {
  position: relative;
  padding: 36px 30px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(20, 24, 34, 0.7) 0%, rgba(15, 18, 25, 0.9) 100%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.pillar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--pillar-color, var(--accent));
}

.pillar:hover {
  transform: translateY(-6px);
  border-color: var(--pillar-color, var(--accent));
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.65), 0 0 30px var(--pillar-glow, var(--accent-glow));
}

.pillar-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--pillar-glow, var(--accent-glow));
  color: var(--pillar-color, var(--accent));
  margin-bottom: 22px;
  flex-shrink: 0;
}

.pillar-icon svg {
  width: 30px;
  height: 30px;
}

.pillar-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--pillar-color, var(--accent));
  margin: 0 0 10px;
}

.pillar h3 {
  font-size: 24px;
  margin-bottom: 12px;
}

.pillar p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 24px;
}

.pillar .text-link {
  color: var(--pillar-color, var(--accent));
}

.pillar-hikvision {
  --pillar-color: var(--accent);
  --pillar-glow: var(--accent-glow);
}

.pillar-schrack {
  --pillar-color: var(--blue);
  --pillar-glow: rgba(2, 132, 199, 0.16);
}

.pillar-loxone {
  --pillar-color: var(--green);
  --pillar-glow: rgba(16, 185, 129, 0.16);
}

@media (max-width: 1024px) {
  .brand-pillars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .brand-pillars {
    grid-template-columns: 1fr;
  }
}

/* Prose */
.prose {
  max-width: 860px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--muted-light);
}

.prose p {
  margin: 0 0 24px;
}

.prose p:last-child {
  margin-bottom: 0;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  border-top: 2px solid var(--line-strong);
  padding-top: 24px;
  position: relative;
}

.steps li:before {
  content: '0' counter(step);
  display: inline-block;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 20px;
  background: rgba(255, 77, 77, 0.1);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 77, 77, 0.2);
}

.steps h3 {
  font-size: 19px;
  margin-bottom: 10px;
}

.steps p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 0;
}

/* FAQ */
.faq {
  max-width: 960px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.2s ease;
  overflow: hidden;
}

details:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.035);
}

details[open] {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

summary {
  cursor: pointer;
  font-size: 17px;
  font-weight: 700;
  padding: 22px 28px;
  line-height: 1.4;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

summary::-webkit-details-marker {
  display: none;
}

summary:after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--accent);
  font-weight: 700;
  margin-left: 16px;
  transition: transform 0.2s ease;
}

details[open] summary:after {
  content: '−';
  transform: rotate(180deg);
}

details p {
  color: var(--muted-light);
  margin: 0;
  padding: 0 28px 24px;
  font-size: 16px;
  line-height: 1.7;
}

/* Consistent Dark Tech Contact Section */
.contact {
  background: var(--bg-subtle);
  color: var(--text);
  border-top: 1px solid var(--line-strong);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-lead {
  font-size: 17px;
  color: var(--muted-light);
  line-height: 1.7;
  max-width: 620px;
  margin-bottom: 28px;
}

.contact .small {
  font-size: 13px;
  color: var(--muted);
  margin-top: 24px;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-card);
  font-style: normal;
}

.address-header {
  margin-bottom: 20px;
}

.address-header .badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--blue);
  background: rgba(2, 132, 199, 0.12);
  border: 1px solid rgba(2, 132, 199, 0.3);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.address-header strong {
  display: block;
  font-size: 20px;
  color: #fff;
}

.address-meta {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.contact-persons {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.person span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 2px;
}

.person strong {
  display: block;
  font-size: 15px;
  color: #fff;
}

.person a {
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  color: var(--accent);
  display: inline-block;
  margin-top: 2px;
}

.person a:hover {
  color: #fff;
}

.address-email {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.address-email:hover {
  color: var(--accent);
}

/* Footer */
.site-footer {
  padding: 60px 0 30px;
  background: #07080a;
  border-top: 1px solid var(--line);
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}

.footer-top p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.site-footer nav a {
  text-decoration: none;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

.site-footer nav a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  font-size: 13px;
  color: var(--muted);
}

.footer-bottom a {
  text-decoration: none;
  color: var(--muted);
}

.footer-bottom a:hover {
  color: var(--accent);
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 900px) {
  .nav-enhanced .menu-toggle {
    display: inline-flex;
    align-items: center;
  }
  .nav-enhanced #main-nav {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: rgba(10, 12, 16, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line-strong);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 16px;
  }
  #main-nav.is-open {
    display: flex;
  }
  #main-nav .nav-phone {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .container {
    width: calc(100% - 32px);
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 60px 0;
  }
  .actions {
    flex-direction: column;
    width: 100%;
  }
  .actions .button {
    width: 100%;
  }
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
