/* ==========================================================================
   1. Design Tokens & Variables
   ========================================================================== */
:root {
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  
  /* Color Palette */
  --clr-primary: #2563eb;       /* Vibrant Blue */
  --clr-primary-hover: #1d4ed8;
  --clr-secondary: #f1f5f9;     /* Light Gray */
  --clr-secondary-hover: #e2e8f0;
  --clr-dark: #0f172a;          /* Deep Slate for text/headings */
  --clr-light: #ffffff;
  --clr-muted: #64748b;         /* Cool gray for body text */
  --clr-bg-alt: #f8fafc;        /* Subtle contrast background */

  /* Layout & Spacing */
  --max-width: 1200px;
  --radius: 8px;
  --transition: all 0.2s ease-in-out;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--clr-light);
  color: var(--clr-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); text-align: center; }
h3 { font-size: 1.35rem; }

p {
  color: var(--clr-muted);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

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

ul {
  list-style: none;
}

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

.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}

section {
  padding: 5rem 0; /* Uniform section spacing */
}

/* ==========================================================================
   3. Components (Buttons & Forms)
   ========================================================================== */
.cta-button {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.cta-button.primary {
  background-color: var(--clr-primary);
  color: var(--clr-light);
}

.cta-button.primary:hover {
  background-color: var(--clr-primary-hover);
}

.cta-button.secondary {
  background-color: var(--clr-secondary);
  color: var(--clr-dark);
}

.cta-button.secondary:hover {
  background-color: var(--clr-secondary-hover);
}

/* ==========================================================================
   4. Header & Navigation
   ========================================================================== */
header {
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--clr-secondary);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}

nav .logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--clr-primary);
}

nav ul {
  display: flex;
  gap: 2rem;
}

nav a {
  font-weight: 500;
  color: var(--clr-dark);
  transition: var(--transition);
}

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

/* ==========================================================================
   5. Hero Section
   ========================================================================== */
.hero {
  padding: 8rem 0 6rem 0;
  text-align: center;
  background: radial-gradient(circle at top, #eff6ff 0%, #ffffff 100%);
}

.hero .container {
  max-width: 800px;
}

.hero .tagline {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem;
}

.hero-note {
  font-size: 0.875rem;
}

/* ==========================================================================
   6. Social Proof Section
   ========================================================================== */
.social-proof {
  padding: 2rem 0;
  border-top: 1px solid var(--clr-secondary);
  border-bottom: 1px solid var(--clr-secondary);
  background-color: var(--clr-bg-alt);
}

.trusted-by {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.logo-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 3rem;
}

.logo-placeholder {
  font-weight: 700;
  color: #94a3b8;
  font-size: 1.2rem;
}

/* ==========================================================================
   7. Features Section
   ========================================================================== */
.features h2 {
  margin-bottom: 4rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
}

.feature-card {
  background-color: var(--clr-light);
  padding: 2.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--clr-secondary);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}

.feature-card .icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

/* ==========================================================================
   8. Final CTA & Sign Up
   ========================================================================== */
.cta-final {
  background-color: var(--clr-bg-alt);
  text-align: center;
}

.cta-final h2 {
  margin-bottom: 1rem;
}

.cta-final p {
  max-width: 600px;
  margin: 0 auto 2.5rem auto;
}

.signup-form {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  max-width: 500px;
  margin: 0 auto;
}

.signup-form input[type="email"] {
  flex: 1;
  padding: 0.8rem 1.2rem;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius);
  font-size: 1rem;
  outline: none;
  transition: var(--transition);
}

.signup-form input[type="email"]:focus {
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* ==========================================================================
   9. Footer
   ========================================================================== */
footer {
  padding: 2rem 0;
  border-top: 1px solid var(--clr-secondary);
  text-align: center;
}

footer p {
  font-size: 0.9rem;
  margin: 0;
}

/* ==========================================================================
   10. Responsiveness Adjustments
   ========================================================================== */
@media (max-width: 640px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-actions .cta-button {
    width: 100%;
    text-align: center;
  }

  .signup-form {
    flex-direction: column;
    gap: 1rem;
  }
}