/* === wieland TECHNOLOGIE — Brand CSS === */

:root {
  --navy: #1E1456;
  --cyan: #00D4F5;
  --magenta: #E5006D;
  --white: #FFFFFF;
  --grey-light: #F4F4F8;
  --grey-mid: #8888AA;
  --font: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --glitch-offset: 2px;
}

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--navy);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--magenta); }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* === Chromatic Aberration / Glitch Text === */
.glitch-text {
  position: relative;
  color: var(--navy);
  text-shadow:
    calc(var(--glitch-offset) * -1) calc(var(--glitch-offset) * -0.5) 0 var(--cyan),
    var(--glitch-offset) calc(var(--glitch-offset) * 0.5) 0 var(--magenta);
}

/* === Header === */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(30, 20, 86, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo { height: 40px; width: auto; }

.nav-list {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  color: var(--navy);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--magenta);
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 28px;
  height: 24px;
  position: relative;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--navy);
  position: absolute;
  left: 0;
  transition: all 0.3s;
}
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.nav-toggle span:nth-child(3) { bottom: 0; }

/* === Hero === */
.hero {
  padding: 10rem 0 6rem;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: var(--white);
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 212, 245, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  --glitch-offset: 3px;
}

.hero-sub {
  font-size: 1.2rem;
  color: var(--grey-mid);
  margin-top: 1.5rem;
  max-width: 480px;
  line-height: 1.6;
}

.hero-cta {
  margin-top: 2.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Node grid animation */
.hero-visual {
  position: relative;
  height: 400px;
}

.node-grid {
  position: relative;
  width: 100%;
  height: 100%;
}

.node {
  position: absolute;
  border-radius: 50%;
  background: var(--navy);
  box-shadow:
    -3px -2px 0 var(--cyan),
    3px 2px 0 var(--magenta);
  animation: float 6s ease-in-out infinite;
}
.node.n1 { width: 48px; height: 48px; top: 10%; left: 20%; animation-delay: 0s; }
.node.n2 { width: 32px; height: 32px; top: 30%; left: 55%; animation-delay: 1s; }
.node.n3 { width: 56px; height: 56px; top: 55%; left: 35%; animation-delay: 2s; }
.node.n4 { width: 24px; height: 24px; top: 20%; left: 75%; animation-delay: 3s; }
.node.n5 { width: 40px; height: 40px; top: 70%; left: 65%; animation-delay: 4s; }

.connector {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  opacity: 0.3;
  transform-origin: left center;
}
.connector.c1 { width: 180px; top: 22%; left: 24%; transform: rotate(15deg); }
.connector.c2 { width: 140px; top: 42%; left: 40%; transform: rotate(-25deg); }
.connector.c3 { width: 200px; top: 60%; left: 30%; transform: rotate(35deg); }
.connector.c4 { width: 120px; top: 35%; left: 58%; transform: rotate(60deg); }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.85rem 2rem;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 6px;
  letter-spacing: 0.02em;
  transition: all 0.25s;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-primary:hover {
  background: transparent;
  color: var(--navy);
  box-shadow:
    -2px -1px 0 var(--cyan),
    2px 1px 0 var(--magenta);
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-ghost:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-lg { padding: 1rem 2.5rem; font-size: 1.05rem; }

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

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 3rem;
}

/* About section */
.section-about { background: var(--grey-light); }

.about-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-text p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: var(--navy);
  opacity: 0.85;
}

.link-arrow {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 700;
  color: var(--navy);
  transition: all 0.2s;
}
.link-arrow:hover {
  color: var(--magenta);
  transform: translateX(4px);
}

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.stat { text-align: center; }
.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  --glitch-offset: 2px;
}
.stat-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--grey-mid);
  font-weight: 700;
}

/* Services section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background: var(--white);
  border: 1px solid rgba(30, 20, 86, 0.08);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  transition: all 0.3s;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 12px 40px rgba(30, 20, 86, 0.1),
    -3px -2px 0 var(--cyan),
    3px 2px 0 var(--magenta);
}

.service-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--navy);
}

.service-card h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--grey-mid);
  font-size: 0.95rem;
  line-height: 1.7;
}

.section-cta {
  text-align: center;
  margin-top: 2.5rem;
}

/* Services in dark bg */
.section-services {
  background: var(--navy);
  color: var(--white);
}
.section-services .section-title { color: var(--white); }
.section-services .service-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}
.section-services .service-card:hover {
  background: rgba(255, 255, 255, 0.08);
}
.section-services .service-icon { color: var(--cyan); }
.section-services .service-card h3 { color: var(--white); }
.section-services .service-card p { color: rgba(255, 255, 255, 0.6); }
.section-services .link-arrow { color: var(--cyan); }
.section-services .link-arrow:hover { color: var(--magenta); }

/* CTA Block */
.section-cta-block { background: var(--grey-light); }
.cta-block {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}
.cta-block h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
  --glitch-offset: 3px;
}
.cta-block p {
  color: var(--grey-mid);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* === Page Hero === */
.page-hero {
  padding: 10rem 0 3rem;
  background: var(--navy);
  color: var(--white);
}
.page-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--white);
  --glitch-offset: 3px;
}
.page-subtitle {
  font-size: 1.2rem;
  color: var(--cyan);
  margin-top: 0.75rem;
}

/* Page content */
.content-narrow {
  max-width: 800px;
}
.page-content {
  padding: 4rem 0 6rem;
}
.page-content h2 {
  font-size: 1.8rem;
  font-weight: 800;
  margin: 2.5rem 0 1rem;
}
.page-content h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
}
.page-content p {
  margin-bottom: 1rem;
  font-size: 1.05rem;
  opacity: 0.9;
}
.page-content ul, .page-content ol {
  margin: 1rem 0 1.5rem 1.5rem;
}
.page-content li {
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}
.page-content hr {
  border: none;
  height: 1px;
  background: rgba(30, 20, 86, 0.1);
  margin: 3rem 0;
}

/* Contact grid */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}
.contact-card {
  background: var(--grey-light);
  border-radius: 12px;
  padding: 2rem;
}
.contact-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.contact-card a {
  color: var(--navy);
  font-weight: 700;
}
.contact-card a:hover { color: var(--magenta); }

/* === Footer === */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.5);
  padding: 3rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-icon { height: 28px; width: auto; opacity: 0.7; }

.footer-name {
  font-weight: 800;
  color: var(--white);
  font-size: 1rem;
}
.footer-name .light {
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 0.85em;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  font-weight: 700;
}
.footer-links a:hover { color: var(--cyan); }

.footer-copy {
  font-size: 0.8rem;
  width: 100%;
  text-align: center;
  margin-top: 1rem;
}

/* === Responsive === */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero { min-height: auto; padding: 8rem 0 4rem; }
  .about-grid { grid-template-columns: 1fr; }
  .about-stats { flex-direction: row; justify-content: space-around; }
  .services-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .nav-list {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 2rem;
    gap: 1rem;
    border-bottom: 1px solid rgba(30, 20, 86, 0.08);
    box-shadow: 0 8px 24px rgba(30, 20, 86, 0.1);
  }
  .nav-list.open { display: flex; }
  .about-stats { flex-direction: column; align-items: center; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}
