/* Veltrion Group — design system */
:root {
  --bg-deep: #0a0e14;
  --bg-elevated: #121820;
  --bg-card: #161d28;
  --border: rgba(255, 255, 255, 0.06);
  --text: #e8eaef;
  --text-muted: #8b95a8;
  --accent: #c9a962;
  --accent-soft: rgba(201, 169, 98, 0.12);
  --accent-glow: rgba(201, 169, 98, 0.35);
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-display: "Instrument Serif", Georgia, serif;
  --radius: 12px;
  --radius-lg: 20px;
  --max: 1120px;
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s;
}

a:hover {
  opacity: 0.85;
}

img {
  max-width: 100%;
  height: auto;
}

/* Background */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.bg-glow {
  position: fixed;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: min(900px, 90vw);
  height: 400px;
  background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 14, 20, 0.75);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--text);
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 28px;
}

@media (min-width: 900px) {
  .nav-desktop {
    display: flex;
  }
}

.nav-desktop a {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
}

.nav-desktop a:hover {
  color: var(--text);
  opacity: 1;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  background: var(--bg-elevated);
}

.lang-switch button {
  padding: 8px 14px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.lang-switch button[aria-pressed="true"] {
  background: var(--accent-soft);
  color: var(--accent);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-elevated);
  cursor: pointer;
}

@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
}

.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  padding: 20px 24px 28px;
  background: var(--bg-deep);
  border-bottom: 1px solid var(--border);
  z-index: 99;
  flex-direction: column;
  gap: 16px;
}

.mobile-nav.is-open {
  display: flex;
}

.mobile-nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

@media (min-width: 900px) {
  .mobile-nav {
    display: none !important;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, box-shadow 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, #d4b76a 0%, var(--accent) 50%, #a8893d 100%);
  color: #0a0e14;
  box-shadow: 0 4px 24px var(--accent-glow);
}

.btn-primary:hover {
  opacity: 1;
  box-shadow: 0 6px 32px var(--accent-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: rgba(201, 169, 98, 0.4);
  background: var(--accent-soft);
}

/* Sections */
main {
  position: relative;
  z-index: 1;
}

.section {
  padding: 88px 24px;
}

.section--tight {
  padding-top: 48px;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 16px;
  color: var(--text);
}

.section-intro {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 0 40px;
}

/* Hero */
.hero {
  padding-top: calc(var(--header-h) + 72px);
  padding-bottom: 96px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 400;
  line-height: 1.12;
  margin: 0 auto 24px;
  max-width: 800px;
  letter-spacing: -0.02em;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 40px;
  line-height: 1.65;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 720px;
  margin: 0 auto 40px;
}

@media (max-width: 600px) {
  .hero-stats {
    grid-template-columns: 1fr;
    max-width: 280px;
  }
}

.stat-card {
  padding: 24px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(145deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
}

.stat-value {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--accent);
  line-height: 1.2;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* Mission block */
.mission-block {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
  padding: 40px;
  display: grid;
  gap: 24px;
}

@media (min-width: 768px) {
  .mission-block {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
}

.mission-block p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Sector grid */
.sector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.sector-card {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  transition: border-color 0.2s, transform 0.2s;
}

.sector-card:hover {
  border-color: rgba(201, 169, 98, 0.25);
  transform: translateY(-2px);
}

.sector-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  margin: 0 0 12px;
}

.sector-card p {
  margin: 0 0 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.link-arrow {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
}

/* Impact + partners row */
.split-section {
  display: grid;
  gap: 48px;
}

@media (min-width: 900px) {
  .split-section {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
  }
}

.impact-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.impact-stats .stat-card {
  text-align: center;
}

.partner-logos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* Creations */
.creation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.creation-card {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(160deg, var(--bg-card), var(--bg-elevated));
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-align: center;
  color: var(--text);
}

/* Trademarks */
.trademark-box {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px dashed var(--border);
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.95rem;
  color: var(--text-muted);
}

.trademark-box .names {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text);
  letter-spacing: 0.04em;
}

/* Gov clients */
.gov-grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 700px) {
  .gov-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.gov-card {
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

.gov-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 12px;
}

.gov-card p {
  margin: 0 0 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Contact teaser */
.contact-teaser {
  text-align: center;
  padding: 56px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.contact-teaser p {
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 24px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 56px 24px 32px;
  background: var(--bg-deep);
}

.footer-grid {
  display: grid;
  gap: 40px;
  margin-bottom: 40px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 12px 0 0;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin: 0 0 16px;
}

.footer-col a,
.footer-col p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 8px;
  display: block;
}

.footer-col a:hover {
  color: var(--accent);
  opacity: 1;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.modal {
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
  padding: 32px;
  transform: translateY(12px);
  transition: transform 0.25s;
}

.modal-overlay.is-open .modal {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.modal-header h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  margin: 0;
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-deep);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
}

.form-actions {
  margin-top: 24px;
}

.form-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 12px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .modal,
  .modal-overlay {
    transition: none;
  }
}
