/* ==========================================================================
   VISID — onepage
   ========================================================================== */

:root {
  --bg: #05060a;
  --bg-soft: #0a0c16;
  --text: #f4f5f9;
  --text-muted: rgba(244, 245, 249, 0.62);
  --text-faint: rgba(244, 245, 249, 0.38);
  --border: rgba(244, 245, 249, 0.10);
  --glass-bg: rgba(20, 22, 34, 0.45);
  --glass-border: rgba(244, 245, 249, 0.14);
  --accent-blue: #2f3ea6;
  --accent-purple: #6a3fb0;
  --accent-pink: #b23f7e;
  --radius: 18px;
  --max-width: 1180px;
  --section-pad-y: clamp(96px, 14vw, 200px);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Work Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-weight: 600; margin: 0; }
p { margin: 0; }

img { display: block; max-width: 100%; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--bg-soft);
  color: var(--text);
  padding: 12px 20px;
  border-radius: 8px;
  z-index: 999;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
}

/* ---------- layout helpers ---------- */

.section {
  position: relative;
  width: 100%;
  padding: var(--section-pad-y) 24px;
  overflow: hidden;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.eyebrow {
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 22px;
}

/* ---------- floating liquid-glass nav ---------- */

.floating-nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: clamp(20px, 4vw, 48px);
  padding: 12px 26px;
  border-radius: 999px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  box-shadow:
    0 8px 30px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: padding 0.35s ease, gap 0.35s ease, background 0.35s ease;
}

.floating-nav.scrolled {
  padding: 9px 22px;
  background: rgba(10, 11, 20, 0.6);
}

.nav-logo img {
  height: 14px;
  width: auto;
  opacity: 0.95;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
}

.nav-link {
  font-size: 13.5px;
  font-weight: 300;
  color: var(--text-muted);
  padding: 4px 2px;
  position: relative;
  transition: color 0.25s ease;
  white-space: nowrap;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
}

.nav-link.active::after {
  transform: scaleX(1);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  padding: 14px 34px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.btn-primary {
  background: rgba(244, 245, 249, 0.06);
  color: var(--text);
}

.btn-primary:hover {
  background: rgba(244, 245, 249, 0.12);
  border-color: rgba(244, 245, 249, 0.28);
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ---------- hero ---------- */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--section-pad-y) + 40px);
}

.hero-glow {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 130%;
  background-image: url("../img/bg-gradient.jpg");
  background-size: cover;
  background-position: top right;
  opacity: 0.34;
  filter: blur(4px);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 78% 12%, #000 0%, rgba(0,0,0,0.5) 45%, transparent 78%);
  mask-image: radial-gradient(ellipse 70% 60% at 78% 12%, #000 0%, rgba(0,0,0,0.5) 45%, transparent 78%);
  pointer-events: none;
  z-index: 1;
}

.hero-title {
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  max-width: 14ch;
  margin-bottom: 28px;
}

.hero-text {
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--text-muted);
  max-width: 46ch;
  margin-bottom: 44px;
}

.scroll-cue {
  position: absolute;
  bottom: 44px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 24px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 999px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.scroll-cue span {
  width: 4px;
  height: 8px;
  border-radius: 999px;
  background: var(--text-faint);
  animation: scrollcue 1.8s ease infinite;
}

@keyframes scrollcue {
  0% { opacity: 0; transform: translateY(0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(10px); }
}

/* ---------- services ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(32px, 6vw, 64px);
}

.service h2 {
  font-size: clamp(20px, 2.4vw, 26px);
  margin-bottom: 16px;
}

.service p {
  color: var(--text-muted);
  font-size: 15px;
  max-width: 34ch;
}

/* ---------- contact ---------- */

.contact-glow {
  position: absolute;
  inset: auto -15% -30% -15%;
  height: 90%;
  background-image: url("../img/bg-gradient.jpg");
  background-size: cover;
  background-position: bottom left;
  opacity: 0.16;
  filter: blur(6px) saturate(90%);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 20% 100%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 60% at 20% 100%, #000 0%, transparent 75%);
  pointer-events: none;
  z-index: 1;
}

.contact-title {
  font-size: clamp(26px, 4vw, 40px);
  max-width: 20ch;
  margin-bottom: 48px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 640px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field label {
  font-size: 13px;
  color: var(--text-muted);
}

.field input,
.field textarea {
  font-family: inherit;
  font-size: 15px;
  font-weight: 300;
  color: var(--text);
  background: rgba(244, 245, 249, 0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 16px;
  outline: none;
  transition: border-color 0.25s ease, background 0.25s ease;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: rgba(244, 245, 249, 0.35);
  background: rgba(244, 245, 249, 0.05);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form .btn {
  align-self: flex-start;
  margin-top: 8px;
}

.form-feedback {
  max-width: 640px;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 28px;
  border: 1px solid var(--border);
}

.form-feedback.success {
  color: #cfe8d8;
  border-color: rgba(120, 200, 150, 0.35);
  background: rgba(120, 200, 150, 0.08);
}

.form-feedback.error {
  color: #f2c9c9;
  border-color: rgba(220, 120, 120, 0.35);
  background: rgba(220, 120, 120, 0.08);
}

.contact-direct {
  margin-top: 36px;
  font-size: 14px;
  color: var(--text-muted);
}

.contact-direct a {
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

/* ---------- footer ---------- */

.site-footer {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  min-height: 340px;
  padding: 60px 24px 70px;
  text-align: center;
  overflow: hidden;
}

.footer-glow {
  position: absolute;
  inset: 0;
  background-image: url("../img/visid-gradient.jpg");
  background-size: cover;
  background-position: center bottom;
  opacity: 0.6;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.5) 35%, #000 70%);
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.5) 35%, #000 70%);
  pointer-events: none;
  z-index: 0;
}

.site-footer img {
  position: relative;
  z-index: 1;
  opacity: 0.6;
}

.site-footer p {
  position: relative;
  z-index: 1;
  font-size: 12.5px;
  color: var(--text-faint);
}

/* ---------- responsive ---------- */

@media (max-width: 720px) {
  .floating-nav {
    gap: 16px;
    padding: 10px 18px;
    top: 14px;
  }

  .nav-links {
    gap: 14px;
  }

  .nav-link {
    font-size: 12.5px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  :root {
    --section-pad-y: clamp(80px, 20vw, 130px);
  }
}

@media (max-width: 380px) {
  .nav-logo img { height: 12px; }
  .nav-link { font-size: 11.5px; }
  .floating-nav { gap: 12px; padding: 9px 14px; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-cue span { animation: none; }
  * { transition-duration: 0.01ms !important; }
}
