/* ==========================================================================
   V&D TECH — PREMIUM STYLESHEET
   Style direction: quiet luxury, editorial spacing, restrained motion.
   Palette is locked to the brief's tokens below — do not introduce new colors.
   NOTE: hero-redesign.css loads after this file and owns the fine-grained
   hero visuals (3D canvas, glass cards, magnetic buttons). The rules in this
   file provide a complete, non-broken baseline for every hero selector so the
   page still looks correct even if that file is absent, but hero-redesign.css
   is free to refine anything under .hero-section-new.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Manrope:wght@500;600;700&display=swap');

/* ---------------------------------------------------------------------- */
/* Tokens                                                                  */
/* ---------------------------------------------------------------------- */
:root {
  /* Brief palette — the only colors used anywhere on this site */
  --bg: #F2EDE6;
  --surface: #ECE7DF;
  --primary: #05101A;
  --secondary: #343B42;
  --text: #616262;
  --muted: #A9A8A6;
  --border: #C8C4BA;
  --accent: #8E8278;

  /* Aliases so existing inline styles in index.html resolve correctly
     (these all point back at the same locked palette above) */
  --background: var(--bg);
  --white: var(--surface);
  --color-navy: var(--primary);
  --primary-dark: var(--primary);
  --secondary-dark: var(--secondary);
  --color-light-gray: var(--surface);

  /* Alternating section backgrounds ("Warm Ivory" / "Soft Cream") */
  --warm-ivory: var(--bg);
  --soft-cream: var(--surface);

  /* Typography */
  --font-head: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-nav: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Premium glass navbar */
  --nav-top: 16px;
  --nav-height: 72px;
  --nav-height-scrolled: 64px;
  --nav-max-w: 1400px;

  /* Rhythm */
  --container-w: 1280px;
  --section-space: 120px;
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 600ms;

  /* Elevation */
  --shadow-sm: 0 4px 16px rgba(5, 16, 26, 0.05);
  --shadow-md: 0 12px 32px rgba(5, 16, 26, 0.08);
  --shadow-lg: 0 24px 60px rgba(5, 16, 26, 0.12);
}

/* ---------------------------------------------------------------------- */
/* Reset & Base                                                            */
/* ---------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--primary);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

p { margin: 0 0 16px; color: var(--text); }

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

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

ul { list-style: none; margin: 0; padding: 0; }

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

/* Custom scrollbar, in palette colors */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: var(--muted);
  border-radius: 10px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: var(--accent); }
html { scrollbar-width: thin; scrollbar-color: var(--muted) var(--bg); }

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 32px;
}

section { position: relative; }

.sec-white, .sec-light-gray {
  padding: var(--section-space) 0;
}

.sec-white { background: var(--warm-ivory); }
.sec-light-gray { background: var(--soft-cream); }

.sec-navy {
  background: var(--primary);
  color: var(--surface);
  padding: 140px 0;
  position: relative;
  overflow: hidden;
}

.fine-grid {
  position: absolute;
  inset: 0;
  background-image: none;
  opacity: 0.15;
  pointer-events: none;
}

.sec-navy .fine-grid {
  display: none;
}

/* Ambient background mesh used site-wide */
.global-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.mesh-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 20% 10%, rgba(142, 130, 120, 0.14), transparent 60%),
    radial-gradient(ellipse 50% 40% at 85% 30%, rgba(52, 59, 66, 0.10), transparent 60%);
  filter: blur(40px);
}

/* ---------------------------------------------------------------------- */
/* Loader                                                                  */
/* ---------------------------------------------------------------------- */
#loader {
  position: fixed;
  inset: 0;
  z-index: 10005;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 700ms var(--ease), visibility 700ms var(--ease);
}

#loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-content {
  text-align: center;
}

.loader-logo {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: var(--primary);
  margin-bottom: 20px;
}

.loader-bar {
  width: 180px;
  height: 2px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin: 0 auto;
}

.loader-fill {
  width: 0%;
  height: 100%;
  background: var(--accent);
  transition: width 1.1s var(--ease);
}

/* ---------------------------------------------------------------------- */
/* Header / Navigation — premium sticky glass pill                         */
/* ---------------------------------------------------------------------- */
#site-header {
  position: fixed;
  top: var(--nav-top);
  left: 50%;
  transform: translateX(-50%);
  z-index: 10001;
  width: 92%;
  max-width: var(--nav-max-w);
  pointer-events: none;
}

.navbar {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--nav-height);
  padding: 0 28px 0 32px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.95),
    0 10px 40px rgba(5, 16, 26, 0.08);
  transition:
    height 350ms var(--ease),
    box-shadow 350ms var(--ease),
    backdrop-filter 350ms var(--ease),
    -webkit-backdrop-filter 350ms var(--ease);
}

#site-header.scrolled .navbar {
  height: var(--nav-height-scrolled);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.95),
    0 18px 50px rgba(5, 16, 26, 0.12);
}

.nav-logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: 8px;
}

.header-logo-img {
  height: 30px;
  width: auto;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-links > li > a {
  font-family: var(--font-nav);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.3px;
  color: var(--primary);
  padding: 14px 22px;
  border-radius: 999px;
  white-space: nowrap;
  transition:
    background 250ms var(--ease),
    color 250ms var(--ease),
    box-shadow 250ms var(--ease),
    font-weight 250ms var(--ease),
    transform 250ms var(--ease);
}

.nav-links > li > a:not(.nav-cta):hover {
  background: rgba(255, 255, 255, 0.55);
}

.nav-links > li > a.active:not(.nav-cta) {
  background: #ffffff;
  font-weight: 600;
  box-shadow: 0 2px 12px rgba(5, 16, 26, 0.06);
}

.nav-cta {
  background: var(--primary);
  color: #ffffff !important;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 500;
  margin-left: 8px;
}

.nav-cta:hover {
  background: var(--secondary);
  transform: scale(1.03) translateY(-1px);
}

.hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.95);
  z-index: 10001;
  transition: background 250ms var(--ease), transform 250ms var(--ease);
}

.hamburger:hover {
  background: rgba(255, 255, 255, 0.72);
}

.hamburger-icon {
  position: relative;
  width: 16px;
  height: 10px;
}

.hamburger-icon span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--primary);
  border-radius: 2px;
  transition: transform 300ms var(--ease), opacity 300ms var(--ease), top 300ms var(--ease);
}

.hamburger-icon span:nth-child(1) { top: 0; }
.hamburger-icon span:nth-child(2) { top: 4px; }
.hamburger-icon span:nth-child(3) { top: 8px; }

.hamburger[aria-expanded="true"] .hamburger-icon span:nth-child(1) {
  top: 4px;
  transform: rotate(45deg);
}

.hamburger[aria-expanded="true"] .hamburger-icon span:nth-child(2) {
  opacity: 0;
}

.hamburger[aria-expanded="true"] .hamburger-icon span:nth-child(3) {
  top: 4px;
  transform: rotate(-45deg);
}

/* ---------------------------------------------------------------------- */
/* Mobile menu — fullscreen glass                                          */
/* ---------------------------------------------------------------------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 10000;
  visibility: hidden;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  opacity: 0;
  transition:
    opacity 400ms var(--ease),
    visibility 400ms var(--ease);
}

.mobile-menu.open {
  visibility: visible;
  pointer-events: auto;
  opacity: 1;
}

/* Make navbar container transparent when mobile menu is open, so logo and close X sit cleanly on overlay */
body.mobile-menu-open .navbar {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.mobile-menu-inner {
  width: 100%;
  height: 100%;
  padding: calc(var(--nav-top) + var(--nav-height) + 32px) 32px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.mobile-menu-header {
  margin-bottom: 8px;
  flex-shrink: 0;
}

.mobile-menu-subtitle {
  font-family: var(--font-nav);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
  width: 100%;
  max-width: 320px;
  margin: 0;
}

.mobile-menu-links a {
  font-family: var(--font-nav);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.3px;
  color: var(--primary);
  padding: 14px 28px;
  border-radius: 999px;
  width: 100%;
  transition: background 250ms var(--ease), box-shadow 250ms var(--ease), font-weight 250ms var(--ease);
}

.mobile-menu-links a:hover {
  background: rgba(255, 255, 255, 0.55);
}

.mobile-menu-links a.active {
  background: #ffffff;
  font-weight: 600;
  box-shadow: 0 2px 12px rgba(5, 16, 26, 0.06);
}

.mobile-menu-links .mobile-menu-cta {
  margin-top: 12px;
  background: var(--primary);
  color: #ffffff;
  font-weight: 500;
}

.mobile-menu-links .mobile-menu-cta:hover {
  background: var(--secondary);
  transform: scale(1.03) translateY(-1px);
}

.mobile-menu-footer {
  margin-top: 0;
  padding-top: 24px;
  border-top: 1px solid rgba(200, 196, 186, 0.45);
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  max-width: 320px;
  flex-shrink: 0;
}

.mobile-menu-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.menu-footer-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 4px;
}

.mobile-menu-contact a,
.mobile-menu-socials a {
  font-size: 14px;
  color: var(--secondary);
}

.mobile-menu-socials a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ---------------------------------------------------------------------- */
/* Hero (baseline — refined further by hero-redesign.css)                  */
/* ---------------------------------------------------------------------- */
.hero-section-new {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 160px 0 80px;
  background: var(--bg);
  overflow: hidden;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 45% at 15% 20%, rgba(142, 130, 120, 0.16), transparent 65%),
    radial-gradient(ellipse 50% 50% at 90% 80%, rgba(52, 59, 66, 0.12), transparent 65%);
  z-index: 0;
}

.hero-grid-pattern {
  position: absolute;
  inset: 0;
  background-image: none;
  opacity: 0.12;
  z-index: 0;
}

.hero-noise { display: none; }

.hero-container-new { position: relative; z-index: 2; }

.hero-content-wrapper {
  max-width: 780px;
}

.hero-main-title {
  font-size: clamp(40px, 5.4vw, 72px);
  font-weight: 600;
  color: var(--primary);
}

.title-row { display: block; overflow: hidden; }

.word-reveal {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%);
  animation: wordUp 700ms var(--ease) forwards;
}

.title-row:nth-child(2) .word-reveal { animation-delay: 120ms; }

@keyframes wordUp {
  to { opacity: 1; transform: translateY(0); }
}

.hero-subtext {
  font-size: 18px;
  max-width: 520px;
  color: var(--text);
  margin-top: 24px;
  opacity: 0;
  animation: fadeUpIn 700ms var(--ease) forwards;
  animation-delay: 500ms;
}

.hero-btn-group {
  display: flex;
  gap: 16px;
  margin-top: 40px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUpIn 700ms var(--ease) forwards;
  animation-delay: 650ms;
}

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

.btn-magnetic-wrap { display: inline-block; }

.btn-new {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 300ms var(--ease), box-shadow 300ms var(--ease), background 300ms var(--ease);
}

.btn-new-primary {
  background: var(--primary);
  color: var(--bg);
  box-shadow: var(--shadow-sm);
}

.btn-new-primary:hover {
  background: var(--secondary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn-new-secondary {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--border);
}

.btn-new-secondary:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  background: rgba(142, 130, 120, 0.06);
}

.btn-glow { display: none; }
.btn-icon { width: 16px; height: 16px; }

/* Floating glass cards */
.floating-glass-card {
  position: absolute;
  width: 230px;
  background: linear-gradient(135deg, rgba(236, 231, 223, 0.07) 0%, rgba(236, 231, 223, 0.02) 100%);
  border: 1px solid rgba(236, 231, 223, 0.08);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 16px 40px rgba(5, 16, 26, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  z-index: 3;
  transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
  transform-style: preserve-3d;
  perspective: 1000px;
}

.floating-glass-card:hover {
  border-color: rgba(236, 231, 223, 0.22);
  box-shadow: 0 24px 60px rgba(5, 16, 26, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 0 20px rgba(142, 130, 120, 0.12);
}

.card-perf { top: 12%; right: 6%; }
.card-brand { top: 42%; right: 1%; }
.card-dev { bottom: 18%; right: 10%; }
.card-seo { top: 24%; right: 26%; }

.card-inner { 
  padding: 22px; 
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

.card-header-icon {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.card-icon { 
  width: 15px; 
  height: 15px; 
  color: var(--accent); 
  filter: drop-shadow(0 0 6px rgba(142, 130, 120, 0.3));
}
.card-icon.gold { color: var(--accent); }

.card-tag {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
}

.card-stat {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 700;
  color: var(--surface);
  line-height: 1.2;
}

.card-label {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.card-graph {
  height: 5px;
  background: rgba(236, 231, 223, 0.12);
  border-radius: 4px;
  margin-top: 12px;
  overflow: hidden;
}

.graph-line-fill {
  width: 99%;
  height: 100%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(142, 130, 120, 0.5);
}

.brand-logo-preview {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 700;
  color: var(--surface);
}

.code-preview {
  font-size: 10.5px;
  color: var(--surface);
  background: rgba(5, 16, 26, 0.55);
  border: 1px solid rgba(236, 231, 223, 0.06);
  padding: 10px;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  margin: 0;
  font-family: monospace;
}

.code-preview .gold { color: var(--accent); }

.seo-ranking {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ranking-num {
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 700;
  color: var(--surface);
  line-height: 1.2;
}

.trend-icon { 
  width: 18px; 
  height: 18px; 
  color: var(--accent);
  filter: drop-shadow(0 0 6px rgba(142, 130, 120, 0.3));
}

.cards-grid-mobile {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 48px;
}

.cards-grid-mobile .floating-glass-card {
  position: static;
  width: auto;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--muted);
  z-index: 2;
  animation: bob 2.4s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

.scroll-arrow-icon { width: 14px; height: 14px; }

/* ---------------------------------------------------------------------- */
/* Section heads                                                           */
/* ---------------------------------------------------------------------- */
.section-head { max-width: 640px; }

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  position: relative;
  padding-left: 20px;
}

.section-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 12px;
  height: 1px;
  background: var(--accent);
}

.sec-navy .section-label { color: var(--accent); }

.section-title {
  font-size: clamp(28px, 3.4vw, 42px);
}

.sec-navy .section-title,
.sec-navy h2 { color: var(--surface); }

.section-subtitle {
  font-size: 16px;
  color: var(--text);
}

.sec-navy .section-subtitle,
.sec-navy p { color: rgba(236, 231, 223, 0.75); }

/* ---------------------------------------------------------------------- */
/* Cards                                                                   */
/* ---------------------------------------------------------------------- */
.vd-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  transition: transform 400ms var(--ease), box-shadow 400ms var(--ease), border-color 400ms var(--ease);
}

.vd-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.vd-card h3 { font-size: 20px; }
.vd-card p { font-size: 15px; color: var(--text); }

/* ---------------------------------------------------------------------- */
/* Buttons (generic .btn used in body content)                             */
/* ---------------------------------------------------------------------- */
@property --angle-1 {
  syntax: "<angle>";
  inherits: false;
  initial-value: -75deg;
}

@property --angle-2 {
  syntax: "<angle>";
  inherits: false;
  initial-value: -45deg;
}

.btn {
  --border-width: clamp(1.5px, 0.08em, 2.5px);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
  transition: all 400ms cubic-bezier(0.25, 1, 0.5, 1);
  cursor: pointer;
  z-index: 1;
  overflow: visible;
  text-decoration: none;
}

.btn svg, .btn i { width: 16px; height: 16px; position: relative; z-index: 2; }

/* Border outline using conic-gradient for premium glowing effect */
.btn::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  border-radius: 999px;
  width: calc(100% + var(--border-width) * 2);
  height: calc(100% + var(--border-width) * 2);
  top: calc(0% - var(--border-width));
  left: calc(0% - var(--border-width));
  padding: var(--border-width);
  box-sizing: border-box;
  background: conic-gradient(
      from var(--angle-1) at 50% 50%,
      var(--accent),
      transparent 12% 38%,
      var(--accent) 50%,
      transparent 62% 88%,
      var(--accent)
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05));
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  transition: all 400ms cubic-bezier(0.25, 1, 0.5, 1), --angle-1 500ms ease;
  pointer-events: none;
  opacity: 0.8;
}

.btn:hover::before {
  --angle-1: -125deg;
  opacity: 1;
}

.btn:active::before {
  --angle-1: -75deg;
}

/* Diagonal reflection sweep on hover */
.btn::after {
  content: "";
  display: block;
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  border-radius: 999px;
  overflow: hidden;
  background: linear-gradient(
    var(--angle-2),
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 40% 50%,
    rgba(255, 255, 255, 0) 60%
  );
  z-index: -1;
  mix-blend-mode: screen;
  pointer-events: none;
  background-size: 200% 200%;
  background-position: 0% 50%;
  background-repeat: no-repeat;
  transition:
    background-position 600ms cubic-bezier(0.25, 1, 0.5, 1),
    --angle-2 600ms cubic-bezier(0.25, 1, 0.5, 1),
    opacity 400ms ease;
  opacity: 0;
}

.btn:hover::after {
  background-position: 100% 50%;
  opacity: 1;
}

.btn:active::after {
  background-position: 100% 15%;
  --angle-2: -15deg;
}

/* 3D active click state */
.btn:active {
  transform: scale(0.975) translateY(1px);
}

/* Primary Button Style (Solid but Premium) */
.btn-primary {
  background: var(--primary);
  color: var(--bg);
  box-shadow: 
    inset 0 1px 1px rgba(255, 255, 255, 0.15),
    0 4px 12px rgba(5, 16, 26, 0.15);
}

.btn-primary:hover {
  background: var(--secondary);
  box-shadow: 
    inset 0 1px 1px rgba(255, 255, 255, 0.2),
    0 8px 24px rgba(5, 16, 26, 0.25);
  transform: translateY(-2px) scale(0.985);
}

/* Secondary Button Style (Transparent Glass) */
.btn-secondary {
  background: rgba(5, 16, 26, 0.03);
  color: var(--primary);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 
    inset 0 1px 1px rgba(255, 255, 255, 0.4),
    0 2px 6px rgba(5, 16, 26, 0.05);
}

.btn-secondary:hover {
  background: rgba(5, 16, 26, 0.08);
  box-shadow: 
    inset 0 1px 1px rgba(255, 255, 255, 0.5),
    0 6px 18px rgba(5, 16, 26, 0.1);
  transform: translateY(-2px) scale(0.985);
}

/* Navy context button overrides (for dark sections) */
.sec-navy .btn-primary {
  background: var(--surface);
  color: var(--primary);
}

.sec-navy .btn-primary:hover {
  background: var(--bg);
}

.sec-navy .btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--surface);
  box-shadow: 
    inset 0 1px 1px rgba(255, 255, 255, 0.1),
    0 2px 6px rgba(0, 0, 0, 0.2);
}

.sec-navy .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ---------------------------------------------------------------------- */
/* Footer CTA                                                              */
/* ---------------------------------------------------------------------- */
.footer-cta { text-align: center; }

.footer-cta-inner {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-cta-inner h2 {
  color: var(--surface);
  font-size: clamp(30px, 4vw, 46px);
  margin-top: 12px;
}

.footer-cta-inner p {
  color: rgba(236, 231, 223, 0.75);
  font-size: 16px;
  max-width: 520px;
  margin: 0 auto 8px;
}

.cta-bg-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 60% at 50% 30%, rgba(142, 130, 120, 0.18), transparent 70%);
  pointer-events: none;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

/* ---------------------------------------------------------------------- */
/* Footer                                                                  */
/* ---------------------------------------------------------------------- */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding-top: 100px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 64px;
}

.footer-brand { max-width: 340px; }
.footer-logo-img { margin-bottom: 20px; }
.footer-brand p {
  max-width: 310px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.footer-social-link {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  transition: border-color 300ms var(--ease), color 300ms var(--ease), transform 300ms var(--ease);
}

.footer-social-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-3px);
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 20px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 12px; }

.footer-col ul a {
  font-size: 14px;
  color: var(--muted);
  transition: color 300ms var(--ease);
}

.footer-col ul a:hover { color: var(--accent); }

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.footer-contact-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--secondary);
}

.footer-contact-item svg,
.footer-contact-item i { margin-top: 2px; color: var(--accent); }

.footer-contact-item a,
.footer-contact-item p {
  font-size: 14px;
  color: var(--muted);
  display: block;
  margin: 0;
}

.footer-contact-item a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.footer-bottom-links { display: flex; gap: 24px; }

.footer-bottom-links a {
  font-size: 13px;
  color: var(--muted);
  transition: color 300ms var(--ease);
}

.footer-bottom-links a:hover { color: var(--accent); }

/* ---------------------------------------------------------------------- */
/* Reveal-on-scroll (driven by IntersectionObserver in script.js)          */
/* ---------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.reveal.fade-left { transform: translateX(-28px); }
.reveal.fade-left.in-view { transform: translateX(0); }

.reveal.fade-right { transform: translateX(28px); }
.reveal.fade-right.in-view { transform: translateX(0); }

/* ---------------------------------------------------------------------- */
/* Back to top                                                             */
/* ---------------------------------------------------------------------- */
#back-to-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 350ms var(--ease), transform 350ms var(--ease), background 300ms var(--ease), visibility 350ms;
}

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

#back-to-top:hover { background: var(--secondary); }
#back-to-top svg, #back-to-top i { width: 18px; height: 18px; }

/* ---------------------------------------------------------------------- */
/* Responsive                                                              */
/* ---------------------------------------------------------------------- */
@media (max-width: 1200px) {
  :root { --section-space: 96px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { max-width: 100%; grid-column: 1 / -1; }
}

@media (max-width: 1100px) {
  .navbar { padding: 0 20px 0 24px; gap: 16px; }
  .nav-links { gap: 2px; }
  .nav-links > li > a:not(.nav-cta) { padding: 12px 16px; font-size: 14px; }
  .nav-cta { padding: 12px 22px; margin-left: 4px; }
  .header-logo-img { height: 28px; }
}

@media (max-width: 960px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .navbar { padding: 0 12px 0 20px; }
  .floating-glass-card:not(.cards-grid-mobile .floating-glass-card) { display: none; }
  .cards-grid-mobile { display: grid; }
  .hero-section-new { padding: 140px 0 60px; min-height: auto; }
}

@media (max-width: 768px) {
  :root { --section-space: 72px; }
  .container { padding: 0 24px; }
  .navbar { padding: 0 10px 0 18px; }
  #site-header { width: 94%; }
  footer { padding-top: 80px; }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 0;
    padding-bottom: 44px;
  }
  .footer-brand {
    max-width: none;
    text-align: center;
    padding-bottom: 30px;
  }
  .footer-logo-img { margin: 0 auto 18px; }
  .footer-brand p {
    max-width: 34rem;
    margin-left: auto;
    margin-right: auto;
    font-size: 14.5px;
  }
  .footer-socials {
    justify-content: center;
    margin-top: 18px;
  }
  .footer-social-link {
    width: 42px;
    height: 42px;
  }
  .footer-col {
    text-align: center;
    padding: 26px 0;
    border-top: 1px solid rgba(200, 196, 186, 0.62);
  }
  .footer-col h4 { margin-bottom: 14px; }
  .footer-col ul {
    align-items: center;
    gap: 4px;
  }
  .footer-col ul a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 2px 6px;
  }
  .footer-contact-list {
    width: min(100%, 340px);
    margin: 0 auto;
    gap: 14px;
  }
  .footer-contact-item {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 10px;
    text-align: left;
  }
  .footer-contact-item svg,
  .footer-contact-item i {
    justify-self: center;
  }
  .footer-contact-item div { min-width: 0; }
  .footer-contact-item a,
  .footer-contact-item p {
    line-height: 1.55;
    overflow-wrap: anywhere;
  }
  .footer-bottom {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 24px 0;
    text-align: center;
  }
  .footer-bottom-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 18px;
  }
  .cards-grid-mobile { grid-template-columns: 1fr; }
  #back-to-top { right: 18px; bottom: 18px; width: 42px; height: 42px; }
}

@media (max-width: 480px) {
  .hero-main-title { font-size: 34px; }
  .hero-btn-group { flex-direction: column; align-items: stretch; }
  .btn-new { justify-content: center; }
  .btn {
    width: 100%;
    min-height: 58px;
    padding: 16px 22px;
    white-space: normal;
  }

  .footer-cta {
    padding-left: 0;
    padding-right: 0;
  }

  .footer-cta-inner {
    max-width: none;
    padding: 0 18px;
  }

  .footer-cta-inner h2 {
    font-size: clamp(31px, 10vw, 40px);
  }

  .footer-cta-inner p {
    font-size: 15px;
  }

  .cta-buttons {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  footer { padding-top: 64px; }
  .footer-inner { padding-bottom: 28px; }
  .footer-brand p { max-width: 100%; }
  .footer-col { padding: 24px 0; }
  .footer-bottom { gap: 12px; }
  .footer-bottom-links { gap: 8px 16px; }
}

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