/* ============================================================
   AVERIX SOFTWARE — Global Stylesheet
   Fonts: Cormorant Garamond · Bebas Neue · Manrope
   Colors: #000000 · #ff751f · #ffffff
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Jost:wght@300;400;500;600;700&family=Bebas+Neue&display=swap');

/* ── VARIABLES ─────────────────────────────────────────────── */
:root {
  --black:        #000000;
  --black2:       #0a0a0a;
  --black3:       #111111;
  --black4:       #1a1a1a;
  --black5:       #222222;
  --orange:       #ff751f;
  --orange-dim:   rgba(255, 117, 31, 0.10);
  --orange-glow:  rgba(255, 117, 31, 0.22);
  --orange-mid:   rgba(255, 117, 31, 0.45);
  --white:        #ffffff;
  --white-90:     rgba(255, 255, 255, 0.90);
  --white-60:     rgba(255, 255, 255, 0.60);
  --white-30:     rgba(255, 255, 255, 0.30);
  --white-10:     rgba(255, 255, 255, 0.10);
  --white-06:     rgba(255, 255, 255, 0.06);
  --border:       rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 117, 31, 0.50);

  --font-display: 'DM Serif Display', serif;
  --font-heading: 'Bebas Neue', sans-serif;
  --font-body:    'Jost', sans-serif;

  --nav-h:        72px;
  --section-pad:  110px;
  --radius-sm:    8px;
  --radius-md:    14px;
  --radius-lg:    20px;
  --radius-xl:    28px;

  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:  cubic-bezier(0.76, 0, 0.24, 1);
}

/* ── RESET ─────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  overflow-x: hidden;
  cursor: none;
  line-height: 1.6;
}

body.splash-active {
  overflow: hidden;
}

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

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

ul, ol {
  list-style: none;
}

button {
  background: none;
  border: none;
  cursor: none;
  font-family: inherit;
}

/* ── NOISE TEXTURE OVERLAY ─────────────────────────────────── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9000;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
}

/* ── CUSTOM CURSOR ─────────────────────────────────────────── */
.cursor {
  position: fixed;
  width: 9px;
  height: 9px;
  background: var(--orange);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: width 0.2s var(--ease-out),
              height 0.2s var(--ease-out),
              opacity 0.2s;
  will-change: transform;
}

.cursor-ring {
  position: fixed;
  width: 38px;
  height: 38px;
  border: 1px solid var(--orange);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  opacity: 0.45;
  transition: width 0.3s var(--ease-out),
              height 0.3s var(--ease-out),
              opacity 0.3s,
              border-color 0.2s;
  will-change: transform;
}

.cursor.hover {
  width: 16px;
  height: 16px;
  opacity: 0.7;
}

.cursor-ring.hover {
  width: 56px;
  height: 56px;
  opacity: 0.25;
  border-color: var(--orange-mid);
}

/* ── SPLASH SCREEN ─────────────────────────────────────────── */
#splash {
  position: fixed;
  inset: 0;
  z-index: 99990;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}

#splash.flash {
  animation: splashFlash 0.4s var(--ease-in-out) forwards;
}

#splash.hidden {
  opacity: 0;
  pointer-events: none;
}

@keyframes splashFlash {
  0%   { opacity: 1; }
  25%  { opacity: 0.7; }
  50%  { opacity: 1; }
  75%  { opacity: 0.4; }
  100% { opacity: 0; }
}

#splash-video {
  width: min(360px, 68vw);
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
  animation: splashVideoIn 0.5s var(--ease-out) forwards;
}

@keyframes splashVideoIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

/* ── NAVBAR ────────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 52px;
  transition: background 0.35s ease,
              border-bottom 0.35s ease,
              backdrop-filter 0.35s ease;
}

#navbar.scrolled {
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-right: auto;
  text-decoration: none;
  cursor: none;
}

.nav-logo-img {
  height: 34px;
  width: auto;
}

.nav-logo-text {
  font-family: var(--font-heading);
  font-size: 24px;
  letter-spacing: 4px;
  color: var(--white);
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 9px 17px;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--white-60);
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
  cursor: none;
  white-space: nowrap;
  letter-spacing: 0.2px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
  background: var(--white-06);
}

.nav-chevron {
  font-size: 9px;
  opacity: 0.5;
  transition: transform 0.25s var(--ease-out);
  display: inline-block;
}

.nav-item:hover .nav-chevron {
  transform: rotate(180deg);
}

/* NAV DROPDOWN */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: #0e0e0e;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 7px;
  min-width: 210px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s var(--ease-out),
              transform 0.22s var(--ease-out),
              visibility 0.22s;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--white-60);
  transition: background 0.15s, color 0.15s;
  cursor: none;
}

.dropdown-link:hover {
  background: var(--orange-dim);
  color: var(--orange);
}

.dropdown-icon {
  font-size: 14px;
  width: 18px;
  text-align: center;
}

.nav-cta {
  margin-left: 22px;
  padding: 10px 26px;
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: none;
  transition: opacity 0.2s, transform 0.2s var(--ease-out);
  letter-spacing: 0.3px;
  white-space: nowrap;
  display: inline-block;
}

.nav-cta:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

/* MOBILE HAMBURGER */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: none;
  margin-left: auto;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--white);
  transition: transform 0.3s, opacity 0.3s;
}

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

/* ── SECTION COMMONS ───────────────────────────────────────── */
.section {
  padding: var(--section-pad) 52px;
  position: relative;
  overflow: hidden;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 11px;
  letter-spacing: 3.5px;
  color: var(--orange);
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(38px, 5.5vw, 68px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -1.5px;
  margin-bottom: 18px;
}

.section-title em {
  font-style: italic;
  color: var(--orange);
}

.section-desc {
  font-size: 16px;
  font-weight: 400;
  color: var(--white-60);
  line-height: 1.75;
  max-width: 520px;
}

/* ── BUTTONS ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: none;
  transition: all 0.22s var(--ease-out);
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.btn-primary {
  padding: 13px 30px;
  background: var(--orange);
  color: var(--white);
  font-size: 14px;
}

.btn-primary:hover {
  opacity: 0.88;
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(255,117,31,0.35);
}

.btn-outline {
  padding: 12px 28px;
  background: transparent;
  color: var(--white);
  font-size: 14px;
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--orange);
  background: var(--orange-dim);
  transform: translateY(-2px);
}

.btn-ghost {
  padding: 0;
  background: transparent;
  color: var(--white-60);
  font-size: 13px;
  gap: 7px;
}

.btn-ghost:hover {
  color: var(--orange);
}

.btn-ghost .btn-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  border-radius: 50%;
  font-size: 11px;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.btn-ghost:hover .btn-arrow {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
  transform: translateX(3px);
}

/* ── CARDS ─────────────────────────────────────────────────── */
.card {
  background: var(--black4);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s var(--ease-out);
  cursor: none;
}

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

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 80% 10%,
    var(--orange-dim),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 0;
}

.card:hover::before {
  opacity: 1;
}

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

/* ── DIVIDERS ──────────────────────────────────────────────── */
.divider {
  width: 100%;
  height: 1px;
  background: var(--border);
}

.divider-orange {
  width: 48px;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
}

/* ── TAGS / BADGES ─────────────────────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.tag-orange {
  background: var(--orange-dim);
  border: 1px solid rgba(255,117,31,0.25);
  color: var(--orange);
}

.tag-white {
  background: var(--white-06);
  border: 1px solid var(--border);
  color: var(--white-60);
}

.tag-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

/* ── ICON BOX ──────────────────────────────────────────────── */
.icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--orange-dim);
  border: 1px solid rgba(255,117,31,0.25);
  font-size: 22px;
  flex-shrink: 0;
}

/* ── SCROLL REVEAL ─────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s var(--ease-out),
              transform 0.7s var(--ease-out);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.7s var(--ease-out),
              transform 0.7s var(--ease-out);
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.7s var(--ease-out),
              transform 0.7s var(--ease-out);
}

/* stagger children */
.stagger > *:nth-child(1) { transition-delay: 0.05s; }
.stagger > *:nth-child(2) { transition-delay: 0.12s; }
.stagger > *:nth-child(3) { transition-delay: 0.19s; }
.stagger > *:nth-child(4) { transition-delay: 0.26s; }
.stagger > *:nth-child(5) { transition-delay: 0.33s; }
.stagger > *:nth-child(6) { transition-delay: 0.40s; }

/* ── FOOTER ────────────────────────────────────────────────── */
#footer {
  background: var(--black2);
  border-top: 1px solid var(--border);
  padding: 72px 52px 40px;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 52px;
  padding-bottom: 52px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

.footer-brand-name {
  font-family: var(--font-heading);
  font-size: 26px;
  letter-spacing: 4px;
  margin-bottom: 14px;
  display: block;
}

.footer-desc {
  font-size: 14px;
  color: var(--white-60);
  line-height: 1.75;
  margin-bottom: 22px;
  max-width: 270px;
}

.footer-socials {
  display: flex;
  gap: 9px;
}

.footer-social {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--white-60);
  transition: border-color 0.2s, background 0.2s, color 0.2s;
  cursor: none;
}

.footer-social:hover {
  border-color: var(--orange);
  background: var(--orange-dim);
  color: var(--orange);
}

.footer-col-title {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 18px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-link {
  font-size: 14px;
  color: var(--white-60);
  transition: color 0.2s;
  cursor: none;
}

.footer-link:hover {
  color: var(--orange);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-size: 13px;
  color: var(--white-30);
}

.footer-copy span {
  color: var(--orange);
}

/* ── UTILITY CLASSES ───────────────────────────────────────── */
.text-orange   { color: var(--orange); }
.text-muted    { color: var(--white-60); }
.text-display  { font-family: var(--font-display); }
.text-heading  { font-family: var(--font-heading); }
.text-body     { font-family: var(--font-body); }
.italic        { font-style: italic; }
.fw-700        { font-weight: 700; }
.fw-600        { font-weight: 600; }
.d-flex        { display: flex; }
.align-center  { align-items: center; }
.gap-12        { gap: 12px; }
.gap-20        { gap: 20px; }
.mt-20         { margin-top: 20px; }
.mt-40         { margin-top: 40px; }
.mt-60         { margin-top: 60px; }
.mb-20         { margin-bottom: 20px; }
.mb-40         { margin-bottom: 40px; }

/* ── PAGE HERO COMMONS ─────────────────────────────────────── */
.page-hero {
  min-height: 52vh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--nav-h) + 80px) 52px 70px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.page-hero-inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.page-hero-bg-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(
    ellipse,
    rgba(255,117,31,0.08) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

.page-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  z-index: 0;
  mask-image: radial-gradient(
    ellipse 80% 80% at 50% 50%,
    black 30%,
    transparent 100%
  );
}

/* ── SCROLL PROGRESS BAR ───────────────────────────────────── */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--orange);
  z-index: 10001;
  width: 0%;
  transition: width 0.1s linear;
}

/* ── BACK TO TOP ───────────────────────────────────────────── */
#back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  background: var(--orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: white;
  cursor: none;
  z-index: 999;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s var(--ease-out);
}

#back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

#back-to-top:hover {
  transform: translateY(-3px);
}

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .section { padding: 80px 36px; }
  #navbar  { padding: 0 36px; }
  #footer  { padding: 60px 36px 36px; }
  .page-hero { padding: calc(var(--nav-h) + 60px) 36px 50px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 768px) {
  :root { --section-pad: 64px; }

  .section { padding: 64px 22px; }
  #navbar  { padding: 0 22px; }
  #footer  { padding: 52px 22px 28px; }
  .page-hero { padding: calc(var(--nav-h) + 40px) 22px 40px; }

  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }

  .section-title { letter-spacing: -0.8px; }

  #back-to-top { bottom: 20px; right: 20px; }
}

/* MOBILE NAV OVERLAY */
#mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 998;
  flex-direction: column;
  padding: calc(var(--nav-h) + 32px) 28px 40px;
  overflow-y: auto;
}

#mobile-nav.open {
  display: flex;
}

.mobile-nav-link {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--white-60);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
  cursor: none;
}

.mobile-nav-link:hover {
  color: var(--orange);
}

.mobile-nav-sub {
  display: flex;
  flex-direction: column;
  padding: 8px 0 8px 18px;
  gap: 4px;
}

.mobile-nav-sub a {
  font-size: 15px;
  color: var(--white-30);
  padding: 6px 0;
  transition: color 0.2s;
}

.mobile-nav-sub a:hover {
  color: var(--orange);
}