/* ============================
   ACE AGENCY — STYLES
   ============================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;1,9..40,400&display=swap');

/* === RESET & BASE === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy: #0d1b2a;
  --navy-light: #162032;
  --accent: #2e8bff;
  --accent-dark: #1a6fd4;
  --accent-glow: rgba(46, 139, 255, 0.15);
  --white: #ffffff;
  --grey-100: #f5f7fa;
  --grey-200: #e8ecf0;
  --grey-400: #9ba8b5;
  --grey-600: #5a6a7a;
  --text: #1a2433;
  --text-light: #4a5a6a;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 4px 24px rgba(13, 27, 42, 0.08);
  --shadow-lg: 0 8px 48px rgba(13, 27, 42, 0.14);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

/* === TYPOGRAPHY === */
h1, h2, h3, h4 {
  font-family: 'Syne', sans-serif;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
p  { font-size: 1.05rem; color: var(--text-light); }

.section-label {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-glow);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 1rem;
}

/* === UTILITIES === */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.section-dark {
  background: var(--navy);
  color: var(--white);
}

.section-dark p { color: var(--grey-400); }
.section-dark h2 { color: var(--white); }

.section-alt {
  background: var(--grey-100);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(46, 139, 255, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.3);
}

.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.06);
}

.btn-lg {
  padding: 17px 36px;
  font-size: 1.05rem;
  border-radius: 12px;
}

/* === NAVIGATION === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

.nav.scrolled {
  background: rgba(13, 27, 42, 0.96);
  backdrop-filter: blur(12px);
  padding: 14px 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Syne', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
}

.nav-logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--white); }

.nav-cta {
  background: var(--accent);
  color: var(--white) !important;
  padding: 9px 20px;
  border-radius: var(--radius);
  transition: background 0.2s, transform 0.2s !important;
}

.nav-cta:hover {
  background: var(--accent-dark) !important;
  transform: translateY(-1px);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--navy);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  font-family: 'Syne', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
}

.mobile-menu a:hover { color: var(--accent); }

.mobile-menu .btn {
  margin-top: 12px;
  font-size: 1rem;
}

/* === HERO === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--navy);
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
}

.hero-orb-1 {
  width: 600px;
  height: 600px;
  background: var(--accent);
  top: -150px;
  right: -100px;
}

.hero-orb-2 {
  width: 400px;
  height: 400px;
  background: #4ecdc4;
  bottom: -100px;
  left: -80px;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(46,139,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46,139,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-content {
  position: relative;
  max-width: 720px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(46, 139, 255, 0.12);
  border: 1px solid rgba(46, 139, 255, 0.25);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: 100px;
  margin-bottom: 1.5rem;
  letter-spacing: 0.04em;
}

.hero-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(46,139,255,0.25);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(46,139,255,0.25); }
  50% { box-shadow: 0 0 0 6px rgba(46,139,255,0.1); }
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1.25rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.65);
  max-width: 580px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-social-proof {
  margin-top: 3rem;
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-social-proof-text {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.45);
}

.hero-stats {
  display: flex;
  gap: 28px;
}

.hero-stat {
  display: flex;
  flex-direction: column;
}

.hero-stat-num {
  font-family: 'Syne', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
}

.hero-stat-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
}

/* === PROBLEM SECTION === */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 3rem;
}

.problem-card {
  background: var(--navy-light);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.problem-card:hover {
  transform: translateY(-4px);
  border-color: rgba(46,139,255,0.25);
}

.problem-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(46,139,255,0.04), transparent);
  pointer-events: none;
}

.problem-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(46,139,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.problem-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--accent);
}

.problem-card h3 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.problem-card p {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.65;
}

/* === SOLUTION SECTION === */
.solution-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 4rem;
}

.solution-intro-text h2 {
  margin-bottom: 1rem;
}

.solution-intro-text p {
  font-size: 1.05rem;
  line-height: 1.75;
}

.solution-visual {
  position: relative;
}

.solution-card-stack {
  position: relative;
  height: 280px;
}

.stack-card {
  position: absolute;
  background: var(--navy);
  border: 1px solid rgba(46,139,255,0.2);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  width: 100%;
}

.stack-card:nth-child(1) { top: 0; z-index: 3; }
.stack-card:nth-child(2) { top: 24px; z-index: 2; opacity: 0.75; transform: scale(0.97); }
.stack-card:nth-child(3) { top: 44px; z-index: 1; opacity: 0.5; transform: scale(0.94); }

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

.stack-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(46,139,255,0.2);
  animation: pulse 2s infinite;
}

.stack-card-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  color: var(--white);
  font-size: 0.95rem;
}

.stack-card-body {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
}

.stack-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 500;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
}

.feature-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: rgba(46,139,255,0.2);
}

.feature-number {
  font-family: 'Syne', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(46,139,255,0.12);
  line-height: 1;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.feature-card p {
  font-size: 0.92rem;
  line-height: 1.7;
}

.feature-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-glow);
  padding: 4px 10px;
  border-radius: 100px;
  margin-top: 1rem;
}

/* === WHO WE SERVE === */
.serve-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 3rem;
}

.serve-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
}

.serve-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
  border-color: var(--accent);
}

.serve-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.serve-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.5;
}

.serve-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
  color: var(--text);
}

.serve-card p {
  font-size: 0.9rem;
  line-height: 1.65;
}

/* === CTA SECTION === */
.cta-section {
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

.cta-section .hero-orb-1 {
  width: 500px;
  height: 500px;
  top: -200px;
  right: -150px;
  opacity: 0.12;
}

.cta-inner {
  position: relative;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.cta-inner h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-inner p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 2.5rem;
}

.cta-box {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin-top: 2rem;
}

.cta-box p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.45);
  margin-top: 1rem;
}

/* === FOOTER === */
.footer {
  background: #070e16;
  padding: 48px 0 32px;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand {
  max-width: 280px;
}

.footer-logo {
  font-family: 'Syne', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.footer-logo span { color: var(--accent); }

.footer-brand p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.35);
  line-height: 1.65;
}

.footer-links {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.footer-link-group h4 {
  font-family: 'Syne', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 1rem;
}

.footer-link-group a {
  display: block;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.6rem;
  transition: color 0.2s;
}

.footer-link-group a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.25);
}

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

.footer-bottom-links a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.3);
  transition: color 0.2s;
}

.footer-bottom-links a:hover { color: rgba(255,255,255,0.7); }

/* === LEGAL PAGES === */
.legal-page {
  padding-top: 120px;
  min-height: 100vh;
}

.legal-hero {
  background: var(--navy);
  padding: 80px 0 60px;
}

.legal-hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.5rem;
}

.legal-hero p {
  color: rgba(255,255,255,0.5);
  font-size: 0.95rem;
}

.legal-body {
  padding: 64px 0 100px;
}

.legal-content {
  max-width: 760px;
}

.legal-content h2 {
  font-size: 1.35rem;
  margin: 2.5rem 0 0.75rem;
  color: var(--text);
}

.legal-content h2:first-child { margin-top: 0; }

.legal-content p {
  font-size: 0.97rem;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.legal-content ul {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 1rem;
}

.legal-content ul li {
  position: relative;
  padding-left: 20px;
  font-size: 0.97rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 0.4rem;
}

.legal-content ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.legal-content strong {
  color: var(--text);
  font-weight: 600;
}

.legal-divider {
  height: 1px;
  background: var(--grey-200);
  margin: 2rem 0;
}

.legal-callout {
  background: var(--accent-glow);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 20px;
  margin: 1.5rem 0;
}

.legal-callout p {
  color: var(--text) !important;
  font-size: 0.92rem !important;
  margin: 0 !important;
}

/* === ANIMATIONS === */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }
.fade-in-delay-5 { transition-delay: 0.5s; }

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .problem-grid,
  .features-grid,
  .serve-grid {
    grid-template-columns: 1fr 1fr;
  }

  .solution-intro {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .solution-visual { display: none; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .section { padding: 72px 0; }

  .hero {
    padding: 110px 0 72px;
    min-height: auto;
  }

  .hero-social-proof { flex-wrap: wrap; }

  .problem-grid,
  .features-grid,
  .serve-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner { flex-direction: column; }
  .footer-links { gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .hero-stats { flex-direction: column; gap: 12px; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .btn-lg { width: 100%; justify-content: center; }
  .cta-box { padding: 24px 20px; }
}
