/* === RESET & BASE === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border-radius: 0 !important; /* STRICT RULE: No rounded corners anywhere */
}

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

body {
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* === CSS VARIABLES === */
:root {
  --color-bg:        #0D0D0D;      /* Near-black page background */
  --color-surface:   #141414;      /* Card / section surface */
  --color-surface-2: #1C1C1C;      /* Elevated panels */
  --color-border:    #2A2A2A;      /* Hairline borders */
  --color-border-strong: #3A3A3A;  /* Hover / emphasis borders */
  --color-accent:    #1A56DB;      /* German Blue — primary accent */
  --color-accent-hover: #1E40AF;   /* Hover state */
  --color-text-primary:   #F5F5F5; /* Headlines */
  --color-text-secondary: #A0A0A0; /* Body / supporting */
  --color-text-muted:     #5C5C5C; /* Labels / captions */
  --color-white:     #FFFFFF;
  --color-steel:     #8A9BA8;      /* Steel gray accent */

  --font-display: 'Barlow', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --max-width: 1280px;
  --section-padding: 120px 0;
  --gutter: 24px;
  --nav-height: 72px;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, .display-text {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  text-transform: none;
}

h1 {
  font-size: clamp(3rem, 6vw, 6rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  font-weight: 600;
  margin-bottom: 2rem;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

.caption {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.mono {
  font-family: var(--font-mono);
}

p {
  color: var(--color-text-secondary);
  margin-bottom: 1.5rem;
}

/* === LAYOUT UTILITIES === */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: var(--section-padding);
}

.text-center { text-align: center; }
.flex { display: flex; }
.grid { display: grid; }

/* === NAVIGATION === */
nav {
  height: var(--nav-height);
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  background: rgba(13, 13, 13, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  transition: background 0.3s ease;
}

nav.scrolled {
  background: rgba(13, 13, 13, 0.98);
  border-bottom-color: var(--color-border-strong);
}

.nav-container {
  max-width: var(--max-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo {
  height: 40px;
  width: auto;
  display: block;
  object-fit: contain;
}

.nav-brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-white);
}

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

.nav-links a {
  text-decoration: none;
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
  padding: 0 0 4px 0;
}

.nav-links a:hover {
  color: var(--color-white);
}

.nav-links a.active {
  color: var(--color-white);
  border-bottom: 2px solid var(--color-accent);
}

.lang-toggle {
  display: flex;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.lang-btn {
  background: none;
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  cursor: pointer;
  padding: 4px 8px;
  transition: all 0.2s ease;
}

.lang-btn.active {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}

/* Mobile Nav */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-white);
  font-size: 1.5rem;
}

.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--color-bg);
  z-index: 2000;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.nav-overlay.open {
  display: flex;
}

.nav-overlay a {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--color-white);
  text-decoration: none;
  font-weight: 600;
}

/* === HERO SECTIONS === */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(13,13,13,0.4), rgba(13,13,13,0.9));
  z-index: -1;
}

.blueprint-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(var(--color-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-border) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.05;
  z-index: -1;
}

.hero-content {
  max-width: 900px;
  padding: 0 var(--gutter);
}

.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2.5rem;
}

.btn {
  padding: 1rem 2rem;
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
  border: 1px solid var(--color-accent);
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border: 1px solid var(--color-border);
}

.btn-outline:hover {
  border-color: var(--color-accent);
}

/* === SECTION COMPONENTS === */
.divider {
  height: 1px;
  background: var(--color-border);
  width: 100%;
  margin: 0;
}

.divider-text {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding: 1rem 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

/* === CARDS === */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 0; /* Shared borders */
  border: 1px solid var(--color-border);
}

.card {
  padding: 3rem 2rem;
  background: var(--color-bg);
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.card:last-child {
  border-right: none;
}

.card:hover {
  background: var(--color-surface-2);
  border-left: 4px solid var(--color-accent);
}

.card-icon {
  width: 48px;
  height: 48px;
  fill: var(--color-accent);
}

/* === WORKFLOW TIMELINE === */
.workflow {
  display: flex;
  justify-content: space-between;
  position: relative;
  gap: 1rem;
  margin-top: 4rem;
}

.workflow-step {
  flex: 1;
  text-align: center;
  position: relative;
}

.workflow-step .step-num {
  font-family: var(--font-mono);
  color: var(--color-accent);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.workflow-step .step-label {
  font-size: 0.875rem;
  font-weight: 600;
}

/* === STATS BAR === */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.stat-item {
  padding: 3rem 2rem;
  text-align: center;
  border-right: 1px solid var(--color-border);
}

.stat-item:last-child {
  border-right: none;
}

.stat-num {
  font-family: var(--font-mono);
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-white);
  display: block;
}

/* === CONTACT FORM === */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-white);
  padding: 1rem;
  font-family: var(--font-body);
  transition: border-color 0.2s ease;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(26, 86, 219, 0.2);
}

/* === FOOTER === */
footer {
  background: var(--color-bg);
  padding: 80px 0 40px 0;
  border-top: 1px solid var(--color-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--color-white);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--color-white);
}

.copyright {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-text-muted);
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

/* === ANIMATIONS === */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === RESPONSIVE — TABLET (max 1024px) === */
@media (max-width: 1024px) {
  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-item:nth-child(2n) {
    border-right: none;
  }
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .workflow {
    flex-wrap: wrap;
    justify-content: center;
  }
  .workflow-step {
    flex: 0 0 20%;
    margin-bottom: 2rem;
  }
}

/* === RESPONSIVE — MOBILE (max 768px) === */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  .nav-links {
    display: none;
  }
  .stats-bar {
    grid-template-columns: 1fr;
  }
  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }
  .stat-item:last-child {
    border-bottom: none;
  }
  .hero h1 {
    font-size: 3rem;
  }
  .hero-btns {
    flex-direction: column;
  }
  .workflow-step {
    flex: 0 0 45%;
  }
  .card-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}