/* ============================================
   Aspen Loop Investment Partners — Main Stylesheet
   ============================================ */

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

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

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #1E293B;
  background: #FFFFFF;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.25;
  font-weight: 700;
  color: #0F172A;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }

/* ---------- Utility ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.container-narrow {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.125em;
  text-transform: uppercase;
  color: #0EA5E9;
  margin-bottom: 0.75rem;
}

.section-title {
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: #475569;
  max-width: 640px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.3);
}

.btn-primary {
  background: #0EA5E9;
  color: #FFFFFF;
}

.btn-outline {
  background: transparent;
  color: #0EA5E9;
  border: 2px solid #0EA5E9;
}

.btn-outline:hover {
  background: #0EA5E9;
  color: #FFFFFF;
}

.btn-light {
  background: #FFFFFF;
  color: #0F172A;
}

.btn-light:hover {
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.3);
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav.scrolled {
  background: #0F172A;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #FFFFFF;
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
  background: #0EA5E9;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.125rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  color: #CBD5E1;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #0EA5E9;
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: #FFFFFF;
}

.nav-links a:hover::after {
  width: 100%;
}

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

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #FFFFFF;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0F172A;
  overflow: hidden;
  padding: 6rem 0 4rem;
}

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

.hero-geo {
  position: absolute;
  border-radius: 0.75rem;
  opacity: 0.08;
}

.hero-geo-1 {
  width: 320px;
  height: 320px;
  background: #0EA5E9;
  top: -80px;
  right: -60px;
  transform: rotate(35deg);
  animation: floatGeo 8s ease-in-out infinite;
}

.hero-geo-2 {
  width: 200px;
  height: 200px;
  background: #06B6D4;
  bottom: -40px;
  left: 10%;
  transform: rotate(55deg);
  animation: floatGeo 10s ease-in-out infinite reverse;
}

.hero-geo-3 {
  width: 140px;
  height: 140px;
  background: #0EA5E9;
  top: 30%;
  left: 60%;
  border-radius: 50%;
  animation: floatGeo 7s ease-in-out infinite;
}

.hero-geo-4 {
  width: 100px;
  height: 100px;
  background: #06B6D4;
  top: 55%;
  left: 15%;
  border-radius: 50%;
  animation: floatGeo 9s ease-in-out infinite reverse;
}

@keyframes floatGeo {
  0%, 100% { transform: translateY(0) rotate(35deg); }
  50% { transform: translateY(-30px) rotate(38deg); }
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(14, 165, 233, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 165, 233, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
}

.hero-badge {
  display: inline-block;
  padding: 0.375rem 1rem;
  background: rgba(14, 165, 233, 0.15);
  border: 1px solid rgba(14, 165, 233, 0.3);
  border-radius: 2rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #0EA5E9;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.hero-title {
  color: #FFFFFF;
  font-size: 3.5rem;
  margin-bottom: 1.25rem;
  letter-spacing: -0.025em;
}

.hero-title span {
  color: #0EA5E9;
}

.hero-desc {
  color: #94A3B8;
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Stats Bar ---------- */
.stats-bar {
  background: #1E3A5F;
  padding: 3rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item {
  padding: 0 1rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: #0EA5E9;
  line-height: 1.1;
}

.stat-label {
  font-size: 0.9375rem;
  color: #94A3B8;
  margin-top: 0.5rem;
}

/* ---------- Services ---------- */
.services {
  padding: 6rem 0;
  background: #FFFFFF;
}

.services-header {
  text-align: center;
  margin-bottom: 4rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 1rem;
  padding: 2.5rem 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0EA5E9, #06B6D4);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  border-color: #CBD5E1;
}

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

.service-icon {
  width: 56px;
  height: 56px;
  background: #E0F2FE;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.service-icon svg {
  width: 28px;
  height: 28px;
  stroke: #0EA5E9;
  fill: none;
  stroke-width: 2;
}

.service-card h3 {
  margin-bottom: 0.75rem;
}

.service-card p {
  color: #475569;
  font-size: 0.9375rem;
}

/* ---------- Process ---------- */
.process {
  padding: 6rem 0;
  background: #0F172A;
  color: #FFFFFF;
}

.process .section-label {
  color: #06B6D4;
}

.process .section-title {
  color: #FFFFFF;
}

.process .section-subtitle {
  color: #94A3B8;
}

.process-header {
  text-align: center;
  margin-bottom: 4rem;
}

.process-timeline {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
}

.process-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #1E3A5F;
  transform: translateX(-50%);
}

.process-step {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 3rem;
  position: relative;
}

.process-step:nth-child(odd) {
  flex-direction: row;
}

.process-step:nth-child(even) {
  flex-direction: row-reverse;
  text-align: right;
}

.process-step:nth-child(even) .process-body {
  text-align: right;
}

.process-marker {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 48px;
  background: #0EA5E9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.125rem;
  color: #FFFFFF;
  z-index: 1;
  box-shadow: 0 0 0 8px #0F172A;
}

.process-body {
  flex: 1;
  max-width: 400px;
}

.process-step:nth-child(odd) .process-body {
  margin-right: calc(50% + 3rem);
}

.process-step:nth-child(even) .process-body {
  margin-left: calc(50% + 3rem);
}

.process-body h3 {
  color: #FFFFFF;
  margin-bottom: 0.5rem;
}

.process-body p {
  color: #94A3B8;
  font-size: 0.9375rem;
}

/* ---------- Tech Stack ---------- */
.tech {
  padding: 6rem 0;
  background: #F8FAFC;
}

.tech-header {
  text-align: center;
  margin-bottom: 4rem;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.5rem;
}

.tech-item {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 0.75rem;
  padding: 1.5rem 1rem;
  text-align: center;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.tech-item:hover {
  border-color: #0EA5E9;
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.1);
}

.tech-item-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 0.75rem;
  background: #E0F2FE;
  border-radius: 0.625rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tech-item-icon svg {
  width: 22px;
  height: 22px;
  stroke: #0EA5E9;
  fill: none;
  stroke-width: 2;
}

.tech-item-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  padding: 5rem 0;
  background: #0EA5E9;
  text-align: center;
}

.cta-banner h2 {
  color: #FFFFFF;
  margin-bottom: 1rem;
}

.cta-banner p {
  color: #E0F2FE;
  font-size: 1.125rem;
  max-width: 560px;
  margin: 0 auto 2rem;
}

/* ---------- Footer ---------- */
.footer {
  background: #0F172A;
  color: #94A3B8;
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid #1E293B;
}

.footer-brand h3 {
  color: #FFFFFF;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.9375rem;
  line-height: 1.6;
}

.footer-col h4 {
  color: #FFFFFF;
  font-size: 0.9375rem;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-col ul li {
  margin-bottom: 0.625rem;
}

.footer-col ul li a {
  font-size: 0.9375rem;
  color: #94A3B8;
  transition: color 0.2s ease;
}

.footer-col ul li a:hover {
  color: #0EA5E9;
}

.footer-bottom {
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
}

.footer-bottom a {
  color: #0EA5E9;
}

/* ---------- Page Header (for privacy/terms) ---------- */
.page-header {
  background: #0F172A;
  padding: 8rem 0 4rem;
  text-align: center;
}

.page-header h1 {
  color: #FFFFFF;
  margin-bottom: 0.75rem;
}

.page-header p {
  color: #94A3B8;
  font-size: 1rem;
}

/* ---------- Legal Content ---------- */
.legal-content {
  padding: 4rem 0 6rem;
  background: #FFFFFF;
}

.legal-content .container-narrow {
  max-width: 800px;
}

.legal-block {
  margin-bottom: 2.5rem;
}

.legal-block h2 {
  font-size: 1.375rem;
  color: #0F172A;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #E0F2FE;
}

.legal-block p {
  color: #334155;
  line-height: 1.8;
}

.legal-block ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-block ul li {
  color: #334155;
  line-height: 1.8;
  margin-bottom: 0.375rem;
}

.legal-last-updated {
  color: #64748B;
  font-size: 0.875rem;
  margin-bottom: 3rem;
  font-style: italic;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .tech-grid { grid-template-columns: repeat(3, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }

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

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #0F172A;
    flex-direction: column;
    padding: 1.5rem 2rem;
    gap: 1rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .services-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }

  .process-timeline::before {
    left: 24px;
  }

  .process-step,
  .process-step:nth-child(even) {
    flex-direction: row;
    text-align: left;
  }

  .process-marker {
    left: 24px;
  }

  .process-step .process-body,
  .process-step:nth-child(even) .process-body {
    margin: 0 0 0 3.5rem;
    max-width: none;
    text-align: left;
  }

  .process-step:nth-child(even) .process-body {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .container, .container-narrow { padding: 0 1rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .stats-grid { grid-template-columns: 1fr; }
}
