:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary: #1e293b;
  --accent: #f8fafc;
  --text-main: #0f172a;
  --text-muted: #475569;
  --white: #ffffff;
  --glass: rgba(255, 255, 255, 0.8);
  --border-color: rgba(30, 41, 59, 0.1);
  --radius-sm: 4px;
  --radius-md: 12px;
  --radius-lg: 24px;
  --shadow-soft: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
  --shadow-strong: 0 20px 40px -4px rgba(0, 0, 0, 0.1);
  --font-inter: 'Inter', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-inter);
  color: var(--text-main);
  background-color: var(--accent);
  line-height: 1.6;
  overflow-x: hidden;
  font-size: 16px; /* Ensure minimum 16px body text */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* Typography Overrides */
h1, h2, h3, h4 {
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

/* Footer Styles */
footer {
  background: var(--secondary);
  color: var(--white);
  padding: 6rem 0 2rem;
  margin-top: auto;
}


footer {
  background: var(--secondary);
  color: var(--white);
  padding: 6rem 0 2rem;
  margin-top: auto;
}


img {
  max-width: 100%;
  height: auto;
  display: block; /* Remove bottom space */
}

/* Typography Overrides */
h1, h2, h3, h4 {
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

/* Custom Navigation */
.nav-glass {
  background: var(--glass);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.nav-link {
  position: relative;
  font-weight: 500;
  color: var(--secondary);
  transition: color 0.3s ease;
  padding: 0.5rem 0; /* Increase touch area */
  display: inline-block;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.btn-premium, .btn-outline {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Hero Section Art Direction */
.hero-split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  min-height: 90vh;
  align-items: center;
}

@media (max-width: 1024px) {
  .hero-split {
    grid-template-columns: 1fr;
    padding-top: 120px;
    text-align: center;
  }
}

.hero-image-wrapper {
  position: relative;
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.hero-image-mask {
  width: 90%;
  height: 80%;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  box-shadow: var(--shadow-strong);
  position: relative;
}

@media (max-width: 1024px) {
  .hero-image-mask {
    border-radius: var(--radius-lg);
    width: 100%;
    height: 400px;
    margin-top: 40px;
  }
}

.hero-stats-card {
  position: absolute;
  bottom: 10%;
  left: -10%;
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-strong);
  animation: float 6s ease-in-out infinite;
}

@media (max-width: 1280px) {
  .hero-stats-card {
    left: 0;
    bottom: 5%;
  }
}

@media (max-width: 1024px) {
  .hero-stats-card {
    position: relative;
    left: 0;
    bottom: 0;
    margin: 2rem auto 0;
    max-width: 300px;
    animation: none;
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

/* Signature Button System */
.btn-premium {
  position: relative;
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: transform 0.3s ease;
  z-index: 1;
}

.btn-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--primary-dark);
  transition: left 0.4s cubic-bezier(0.7, 0, 0.3, 1);
  z-index: -1;
}

.btn-premium:hover {
  transform: translateY(-2px);
}

.btn-premium:hover::before {
  left: 0;
}

.btn-outline {
  padding: 1rem 2.5rem;
  border: 2px solid var(--secondary);
  color: var(--secondary);
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: var(--secondary);
  color: var(--white);
}

/* Elevated Glass Card System */
.card-glass {
  background: var(--white);
  border: 1px solid var(--border-color);
  padding: 3rem;
  border-radius: var(--radius-md);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
}

.card-glass:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-strong);
  border-color: var(--primary);
}

.card-icon {
  width: 60px;
  height: 60px;
  background: var(--accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  color: var(--primary);
  transition: all 0.3s ease;
}

.card-glass:hover .card-icon {
  background: var(--primary);
  color: var(--white);
}

/* Section Rhythm */
.section-overlap {
  margin-top: -100px;
  position: relative;
  z-index: 10;
}

.organic-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: radial-gradient(circle at 10% 20%, rgba(37, 99, 235, 0.03) 0%, transparent 50%),
              radial-gradient(circle at 90% 80%, rgba(37, 99, 235, 0.05) 0%, transparent 50%);
}

/* Footer Styles */
footer {
  background: var(--secondary);
  color: var(--white);
  padding: 6rem 0 2rem;
}

.footer-link {
  color: #94a3b8;
  transition: color 0.3s ease;
}

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

/* Mobile Menu */
.mobile-menu-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 101;
  border: none;
  background: transparent;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: var(--white);
  z-index: 1000; /* Higher than nav */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: right 0.5s cubic-bezier(0.7, 0, 0.3, 1);
}

/* Ensure mobile menu items are tappable */
.mobile-menu a {
  padding: 1.5rem 2rem;
  width: 100%;
  text-align: center;
  display: block;
  min-height: 48px; /* Slightly larger for better touch */
  color: var(--secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.5rem;
}

.close-menu {
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu.active {
  right: 0;
}

/* Cookie Consent */
.cookie-banner {
  position: fixed;
  bottom: -100%;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2rem);
  max-width: 600px;
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-strong);
  z-index: 2000; /* Highest z-index */
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  transition: bottom 0.5s ease;
}

@media (max-width: 640px) {
  .cookie-banner {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .cookie-banner button {
    width: 100%;
  }
}

.cookie-banner.active {
  bottom: 2rem;
}

/* Form Styles */
.form-input {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--accent);
  transition: border-color 0.3s ease;
  font-size: 16px; /* Avoid iOS zoom */
}

.form-input:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-color: var(--primary);
}

.accept-cookies {
  cursor: pointer;
  min-height: 44px;
  padding: 0.5rem 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

button:focus-visible, a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--accent);
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}