/* Valorix — immersive holding hub */

:root {
  --navy: #0b1c33;
  --navy-deep: #071422;
  --blue: #1a3c6e;
  --gold: #d4af37;
  --white: #ffffff;
  --text: #f3f6fb;
  --muted: rgba(243, 246, 251, 0.62);
  --glass: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-hover: rgba(255, 255, 255, 0.07);

  --font-display: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --max: 1040px;
  --radius: 22px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--navy-deep);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 12px;
}

/* Atmosphere layer */

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(1200px 700px at 50% -10%, rgba(26, 60, 110, 0.55), transparent 60%),
    radial-gradient(900px 600px at 100% 40%, rgba(212, 175, 55, 0.08), transparent 55%),
    radial-gradient(800px 500px at 0% 80%, rgba(26, 60, 110, 0.35), transparent 50%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  will-change: transform;
}

.orb-a {
  width: min(52vw, 480px);
  height: min(52vw, 480px);
  top: -8%;
  left: 50%;
  translate: -50% 0;
  background: rgba(26, 60, 110, 0.7);
  animation: drift-a 18s ease-in-out infinite;
}

.orb-b {
  width: min(40vw, 360px);
  height: min(40vw, 360px);
  right: -6%;
  top: 28%;
  background: rgba(212, 175, 55, 0.18);
  animation: drift-b 22s ease-in-out infinite;
}

.orb-c {
  width: min(45vw, 400px);
  height: min(45vw, 400px);
  left: -8%;
  bottom: 5%;
  background: rgba(26, 60, 110, 0.5);
  animation: drift-c 20s ease-in-out infinite;
}

.grid-fade {
  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: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 35%, black 10%, transparent 75%);
  opacity: 0.7;
}

.vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 75% 70% at 50% 45%, transparent 30%, rgba(7, 20, 34, 0.75) 100%);
}

@keyframes drift-a {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(0, 24px, 0) scale(1.06); }
}

@keyframes drift-b {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(-30px, 20px, 0); }
}

@keyframes drift-c {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(24px, -18px, 0); }
}

/* Page shell */

.page {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 1.25rem 0 2rem;
}

/* Header */

.header {
  display: flex;
  align-items: center;
  min-height: 3.75rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.03em;
  color: var(--white);
}

.logo svg {
  filter: drop-shadow(0 8px 18px rgba(26, 60, 110, 0.55));
}

/* Main / hero */

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(2rem, 5vw, 3rem);
  padding: clamp(1.5rem, 5vh, 3rem) 0;
}

.hero {
  text-align: center;
}

.hero h1 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.2rem, 12vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  color: var(--white);
  text-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.lead {
  margin: 0;
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  font-weight: 500;
  color: var(--muted);
}

/* Services */

.services {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

.service {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  gap: 0.4rem;
  padding: 1.4rem 1.4rem 1.35rem;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 20px 50px rgba(0, 0, 0, 0.18);
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.service-glow {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  top: -60px;
  right: -40px;
  filter: blur(40px);
  opacity: 0.35;
  z-index: -1;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.service[data-tone="gold"] .service-glow {
  background: rgba(212, 175, 55, 0.55);
}

.service[data-tone="blue"] .service-glow {
  background: rgba(80, 140, 220, 0.45);
}

.service[data-tone="soft"] .service-glow {
  background: rgba(255, 255, 255, 0.12);
}

a.service:hover {
  background: var(--glass-hover);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-3px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 28px 60px rgba(0, 0, 0, 0.28);
}

a.service:hover .service-glow {
  opacity: 0.65;
  transform: scale(1.15);
}

a.service:hover .service-arrow {
  background: var(--gold);
  color: var(--navy);
  border-color: transparent;
}

.service-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.service-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.025em;
  color: var(--white);
}

.service-arrow {
  width: 2.15rem;
  height: 2.15rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.05);
  font-size: 1rem;
  color: var(--white);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.service-badge {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
}

.service-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.service-url {
  margin-top: 0.55rem;
  font-size: 0.84rem;
  font-weight: 500;
  color: rgba(212, 175, 55, 0.9);
}

.service[data-tone="blue"] .service-url {
  color: rgba(150, 190, 255, 0.9);
}

.service-soon {
  opacity: 0.55;
  cursor: default;
}

.service-soon .service-url {
  color: var(--muted);
}

/* Footer */

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding-top: 1.5rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.footer p {
  margin: 0;
}

.footer-note {
  color: rgba(212, 175, 55, 0.85);
  font-weight: 500;
}

/* Reveal */

@media (prefers-reduced-motion: no-preference) {
  .hero h1,
  .lead,
  .service {
    animation: rise 0.7s ease both;
  }

  .lead { animation-delay: 0.08s; }
  .service:nth-child(1) { animation-delay: 0.14s; }
  .service:nth-child(2) { animation-delay: 0.2s; }
  .service:nth-child(3) { animation-delay: 0.26s; }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */

@media (min-width: 780px) {
  .services {
    grid-template-columns: repeat(3, 1fr);
  }

  .service {
    min-height: 200px;
    align-content: start;
    padding: 1.55rem;
  }
}

@media (max-width: 480px) {
  .page {
    width: min(100% - 1.25rem, var(--max));
  }

  .service {
    padding: 1.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .orb {
    animation: none !important;
  }

  a.service:hover {
    transform: none;
  }

  .hero h1,
  .lead,
  .service {
    animation: none !important;
  }
}
