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

:root {
  --sea-deep:    #151e27;
  --sea-mid:     #1e2f3d;
  --stone-light: #5e7280;
  --foam:        #d0dce5;
  
  --text:        #c1c1c1;
  --text-muted:  #8fa4b4;
  
  --accent:      #ffffff;
  --accent-dim:  #ffffff;
  --accent-gold: #c4a882; 
  --accent-dim:  rgba(196, 168, 130, 0.25); 
  
  --white:       #f0f5f9;
  --nav-h:       64px;

  --font-heading: 'Sora', sans-serif;
  --font-body:    'Manrope', sans-serif;
  --font-mono:    'DM Mono', monospace;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--foam);
}

p, li {
  font-size: clamp(0.9rem, 1vw + 0.5rem, 1rem);
  line-height: 1.7;
}

.content p {
  max-width: 65ch;
  margin-bottom: 1.5rem;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  line-height: 1.6;
  background: var(--sea-deep);
  color: var(--text);
}

#topnav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 0 2rem;
  transition: background 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}

#topnav.scrolled {
  background: rgba(21,30,39,0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: rgba(255,255,255,0.07);
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;

  font-size: 1.35rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo span { color: var(--accent); }
.nav-logo img {
  height: 24px;
  width: auto;
  vertical-align: middle;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-left: auto;
  list-style: none;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.74rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  font-weight: 400;
  transition: color 0.25s;
}
.nav-links a:hover { color: var(--accent); }

.nav-links .nav-cta {
  color: var(--accent);
  border: 1px solid var(--white);
  padding: 7px 18px;
  border-radius: 2px;
  transition: background 0.25s, color 0.25s;
}
.nav-links .nav-cta:hover { background: var(--accent); color: var(--sea-deep); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--foam);
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

#mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: rgba(21,30,39,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 0.5rem 2rem 1.5rem;
  z-index: 99;
  flex-direction: column;
}
#mobile-menu.open { display: flex; }

#mobile-menu a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color 0.2s;
}
#mobile-menu a:last-child { border-bottom: none; }
#mobile-menu a:hover { color: var(--accent); }
#mobile-menu .nav-cta { color: var(--accent); }

#hero {
  position: relative;
  height: 100vh;
  min-height: 580px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

#hero::before {
  content: '';
  position: absolute; inset: 0;
  z-index: 0;
}

#hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 35%;
  background: linear-gradient(to top, rgba(21,30,39,0.7), transparent);
  z-index: 3;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.3rem;
  padding: 0 1.5rem;
  background: url(/img/intro-bg.jpg) no-repeat bottom center fixed;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  background-size: cover;
  -o-background-size: cover;
}

.brand {
  font-size: clamp(3.2rem, 10vw, 7rem);
  color: var(--white);
  text-transform: uppercase;
  line-height: 1;
}
.brand span { color: var(--accent); }
.brand-sub {
  display: block;
  font-size: 1rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 1rem;
}

.tagline {
  font-size: clamp(0.72rem, 2vw, 0.95rem);
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text);
}

.divider { width: 36px; height: 1px; background: var(--accent-dim); }

.hero-nav {
  display: flex;
  gap: clamp(1.2rem, 4vw, 2.8rem);
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.4rem;
}
.hero-nav a {
  color: var(--foam);
  text-decoration: none;
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 400;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: color 0.3s, border-color 0.3s;
}
.hero-nav a:hover { color: var(--accent); border-color: var(--accent); }

.scroll-cue {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  font-size: 0.63rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  animation: bob 2.5s ease-in-out infinite;
  opacity: 0.5;
}
.scroll-cue::after {
  content: '';
  display: block;
  width: 1px; height: 24px;
  background: var(--stone-light);
}
@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

.section-inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 5rem 2rem;
}
.section-inner.narrow { max-width: 780px; }
.section-inner.center { text-align: center; }

.label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent-dim);
  margin-bottom: 1.4rem;
  text-transform: uppercase; letter-spacing: 0.2em; color: var(--accent-gold); font-size: 0.75rem; margin-bottom: 1rem; display: block;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem); line-height: 1.2;
  font-weight: 300;
  line-height: 1.5;
  color: var(--foam);
  margin-bottom: 1.1rem;
}

.section-lead {
  font-size: 0.93rem;
  line-height: 1.9;
  color: var(--text);
}
.section-inner.center .section-lead { margin: 0 auto; }

#slogan { background: var(--sea-deep); }

#services { background: var(--sea-mid); }

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  margin-top: 3rem;
}

.service-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  padding: 2rem 2.2rem;
  position: relative;
  transition: background 0.3s, border-color 0.3s;
}
.service-card:hover {
  background: rgba(255,255,255,0.055);
  border-color: rgba(196,168,130,0.25);
}
.service-card.featured {
  grid-column: 1 / -1;
  background: rgba(196,168,130,0.055);
  border-color: rgba(196,168,130,0.28);
}
.service-card.featured:hover {
  background: rgba(196,168,130,0.09);
  border-color: rgba(196,168,130,0.48);
}

.service-badge {
  display: inline-block;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--sea-deep);
  padding: 3px 10px;
  border-radius: 2px;
  margin-bottom: 1.2rem;
  font-weight: 500;
}

.service-sym {
  font-size: 2rem;
  color: rgba(196,168,130,0.18);
  line-height: 1;
  position: absolute;
  top: 1.6rem; right: 2rem;
  font-family: serif;
}

.service-card h3 {
  font-size: 1.45rem;
  font-weight: 400;
  color: var(--foam);
  margin-bottom: 0.8rem;
}
.service-card.featured h3 { font-size: 1.9rem; color: var(--accent); }

.service-card p {
  font-size: 0.87rem;
  line-height: 1.85;
  color: var(--text);
}
.service-card.featured p { font-size: 0.92rem; }

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 1rem;
}
.pill {
  font-family: var(--font-body);
  font-size: 0.75rem;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--foam);
}

#infra { background: var(--sea-deep); }

.infra-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.2rem 2.8rem;
  margin-top: 3rem;
}

.infra-item {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.infra-icon {
  width: 40px; height: 40px;
  border: 1px solid rgba(196,168,130,0.22);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.infra-icon svg {
  width: 17px; height: 17px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tech-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  
  background: rgba(196, 168, 130, 0.05); 
  border: 1px solid rgba(196, 168, 130, 0.25);
  
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-gold);
  padding: 4px 10px;
  border-radius: 4px;
}

.infra-item h4 {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--foam);
}

.infra-item p {
  font-size: 0.83rem;
  line-height: 1.85;
  color: var(--text);
}

#included { background: var(--sea-mid); }

.included-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
  justify-content: center;
}

.included-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--text);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 3px;
  padding: 0.55rem 1rem;
}
.included-item::before {
  content: '';
  display: inline-block;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent-dim);
  flex-shrink: 0;
}

#kontakt { background: var(--sea-mid); }

.contact-email {
  display: inline-block;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-dim);
  padding-bottom: 3px;
  margin-top: 1.2rem;
  transition: color 0.3s, border-color 0.3s;
}
.contact-email:hover { color: var(--white); border-color: var(--white); }

.contact-note {
  font-size: 0.76rem;
  color: var(--stone-light);
  margin-top: 1.2rem;
  letter-spacing: 0.04em;
  line-height: 1.7;
}

footer {
  padding: 1.8rem 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  background: var(--sea-deep);
}

footer p {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.4); 
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  gap: 1.4rem;
}
.footer-links a {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.6); 
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent-gold);  }

.grain {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.022;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .infra-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  :root { --nav-h: 56px; }

  .section-inner { padding: 3.5rem 1.25rem; }

  .services-grid { grid-template-columns: 1fr; }
  .service-card.featured { grid-column: 1; }
  .service-card { padding: 1.6rem 1.4rem; }
  .service-sym { display: none; }

  .infra-grid { grid-template-columns: 1fr; gap: 1.6rem; }

  .hero-nav { gap: 1.1rem; }

  .scroll-cue { display: none; }

  footer { flex-direction: column; align-items: flex-start; }

  .footer-links { flex-wrap: wrap; gap: 1rem; }
}
