:root {
  --bg-color: #030303;
  --bg-card: rgba(20, 20, 25, 0.6);
  --bg-card-hover: rgba(25, 25, 30, 0.8);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-hover: rgba(255, 255, 255, 0.15);
  --text-primary: #ffffff;
  --text-secondary: rgba(235, 235, 245, 0.75);
  --text-tertiary: rgba(235, 235, 245, 0.5);
  --accent-primary: #3b82f6;
  --accent-secondary: #8b5cf6;
  --accent-glow: rgba(59, 130, 246, 0.5);
  
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  
  --ease-out: cubic-bezier(0.215, 0.61, 0.355, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Noise Texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s var(--ease-out);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

/* Layout Utilities */
.page {
  display: flex;
  flex-direction: column;
  overflow: hidden; /* Prevent horizontal scroll from effects */
}

.section {
  position: relative;
  padding: clamp(5rem, 10vw, 8rem) clamp(1.5rem, 5vw, 3.5rem);
  display: flex;
  justify-content: center;
}

.section__inner {
  width: min(1200px, 100%);
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(3rem, 6vw, 5rem);
}

.section__inner--split {
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: clamp(3rem, 8vw, 6rem);
}

.section__inner--compact {
  max-width: 800px;
  margin: 0 auto;
}

/* Header & Nav */
.hero__nav {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(1000px, calc(100% - 3rem));
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  background: rgba(10, 10, 12, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 100;
  transition: all 0.3s var(--ease-out);
}

.hero__nav.scrolled {
  background: rgba(5, 5, 8, 0.85);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.hero__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  color: #fff;
}

.hero__logo-mark {
  color: var(--accent-primary);
  font-size: 1.25rem;
}

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

.hero__menu-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.hero__menu-link:hover,
.hero__menu-link--active {
  color: #fff;
}

.hero__menu-link--cta {
  padding: 0.5rem 1.25rem;
  background: #fff;
  color: #000;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

.hero__menu-link--cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.25);
  color: #000;
}

.hero__menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 0.5rem;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8rem 1.5rem 4rem;
  overflow: hidden;
}

/* Hero Background Effects */
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 80%;
  background: radial-gradient(circle at center, rgba(59, 130, 246, 0.15), transparent 60%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  backdrop-filter: blur(8px);
  animation: fadeInDown 0.8s var(--ease-out);
}

.hero__title {
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 700;
  background: linear-gradient(to bottom right, #fff 30%, rgba(255, 255, 255, 0.5));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.03em;
  animation: fadeInUp 0.8s var(--ease-out) 0.1s backwards;
}

.hero__subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: var(--text-secondary);
  max-width: 600px;
  animation: fadeInUp 0.8s var(--ease-out) 0.2s backwards;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  animation: fadeInUp 0.8s var(--ease-out) 0.3s backwards;
}

.hero__trust {
  margin-top: 3rem;
  font-size: 0.9rem;
  color: var(--text-tertiary);
  animation: fadeIn 1s var(--ease-out) 0.5s backwards;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s var(--ease-out);
  cursor: pointer;
}

.button--primary {
  background: #fff;
  color: #000;
  border: 1px solid #fff;
}

.button--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.button--ghost {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.button--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 1.5rem;
  padding: 2rem;
  transition: all 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-color-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

/* Feature Cards */
.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card__icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  background: rgba(59, 130, 246, 0.15);
  display: grid;
  place-items: center;
  margin-bottom: 1.5rem;
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.15);
}

.feature-card__icon svg {
  width: 1.75rem;
  height: 1.75rem;
  stroke-width: 2;
}

.feature-card__title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #fff;
}

.feature-card__text {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Section Headers */
.section__header {
  margin-bottom: 1rem;
}

.section__eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-primary);
  margin-bottom: 1rem;
}

.section__title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: #fff;
}

.section__description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
}

/* Solutions */
.solutions__list {
  display: grid;
  gap: 1.5rem;
}

.solutions__item {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.solutions__item h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
}

.solutions__item p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Timeline */
.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 1.5rem;
  top: 2rem;
  bottom: 2rem;
  width: 1px;
  background: linear-gradient(to bottom, 
    var(--accent-primary), 
    rgba(255, 255, 255, 0.1)
  );
  z-index: 0;
}

.timeline__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
  position: relative;
  z-index: 1;
}

.timeline__item:last-child {
  margin-bottom: 0;
}

.timeline__badge {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: #0a0a0a;
  border: 1px solid var(--border-color);
  display: grid;
  place-items: center;
  font-weight: 600;
  color: #fff;
  font-size: 0.9rem;
  box-shadow: 0 0 0 4px var(--bg-color);
}

.timeline__content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #fff;
}

.timeline__content p {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* Testimonials */
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.testimonial-card__quote {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-style: italic;
}

.testimonial-card__meta {
  display: flex;
  flex-direction: column;
}

.testimonial-card__name {
  font-weight: 600;
  color: #fff;
}

.testimonial-card__role {
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

/* CTA & Login */
.cta-card, .login-card {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(to bottom right, rgba(20, 20, 25, 0.8), rgba(10, 10, 12, 0.9));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

.cta-card__actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

/* Footer */
.footer {
  padding: 4rem 1.5rem;
  border-top: 1px solid var(--border-color);
  background: #050505;
}

.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: #fff;
}

.footer__menu {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer__menu a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer__menu a:hover {
  color: #fff;
}

.footer__note {
  color: var(--text-tertiary);
  font-size: 0.85rem;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s var(--ease-out);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .hero__nav {
    width: calc(100% - 2rem);
    padding: 0.75rem 1rem;
  }

  .hero__menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: rgba(15, 15, 20, 0.95);
    backdrop-filter: blur(16px);
    padding: 1.5rem;
    border-radius: 1.5rem;
    border: 1px solid var(--border-color);
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: all 0.2s var(--ease-out);
  }

  .hero__menu[data-open="true"] {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
  }

  .hero__menu-toggle {
    display: block;
  }

  .hero__menu-link {
    padding: 0.5rem 0;
    font-size: 1rem;
  }

  .hero__menu-link--cta {
    text-align: center;
    margin-top: 0.5rem;
  }

  .section__inner--split {
    grid-template-columns: 1fr;
  }

  .timeline::before {
    left: 1.5rem;
  }
  
  .cta-card__actions {
    flex-direction: column;
  }
}
