:root {
  --primary-dark: #0a0f1f;
  --primary-light: #1a2e4d;
  --accent: #2563eb;
  --accent-light: #60a5fa;
  --accent-dark: #1e40af;
  --success: #10b981;
  --bg: #ffffff;
  --surface: #f8fafc;
  --surface-alt: #f1f5f9;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --radius: 16px;
}

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

html {
  scroll-behavior: smooth;
}

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

.container {
  width: 92%;
  max-width: 1220px;
  margin: 0 auto;
}

/* Focus */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* HEADER */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  z-index: 1000;
  transition: all 0.3s ease;
}

.header-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--primary-light);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.5px;
  transition: all 0.3s ease;
}

.brand:hover {
  color: var(--accent);
}

.brand-icon {
  width: 45px;
  height: 45px;
  color: var(--accent);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 8px 16px;
  text-decoration: none;
  font-weight: 500;
  color: var(--text);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.nav-link:hover {
  background: var(--surface);
  color: var(--accent);
}

.nav-cta {
  background: var(--accent);
  color: white;
  border: none;
}

.nav-cta:hover {
  background: var(--accent-dark);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: all 0.3s ease;
}

/* HERO */
main {
  margin-top: 72px;
}

.hero {
  position: relative;
  padding: 100px 0 80px;
  background: linear-gradient(135deg, var(--primary-dark) 0%, #0d1530 100%);
  color: white;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

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

.gradient-orb-1 {
  width: 600px;
  height: 600px;
  background: var(--accent);
  top: -200px;
  left: -100px;
  animation: float 20s ease-in-out infinite;
}

.gradient-orb-2 {
  width: 400px;
  height: 400px;
  background: var(--success);
  bottom: -100px;
  right: 100px;
  animation: float 25s ease-in-out infinite reverse;
}

.gradient-orb-3 {
  width: 500px;
  height: 500px;
  background: var(--accent);
  top: -150px;
  right: -150px;
  animation: float 22s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0);
  }
  33% {
    transform: translate(30px, -30px);
  }
  66% {
    transform: translate(-30px, 30px);
  }
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  animation: slideInUp 0.8s ease-out;
}

.hero-title {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.highlight {
  background: linear-gradient(135deg, var(--accent-light), #3b82f6);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 40px;
  max-width: 500px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 16px;
}

.hero-visual {
  position: relative;
  height: 400px;
  animation: slideInRight 0.8s ease-out;
}

.card-stack {
  position: relative;
  width: 100%;
  height: 100%;
}

.card-visual {
  position: absolute;
  width: 280px;
  padding: 32px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: white;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.card-1 {
  background: rgba(37, 99, 235, 0.3);
  top: 20px;
  left: 0;
  animation: float 6s ease-in-out infinite;
}

.card-2 {
  background: rgba(16, 185, 129, 0.3);
  top: 120px;
  left: 80px;
  animation: float 7s ease-in-out infinite reverse;
}

.card-3 {
  background: rgba(139, 92, 246, 0.3);
  top: 220px;
  left: 40px;
  animation: float 8s ease-in-out infinite;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* SECTIONS */
.section {
  padding: 100px 0;
  position: relative;
}

.section-alt {
  background: linear-gradient(180deg, var(--surface) 0%, transparent 100%);
}

.section-header {
  margin-bottom: 60px;
  text-align: center;
}

.section-title {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(2.2rem, 4vw, 3rem);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: var(--text);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
}

/* SERVICES GRID */
.services-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.service-card {
  padding: 40px;
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

.service-card:hover {
  border-color: var(--accent);
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.15);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.card-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: white;
}

.card-icon svg {
  width: 28px;
  height: 28px;
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--text);
}

.service-card p {
  color: var(--text-muted);
  line-height: 1.8;
}

/* APPROACH */
.approach-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.approach-card {
  position: relative;
  padding: 40px;
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.approach-number {
  font-family: 'Instrument Serif', serif;
  font-size: 4rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.15;
  margin-bottom: -10px;
}

.approach-card h3 {
  font-size: 1.4rem;
  margin-bottom: 16px;
  color: var(--text);
}

.approach-card p {
  color: var(--text-muted);
  line-height: 1.8;
}

.approach-card:hover {
  border-color: var(--accent);
  box-shadow: 0 16px 32px rgba(37, 99, 235, 0.1);
  transform: translateY(-4px);
}

/* BUTTONS */
.btn {
  padding: 12px 28px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.btn svg {
  width: 20px;
  height: 20px;
}

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

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateX(4px);
}

.btn-secondary {
  border: 2px solid currentColor;
  color: white;
  background: transparent;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* CTA Section */
.cta {
  position: relative;
  background: linear-gradient(135deg, var(--primary-dark) 0%, #0d1530 100%);
  color: white;
  text-align: center;
  overflow: hidden;
}

.cta-background {
  position: absolute;
  inset: 0;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta h2 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.cta p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin: 0 auto 48px;
  line-height: 1.8;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* FOOTER */
.site-footer {
  background: var(--primary-dark);
  color: var(--text-muted);
  padding: 60px 0 24px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 48px;
  margin-bottom: 48px;
}

.footer-section h4 {
  color: white;
  margin-bottom: 20px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: white;
  font-weight: 700;
}

.footer-brand svg {
  width: 32px;
  height: 32px;
  color: var(--accent);
}

.footer-section p {
  line-height: 1.8;
}

.footer-section ul {
  list-style: none;
}

.footer-section a {
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-block;
  margin-bottom: 12px;
}

.footer-section a:hover {
  color: var(--accent);
  transform: translateX(4px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.9rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  main {
    margin-top: 60px;
  }

  .site-header {
    position: sticky;
  }

  .header-inner {
    height: 60px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    flex-direction: column;
    background: white;
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0;
    gap: 0;
  }

  .site-nav.open {
    max-height: 300px;
    padding: 20px;
  }

  .nav-link {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-visual {
    height: 300px;
  }

  .card-visual {
    width: 220px;
  }

  .card-1 {
    top: 0;
    left: 0;
  }

  .card-2 {
    top: 80px;
    left: 50px;
  }

  .card-3 {
    top: 160px;
    left: 20px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-title {
    font-size: 2rem;
  }

  .cta-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .footer-content {
    gap: 32px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .approach-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 60px 0 40px;
  }

  .section {
    padding: 60px 0;
  }

  .hero-title {
    font-size: 1.6rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .cta h2 {
    font-size: 1.6rem;
  }

  .service-card,
  .approach-card {
    padding: 24px;
  }

  .card-icon {
    width: 48px;
    height: 48px;
  }
}
