/* ============================================================
   BRANDROAD — Global Design System v2.0
   brandroad.in | 2026
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

/* ══════════════════════════════════════════
   Design Tokens
══════════════════════════════════════════ */
:root {
  /* Backgrounds */
  --clr-bg: #04060e;
  --clr-bg-2: #070a16;
  --clr-surface: #0d1020;
  --clr-surface-2: #121628;
  --clr-surface-3: #181e34;

  /* Borders */
  --clr-border: rgba(99, 117, 255, .13);
  --clr-border-hover: rgba(99, 117, 255, .38);
  --clr-border-strong: rgba(99, 117, 255, .55);

  /* Brand */
  --clr-primary: #6375ff;
  --clr-primary-dark: #4a57e0;
  --clr-accent: #a855f7;
  --clr-accent-2: #06b6d4;

  /* Gradients */
  --clr-gradient: linear-gradient(135deg, #6375ff 0%, #a855f7 100%);
  --clr-gradient-r: linear-gradient(135deg, #a855f7 0%, #6375ff 100%);
  --clr-gradient-h: linear-gradient(90deg, #6375ff 0%, #a855f7 100%);
  --clr-gradient-hero: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(99, 117, 255, .22) 0%, transparent 70%);
  --clr-glow: rgba(99, 117, 255, .22);
  --clr-glow-strong: rgba(99, 117, 255, .45);

  /* Text */
  --clr-text: #eef0ff;
  --clr-text-muted: #8892b0;
  --clr-text-faint: #3d4566;

  /* State */
  --clr-success: #10b981;
  --clr-warning: #f59e0b;
  --clr-danger: #ef4444;

  /* Typography */
  --font-head: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --section-pad: clamp(80px, 10vw, 130px) 0;
  --container-w: 1240px;
  --container-pad: clamp(20px, 5vw, 60px);

  /* Radii */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-2xl: 48px;
  --radius-pill: 100px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, .3);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, .45), 0 1px 3px rgba(99, 117, 255, .08);
  --shadow-glow: 0 0 48px rgba(99, 117, 255, .18);
  --shadow-btn: 0 8px 28px rgba(99, 117, 255, .32);
  --shadow-btn-h: 0 14px 40px rgba(99, 117, 255, .50);

  /* Motion */
  --ease: cubic-bezier(.4, 0, .2, 1);
  --ease-out: cubic-bezier(0, 0, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --dur: .3s;
  --dur-slow: .6s;
}

/* ══════════════════════════════════════════
   Reset
══════════════════════════════════════════ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
video,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

ul,
ol {
  list-style: none;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

/* ══════════════════════════════════════════
   Typography
══════════════════════════════════════════ */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -.025em;
}

h1 {
  font-size: clamp(2.5rem, 5.5vw, 4.2rem);
}

h2 {
  font-size: clamp(1.9rem, 3.8vw, 3rem);
}

h3 {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

h4 {
  font-size: 1.05rem;
}

p {
  color: var(--clr-text-muted);
  font-size: .95rem;
  line-height: 1.8;
}

.gradient-text {
  background: var(--clr-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .13em;
  color: var(--clr-primary);
  margin-bottom: 18px;
  padding: 6px 18px;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-pill);
  background: rgba(99, 117, 255, .07);
}

.section-label::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--clr-gradient);
  flex-shrink: 0;
}

/* ══════════════════════════════════════════
   Layout
══════════════════════════════════════════ */
.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header p {
  max-width: 520px;
  margin: 18px auto 0;
  font-size: 1rem;
}

/* ══════════════════════════════════════════
   Buttons
══════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  border-radius: var(--radius-pill);
  transition: all var(--dur) var(--ease);
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  letter-spacing: -.01em;
}

/* Shimmer overlay */
.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .15), transparent);
  transition: left .55s var(--ease);
  pointer-events: none;
}

.btn:hover::before {
  left: 160%;
}

.btn-primary {
  background: var(--clr-gradient);
  color: #fff;
  border: none;
  box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-btn-h);
}

.btn-outline {
  background: transparent;
  color: var(--clr-text);
  border: 1px solid var(--clr-border);
}

.btn-outline:hover {
  border-color: var(--clr-primary);
  background: rgba(99, 117, 255, .08);
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(255, 255, 255, .04);
  color: var(--clr-text);
  border: 1px solid var(--clr-border);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, .08);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 20px;
  font-size: .82rem;
}

.btn-md {
  padding: 12px 28px;
  font-size: .88rem;
}

.btn-lg {
  padding: 15px 36px;
  font-size: .95rem;
}

.btn-xl {
  padding: 18px 44px;
  font-size: 1rem;
}

/* ══════════════════════════════════════════
   Scroll Progress Bar
══════════════════════════════════════════ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: var(--clr-gradient);
  z-index: 10000;
  transition: width .08s linear;
  box-shadow: 0 0 8px rgba(99, 117, 255, .6);
}

/* ══════════════════════════════════════════
   Navigation
══════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  padding: 22px 0;
  transition: all var(--dur) var(--ease);
}

.nav.scrolled {
  padding: 14px 0;
  background: rgba(4, 6, 14, .82);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--clr-border);
  box-shadow: 0 4px 32px rgba(0, 0, 0, .3);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -.03em;
  flex-shrink: 0;
}

.nav-logo img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: .87rem;
  font-weight: 500;
  color: var(--clr-text-muted);
  transition: color var(--dur);
  position: relative;
  padding-bottom: 2px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--clr-gradient);
  transition: width var(--dur) var(--ease);
  border-radius: var(--radius-pill);
}

.nav-links a:hover {
  color: var(--clr-text);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--clr-text);
}

.nav-links a.active::after {
  width: 100%;
}

/* Nav CTA */
.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 4px;
  z-index: 10001;
  position: relative;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--clr-text);
  border-radius: 2px;
  transition: all var(--dur) var(--ease);
  transform-origin: center;
}

.nav-hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.nav-mobile {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 14, .97);
  backdrop-filter: blur(28px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}

.nav-mobile.open {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.nav-mobile a {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--clr-text-muted);
  transition: color var(--dur), transform var(--dur);
}

.nav-mobile a:hover {
  color: var(--clr-text);
  transform: translateY(-2px);
}

/* ══════════════════════════════════════════
   Footer
══════════════════════════════════════════ */
.footer {
  padding: 88px 0 0;
  border-top: 1px solid var(--clr-border);
  background: var(--clr-bg-2);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: -160px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(99, 117, 255, .07) 0%, transparent 70%);
  pointer-events: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1.2fr;
  gap: 56px;
  margin-bottom: 64px;
}

.footer-brand p {
  color: var(--clr-text-muted);
  font-size: .88rem;
  margin-top: 18px;
  max-width: 300px;
  line-height: 1.75;
}

.footer-col h4 {
  font-size: .85rem;
  font-weight: 700;
  margin-bottom: 22px;
  color: var(--clr-text);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.footer-col a {
  display: block;
  font-size: .85rem;
  color: var(--clr-text-muted);
  padding: 5px 0;
  transition: color var(--dur), transform var(--dur);
}

.footer-col a:hover {
  color: var(--clr-primary);
  transform: translateX(5px);
}

/* Social icons */
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--clr-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 700;
  color: var(--clr-text-muted);
  transition: all var(--dur) var(--ease);
  background: transparent;
}

.footer-social a:hover {
  border-color: var(--clr-primary);
  background: rgba(99, 117, 255, .12);
  color: var(--clr-primary);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(99, 117, 255, .2);
}

/* Newsletter */
.footer-newsletter h4 {
  font-size: .85rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--clr-text);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.footer-newsletter p {
  font-size: .82rem;
  margin-bottom: 14px;
  line-height: 1.6;
}

.newsletter-form {
  display: flex;
  gap: 0;
}

.newsletter-form input {
  flex: 1;
  min-width: 0;
  padding: 11px 16px;
  border: 1px solid var(--clr-border);
  border-right: none;
  border-radius: var(--radius-pill) 0 0 var(--radius-pill);
  background: var(--clr-surface);
  color: var(--clr-text);
  font-size: .84rem;
  outline: none;
  transition: border-color var(--dur);
}

.newsletter-form input:focus {
  border-color: var(--clr-primary);
}

.newsletter-form input::placeholder {
  color: var(--clr-text-faint);
}

.newsletter-form button {
  padding: 11px 20px;
  background: var(--clr-gradient);
  color: #fff;
  border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .82rem;
  white-space: nowrap;
  transition: opacity var(--dur);
}

.newsletter-form button:hover {
  opacity: .88;
}

/* Footer bottom */
.footer-bottom {
  border-top: 1px solid var(--clr-border);
  padding: 28px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-bottom p {
  font-size: .82rem;
  color: var(--clr-text-faint);
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  font-size: .82rem;
  color: var(--clr-text-faint);
  transition: color var(--dur);
}

.footer-bottom-links a:hover {
  color: var(--clr-text-muted);
}

/* ══════════════════════════════════════════
   Back to Top
══════════════════════════════════════════ */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--clr-gradient);
  color: #fff;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: all var(--dur) var(--ease);
  box-shadow: var(--shadow-btn);
  border: none;
  cursor: pointer;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-btn-h);
}

/* ══════════════════════════════════════════
   Cookie Banner
══════════════════════════════════════════ */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(140%);
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl);
  padding: 20px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 9999;
  max-width: 620px;
  width: calc(100% - 48px);
  transition: transform .55s var(--ease);
  box-shadow: 0 16px 56px rgba(0, 0, 0, .55);
}

.cookie-banner.visible {
  transform: translateX(-50%) translateY(0);
}

.cookie-banner p {
  font-size: .82rem;
  flex: 1;
}

.cookie-btns {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════
   Exit Intent Popup
══════════════════════════════════════════ */
.exit-popup {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .72);
  backdrop-filter: blur(10px);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
  padding: 24px;
}

.exit-popup.visible {
  opacity: 1;
  pointer-events: auto;
}

.exit-popup-box {
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl);
  padding: 52px 48px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  position: relative;
  animation: popupScale .4s var(--ease-spring);
}

@keyframes popupScale {
  from {
    transform: scale(.88);
    opacity: 0;
  }
}

.exit-popup-box h3 {
  margin-bottom: 12px;
  font-size: 1.6rem;
}

.exit-popup-box p {
  margin-bottom: 28px;
}

.exit-popup-close {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 1.3rem;
  color: var(--clr-text-muted);
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  transition: color var(--dur), transform var(--dur);
}

.exit-popup-close:hover {
  color: var(--clr-text);
  transform: rotate(90deg);
}

/* ══════════════════════════════════════════
   Scroll Animations
══════════════════════════════════════════ */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .72s var(--ease-out), transform .72s var(--ease-out);
}

.animate-on-scroll.in-view {
  opacity: 1;
  transform: translateY(0);
}

.animate-right {
  opacity: 0;
  transform: translateX(-36px);
  transition: opacity .72s var(--ease-out), transform .72s var(--ease-out);
}

.animate-right.in-view {
  opacity: 1;
  transform: translateX(0);
}

.animate-scale {
  opacity: 0;
  transform: scale(.9);
  transition: opacity .6s var(--ease), transform .6s var(--ease-spring);
}

.animate-scale.in-view {
  opacity: 1;
  transform: scale(1);
}

.animate-delay-1 {
  transition-delay: .12s;
}

.animate-delay-2 {
  transition-delay: .24s;
}

.animate-delay-3 {
  transition-delay: .36s;
}

.animate-delay-4 {
  transition-delay: .48s;
}

.animate-delay-5 {
  transition-delay: .60s;
}

/* ══════════════════════════════════════════
   Glass Card Utility
══════════════════════════════════════════ */
.glass-card {
  background: rgba(13, 16, 32, .65);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all var(--dur) var(--ease);
}

.glass-card:hover {
  border-color: var(--clr-border-hover);
  box-shadow: var(--shadow-glow);
  transform: translateY(-6px);
}

/* ══════════════════════════════════════════
   Responsive — Navigation & Footer
══════════════════════════════════════════ */
@media (max-width: 1024px) {

  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .cookie-banner {
    flex-direction: column;
    text-align: center;
  }

  .cookie-btns {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .btn-lg {
    padding: 13px 28px;
    font-size: .9rem;
  }

  .btn-xl {
    padding: 15px 32px;
    font-size: .92rem;
  }

  .exit-popup-box {
    padding: 36px 24px;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
  }
}