:root {
  /* Blue Premium Palette */
  --bg-light: #EFF3FF;
  --bg-dark: #050C1A;
  --bg-card: #FFFFFF;
  --text-dark: #0A1628;
  --text-light: #F0F6FF;
  --text-muted: #6B7A99;
  --text-light-muted: #8A9BBF;
  --accent: #2563EB;
  --accent-hover: #1D4ED8;
  --accent-glow: rgba(37, 99, 235, 0.15);
  --accent-bright: #3B82F6;
  --border-light: rgba(37, 99, 235, 0.1);
  --border-dark: rgba(255,255,255,0.12);
  --navy: #0D1B3E;
  --navy-mid: #122048;
  
  --font-heading: 'Syne', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; }
body {
  background-color: var(--bg-light);
  color: var(--text-dark);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.mono {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
a { color: inherit; text-decoration: none; cursor: none; }
button { cursor: none; font-family: inherit; }

.wrap { max-width: 1300px; margin: 0 auto; padding: 0 40px; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.text-light { color: var(--text-light) !important; }
.text-light-muted { color: var(--text-light-muted) !important; }
.dark-bg { background: linear-gradient(135deg, var(--bg-dark) 0%, var(--navy) 100%); color: var(--text-light); }
.mb-8 { margin-bottom: 4rem; }
.mt-4 { margin-top: 2rem; }
.mt-6 { margin-top: 3rem; }
.w-full { width: 100%; }

/* --- Custom Cursor --- */
.cursor-dot, .cursor-outline {
  position: fixed; top: 0; left: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%; z-index: 9999; pointer-events: none;
}
.cursor-dot { width: 8px; height: 8px; background-color: var(--accent); }
.cursor-outline {
  width: 40px; height: 40px;
  border: 1.5px solid var(--accent);
  transition: width 0.2s, height 0.2s, background-color 0.2s;
}
@media (pointer: coarse) {
  body, a, button { cursor: auto; }
  .cursor-dot, .cursor-outline { display: none; }
}

/* --- Preloader --- */
.preloader {
  position: fixed; inset: 0;
  background: var(--bg-dark); color: var(--text-light);
  z-index: 10000; display: flex; flex-direction: column;
  justify-content: center; align-items: center;
}

/* --- Navigation --- */
nav.agency-nav {
  position: fixed; top: 0; left: 0; width: 100%;
  padding: 20px 0; z-index: 1000;
  background: rgba(239, 243, 255, 0.92);
  backdrop-filter: blur(16px);
  color: var(--text-dark);
  border-bottom: 1px solid var(--border-light);
}
.logo { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.04em; color: var(--text-dark); }
.logo span { color: var(--accent); font-weight: 500; }
.nav-links { display: flex; gap: 40px; font-size: 0.95rem; font-weight: 500; }
.nav-links a { position: relative; overflow: hidden; }
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 100%; height: 1.5px;
  background: var(--accent);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-links a:hover { color: var(--accent); }

/* Mobile nav */
.nav-toggle { display: flex; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle .line { width: 24px; height: 2px; background: var(--text-dark); border-radius: 2px; transition: 0.3s; }
.nav-toggle.active .line:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active .line:nth-child(2) { opacity: 0; }
.mobile-menu {
  position: fixed; inset: 0; z-index: 999;
  background: var(--bg-dark);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 40px;
  transform: translateY(-100%); transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}
.mobile-menu.open { transform: translateY(0); }
.mobile-link { font-size: 3rem; font-family: var(--font-heading); color: #fff; font-weight: 700; transition: color 0.3s; }
.mobile-link:hover { color: var(--accent); }

/* --- Buttons --- */
.btn-outline, .btn-primary {
  padding: 14px 32px; border-radius: 100px;
  font-weight: 600; font-size: 0.95rem;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 0.3s;
}
.btn-outline {
  border: 1.5px solid rgba(37, 99, 235, 0.4);
  background: transparent; color: var(--text-dark);
}
.btn-outline:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
nav .btn-outline { color: var(--text-dark); }
.dark-bg .btn-outline { border-color: rgba(255,255,255,0.3); color: #fff; }
.dark-bg .btn-outline:hover { background: #fff; color: var(--bg-dark); }
.btn-primary { background: var(--accent); color: #fff; border: none; box-shadow: 0 4px 20px rgba(37,99,235,0.35); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(37,99,235,0.45); }

/* --- Hero Section --- */
.hero {
  min-height: 100vh; padding-top: 180px;
  display: flex; flex-direction: column;
  justify-content: space-between; padding-bottom: 60px;
  background: var(--bg-light);
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(37,99,235,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-top-bar {
  display: flex; justify-content: space-between;
  align-items: center; margin-bottom: 10vh;
  font-size: 0.9rem; font-weight: 500;
}
.pulse-dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37,99,235,0.5); }
  70% { box-shadow: 0 0 0 10px rgba(37,99,235,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,99,235,0); }
}
.massive-text {
  font-size: clamp(3rem, 10vw, 10.5rem);
  line-height: 1; letter-spacing: -0.04em;
  text-transform: uppercase; margin-left: -5px;
  white-space: nowrap;
}
.outline-text {
  color: transparent;
  -webkit-text-stroke: 2px var(--accent);
}
.stroke-text { color: transparent; -webkit-text-stroke: 1px var(--text-dark); }
.dark-bg .stroke-text { -webkit-text-stroke: 1px var(--border-dark); }
.hero-bottom { margin-top: 10vh; align-items: flex-end; }
.hero-desc { max-width: 500px; font-size: 1.2rem; color: var(--text-muted); }
.hero-desc strong { color: var(--text-dark); }

/* --- Sections Common --- */
section { padding: 120px 0; }
.section-eyebrow { margin-bottom: 20px; color: var(--accent); }
.section-title { font-size: clamp(2.5rem, 5vw, 4.5rem); max-width: 800px; }

/* --- About Grid --- */
.about-section { background: linear-gradient(135deg, var(--bg-dark) 0%, var(--navy) 100%); color: var(--text-light); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.stat-box { border-bottom: 1px solid rgba(255,255,255,0.1); padding: 40px 0; }
.stat-box:first-child { border-top: 1px solid rgba(255,255,255,0.1); }
.stat-num { font-size: 4rem; line-height: 1; margin-bottom: 10px; }
.stat-num .accent { color: var(--accent-bright); }
.stat-label { color: var(--text-light-muted); font-size: 1.1rem; }

/* --- Services List --- */
.services-section { background: #fff; }
.service-list { border-top: 1px solid var(--border-light); margin-top: 60px; }
.service-row {
  display: grid; grid-template-columns: 80px 1fr 1fr;
  align-items: center; padding: 40px 0;
  border-bottom: 1px solid var(--border-light);
  transition: background 0.3s, padding-left 0.3s;
}
.service-row:hover { background: var(--accent-glow); padding-left: 20px; border-radius: 12px; }
.srv-num { color: var(--accent); font-family: var(--font-mono); }
.srv-name { font-size: 1.8rem; color: var(--text-dark); }
.srv-desc { color: var(--text-muted); font-size: 1rem; max-width: 400px; }

/* --- Work / Case Studies --- */
.work-section { background: linear-gradient(135deg, var(--bg-dark) 0%, var(--navy-mid) 100%); padding: 120px 0; }
.agency-work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 30px;
  margin-top: 20px;
}
.work-item-agency {
  display: block; position: relative;
  overflow: hidden; border-radius: 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1), box-shadow 0.4s, border-color 0.3s;
}
.work-item-agency:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(37,99,235,0.3);
  border-color: rgba(59,130,246,0.4);
}
.work-img-wrapper { width: 100%; height: 240px; overflow: hidden; position: relative; }
.work-img-wrapper img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}
.work-item-agency:hover .work-img-wrapper img { transform: scale(1.06); }
.work-info-overlay {
  padding: 24px;
  background: linear-gradient(to top, rgba(5,12,26,0.95) 0%, rgba(5,12,26,0.7) 100%);
}
.work-cat { font-family: var(--font-mono); color: var(--accent-bright); font-size: 0.75rem; margin-bottom: 8px; display: block; }
.work-title { font-size: 1.3rem; color: #fff; margin-bottom: 10px; line-height: 1.3; }
.work-result { font-size: 0.9rem; color: rgba(255,255,255,0.55); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.work-arrow { 
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--accent-bright); font-size: 0.85rem; font-weight: 600;
  margin-top: 14px; transition: gap 0.3s;
}
.work-item-agency:hover .work-arrow { gap: 10px; }

/* --- Articles Grid --- */
.articles-section { background: var(--bg-light); }
.articles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 40px; }
.article-card-agency { display: block; padding-bottom: 30px; border-bottom: 1px solid var(--border-light); transition: transform 0.3s; }
.article-card-agency:hover { transform: translateY(-4px); }
.article-meta { display: flex; justify-content: space-between; margin-bottom: 20px; color: var(--text-muted); }
.article-title { font-size: 1.8rem; margin-bottom: 15px; transition: color 0.3s; }
.article-card-agency:hover .article-title { color: var(--accent); }

/* --- Footer --- */
.footer-section { background: linear-gradient(135deg, var(--bg-dark) 0%, var(--navy) 100%); }
.footer-cta {
  font-size: clamp(4rem, 12vw, 12rem);
  text-align: center; color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.2);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 60px; margin-bottom: 80px;
  transition: -webkit-text-stroke 0.3s;
}
.footer-cta:hover { -webkit-text-stroke-color: var(--accent-bright); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; margin-bottom: 100px; }
.big-email {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-family: var(--font-heading); display: block;
  margin-top: 30px; transition: color 0.3s;
  color: #fff;
}
.big-email:hover { color: var(--accent-bright); }
.agency-form { display: flex; flex-direction: column; gap: 20px; }
.agency-form input, .agency-form textarea {
  background: transparent; border: none;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  color: #fff; padding: 15px 0;
  font-family: var(--font-body); font-size: 1rem;
  outline: none; transition: border-color 0.3s;
}
.agency-form input::placeholder, .agency-form textarea::placeholder { color: rgba(255,255,255,0.35); }
.agency-form input:focus, .agency-form textarea:focus { border-color: var(--accent-bright); }
.agency-form button { margin-top: 20px; }
.footer-bottom { padding: 40px 0 60px 0; border-top: 1px solid rgba(255,255,255,0.08); color: rgba(255,255,255,0.4); }
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--accent-bright); }
.back-to-top { cursor: pointer; transition: color 0.3s; }
.back-to-top:hover { color: var(--accent-bright); }

/* --- Input row (contact form) --- */
.input-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* --- Testimonial section bg --- */
#testimonials { background: #fff; }
#faq { background: var(--bg-light); }
#faq h3 { color: var(--text-dark); }

/* Responsive */
@media (max-width: 900px) {
  .desktop-only { display: none; }
  .about-grid, .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .service-row { grid-template-columns: 1fr; padding: 25px 0; gap: 10px; }
  .agency-work-grid { grid-template-columns: 1fr; }
  .work-info-overlay { flex-direction: column; align-items: flex-start; gap: 15px; }
  .hero-bottom { flex-direction: column; align-items: flex-start; gap: 40px; }
  .wrap { padding: 0 20px; }
  .input-row { grid-template-columns: 1fr; }
  .footer-cta { font-size: clamp(3rem, 15vw, 8rem); }
}
@media (min-width: 901px) {
  .mobile-only { display: none; }
}

/* Mobile Performance Enhancements */
section { content-visibility: auto; contain-intrinsic-size: 1000px; }
img { content-visibility: auto; }
@media (max-width: 600px) { section { padding: 60px 0; } .hero { min-height: 85vh; padding-top: 120px; } .massive-text { font-size: clamp(2.5rem, 12vw, 4rem); } }
