/* ==========================================================================
   VESPER-INSPIRED DESIGN SYSTEM & COMPONENT LIBRARY
   Kartik Digital Marketing Portfolio
   ========================================================================== */

/* Exact Font Declarations with fallbacks */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/instrument-serif-italic.woff2") format("woff2");
}

/* Fallback Google Fonts import */
@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Instrument+Serif:ital@1&display=swap");

:root {
  --bg: #000000;
  --text: #ffffff;
  --muted: #9a9a9a;
  --stat: #d8d8d8;
  --border: rgba(255, 255, 255, 0.16);
  --border-soft: rgba(255, 255, 255, 0.08);

  --logo: 15.5px;
  --logo-mark: 22px;
  --nav: 14px;
  --nav-h: 40px;
  --btn: 13.5px;
  --btn-h: 40px;
  --hero-btn-h: 42px;
  --h1: 48px;
  --lede: 15.5px;
  --badge: 12.5px;
  --stat-size: 13.5px;
  --header-y: 22px;
  --header-x: 40px;
  --stats-x: 72px;
  --stats-y: 36px;
  --hero-gap: 85px;
  --copy-max: 860px;
  --lede-max: 470px;
  
  /* Additional Premium Portfolio Tokens */
  --glow-1: rgba(186, 208, 255, 0.06);
  --glow-2: rgba(120, 140, 180, 0.04);
  --card-bg: rgba(255, 255, 255, 0.02);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-hover-border: rgba(255, 255, 255, 0.2);
}

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

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
  min-height: 100%;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

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

/* Page wrapper structure */
.page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

.hero-viewport {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  position: relative;
  z-index: 10;
  justify-content: space-between;
}

@media (max-width: 900px) {
  .hero-viewport {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
  }
}

/* Ambient Cinematic Space Background */
.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  background: #000;
  overflow: hidden;
  pointer-events: none;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.3;
  mix-blend-mode: screen;
  animation: float-ambient 24s infinite alternate ease-in-out;
}

.orb-1 {
  top: -10%;
  left: 20%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(90,110,150,0.2) 0%, rgba(0,0,0,0) 70%);
  animation-duration: 20s;
}

.orb-2 {
  bottom: -15%;
  right: 10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(120,80,140,0.12) 0%, rgba(0,0,0,0) 70%);
  animation-duration: 28s;
  animation-delay: -5s;
}

.orb-3 {
  top: 40%;
  left: -10%;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, rgba(60,130,120,0.1) 0%, rgba(0,0,0,0) 70%);
  animation-duration: 22s;
  animation-delay: -10s;
}

@keyframes float-ambient {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(4%, 6%) scale(1.1);
  }
  100% {
    transform: translate(-3%, -4%) scale(0.95);
  }
}

/* Noise overlay */
.grain {
  position: fixed;
  inset: -50%;
  z-index: 100;
  pointer-events: none;
  opacity: 0.075;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  transform: rotate(7deg);
}

/* Header style styling */
.header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: var(--header-y) var(--header-x) 10px;
  z-index: 50;
  position: relative;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  justify-self: start;
  font-size: var(--logo);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #fff;
}

.logo-mark {
  width: var(--logo-mark);
  height: var(--logo-mark);
  flex: 0 0 auto;
}

.logo-suffix {
  font-weight: 400;
  color: var(--muted);
}

#site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: center;
}

#site-nav a {
  height: var(--nav-h);
  padding: 0 18px;
  border-radius: 7px;
  overflow: hidden;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(198, 198, 198, 0.16);
  background: linear-gradient(105deg, #050505 0%, #1a1a1a 48%, #2d2d2d 100%);
  color: #f3f3f3;
  font-size: var(--nav);
  font-weight: 400;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: background .35s ease, border-color .35s ease, box-shadow .35s ease;
}

#site-nav a::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.08) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .6s ease;
  pointer-events: none;
}

#site-nav a.active {
  border-color: rgba(255, 255, 255, 0.4);
  background: linear-gradient(105deg, #111 0%, #2a2a2a 45%, #4a4a4a 100%);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.06);
}

#site-nav a:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: linear-gradient(105deg, #111 0%, #252525 45%, #4a4a4a 100%);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.08);
}

#site-nav a:hover::before {
  transform: translateX(120%);
}

.header-cta {
  justify-self: end;
}

/* Premium Buttons */
.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--btn-h);
  padding: 0 16px;
  border-radius: 6px;
  font-size: var(--btn);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background .35s ease, border .35s ease, box-shadow .35s ease, color .35s ease, transform .2s ease;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 20%, rgba(255,255,255,0.45) 48%, transparent 76%);
  transform: translateX(-130%);
  transition: transform .65s ease;
  pointer-events: none;
  z-index: -1;
}

.btn:hover::after {
  transform: translateX(130%);
}

.btn-solid {
  background: linear-gradient(180deg, #ffffff 0%, #e7e7e7 48%, #cfcfcf 100%);
  color: #111;
  border: 1px solid #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.95);
}

.btn-solid:hover {
  background: linear-gradient(180deg, #fff 0%, #f3f6ff 42%, #d5def2 100%);
  border-color: #f2f6ff;
  box-shadow: inset 0 1px 0 #fff, 0 0 22px rgba(186,208,255,0.35), 0 8px 18px rgba(255,255,255,0.12);
  transform: translateY(-1px);
}

.btn-solid:active {
  transform: translateY(0);
}

.btn-ghost {
  background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(0,0,0,0.6) 50%, rgba(160,175,200,0.04));
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.btn-ghost:hover {
  background: linear-gradient(135deg, rgba(210,225,255,0.12), rgba(0,0,0,0.5) 48%, rgba(180,195,220,0.08));
  border-color: rgba(220,230,255,0.5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.15), 0 0 20px rgba(170,200,255,0.12);
  transform: translateY(-1px);
}

.btn-ghost:active {
  transform: translateY(0);
}

/* Burger Mobile Menu Button */
.burger {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: rgba(8,8,8,0.55);
  z-index: 60;
  cursor: pointer;
}

.burger-lines {
  display: grid;
  gap: 5px;
}

.burger-lines span {
  width: 16px;
  height: 1.5px;
  border-radius: 1px;
  background: #fff;
  transition: transform .25s ease, opacity .2s ease;
}

.burger:hover {
  border-color: rgba(255,255,255,0.32);
  background: rgba(255,255,255,0.05);
}

body.menu-open {
  overflow: hidden;
}

body.menu-open .burger-lines span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

body.menu-open .burger-lines span:nth-child(2) {
  opacity: 0;
}

body.menu-open .burger-lines span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.menu-backdrop {
  display: none;
}

/* Main Hero Area (1st Viewport Layout) */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px var(--hero-gap);
  min-height: 0;
  flex-grow: 1;
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: var(--copy-max);
  width: 100%;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  padding: 9px 15px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 5px;
  background: linear-gradient(90deg, #3a3a3a 0%, #1c1c1c 52%, #050505 100%);
  color: #e5e5e5;
  font-size: var(--badge);
  font-weight: 400;
  letter-spacing: -0.01em;
}

.badge-star {
  width: 18px;
  height: 20px;
  flex: 0 0 auto;
  filter: drop-shadow(0 0 3px rgba(255,255,255,0.45));
  animation: in-star .9s cubic-bezier(0.16,1,0.3,1) .28s both;
}

.headline {
  width: 100%;
}

.headline-line {
  display: block;
  overflow: hidden;
  padding: 0.06em 0.15em 0.14em;
}

.headline-line > span {
  display: block;
}

.hero h1 {
  font-size: var(--h1);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.12;
  color: #fff;
}

.hero h1 em {
  font-family: "Instrument Serif", "Times New Roman", Times, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.08em;
  letter-spacing: -0.03em;
  color: #9a9a9a;
  display: inline-block;
  animation: in-em 1.2s cubic-bezier(0.16,1,0.3,1) .72s both;
}

.lede {
  max-width: var(--lede-max);
  margin-top: 18px;
  color: var(--muted);
  font-size: var(--lede);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -0.015em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}

.hero-actions .btn {
  height: var(--hero-btn-h);
  padding: 0 18px;
}

.hero-actions .btn-solid:hover {
  box-shadow: inset 0 1px 0 #fff, 0 0 26px rgba(186,208,255,0.4), 0 8px 18px rgba(255,255,255,0.14);
}

.hero-actions .btn-ghost {
  background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(0,0,0,0.5) 46%, rgba(150,170,200,0.1));
  border-color: rgba(198,198,198,0.3);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.hero-actions .btn-ghost:hover {
  border-color: rgba(220,230,255,0.6);
  box-shadow: 0 0 24px rgba(170,200,255,0.18);
}

/* Footer stats alignment */
.stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 var(--stats-x) var(--stats-y);
  padding-bottom: max(var(--stats-y), env(safe-area-inset-bottom));
  color: var(--stat);
  position: relative;
  z-index: 5;
}

.stat {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: var(--stat-size);
  letter-spacing: -0.015em;
  white-space: nowrap;
}

.stat-num {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-size: 1.6em;
  color: #fff;
  margin-right: -4px;
}

.stat-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.stat-icon path, .stat-icon rect, .stat-icon circle {
  fill: none;
  stroke: rgba(255,255,255,0.4);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stat-icon.filled path {
  fill: rgba(255,255,255,0.1);
}

/* Page Layout Components (Sub-sections of Home and Pages) */
.section {
  position: relative;
  z-index: 10;
  padding: 100px var(--header-x);
  border-top: 1px solid var(--border-soft);
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(5,5,5,0.6) 100%);
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.section-header {
  max-width: 600px;
  margin-bottom: 60px;
}

.section-tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
  display: block;
  margin-bottom: 12px;
  font-weight: 600;
}

.section-title {
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 18px;
}

.section-title em {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  color: var(--muted);
  font-weight: 400;
}

.section-desc {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

/* Glassmorphic Grid Cards */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 32px;
  transition: border-color 0.4s ease, background-color 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
  overflow: hidden;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 240px;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(800px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(255, 255, 255, 0.05), transparent 40%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

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

.card:hover {
  border-color: var(--card-hover-border);
  background: rgba(255,255,255,0.03);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.4), 0 0 20px rgba(255,255,255,0.02);
}

.card-icon {
  margin-bottom: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.card:hover .card-icon {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.card-title {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: #fff;
}

.card-desc {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: auto;
}

.card-tag {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.card-tag::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--muted);
}

.card-link {
  margin-top: 20px;
  align-self: flex-start;
  font-size: 13.5px;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, gap 0.3s ease;
}

.card-link svg {
  transition: transform 0.3s ease;
}

.card:hover .card-link {
  border-color: rgba(255,255,255,0.6);
  gap: 9px;
}

.card:hover .card-link svg {
  transform: translateX(2px);
}

/* Feature Showcase Splits */
.showcase-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.showcase-visual {
  position: relative;
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0) 100%);
  padding: 40px;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.showcase-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(100,120,160,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.capabilities-list {
  display: grid;
  gap: 20px;
}

.capability-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: rgba(255,255,255,0.01);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 8px;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.capability-item:hover {
  border-color: rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
}

.capability-item-num {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-size: 20px;
  color: var(--muted);
  line-height: 1;
}

.capability-item-title {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 6px;
  color: #fff;
}

.capability-item-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

/* Premium Form Elements (Contact Page) */
.contact-form-wrapper {
  max-width: 600px;
  margin: 0 auto;
  background: rgba(255,255,255,0.01);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 48px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.form-group {
  margin-bottom: 28px;
}

.form-label {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 10px;
}

.form-control {
  width: 100%;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: #fff;
  padding: 14px 18px;
  font-family: inherit;
  font-size: 14.5px;
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.form-control::placeholder {
  color: rgba(255,255,255,0.25);
}

.form-control:focus {
  outline: none;
  border-color: rgba(255,255,255,0.40);
  background: rgba(255,255,255,0.04);
  box-shadow: 0 0 16px rgba(255,255,255,0.03);
}

textarea.form-control {
  resize: vertical;
  min-height: 140px;
}

.form-status {
  margin-top: 20px;
  font-size: 14px;
  border-radius: 6px;
  padding: 12px 16px;
  display: none;
}

.form-status.success {
  display: block;
  background: rgba(46, 213, 115, 0.1);
  border: 1px solid rgba(46, 213, 115, 0.3);
  color: #2ed573;
}

.form-status.error {
  display: block;
  background: rgba(255, 71, 87, 0.1);
  border: 1px solid rgba(255, 71, 87, 0.3);
  color: #ff4757;
}

/* Premium Footer */
.footer {
  border-top: 1px solid var(--border-soft);
  background: #000;
  padding: 64px var(--header-x) 32px;
  position: relative;
  z-index: 10;
}

.footer-top {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr repeat(2, 1fr) 1.5fr;
  gap: 24px;
  margin-bottom: 48px;
}

.footer-logo-area {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-tagline {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  max-width: 240px;
}

.footer-social-row {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.social-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.04);
}

.social-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-heading {
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: grid;
  gap: 10px;
}

.footer-links a {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.25s ease, padding-left 0.25s ease;
  display: inline-flex;
  align-items: center;
}

.footer-links a:hover {
  color: #fff;
  padding-left: 2px;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

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

.footer-bottom-links a:hover {
  color: #fff;
}

/* Animations declarations (Vesper styled) */
.appear {
  opacity: 1;
  animation-duration: 1.05s;
  animation-fill-mode: both;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  animation-delay: var(--d, 0.08s);
}

.appear--scale { animation-name: in-scale; }
.appear--soft { animation-name: in-soft; }
.appear--mask { animation-name: in-mask; }
.appear--pop { animation-name: in-pop; }
.appear--btn { animation-name: in-btn; }
.appear--side { animation-name: in-side; }
.appear--stat { animation-name: in-stat; }

.appear--lede {
  animation-duration: 1.25s;
}

/* Active transitions */
.is-in {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
  clip-path: none !important;
  filter: none !important;
}

@keyframes in-scale {
  from { opacity: 0; transform: scale(0.84); }
  to { opacity: 1; transform: none; }
}

@keyframes in-soft {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@keyframes in-mask {
  from { opacity: 0; transform: translateY(40%); }
  to { opacity: 1; transform: none; }
}

@keyframes in-pop {
  0% { opacity: 0; transform: scale(0.9); }
  70% { opacity: 1; transform: scale(1.03); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes in-btn {
  from { opacity: 0; transform: translateY(18px) scale(0.94); }
  to { opacity: 1; transform: none; }
}

@keyframes in-side {
  from { opacity: 0; transform: translateX(22px); }
  to { opacity: 1; transform: none; }
}

@keyframes in-stat {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}

@keyframes in-star {
  0% { transform: scale(0.2) rotate(-50deg); }
  65% { transform: scale(1.2) rotate(8deg); }
  100% { transform: scale(1) rotate(0); }
}

@keyframes in-em {
  0% { opacity: 0.35; filter: blur(4px); }
  100% { opacity: 1; filter: blur(0); }
}

/* ==========================================================================
   RESPONSIVE STYLES & BREAKPOINTS
   ========================================================================== */

@media (min-width: 1600px) {
  :root {
    --logo: 17px;
    --logo-mark: 24px;
    --nav: 15px;
    --nav-h: 44px;
    --btn: 15px;
    --btn-h: 44px;
    --hero-btn-h: 48px;
    --h1: 64px;
    --lede: 18px;
    --badge: 13.5px;
    --stat-size: 15px;
    --header-y: 28px;
    --header-x: 64px;
    --stats-x: 96px;
    --stats-y: 44px;
    --copy-max: 980px;
    --lede-max: 540px;
  }
  #site-nav a { padding: 0 20px; }
  .badge { margin-bottom: 26px; }
  .lede { margin-top: 22px; }
  .hero-actions { margin-top: 30px; gap: 12px; }
}

@media (min-width: 1920px) {
  :root {
    --logo: 18px;
    --logo-mark: 26px;
    --nav: 16px;
    --nav-h: 48px;
    --btn: 16px;
    --btn-h: 48px;
    --hero-btn-h: 52px;
    --h1: 76px;
    --lede: 20px;
    --badge: 14.5px;
    --stat-size: 16px;
    --header-y: 32px;
    --header-x: 80px;
    --stats-x: 120px;
    --stats-y: 52px;
    --copy-max: 1120px;
    --lede-max: 620px;
  }
  #site-nav { gap: 10px; }
  #site-nav a { padding: 0 22px; }
  .btn { padding: 0 22px; }
  .badge { padding: 10px 15px; }
}

@media (min-width: 2560px) {
  :root {
    --h1: 88px;
    --lede: 22px;
    --header-x: 120px;
    --stats-x: 160px;
    --copy-max: 1280px;
    --lede-max: 680px;
  }
}

@media (min-width: 1280px) and (max-width: 1599px) {
  :root {
    --h1: 54px;
    --lede: 16px;
    --header-x: 48px;
    --stats-x: 80px;
    --copy-max: 900px;
  }
}

@media (min-width: 901px) and (max-width: 1279px) {
  :root {
    --logo: 15px;
    --nav: 13px;
    --nav-h: 36px;
    --btn: 13px;
    --btn-h: 38px;
    --hero-btn-h: 40px;
    --h1: 42px;
    --lede: 15px;
    --badge: 12px;
    --stat-size: 12.5px;
    --header-y: 16px;
    --header-x: 28px;
    --stats-x: 36px;
    --stats-y: 28px;
    --hero-gap: 64px;
    --copy-max: 760px;
    --lede-max: 440px;
  }
  #site-nav a { padding: 0 14px; }
  .badge { margin-bottom: 16px; }
  .lede { margin-top: 14px; }
  .hero-actions { margin-top: 20px; }
}

@media (min-width: 901px) and (max-height: 850px) {
  :root {
    --header-y: 14px;
    --stats-y: 24px;
    --hero-gap: 48px;
    --h1: 40px;
  }
  .badge { margin-bottom: 12px; }
  .lede { margin-top: 12px; }
  .hero-actions { margin-top: 16px; }
}

@media (min-width: 901px) and (max-height: 720px) {
  :root {
    --h1: 34px;
    --lede: 14px;
    --hero-gap: 32px;
    --stats-y: 18px;
    --nav-h: 30px;
    --btn-h: 34px;
    --hero-btn-h: 36px;
  }
}

@media (min-width: 901px) {
  /* Prevent scrollbars on 1st viewport screen configurations */
  .viewport-height-lock {
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
  }
  .viewport-height-lock .page {
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
  }
}

/* Tablet & Mobile Styles */
@media (max-width: 900px) {
  .viewport-height-lock {
    height: auto !important;
    overflow-y: auto !important;
  }

  .header {
    grid-template-columns: 1fr auto auto;
    gap: 8px;
    padding-top: max(16px, env(safe-area-inset-top));
    padding-left: max(var(--header-x), env(safe-area-inset-left));
    padding-right: max(var(--header-x), env(safe-area-inset-right));
    padding-bottom: 10px;
  }

  .logo, .header-cta, .burger {
    z-index: 80;
  }

  #site-nav {
    position: fixed;
    inset: 0;
    z-index: 45;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: max(96px, calc(env(safe-area-inset-top) + 88px)) 22px 32px;
    background: transparent;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity .28s ease, visibility .28s ease;
  }

  #site-nav a {
    width: 100%;
    max-width: 520px;
    height: 56px;
    border-radius: 10px;
    font-size: 19px;
  }

  .menu-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .28s ease, visibility .28s ease;
  }

  body.menu-open .menu-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
  }

  body.menu-open #site-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .burger {
    display: grid;
  }

  .header-cta {
    height: 40px;
  }

  .hero {
    padding: 60px 20px 64px;
    align-items: center;
  }

  .hero-copy,
  .lede {
    max-width: 100%;
  }

  .stats {
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
    white-space: normal;
    text-align: center;
  }

  :root {
    --logo: 16px;
    --btn: 15px;
    --btn-h: 46px;
    --hero-btn-h: 48px;
    --h1: 36px;
    --lede: 16.5px;
    --badge: 13.5px;
    --stat-size: 15px;
    --header-y: 16px;
    --header-x: 18px;
    --stats-x: 20px;
    --stats-y: 28px;
    --hero-gap: 36px;
  }

  .logo-mark {
    --logo-mark: 18px;
  }

  .hero-actions {
    gap: 10px;
  }
  
  /* Sections adaptive */
  .section {
    padding: 60px 20px;
  }
  
  .showcase-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .showcase-visual {
    height: 280px;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  
  .footer-logo-area {
    align-items: center;
    text-align: center;
  }
  
  .footer-tagline {
    max-width: 100%;
  }
}

@media (max-width: 560px) {
  :root {
    --h1: 34px;
    --lede: 16px;
    --header-x: 16px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }
  
  .contact-form-wrapper {
    padding: 24px;
  }
}

/* Reduced Motion Override */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }

  .appear, .ambient-orb, .hero h1 em, .badge-star {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    filter: none !important;
  }
}
