/* =========================================================
   VROTONIX — Premium Black & White Theme
   ========================================================= */

:root {
  --black: #000000;
  --ink: #0a0a0a;
  --graphite: #111111;
  --steel: #1a1a1a;
  --line: rgba(255, 255, 255, 0.08);
  --line-dark: rgba(0, 0, 0, 0.08);
  --muted: #6b6b6b;
  --muted-light: #a8a8a8;
  --white: #ffffff;
  --cream: #f6f6f6;
  --radius: 14px;
  --ease: cubic-bezier(0.65, 0.05, 0.36, 1);
  --container: 1240px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  background: var(--white);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
  padding-top: 110px;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

/* =========================================================
   TYPOGRAPHY
   ========================================================= */
h1, h2, h3, h4 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.eyebrow {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-light);
  margin-bottom: 28px;
}

.section-tag {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-dark);
}

.section-tag.light { color: var(--muted-light); border-color: var(--line); }

.section-title {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  max-width: 880px;
}

.section-title.light { color: var(--white); }

/* =========================================================
   NAVIGATION
   ========================================================= */
.nav-wrapper {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding-top: max(env(safe-area-inset-top), 14px);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: all 0.3s var(--ease);
}

.nav-wrapper.scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: var(--line-dark);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;

  min-height: 76px;

  padding-top: 10px;
  padding-bottom: 10px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.footer .logo-mark { background: var(--white); }

.logo-image {
  height: 32px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 40px;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  padding: 6px 0;
  transition: opacity 0.25s var(--ease);
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  height: 1px;
  width: 0;
  background: var(--black);
  transition: width 0.35s var(--ease);
}

.nav-links a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--black);
  transition: transform 0.35s var(--ease), opacity 0.25s var(--ease);
  transform-origin: center;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--black);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--steel);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--white);
  transform: translateY(-2px);
}

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

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  background: var(--black);
  color: var(--white);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 100px;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at 50% 40%, rgba(0,0,0,0.9), transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, rgba(0,0,0,0.9), transparent 75%);
  pointer-events: none;
  animation: gridDrift 30s linear infinite;
}

@keyframes gridDrift {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 80px 80px, 80px 80px; }
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 60px 28px 120px;
  max-width: 1100px;
}

.hero-title {
  font-size: clamp(2.5rem, 6.5vw, 5.4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
  background: linear-gradient(180deg, #ffffff 0%, #b8b8b8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 32px;
  max-width: 16ch;
}

.hero-statement {
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  color: #ddd;
  max-width: 640px;
  margin-bottom: 18px;
  font-weight: 400;
}

.hero-paragraph {
  font-size: 1rem;
  color: var(--muted-light);
  max-width: 600px;
  margin-bottom: 44px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px; left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 7px;
}

.scroll-indicator span {
  display: block;
  width: 2px; height: 6px;
  background: var(--white);
  border-radius: 1px;
  animation: scrollDot 1.8s infinite var(--ease);
}

@keyframes scrollDot {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* =========================================================
   SECTIONS (general)
   ========================================================= */
.section {
  padding: 140px 0;
  position: relative;
}

.section-head {
  margin-bottom: 80px;
}

/* =========================================================
   ABOUT
   ========================================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-text p {
  font-size: 1.08rem;
  margin-bottom: 22px;
  color: #2a2a2a;
  max-width: 60ch;
}

.about-philosophy {
  background: var(--black);
  color: var(--white);
  padding: 48px 38px;
  border-radius: var(--radius);
  position: sticky;
  top: 110px;
}

.philosophy-label {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-light);
  margin-bottom: 24px;
}

.about-philosophy blockquote {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

/* =========================================================
   SERVICES
   ========================================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.service-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 44px 34px;
  overflow: hidden;
  transition: transform 0.45s var(--ease), border-color 0.3s var(--ease), background 0.45s var(--ease), color 0.45s var(--ease);
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--black);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.55s var(--ease);
  z-index: 0;
}

.service-card:hover::before { transform: scaleY(1); }
.service-card:hover { color: var(--white); border-color: var(--black); transform: translateY(-4px); }

.service-card > * { position: relative; z-index: 1; }

.service-icon {
  width: 54px;
  height: 54px;
  margin-bottom: 32px;
  color: var(--ink);
  transition: color 0.45s var(--ease), transform 0.55s var(--ease);
}

.service-card:hover .service-icon { color: var(--white); transform: rotate(-6deg) scale(1.05); }

.service-title {
  font-size: 1.4rem;
  margin-bottom: 14px;
}

.service-desc {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 28px;
  transition: color 0.45s var(--ease);
}

.service-card:hover .service-desc { color: var(--muted-light); }

.service-arrow {
  font-size: 1.4rem;
  display: inline-block;
  transition: transform 0.45s var(--ease);
}

.service-card:hover .service-arrow { transform: translateX(8px); }

/* =========================================================
   WHY CHOOSE US
   ========================================================= */
.why {
  background: var(--black);
  color: var(--white);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.why-item {
  padding: 50px 36px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 0.4s var(--ease);
}

.why-item:hover { background: var(--steel); }

.why-num {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  color: var(--muted-light);
  margin-bottom: 24px;
}

.why-item h3 {
  font-size: 1.3rem;
  margin-bottom: 14px;
}

.why-item p {
  font-size: 0.95rem;
  color: var(--muted-light);
  max-width: 40ch;
}

/* =========================================================
   INDUSTRIES
   ========================================================= */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 18px;
}

.industry-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding: 40px 24px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  text-align: center;
  transition: all 0.4s var(--ease);
  background: var(--white);
}

.industry-card:hover {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
  transform: translateY(-4px);
}

.industry-icon {
  width: 44px;
  height: 44px;
  color: currentColor;
  transition: transform 0.45s var(--ease);
}

.industry-card:hover .industry-icon { transform: scale(1.1) rotate(-4deg); }

.industry-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
}

/* =========================================================
   VALUES
   ========================================================= */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.value-card {
  padding: 56px 40px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: var(--cream);
  transition: transform 0.4s var(--ease), background 0.4s var(--ease);
}

.value-card:hover {
  transform: translateY(-4px);
  background: var(--white);
}

.value-index {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 30px;
  opacity: 0.25;
}

.value-card h3 {
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.value-card p {
  color: var(--muted);
  font-size: 0.98rem;
}

/* =========================================================
   VISION
   ========================================================= */
.vision {
  background: var(--black);
  color: var(--white);
  padding: 160px 0;
  text-align: center;
}

.vision-text {
  font-size: clamp(2rem, 6vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  max-width: 18ch;
  margin: 28px auto 0;
  background: linear-gradient(180deg, #ffffff 0%, #888 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-desc {
  font-size: 1.1rem;
  color: var(--muted);
  margin: 18px 0 38px;
  max-width: 50ch;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-top: 1px solid var(--line-dark);
}

.contact-info li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--line-dark);
  gap: 20px;
}

.info-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.info-value {
  font-weight: 500;
  text-align: right;
  word-break: break-word;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: var(--black);
  color: var(--white);
  padding: 80px 0 40px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-brand .logo-mark,
.footer-brand .logo-text { display: inline-block; }

.footer-brand > div:first-child { display: flex; align-items: center; gap: 10px; }

.footer-slogan {
  margin-top: 18px;
  color: var(--muted-light);
  font-size: 0.95rem;
  font-family: 'Space Grotesk', sans-serif;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-self: center;
}

.footer-social a {
  font-size: 0.9rem;
  color: var(--muted-light);
  transition: color 0.3s var(--ease);
}

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

.footer-copy {
  text-align: right;
  font-size: 0.85rem;
  color: var(--muted-light);
  align-self: center;
}

/* =========================================================
   MODAL
   ========================================================= */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
  padding: 24px;
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.modal-card {
  position: relative;
  background: var(--white);
  color: var(--ink);
  padding: 48px 42px;
  border-radius: var(--radius);
  max-width: 480px;
  width: 100%;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.4s var(--ease);
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
}

.modal.active .modal-card {
  transform: translateY(0) scale(1);
}

.modal-title {
  font-size: 1.5rem;
  margin-bottom: 14px;
}

.modal-text {
  color: var(--muted);
  font-size: 0.98rem;
  margin-bottom: 32px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.modal-actions .btn { padding: 12px 24px; }

/* =========================================================
   REVEAL ANIMATION
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

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

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 960px) {
  .section { padding: 100px 0; }
  .section-head { margin-bottom: 60px; }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-philosophy { position: static; }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .footer-copy { text-align: left; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: 76px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--white);
    padding: 16px 28px 36px;
    border-bottom: 1px solid var(--line-dark);
    transform: translateY(-110%);
    transition: transform 0.45s var(--ease);
  }

  .nav-links.open { transform: translateY(0); }

  .nav-links li {
    border-bottom: 1px solid var(--line-dark);
  }
  .nav-links li:last-child { border-bottom: none; }

  .nav-links a {
    display: block;
    padding: 18px 0;
    font-size: 1rem;
  }

  .hero { padding-top: 120px; min-height: 92vh; }
  .hero-inner { padding-bottom: 80px; }
  .hero-actions { width: 100%; }
  .btn { padding: 14px 24px; font-size: 0.88rem; }

  .section { padding: 80px 0; }

  .why-item { padding: 40px 26px; }
  .modal-card { padding: 36px 26px; }

  .contact-info li { flex-direction: column; align-items: flex-start; gap: 6px; }
  .info-value { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
