/*
Theme Name: DiaverSystems
Description: Portada bilingüe provisional de Diaver Systems.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: diaversystems
*/

:root {
  color-scheme: dark;
  --ink: #06152d;
  --ink-soft: #0a2241;
  --paper: #f4f9ff;
  --muted: #9db2ca;
  --cyan: #14c7f4;
  --blue: #1687ef;
  --line: rgba(76, 175, 255, .2);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    linear-gradient(rgba(20, 199, 244, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 199, 244, .035) 1px, transparent 1px),
    radial-gradient(circle at 18% 18%, rgba(22, 135, 239, .16), transparent 36%),
    #06152d;
  background-size: 44px 44px, 44px 44px, auto, auto;
}

.site-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, .96fr);
  min-height: 100svh;
  overflow: hidden;
}

.ambient {
  position: absolute;
  top: -24rem;
  left: -22rem;
  width: 48rem;
  height: 48rem;
  border: 1px solid rgba(20, 199, 244, .12);
  border-radius: 50%;
  box-shadow: 0 0 0 8rem rgba(20, 199, 244, .018), 0 0 0 16rem rgba(20, 199, 244, .012);
  pointer-events: none;
}

.hero {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(2rem, 5vw, 5rem) clamp(1.5rem, 6vw, 7rem);
  background: linear-gradient(90deg, rgba(6, 21, 45, .98) 70%, rgba(6, 21, 45, .88));
}

.brand {
  align-self: flex-start;
  padding: .25rem .65rem;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: .4rem;
  background: rgba(244, 249, 255, .94);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .18);
}

.brand__logo {
  display: block;
  width: clamp(220px, 27vw, 390px);
  height: auto;
}

.language-switcher {
  position: absolute;
  top: clamp(2rem, 5vw, 5rem);
  right: clamp(1.5rem, 4vw, 4rem);
  display: flex;
  align-items: center;
  gap: .45rem;
  color: #66809b;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: .72rem;
  letter-spacing: .12em;
}

.language-switcher button {
  padding: .4rem .2rem;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: #718aa5;
  font: inherit;
  cursor: pointer;
}

.language-switcher button:hover,
.language-switcher button[aria-pressed="true"] {
  border-bottom-color: var(--cyan);
  color: var(--paper);
}

.language-switcher button:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

.hero__content {
  width: min(720px, 100%);
  margin: auto 0;
  padding: clamp(4rem, 10vh, 8rem) 0;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin: 0 0 1.5rem;
  color: var(--cyan);
  font-size: .74rem;
  font-weight: 750;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.eyebrow > span:first-child {
  width: 2.75rem;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}

h1 {
  max-width: 13ch;
  margin: 0;
  font-size: clamp(3rem, 6.6vw, 7.4rem);
  font-weight: 290;
  letter-spacing: -.055em;
  line-height: .93;
}

h1 strong {
  color: var(--paper);
  font-weight: 760;
}

.intro {
  max-width: 42rem;
  margin: 2rem 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  line-height: 1.7;
}

.disciplines {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin: 2.4rem 0 0;
  padding: 0;
  list-style: none;
}

.disciplines li {
  padding: .62rem .9rem;
  border: 1px solid rgba(157, 178, 202, .2);
  border-radius: 999px;
  background: rgba(255, 255, 255, .025);
  color: #c6d5e6;
  font-size: .78rem;
  letter-spacing: .055em;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(157, 178, 202, .13);
  color: #748ba4;
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.site-footer p { margin: 0; }

.visual {
  position: relative;
  min-height: 100%;
  background: #071a34;
  isolation: isolate;
}

.visual::before,
.visual::after {
  position: absolute;
  z-index: 2;
  content: "";
  pointer-events: none;
}

.visual::before {
  inset: 0;
  background: linear-gradient(90deg, var(--ink) 0, rgba(6, 21, 45, .08) 30%, rgba(6, 21, 45, .18) 100%);
}

.visual::after {
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 21, 45, .12), transparent 50%, rgba(6, 21, 45, .9));
}

.visual__image {
  position: absolute;
  inset: 0;
  background-image: url("assets/diaver-systems-hero-detailed.png");
  background-position: center;
  background-size: cover;
  filter: saturate(.92) contrast(1.05);
  transform: scale(1.025);
  animation: settle 1.4s cubic-bezier(.2, .8, .2, 1) both;
}

.visual__line {
  position: absolute;
  z-index: 3;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: .55;
}

.visual__line--one { top: 27%; left: 8%; width: 60%; }
.visual__line--two { right: -5%; bottom: 23%; width: 42%; }

.visual__marker {
  position: absolute;
  right: clamp(1.5rem, 4vw, 4rem);
  bottom: clamp(1.5rem, 4vw, 4rem);
  z-index: 4;
  color: rgba(213, 235, 255, .7);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: .72rem;
  letter-spacing: .18em;
}

@keyframes settle {
  from { opacity: 0; transform: scale(1.08); }
  to { opacity: 1; transform: scale(1.025); }
}

@media (max-width: 900px) {
  .site-shell { grid-template-columns: 1fr; }
  .hero { min-height: 100svh; background: linear-gradient(180deg, rgba(6, 21, 45, .92), rgba(6, 21, 45, .98)); }
  .visual { position: absolute; inset: 0; }
  .visual::before { background: linear-gradient(180deg, rgba(6, 21, 45, .68), rgba(6, 21, 45, .9) 55%, var(--ink)); }
  .visual__image { opacity: .34; background-position: 65% center; }
  .visual__marker, .visual__line { display: none; }
}

@media (max-width: 620px) {
  .hero { padding: 1.5rem; }
  .hero__content { padding: 4rem 0 3rem; }
  h1 { max-width: 10ch; }
  .site-footer { flex-direction: column; gap: .7rem; }
  .language-switcher { top: 1.65rem; right: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
