/* ============================================
   SCALE UP MARKETING — SHARED DESIGN SYSTEM
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&display=swap');

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

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.nav, .hero, .main-content, .footer, .t-hero, .contact-hero, .blog-hero {
  animation: pageLoad 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg); 
}
::-webkit-scrollbar-thumb {
  background: rgba(164,74,236,0.25);
  border-radius: 10px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(164,74,236,0.6);
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color 0.3s; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; outline: none; font-family: inherit; }
input, textarea { font-family: inherit; outline: none; border: none; }

/* ---------- Tokens ---------- */
:root {
  --primary: #a44aec;
  --primary-light: #c77ef5;
  --primary-dark: #7b2bb8;
  --primary-50: rgba(164, 74, 236, 0.05);
  --primary-100: rgba(164, 74, 236, 0.1);
  --primary-200: rgba(164, 74, 236, 0.2);
  --primary-glow: rgba(164, 74, 236, 0.25);

  --bg: #050508;
  --bg-card: #0b0b12;
  --bg-surface: #111119;
  --bg-elevated: #18182a;

  --text: #eeeef2;
  --text-secondary: #ffffff;
  --text-muted: #ffffff;

  --border: rgba(255,255,255,0.05);
  --border-hover: rgba(255,255,255,0.1);
  --border-primary: rgba(164,74,236,0.2);

  --gradient-primary: linear-gradient(135deg, #a44aec 0%, #7b2bb8 100%);
  --gradient-text: linear-gradient(135deg, #d4a5f7, #a44aec, #7b2bb8);
  --gradient-glow: radial-gradient(ellipse, rgba(164,74,236,0.12) 0%, transparent 70%);

  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  --fs-display: clamp(2.4rem, 4.5vw, 3.8rem);
  --fs-h1: clamp(2.2rem, 4.5vw, 4rem);
  --fs-h2: clamp(1.6rem, 3vw, 2.8rem);
  --fs-h3: clamp(1.2rem, 2vw, 1.6rem);
  --fs-body: clamp(0.95rem, 1.05vw, 1.1rem);
  --fs-small: clamp(0.82rem, 0.9vw, 0.92rem);
  --fs-xs: 0.75rem;

  --section-py: clamp(40px, 5vw, 60px);
  --max-w: 1200px;
  --px: clamp(20px, 4vw, 40px);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --radius-full: 100px;

  --nav-h: 72px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------- Layout ---------- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--px); }
.section { padding: var(--section-py) 0; position: relative; }

/* ---------- Typography ---------- */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-heading);
  line-height: 1.15;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Section Header ---------- */
.section-header { text-align: center; margin-bottom: clamp(20px, 3vw, 32px); }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  background: var(--primary-50);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--primary-light);
  text-transform: uppercase;
  letter-spacing: 1.8px;
  margin-bottom: 16px;
}

.section-title {
  font-size: var(--fs-h2);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  text-wrap: balance;
}

.section-subtitle {
  font-size: var(--fs-body);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.75;
  text-wrap: pretty;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 34px;
  font-family: var(--font-heading);
  font-size: var(--fs-body);
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all 0.35s var(--ease-out);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  white-space: nowrap;
  will-change: transform;
}

@media (max-width: 768px) {
  .btn {
    padding: 12px 24px;
    font-size: 0.95rem;
    gap: 8px;
  }
}

.btn--primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 24px var(--primary-glow), inset 0 1px 0 rgba(255,255,255,0.12);
}
.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 40px rgba(164,74,236,0.35), inset 0 1px 0 rgba(255,255,255,0.12);
}

.btn--glass {
  background: rgba(255,255,255,0.04);
  color: var(--text);
  border: 1px solid var(--border-hover);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.btn--glass:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--border-primary);
  transform: translateY(-3px);
}

.btn__arrow {
  transition: transform 0.25s var(--ease-out);
  font-size: 1.1em;
}
.btn:hover .btn__arrow { transform: translateX(5px); }

/* ---------- Glass Card ---------- */
.glass {
  background: rgba(11,11,18,0.5);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.4s var(--ease-out);
}
.glass:hover {
  border-color: var(--border-primary);
  box-shadow: 0 8px 40px rgba(164,74,236,0.06);
}

/* ---------- Navbar ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: all 0.4s var(--ease-out);
}

.nav::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(5,5,8,0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: all 0.4s var(--ease-out);
}

.nav.scrolled::before {
  background: rgba(5,5,8,0.7);
  border-bottom-color: var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--px);
  position: relative;
  z-index: 1;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  z-index: 1001;
}

.nav__logo-mark {
  width: 32px;
  height: 32px;
  background: var(--gradient-primary);
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 0.85rem;
  color: #fff;
  box-shadow: 0 2px 12px var(--primary-glow);
}

.nav__logo em {
  font-style: normal;
  color: var(--primary-light);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__link {
  padding: 7px 15px;
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}
.nav__link:hover, .nav__link.active {
  color: var(--text);
  background: rgba(255,255,255,0.04);
}

.nav__cta {
  margin-left: 12px;
  padding: 9px 22px;
  font-size: var(--fs-small);
}

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  z-index: 1001;
  border: none;
  padding: 4px;
  cursor: pointer;
}
.nav__burger span {
  width: 26px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55), opacity 0.3s ease, background 0.3s;
  transform-origin: center;
}
.nav__burger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); background: var(--primary-light); }
.nav__burger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__burger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); background: var(--primary-light); }

@media (max-width: 900px) {
  .nav__burger { 
    display: flex; 
    position: relative;
    z-index: 1002;
  }
  .nav__links {
    position: fixed;
    inset: 0;
    background: rgba(5,5,8,0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 80px 40px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s var(--ease-out);
    z-index: 1001;
  }
  .nav__links.open { 
    opacity: 1; 
    visibility: visible; 
  }
  .nav__link { 
    font-size: 1.25rem; 
    padding: 12px 24px; 
    width: 100%; 
    text-align: center;
    border-radius: var(--radius-md);
  }
  .nav__cta { 
    margin: 20px 0 0; 
    width: 100%; 
    max-width: 300px;
    text-align: center; 
  }
}

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 56px 0 28px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 44px;
}

.footer__desc {
  color: var(--text-secondary);
  font-size: var(--fs-small);
  line-height: 1.8;
  margin-top: 14px;
  max-width: 300px;
}

.footer__heading {
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 18px;
}

.footer__links { display: flex; flex-direction: column; gap: 10px; }
.footer__links a { font-size: var(--fs-small); color: var(--text-secondary); transition: color 0.2s; }
.footer__links a:hover { color: var(--primary-light); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.footer__socials { display: flex; gap: 10px; }
.footer__socials a {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.8rem;
  transition: all 0.25s;
}
.footer__socials a:hover {
  background: var(--primary-100);
  border-color: var(--border-primary);
  color: var(--primary-light);
}

@media (max-width: 768px) {
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .footer__bottom { flex-direction: column; gap: 14px; text-align: center; }
}

/* ---------- Scroll Reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
[data-reveal].visible {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal="left"] { transform: translateX(-32px); }
[data-reveal="left"].visible { transform: translateX(0); }
[data-reveal="right"] { transform: translateX(32px); }
[data-reveal="right"].visible { transform: translateX(0); }
[data-reveal="scale"] { transform: scale(0.94); }
[data-reveal="scale"].visible { transform: scale(1); }

/* Stagger children */
[data-stagger] > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
[data-stagger].visible > * { opacity: 1; transform: translateY(0); }
[data-stagger].visible > *:nth-child(1) { transition-delay: 0.05s; }
[data-stagger].visible > *:nth-child(2) { transition-delay: 0.1s; }
[data-stagger].visible > *:nth-child(3) { transition-delay: 0.15s; }
[data-stagger].visible > *:nth-child(4) { transition-delay: 0.2s; }
[data-stagger].visible > *:nth-child(5) { transition-delay: 0.25s; }
[data-stagger].visible > *:nth-child(6) { transition-delay: 0.3s; }
[data-stagger].visible > *:nth-child(7) { transition-delay: 0.35s; }
[data-stagger].visible > *:nth-child(8) { transition-delay: 0.4s; }
[data-stagger].visible > *:nth-child(9) { transition-delay: 0.45s; }

/* ---------- Newsletter ---------- */
.newsletter {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 48px 0;
}

.newsletter__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  flex-wrap: wrap;
}
.newsletter__inner > div:first-child {
  flex: 1 1 300px;
}
.newsletter__inner > div:last-child {
  flex: 1 1 400px;
}

.newsletter__title {
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.newsletter__desc {
  font-size: var(--fs-small);
  color: var(--text-secondary);
  max-width: 480px;
}

.newsletter__form {
  display: flex;
  gap: 10px;
  align-items: stretch;
  width: 100%;
}

.newsletter__input {
  flex: 1;
  width: 100%;
  padding: 0 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  font-size: 1rem;
  height: 52px;
  min-height: 52px;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s;
}
.newsletter__input::placeholder { color: var(--text-muted); }
.newsletter__input:focus { border-color: var(--primary); }

.newsletter__form .btn {
  padding: 0 24px;
  height: 52px;
  font-size: 0.95rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.newsletter__gdpr {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin-top: 6px;
}

.newsletter__proof {
  font-size: var(--fs-xs);
  color: var(--text-secondary);
  margin-top: 10px;
  letter-spacing: 0.3px;
}

@media (max-width: 768px) {
  .newsletter__inner { flex-direction: column; text-align: center; gap: 24px; }
  .newsletter__inner > div:first-child,
  .newsletter__inner > div:last-child { flex: none; width: 100%; }
  .newsletter__form { flex-direction: column; width: 100%; }
  .newsletter__input { width: 100%; height: 56px !important; min-height: 56px !important; font-size: 1rem; }
  .newsletter__form .btn { width: 100%; margin-top: 8px; height: 56px !important; min-height: 56px !important; font-size: 1rem; }
}

/* ---------- Utility ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }


/* ---------- Services Global CTA ---------- */
.services-cta {
  border-top: 1px solid var(--border);
  background: radial-gradient(ellipse at bottom, rgba(164,74,236,0.1) 0%, var(--bg-surface) 100%);
  padding: 120px 0;
  text-align: center;
}

.services-cta h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-family: var(--font-heading);
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .services-cta {
    padding: 80px 20px;
  }
  .services-cta h2 {
    font-size: 1.8rem;
  }
}
/* ---------- Spotlight Cards ---------- */
.spotlight-card {
  position: relative;
  overflow: hidden;
}
.spotlight-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(600px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(164,74,236,0.08), transparent 40%);
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: inherit;
}
.spotlight-card:hover::before {
  opacity: 1;
}
.spotlight-card > * {
  z-index: 1;
  position: relative;
}

/* ---------- Sticky Mobile CTA ---------- */
.mobile-sticky-cta {
  display: none;
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 400px;
  z-index: 900;
  animation: slideUpSticky 0.5s ease forwards;
  box-shadow: 0 10px 30px rgba(164,74,236,0.3);
  text-align: center;
}

@media (max-width: 768px) {
  .mobile-sticky-cta.visible {
    display: flex;
    justify-content: center;
  }
}

@keyframes slideUpSticky {
  from { transform: translate(-50%, 100px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

/* ---------- Input Micro-interactions ---------- */
input:focus, textarea:focus, select:focus {
  box-shadow: 0 0 0 3px rgba(164,74,236,0.15) !important;
  border-color: var(--primary) !important;
  background: rgba(0,0,0,0.6) !important;
}

/* ---------- Intro Splash ---------- */
.splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: grid;
  place-items: center;
  transition: opacity 0.8s var(--ease-out), visibility 0.8s;
}
.splash.done { opacity: 0; visibility: hidden; pointer-events: none; }

.splash__word {
  display: inline-flex;
  font-family: var(--font-heading);
  font-size: clamp(3.5rem, 12vw, 9rem);
  font-weight: 900;
  line-height: 1;
  position: relative;
}

.splash__char {
  display: inline-block;
  opacity: 0;
  transform: scale(0.2) translateY(30px);
  animation: charPop 0.5s var(--ease-spring) forwards;
  animation-delay: calc(var(--d) * 1s);
  color: var(--text);
}
.splash__char--accent { color: var(--primary-light); }

.splash__sub {
  font-family: var(--font-heading);
  font-size: clamp(0.9rem, 2.5vw, 1.6rem);
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 10px;
  text-transform: uppercase;
  text-align: center;
  margin-top: 10px;
  opacity: 0;
  animation: fadeUp 0.5s var(--ease-out) 0.9s forwards;
}

.splash__line {
  position: absolute;
  bottom: -8px;
  left: 0;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 3px;
  width: 0;
  animation: lineGrow 0.6s var(--ease-out) 0.7s forwards;
}

@keyframes charPop {
  0% { opacity: 0; transform: scale(0.2) translateY(30px); }
  60% { opacity: 1; transform: scale(1.08) translateY(-3px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes lineGrow {
  to { width: 100%; }
}
