/* VeXtronics — dark engineering atmosphere, own brand identity */

:root {
  --bg: #0b0c10;
  --bg-elevated: #12141a;
  --bg-soft: #181b23;
  --text: #f4f5f7;
  --text-muted: #9aa0ad;
  --text-dim: #6d7383;
  --line: rgba(255, 255, 255, 0.08);
  --accent: #4eb3e0;
  --accent-strong: #2f9fd4;
  --accent-soft: rgba(78, 179, 224, 0.14);
  --header-h: 4.5rem;
  --shell: min(1120px, calc(100% - 3rem));
  --font-display: "Syne", sans-serif;
  --font-body: "Manrope", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
.hero-brand,
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

h1 {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 800;
  max-width: 14ch;
}

h2 {
  margin: 0;
  font-size: clamp(1.85rem, 4vw, 3rem);
  max-width: 18ch;
}

h3 {
  margin: 0 0 0.65rem;
  font-size: 1.15rem;
  font-weight: 700;
}

p {
  margin: 0 0 1.1rem;
}

p:last-child {
  margin-bottom: 0;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  padding: 0.65rem 1rem;
  background: var(--accent);
  color: #041018;
  border-radius: 0.35rem;
}

.skip-link:focus {
  top: 1rem;
}

/* Header */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), backdrop-filter 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(11, 12, 16, 0.82);
  border-bottom-color: var(--line);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  z-index: 2;
}

.brand-mark {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 0.28rem;
  background:
    linear-gradient(135deg, transparent 46%, var(--accent) 46% 54%, transparent 54%),
    linear-gradient(45deg, transparent 46%, var(--text) 46% 54%, transparent 54%),
    var(--bg-soft);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(78, 179, 224, 0.15);
}

.brand-name {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.site-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.25s var(--ease);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.nav-cta {
  padding: 0.55rem 1rem;
  border-radius: 0.4rem;
  background: var(--bg-soft);
  color: var(--text) !important;
  border: 1px solid var(--line);
}

.nav-cta:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  gap: 0.35rem;
}

.nav-toggle span {
  display: block;
  width: 1.25rem;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:first-of-type {
  transform: translateY(2.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-of-type {
  transform: translateY(-2.5px) rotate(-45deg);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.7rem 1.25rem;
  border-radius: 0.4rem;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #041018;
}

.btn-primary:hover {
  background: #6bc2e8;
}

.btn-ghost {
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.45);
}

/* Hero */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: center;
  padding: calc(var(--header-h) + 2rem) 0 4.5rem;
  overflow: hidden;
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  inset: 10% 20% auto 5%;
  height: 55%;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(78, 179, 224, 0.18), transparent 55%),
    radial-gradient(ellipse at 70% 20%, rgba(255, 255, 255, 0.05), transparent 45%);
  animation: glow-pulse 10s ease-in-out infinite alternate;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at 70% 55%, black 10%, transparent 70%);
  opacity: 0.7;
}

.hero-machine {
  position: absolute;
  right: max(-4%, calc(50% - 560px));
  bottom: 8%;
  width: min(52vw, 560px);
  color: rgba(244, 245, 247, 0.55);
  animation: machine-drift 14s ease-in-out infinite alternate;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-brand {
  margin: 0 0 1rem;
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  color: var(--text);
}

.hero h1 {
  max-width: 16ch;
  color: var(--text);
  font-weight: 700;
  font-size: clamp(1.55rem, 3.2vw, 2.35rem);
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.hero-lead {
  margin: 1.35rem 0 0;
  max-width: 34rem;
  color: var(--text-muted);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

/* Sections */

.section {
  padding: 7rem 0;
  border-top: 1px solid var(--line);
}

.section-intro {
  margin-bottom: 3rem;
}

.eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-lead {
  margin-top: 1.1rem;
  max-width: 42rem;
  color: var(--text-muted);
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.9fr);
  gap: 3.5rem;
  align-items: start;
}

.profile-copy {
  max-width: 42rem;
  color: var(--text-muted);
  font-size: 1.08rem;
}

.profile-copy strong,
.profile-copy b {
  color: var(--text);
}

.profile-aside {
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--line);
}

.aside-label {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.focus-list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-weight: 500;
}

.focus-list li:first-child {
  border-top: 1px solid var(--line);
}

/* Expertise */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.75rem 3rem;
}

.feature-icon {
  width: 1.5rem;
  height: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.feature-icon svg {
  width: 100%;
  height: 100%;
}

.feature p {
  color: var(--text-muted);
  max-width: 34rem;
}

/* Statement */

.statement {
  position: relative;
  padding: 8rem 0;
  border-top: 1px solid var(--line);
  text-align: center;
  overflow: hidden;
}

.statement::before {
  content: "";
  position: absolute;
  inset: 20% 15%;
  background: radial-gradient(ellipse at center, var(--accent-soft), transparent 65%);
  pointer-events: none;
}

.statement-inner {
  position: relative;
}

.statement h2 {
  max-width: none;
  margin-inline: auto;
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  font-weight: 800;
  text-transform: none;
  letter-spacing: -0.04em;
}

.statement p {
  margin: 1.25rem auto 0;
  max-width: 34rem;
  color: var(--text-muted);
}

/* Contact */

.contact {
  background:
    linear-gradient(180deg, transparent, rgba(78, 179, 224, 0.04) 40%, transparent),
    var(--bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
  gap: 3.5rem;
  align-items: end;
}

.contact-intro .btn {
  margin-top: 0.5rem;
}

.contact-cards {
  display: grid;
  gap: 1.75rem;
}

.contact-block {
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.contact-block h3 {
  margin-bottom: 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-family: var(--font-body);
}

.contact-block a {
  color: var(--text);
  font-weight: 600;
  transition: color 0.25s var(--ease);
}

.contact-block a:hover {
  color: var(--accent);
}

.contact-block p {
  color: var(--text-muted);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.5rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.88rem;
}

.brand-footer .brand-name {
  font-size: 0.95rem;
}

/* Motion */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

@keyframes glow-pulse {
  from { opacity: 0.75; transform: scale(1); }
  to { opacity: 1; transform: scale(1.05); }
}

@keyframes machine-drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-12px, -10px, 0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .reveal,
  .hero-glow,
  .hero-machine,
  .btn {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Responsive */

@media (max-width: 900px) {
  .profile-grid,
  .contact-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hero-machine {
    width: min(70vw, 420px);
    opacity: 0.55;
  }

  .feature-grid {
    gap: 2rem;
  }
}

@media (max-width: 720px) {
  :root {
    --shell: min(1120px, calc(100% - 2rem));
    --header-h: 4rem;
  }

  .nav-toggle {
    display: grid;
  }

  .site-nav {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(11, 12, 16, 0.96);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .site-nav a {
    font-size: 1.35rem;
    color: var(--text);
  }

  .nav-cta {
    background: var(--accent);
    color: #041018 !important;
    border: 0;
  }

  .hero {
    align-items: center;
    padding-bottom: 4rem;
  }

  .hero-machine {
    right: -18%;
    bottom: auto;
    top: 18%;
    width: 85vw;
    opacity: 0.28;
  }

  .section {
    padding: 5rem 0;
  }

  .statement {
    padding: 5.5rem 0;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
