/*
 * File: assets/css/global.css
 * Version: 1.2.3
 * Client: ForVera Studio (ForVera Media LLC)
 * Developer: Christian / ForVera Studio
 * Website: https://forverastudio.com
 * Support: help@forverastudio.com
 */

:root {
  /* Cool chrome / steel-blue shell — charcoal base */
  --bg: #2a2d34;
  --surface: #323842;
  --surface2: #3a404c;
  --border: #4a5566;
  --border-hover: #5d6b80;
  /* Accent: brushed steel blue (replaces former amber) */
  --accent: #6ba3d6;
  --accent-bright: #8ec5f0;
  --accent-dim: #3d6a9e;
  --accent-glow: rgba(107, 163, 214, 0.14);
  --accent-border: rgba(107, 163, 214, 0.45);
  --accent-soft: rgba(107, 163, 214, 0.09);
  /* Typography: white-first, no muddy gray body copy */
  --text: #ffffff;
  --text-muted: #e8eef5;
  --text-dim: #b8c8dc;
  --font-head: "Syne", "Arial Black", Arial, sans-serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "DM Mono", ui-monospace, "SFMono-Regular", "Courier New", Courier, monospace;
  --radius-card: 4px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: clip;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

main {
  overflow-x: hidden;
}

.section {
  padding: 5rem 2.5rem;
}

.section-inner {
  max-width: 1160px;
  margin: 0 auto;
}

.section-label {
  margin: 0 0 0.9rem;
  font: 500 0.68rem/1 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--accent);
}

.section-title {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: clamp(1.5rem, 3.5vw, 2.6rem);
  line-height: 1.08;
}

.section-sub {
  margin: 0.9rem 0 0;
  max-width: 680px;
  color: var(--text-muted);
  font-size: 1rem;
}

.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 3px;
  border: 1px solid transparent;
  font: 500 0.74rem/1 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.85rem 1.15rem;
  transition: background-color 0.22s, border-color 0.22s, color 0.22s, opacity 0.22s;
}

.btn-primary {
  background: linear-gradient(180deg, var(--accent-bright) 0%, var(--accent) 55%, var(--accent-dim) 100%);
  color: #ffffff;
  border-color: rgba(142, 197, 240, 0.35);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset, 0 8px 24px rgba(61, 106, 158, 0.35);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  filter: brightness(1.06);
  opacity: 1;
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--accent-border);
  color: var(--accent-bright);
  background: var(--accent-glow);
}

.site-footer {
  border-top: 1px solid var(--border);
  min-height: 58px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 1.1rem 2.5rem 1.4rem;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
}

.brand-logo--footer {
  display: block;
  width: auto;
  height: clamp(22px, 3.6vw, 32px);
  max-width: min(255px, 100%);
}

.brand-dot {
  color: var(--accent-bright);
}

.footer-links {
  display: inline-flex;
  gap: 1.1rem;
}

.footer-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--text-muted);
  font: 400 0.68rem/1 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  transition: color 0.2s;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--accent-bright);
}

.footer-copy {
  margin: 0;
  color: var(--text-muted);
  font: 400 0.66rem/1.2 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-page {
  padding: 4.2rem 1.25rem 5rem;
}

.legal-wrap {
  max-width: 680px;
  margin: 0 auto;
}

.legal-wrap h1,
.legal-wrap h2 {
  font-family: var(--font-head);
  letter-spacing: -0.02em;
}

.legal-wrap h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin: 0 0 0.6rem;
}

.legal-wrap h2 {
  font-size: 1.18rem;
  margin: 1.35rem 0 0.45rem;
}

.legal-wrap p,
.legal-wrap li {
  color: var(--text-muted);
}

.legal-wrap ul {
  margin: 0;
  padding-left: 1.2rem;
}

@media (max-width: 900px) {
  .section {
    padding: 4rem 1.6rem;
  }

  .site-footer {
    padding-left: 1.6rem;
    padding-right: 1.6rem;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 3rem 1.25rem;
  }

  .section-sub {
    font-size: 0.95rem;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
    padding: 1.5rem 1.25rem;
  }
}

@media (max-width: 400px) {
  .section {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Home hero (above the fold; keep in sync with home.css / critical CSS in head.php) */
.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 58px);
  padding: 6.6rem 2.5rem 4.6rem;
  display: flex;
  align-items: center;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero::before {
  z-index: 0;
  background-image:
    linear-gradient(to right, rgba(130, 155, 190, 0.14) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(130, 155, 190, 0.14) 1px, transparent 1px);
  background-size: 60px 60px;
  background-position: 0 0;
  opacity: 0.32;
}

@media (prefers-reduced-motion: no-preference) {
  .hero::before {
    animation: heroGridDrift 100s linear infinite;
  }
}

@keyframes heroGridDrift {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 60px 60px;
  }
}

.hero::after {
  z-index: 2;
  background: radial-gradient(circle at 50% 42%, rgba(107, 163, 214, 0.11) 0%, rgba(42, 45, 52, 0.94) 68%);
}

.hero-inner {
  position: relative;
  z-index: 3;
  max-width: 1160px;
  margin: 0 auto;
  width: 100%;
}

.hero-chevron {
  position: absolute;
  left: 50%;
  bottom: 1.35rem;
  z-index: 4;
  transform: translate3d(-50%, 0, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(107, 163, 214, 0.35);
  color: var(--accent-bright);
  background: rgba(50, 56, 66, 0.55);
  backdrop-filter: blur(8px);
  transition: border-color 0.2s, color 0.2s, background-color 0.2s;
}

.hero-chevron:hover,
.hero-chevron:focus-visible {
  border-color: var(--accent-border);
  color: #ffffff;
  background: rgba(58, 64, 76, 0.75);
  outline: none;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-chevron {
    animation: heroChevronFloat 2.8s ease-in-out infinite;
  }

  @keyframes heroChevronFloat {
    0%,
    100% {
      transform: translate3d(-50%, 0, 0);
    }
    50% {
      transform: translate3d(-50%, 6px, 0);
    }
  }
}

.hero-tag {
  margin: 0;
  color: var(--accent-bright);
  font: 500 0.69rem/1.3 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.11em;
}

.hero-headline {
  margin: 0.8rem 0 0;
  max-width: 890px;
  font-family: var(--font-head);
  font-size: clamp(2rem, 8vw, 4.6rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.hero-headline .accent {
  color: var(--accent-bright);
}

.hero-headline .cursor {
  display: inline-block;
  flex-shrink: 0;
  width: 0.55em;
  margin-left: 0;
  text-align: center;
  color: var(--accent-bright);
}

/* Reserve width for longest rotating phrase ("Digital Products That Last") so typing
   does not resize the line and spike CLS. 12ch was far too narrow. */
.hero-type-slot {
  display: inline-flex;
  align-items: baseline;
  gap: 0.16rem;
  vertical-align: baseline;
  min-height: 1.12em;
  min-width: min(100%, 30ch);
  max-width: 100%;
  box-sizing: border-box;
}

@media (min-width: 720px) {
  .hero-type-slot {
    white-space: nowrap;
  }
}

@media (max-width: 719px) {
  .hero-type-slot {
    display: block;
    margin-top: 0.06em;
    min-height: 2.85em;
    max-width: 100%;
    white-space: normal;
  }

  .hero-headline .cursor {
    margin-left: 0.16rem;
  }
}

.hero-sub {
  margin: 1.1rem 0 0;
  max-width: 620px;
  color: var(--text-muted);
  font-size: 1.02rem;
}

.hero-actions {
  margin-top: 2.1rem;
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.hero-scroll {
  margin-top: 2.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-muted);
  font: 400 0.62rem/1 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.hero-scroll::before {
  content: "";
  width: 64px;
  height: 1px;
  background: var(--border);
}

/* --- Site navigation (formerly nav.css) --- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  backdrop-filter: blur(14px);
  background: rgba(42, 45, 52, 0.93);
  border-bottom: 1px solid var(--border);
}

.site-nav {
  max-width: 1160px;
  min-height: 58px;
  margin: 0 auto;
  padding: 0 2.5rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
}

.brand {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* Full wordmark asset: 255×48 intrinsic; scale down on small viewports (aspect-ratio preserved). */
.brand-logo {
  display: block;
  width: auto;
  height: clamp(28px, 5.5vw, 40px);
  max-width: min(255px, calc(100vw - 8rem));
}

.nav-links {
  margin: 0;
  padding: 0;
  list-style: none;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 1.1rem;
}

.nav-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font: 400 0.7rem/1 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--accent-bright);
}

.nav-cta--desktop {
  justify-self: end;
}

.nav-toggle {
  display: none;
  justify-self: end;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(50, 56, 66, 0.65);
  color: var(--accent-bright);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  border-color: var(--accent-border);
  background: rgba(58, 64, 76, 0.85);
  outline: none;
}

.nav-toggle__inner {
  position: relative;
  display: block;
  width: 22px;
  height: 16px;
}

.nav-toggle__bar {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.28s ease, opacity 0.2s ease, top 0.28s ease;
}

.nav-toggle__bar:nth-child(1) {
  top: 0;
}

.nav-toggle__bar:nth-child(2) {
  top: 7px;
}

.nav-toggle__bar:nth-child(3) {
  top: 14px;
}

.nav-toggle.is-open .nav-toggle__bar:nth-child(1) {
  top: 7px;
  transform: rotate(45deg);
}

.nav-toggle.is-open .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open .nav-toggle__bar:nth-child(3) {
  top: 7px;
  transform: rotate(-45deg);
}

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 12, 18, 0.58);
  backdrop-filter: blur(5px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
  pointer-events: none;
}

.nav-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav-drawer {
  position: fixed;
  top: 58px;
  right: 0;
  bottom: 0;
  width: min(100%, 340px);
  z-index: 210;
  background: linear-gradient(180deg, rgba(50, 56, 66, 0.98) 0%, rgba(42, 45, 52, 0.99) 100%);
  border-left: 1px solid var(--border);
  padding: 1.35rem 1.35rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  overflow: hidden;
  transform: translate3d(100%, 0, 0);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.35);
}

.nav-drawer[hidden] {
  display: none;
}

.nav-drawer.is-open {
  transform: translate3d(0, 0, 0);
}

.nav-drawer__links {
  margin: 0;
  padding: 0;
  list-style: none;
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.nav-drawer__links::-webkit-scrollbar {
  width: 6px;
}

.nav-drawer__links::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.nav-drawer__links li {
  border-bottom: 1px solid var(--border);
}

.nav-drawer__links a {
  display: flex;
  min-height: 48px;
  align-items: center;
  font: 500 0.72rem/1 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  transition: color 0.2s, background-color 0.2s;
  margin: 0 -1.35rem;
  padding: 0 1.35rem;
}

.nav-drawer__links a:hover,
.nav-drawer__links a:focus-visible {
  color: var(--accent-bright);
  background: rgba(107, 163, 214, 0.06);
  outline: none;
}

.nav-drawer__actions {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.nav-drawer__btn-msg {
  width: 100%;
}

.nav-drawer__btn-start {
  width: 100%;
  text-align: center;
}

body.nav-drawer-open {
  overflow: hidden;
}

body.nav-drawer-open .site-float-pair {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .nav-toggle__bar,
  .nav-drawer,
  .nav-overlay {
    transition: none;
  }
}

@media (max-width: 900px) {
  .site-nav {
    padding-left: 1.6rem;
    padding-right: 1.6rem;
  }
}

@media (max-width: 767px) {
  .site-nav {
    grid-template-columns: 1fr auto;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .nav-links--desktop,
  .nav-cta--desktop {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .brand-logo {
    height: clamp(26px, 6vw, 36px);
  }
}

@media (max-width: 400px) {
  .site-nav {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .brand-logo {
    height: clamp(24px, 7vw, 32px);
  }
}
