/* Custom Properties & Reset */
:root {
  --color-primary: #4F46E5; /* Electric Indigo */
  --color-primary-hover: #4338ca;
  --color-bg: #FFFFFF;
  --color-surface: #F9FAFB;
  --color-border: #E5E7EB;
  --color-text-main: #1F2937; /* Dark charcoal */
  --color-text-muted: #6B7280;
  
  --font-main: 'Plus Jakarta Sans', system-ui, sans-serif;
  
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-glow: 0 0 20px rgba(79, 70, 229, 0.25);

  --radius-pill: 9999px;
  --radius-lg: 24px;
  --radius-md: 16px;
  
  --max-width: 1200px;
  --nav-height: 64px;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-text-main);
  line-height: 1.5;
}

body {
  min-height: 100vh;
  /* Add padding top to account for the floating nav plus some spacing */
  padding-top: calc(var(--nav-height) + 40px);
}

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

ul {
  list-style: none;
}

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

/* Floating Navigation */
.floating-nav {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  
  display: flex;
  align-items: center;
  justify-content: space-between;
  
  width: 90%;
  max-width: 900px;
  height: var(--nav-height);
  padding: 0 16px 0 24px;
  
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  
  border: 1px solid rgba(229, 231, 235, 0.8);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-md);
  
  transition: all 0.3s ease;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--color-primary);
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text-main);
  transition: color 0.2s ease;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn-primary {
  background-color: var(--color-primary);
  color: white;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--color-bg);
  color: var(--color-text-main);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  background-color: var(--color-surface);
  border-color: #d1d5db;
}

.btn-large {
  padding: 14px 32px;
  font-size: 1.0625rem;
}

/* Container */
main {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography utilities */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Hero Section */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 80px 0 120px;
  position: relative;
}

.hero-content {
  max-width: 800px;
  z-index: 2;
}

.hero h1 {
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  padding-bottom: 0.1em;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #111827 0%, #4B5563 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  color: var(--color-text-muted);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Bento Grid */
.features {
  padding: 60px 0;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(280px, auto);
  gap: 24px;
}

.bento-item {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.bento-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #d1d5db;
}

/* Abstract hover line */
.bento-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), #818cf8);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.bento-item:hover::before {
  opacity: 1;
}

.bento-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-text-main);
  letter-spacing: -0.01em;
}

.bento-content p {
  color: var(--color-text-muted);
  font-size: 1.0625rem;
}

/* Grid areas for Bento Layout */
.item-main {
  grid-column: span 2;
  grid-row: span 2;
  background: linear-gradient(135deg, #F9FAFB 0%, #FFFFFF 100%);
  justify-content: flex-start;
}
.item-main .bento-content h3 {
  font-size: 2.25rem;
}

.item-secondary {
  grid-column: span 2;
  grid-row: span 1;
}

.item-tertiary, .item-quaternary {
  grid-column: span 1;
  grid-row: span 1;
}

.item-wide {
  grid-column: span 4;
  grid-row: span 1;
  align-items: center;
  flex-direction: row;
  justify-content: space-between;
}

.item-wide .bento-content {
  max-width: 50%;
}

/* Social Proof */
.social-proof {
  padding: 80px 0;
  border-top: 1px solid var(--color-border);
  margin-top: 60px;
}

.logo-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 60px;
  opacity: 0.5;
  filter: grayscale(100%);
  transition: opacity 0.3s ease;
}

.logo-cloud:hover {
  opacity: 0.8;
}

.logo-placeholder {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-text-main);
  letter-spacing: -0.02em;
}

/* Footer */
.site-footer {
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 60px 24px 24px;
  margin-top: 80px;
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  color: var(--color-text-muted);
  margin-top: 12px;
  max-width: 250px;
}

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

.link-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.link-group h4 {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-main);
  font-weight: 700;
  margin-bottom: 8px;
}

.link-group a {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.875rem;
  font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .item-main {
    grid-column: span 2;
  }
  .item-secondary {
    grid-column: span 2;
  }
  .item-tertiary, .item-quaternary {
    grid-column: span 1;
  }
  .item-wide {
    grid-column: span 2;
    flex-direction: column;
    align-items: flex-start;
  }
  .item-wide .bento-content {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .floating-nav {
    width: calc(100% - 32px);
    padding: 0 16px;
  }
  
  .nav-links {
    display: none;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
  
  .bento-grid {
    grid-template-columns: 1fr;
  }
  
  .item-main, .item-secondary, .item-tertiary, .item-quaternary, .item-wide {
    grid-column: span 1;
  }

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

/* Elm St Digital Return Badge */
.elm-st-return-badge {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background-color: #111827;
  color: #ffffff;
  padding: 10px 16px;
  border-radius: 50px;
  font-family: sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.elm-st-return-badge:hover {
  background-color: #374151;
  transform: translateY(-2px);
}
