/* ------------------------------
   Base + Variables
------------------------------ */

:root {
  --bg: #f5f7fb;
  --bg-alt: #ffffff;
  --bg-soft: #eef2ff;
  --primary: #2563eb;
  --primary-soft: #dbeafe;
  --accent: #f97316;
  --text: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.07);
  --radius-lg: 18px;
  --radius-pill: 999px;
}

/* Reset-ish */

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Nunito", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

/* Layout helpers */

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--bg-soft);
}

.section-header {
  margin-bottom: 2.5rem;
}

.section-header.center {
  text-align: center;
}

.section-header.light h2,
.section-header.light p {
  color: #f9fafb;
}

/* Typography */

h1,
h2,
h3 {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  margin: 0 0 0.5rem;
}

h1 {
  font-size: clamp(2.4rem, 3.2vw + 1.4rem, 3.2rem);
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(2rem, 2.2vw + 1.2rem, 2.4rem);
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.1rem;
}

p {
  margin: 0;
  color: var(--muted);
}

.lead {
  font-size: 1.05rem;
}

/* ------------------------------
   Buttons
------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease-out;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  color: #ffffff;
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 24px 55px rgba(37, 99, 235, 0.35);
}

.btn-primary.inverted {
  background: #ffffff;
  color: #1d4ed8;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #e5e7eb;
  border-color: rgba(148, 163, 184, 0.5);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
}

.btn-outline {
  border-color: var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn-outline:hover {
  background: var(--primary-soft);
}

.full-width {
  width: 100%;
}

.text-link {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
}

/* ------------------------------
   Nav / Header
------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(245, 247, 251, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

/* Logo */

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 1rem;
  background: radial-gradient(circle at 10% 0, #f97316, #2563eb);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.75rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.35);
}

.logo-text {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  letter-spacing: -0.03em;
  font-size: 1.1rem;
}

.logo-text span {
  color: var(--primary);
}

/* Nav links */

.main-nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  font-size: 0.9rem;
}

.main-nav a {
  color: var(--muted);
  font-weight: 500;
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #2563eb, #4f46e5);
  transition: width 0.16s ease-out;
}

.main-nav a:hover::after {
  width: 100%;
}

/* Mobile nav (checkbox hack) */

.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.8);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  display: block;
  width: 14px;
  height: 2px;
  background: #1f2933;
  border-radius: 999px;
  position: relative;
  transition: all 0.16s ease-out;
}

.nav-toggle-label span::before,
.nav-toggle-label span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-label span::before {
  top: -5px;
}

.nav-toggle-label span::after {
  top: 5px;
}

/* Checkbox -> open nav */

.nav-toggle:checked + .nav-toggle-label span {
  background: transparent;
}

.nav-toggle:checked + .nav-toggle-label span::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle:checked + .nav-toggle-label span::after {
  top: 0;
  transform: rotate(-45deg);
}

/* ------------------------------
   Hero
------------------------------ */

.hero {
  position: relative;
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 0% 0%, rgba(244, 114, 182, 0.1), transparent 55%),
    radial-gradient(circle at 100% 0%, rgba(56, 189, 248, 0.18), transparent 50%),
    linear-gradient(135deg, #0f172a 0%, #020617 40%, #111827 100%);
  color: #f9fafb;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: url("https://images.unsplash.com/photo-1588072432836-e10032774350?auto=format&fit=crop&w=1600&q=80");
  background-size: cover;
  background-position: center;
  mix-blend-mode: soft-light;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2.5rem;
  padding: 3.5rem 0 4rem;
}

.hero-copy h1 {
  margin-bottom: 1rem;
}

.hero-copy h1 span {
  background: linear-gradient(120deg, #38bdf8, #a855f7, #f97316);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy p {
  max-width: 32rem;
  color: #e5e7eb;
  font-size: 1rem;
}

.hero-buttons {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

/* Hero card */

.hero-card {
  background: rgba(15, 23, 42, 0.88);
  border-radius: 1.5rem;
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.5);
  backdrop-filter: blur(18px);
  align-self: center;
}

.hero-card h3 {
  color: #e5e7eb;
  margin-bottom: 0.75rem;
}

.hero-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: #cbd5f5;
}

.hero-card ul li + li {
  margin-top: 0.35rem;
}

.hero-card .text-link {
  color: #93c5fd;
}

/* ------------------------------
   Generic grids & cards
------------------------------ */

.grid {
  display: grid;
  gap: 1.75rem;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.4rem;
  border: 1px solid var(--border);
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.03);
}

/* Personas + lists */

.personas .card ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.personas .card li {
  font-size: 0.9rem;
  color: var(--muted);
}

.personas .card li + li {
  margin-top: 0.25rem;
}

/* Feature lists */

.feature-grid {
  margin-bottom: 2.25rem;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: #e5e7eb;
  margin-bottom: 0.65rem;
}

.feature-list span {
  display: inline-flex;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  background: rgba(34, 197, 94, 0.1);
  color: #bbf7d0;
}

/* Testimonials */

.testimonial p {
  margin-bottom: 0.75rem;
}

.testimonial span {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Solutions pills */

.solutions-grid {
  align-items: stretch;
}

.pill-card {
  background: #ffffff;
  border-radius: var(--radius-pill);
  padding: 1rem 1.2rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  box-shadow: 0 10px 24px rgba(148, 163, 184, 0.1);
}

.pill-card h3 {
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* Pricing */

.pricing-card {
  background: #020617;
  border-radius: 1.75rem;
  padding: 2.25rem 2rem;
  color: #e5e7eb;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.6);
}

.pricing-card h3 {
  color: #f9fafb;
  margin-bottom: 1rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

.pricing-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
}

.pricing-grid li + li {
  margin-top: 0.3rem;
}

.pricing-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* About */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: 2.5rem;
  align-items: flex-start;
}

.about-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.about-columns h3 {
  font-size: 1rem;
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr);
  gap: 2rem;
  align-items: flex-start;
}

.contact-details p {
  margin-top: 0.4rem;
}

/* Contact form */

.contact-form {
  background: #ffffff;
  border-radius: 1.5rem;
  padding: 1.75rem;
  border: 1px solid var(--border);
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.06);
}

.form-row {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 0.9rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border-radius: 0.85rem;
  border: 1px solid var(--border);
  padding: 0.7rem 0.8rem;
  font: inherit;
  color: var(--text);
  background: #f9fafb;
  outline: none;
  transition: border-color 0.15s ease-out, box-shadow 0.15s ease-out,
    background 0.15s ease-out;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(37, 99, 235, 0.75);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.3);
  background: #ffffff;
}

/* CTA section */

.cta-section {
  background: radial-gradient(circle at top left, #dbeafe, #f5f7fb 40%, #e0f2fe);
}

.cta-section h2 {
  margin-bottom: 0.5rem;
}

.cta-section p {
  margin-bottom: 1.5rem;
}

/* Center helper */

.center {
  text-align: center;
}

/* ------------------------------
   Parallax sections
------------------------------ */

.parallax {
  position: relative;
  color: #f9fafb;
  overflow: hidden;
}

.parallax-soft {
  background-attachment: fixed;
  background-image: linear-gradient(
      135deg,
      rgba(37, 99, 235, 0.85),
      rgba(79, 70, 229, 0.95)
    ),
    url("https://images.unsplash.com/photo-1519389950473-47ba0277781c?auto=format&fit=crop&w=1600&q=80");
  background-size: cover;
  background-position: center;
}

.parallax-strong {
  background-attachment: fixed;
  background-image: linear-gradient(
      135deg,
      rgba(15, 23, 42, 0.9),
      rgba(15, 118, 110, 0.9)
    ),
    url("https://images.unsplash.com/photo-1523050854058-8df90110c9f1?auto=format&fit=crop&w=1600&q=80");
  background-size: cover;
  background-position: center;
}

.parallax-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0 0, rgba(248, 250, 252, 0.12), transparent),
    radial-gradient(circle at 100% 0, rgba(248, 250, 252, 0.12), transparent);
  mix-blend-mode: soft-light;
}

.parallax > .container {
  position: relative;
  z-index: 1;
}

/* Diff grid */

.diff-grid {
  margin-top: 1.5rem;
}

.diff-block {
  background: rgba(15, 23, 42, 0.6);
  border-radius: 1.1rem;
  padding: 1.1rem 1rem;
  border: 1px solid rgba(148, 163, 184, 0.7);
}

/* ------------------------------
   Footer
------------------------------ */

.site-footer {
  padding: 1.75rem 0 2rem;
  border-top: 1px solid rgba(226, 232, 240, 0.8);
  background: #f9fafb;
  text-align: center;
}

.site-footer p {
  font-size: 0.85rem;
  color: #9ca3af;
}

/* ------------------------------
   Responsive
------------------------------ */

@media (max-width: 960px) {
  .grid.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-grid,
  .contact-grid,
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-card {
    max-width: 420px;
    margin: 0 auto;
  }

  .hero-inner {
    gap: 2rem;
    padding-top: 2.5rem;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 3.5rem 0;
  }

  .grid.two,
  .grid.three,
  .grid.four,
  .pricing-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .nav-toggle-label {
    display: inline-flex;
  }

  .main-nav {
    position: absolute;
    top: 64px;
    right: 1.5rem;
    left: 1.5rem;
    flex-direction: column;
    background: rgba(248, 250, 252, 0.98);
    border-radius: 1rem;
    border: 1px solid rgba(226, 232, 240, 0.9);
    padding: 0.75rem 1rem 0.9rem;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;
    transition: all 0.14s ease-out;
  }

  .nav-toggle:checked ~ .main-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .hero {
    min-height: auto;
    padding-top: 1rem;
    padding-bottom: 3rem;
  }

  .hero-buttons {
    justify-content: flex-start;
  }

  /* Disable fixed parallax on mobile (iOS bug) */
  .parallax-soft,
  .parallax-strong {
    background-attachment: scroll;
  }
}

@media (max-width: 520px) {
  .grid.four {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-card {
    padding: 1.4rem 1.2rem;
  }

  .form-row {
    flex-direction: column;
  }
}
