@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  /* High contrast background colors */
  --bg-color: #ffffff;
  --bg-subtle: #f6f9fc;
  
  /* Text colors */
  --text-primary: #0a2540;     /* Deep navy/slate for crisp headings */
  --text-secondary: #425466;   /* Rich muted blue/gray for readable body text */
  --text-tertiary: #8792a2;
  --text-inverse: #ffffff;
  --text-inverse-secondary: #adbdcc;

  /* Accent colors */
  --accent-primary: #635bff;    /* Vibrant Indigo */
  --accent-hover: #0a2540;      /* Dark navy hover */
  --accent-light: #f6f9fc;
  
  /* Borders and elements */
  --border-color: #e6e8eb;
  --card-bg: #ffffff;
  --footer-bg: #0a2540;         /* Dark, rich footer */
  
  /* Spacing */
  --spacing-sm: 0.5rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 3rem;
  --spacing-xl: 6rem;
  --spacing-xxl: 10rem;
  
  /* Shadows based on Stripe design */
  --shadow-sm: 0 2px 5px -1px rgba(50,50,93,0.25), 0 1px 3px -1px rgba(0,0,0,0.3);
  --shadow-md: 0 13px 27px -5px rgba(50,50,93,0.25), 0 8px 16px -8px rgba(0,0,0,0.3);
  --shadow-lg: 0 30px 60px -12px rgba(50,50,93,0.25), 0 18px 36px -18px rgba(0,0,0,0.3);
  
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px; /* Offset for the sticky header if you decide to make it sticky later, but good practice for anchor links anyway */
  background-color: var(--bg-subtle); /* Prevents pure white flash during body fade-in */
}

@view-transition {
  navigation: auto;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  animation: pageFadeIn 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

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

/* Base Layout */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
}

.content-section {
  padding: 4rem 0; /* Reduced from 6rem based on user feedback */
}

.bg-subtle {
  background-color: var(--bg-subtle);
}

/* Typography elements */
h1, h2, h3, h4 {
  font-weight: 800; /* Extra bold headings typical of Stripe */
  color: var(--text-primary);
  letter-spacing: -0.04em;
  line-height: 1.1;
}

h1 {
  font-size: clamp(3rem, 6vw, 4.5rem);
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

p {
  color: var(--text-secondary);
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  max-width: 65ch;
}

p.lead {
  font-size: 1.35rem;
  color: var(--text-secondary);
  max-width: 55ch;
  line-height: 1.6;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 600;
  position: relative;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

a:hover {
  color: var(--accent-hover);
}

/* Base link animation for non-button links */
main a:not(.btn)::after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: var(--accent-hover);
  transform-origin: bottom right;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

main a:not(.btn):hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* Header */
header {
  background-color: transparent;
  padding: 1.5rem 0;
  width: 100%;
  position: absolute;
  top: 0;
  z-index: 10;
}

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

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

.logo:hover {
  text-decoration: none;
}

.nav-links a {
  margin-left: 2rem;
  font-size: 0.9375rem;
  color: var(--text-primary);
  font-weight: 600;
  position: relative;
  transition: color 0.25s ease;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--accent-primary);
  transform-origin: bottom right;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* Buttons */
.btn-group {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  border-radius: 999px; /* Pill shape */
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.2s ease;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--accent-primary);
  color: #fff;
  border: 1px solid transparent;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 8px -1px rgba(0, 0, 0, 0.15), 0 3px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border: none;
}

.btn-secondary:hover {
  color: var(--text-primary);
  background-color: rgba(10, 37, 64, 0.05); /* very light navy */
  transform: translateY(-1px);
}

.btn-secondary::after {
  content: "→";
  margin-left: 0.5rem;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.btn-secondary:hover::after {
  transform: translateX(4px);
}

/* Hero Section with Vibrant Mesh Gradient */
.hero {
  position: relative;
  padding: 12rem 0 8rem;
  overflow: hidden;
  background-color: #f6f9fc;
}

.hero::before {
  content: "";
  position: absolute;
  top: -150px;
  right: -100px;
  width: 80vw;
  height: 80vw;
  background: radial-gradient(circle at top right, rgba(99, 91, 255, 0.2) 0%, transparent 50%),
              radial-gradient(circle at bottom right, rgba(255, 128, 255, 0.15) 0%, transparent 40%),
              radial-gradient(circle at center right, rgba(0, 212, 255, 0.15) 0%, transparent 60%);
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
  transform: rotate(-15deg);
}

.hero .container {
  z-index: 1;
}

.hero h1 {
  max-width: 15ch;
  position: relative;
}

.tagline {
  display: inline-block;
  color: var(--accent-primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.8125rem;
  margin-bottom: 1.5rem;
}

/* Cards */
.card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 3rem;
  box-shadow: var(--shadow-md);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  z-index: 1;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.document-card {
  padding: 4rem;
  margin-top: 6rem; /* Push down to clear header */
  box-shadow: var(--shadow-md);
  margin-bottom: 4rem;
}

/* Lists */
.list-items {
  list-style: none;
  margin-bottom: 2rem;
  margin-top: 1.5rem;
}

.list-items li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
  color: var(--text-secondary);
  font-size: 1.125rem;
  font-weight: 500;
}

/* Custom checkmark list style */
.list-items li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-primary);
  font-weight: 800;
  font-size: 0.9em;
  background: rgba(99, 91, 255, 0.1);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

/* Contact box override */
.minimalist-card {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 3rem 0;
  border-top: 1px solid var(--border-color);
  margin-top: 2rem;
}

.minimalist-card:hover {
  transform: none;
  box-shadow: none;
}

/* Privacy Document */
.document-content {
  background-color: var(--bg-subtle);
  min-height: 100vh;
}

.document-content h2 {
  margin-top: 3.5rem;
  font-size: 1.75rem;
  color: var(--text-primary);
}

/* Footer (Dark styling) */
footer {
  background-color: var(--footer-bg);
  color: var(--text-inverse);
  padding: 5rem 0 2rem;
  position: relative;
}

.footer-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-layout {
    grid-template-columns: 1fr auto;
  }
}

.footer-info p, .footer-brand {
  color: var(--text-inverse-secondary);
}

.footer-brand {
  font-weight: 700;
  color: var(--text-inverse);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--text-inverse-secondary);
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #fff;
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
}

.footer-bottom p {
  color: var(--text-inverse-secondary);
  font-size: 0.875rem;
}

/* Utility / Special Elements */
.mt-lg {
  margin-top: 2.5rem;
}

.pb-lg {
  padding-bottom: 2rem; /* Reduced to tighten gap */
}

.pb-xl {
  padding-bottom: 8rem;
}

/* Special accent for product */
#products {
  position: relative;
  background-color: var(--bg-color); /* pure white to contrast subtle hero */
}
