/* ───────────────────────────────────
   style.css
   ─────────────────────────────────── */

/* ========== CSS Variables ========== */
:root {
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --secondary: #6366f1;
  --accent: #f59e0b;
  --text: #1f2937;
  --text-light: #4b5563;
  --bg-light: #f9fafb;
  --bg-lighter: #ffffff;
  --border-radius: 10px;
  --shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  --transition: 0.3s;
  --max-width: 1200px;
  --header-h: 70px;
}

/* ========== Reset & Base ========== */
{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: var(--bg-light);
  line-height: 1.6;
  /* keep content from sliding under the fixed header */
  padding-top: var(--header-h);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}
ul {
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
  border-radius: var(--border-radius);
}

nav ul {
  display: flex;
  align-content: center;
  justify-content: center;
  align-items: center;
  justify-content: space-around;
}
nav ul li {
  margin: 0 1rem;
}
.logos {
  display: flex;
  justify-content: space-between;
}
/* ========== Helpers ========== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}
.section {
  padding: 4rem 0;
}
h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-align: center;
}
p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

/* ========== Buttons ========== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-dark);
}
.btn-secondary {
  background: var(--secondary);
  color: #fff;
}
.btn-outline {
  border: 2px solid var(--primary);
  background: transparent;
  color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}
.btn-full {
  width: 100%;
}

/* ────────────────────────────────
   HEADER
   ──────────────────────────────── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}
.header .container {
  display: flex; /* row layout on desktop */
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo */
.logo {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  flex: 0 0 auto;
}

/* Mobile hamburger (hidden on desktop) */
.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-light);
  background: none;
  border: none;
}

/* Navigation */
.nav-list {
  display: flex; /* horizontal by default */
  gap: 1.5rem;
  margin-left: auto;
}
.nav-list li {
  display: inline-block;
}
.nav-list a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-light);
  padding: 0.5rem 0.75rem;
  border-radius: var(--border-radius);
}
.nav-list a:hover {
  color: var(--primary);
  background: var(--bg-lighter);
}

/* ────────────────────────────────
   HERO
   ──────────────────────────────── */
.hero {
  background: var(--bg-lighter);
}
.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.hero-text {
  flex: 1 1 400px;
  padding: 1rem;
  text-align: left;
}
.hero-text h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}
.hero-text p {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}
.hero-image {
  flex: 1 1 400px;
  padding: 1rem;
  text-align: right;
}
.hero-image img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.hero-image img:hover {
  transform: translateY(-5px);
}

/* ────────────────────────────────
   FEATURES
   ──────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}
.feature-card {
  background: #fff;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
}
.feature-card:hover {
  transform: translateY(-5px);
}
.feature-card i {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

/* Integrations */
.logos-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}
.step {
  background: #fff;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  position: relative;
  text-align: center;
}
.step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}
.plan {
  background: #fff;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  position: relative;
  transition: var(--transition);
}
.plan:hover {
  transform: translateY(-5px);
}
.plan.featured {
  border: 2px solid var(--primary);
  transform: scale(1.05);
}
.plan .badge {
  position: absolute;
  top: -10px;
  right: 10px;
  background: var(--accent);
  color: #fff;
  padding: 0.25rem 0.75rem;
  border-radius: var(--border-radius);
  font-size: 0.875rem;
}
.plan-price {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 1rem 0;
}
.plan-features {
  margin-bottom: 1.5rem;
}
.plan-features li {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
}
.plan-features i {
  margin-right: 0.5rem;
  color: var(--primary);
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.testimonial {
  background: #fff;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  text-align: center;
}
.testimonial p {
  font-style: italic;
  position: relative;
  padding-left: 1.5rem;
}
.testimonial p::before {
  content: "“";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 2rem;
  color: var(--bg-light);
}
.author {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
}
.author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 0.75rem;
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  text-align: center;
}

/* CTA Banner */
.cta {
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: 3rem 1rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}
.cta h2 {
  color: #fff;
  margin-bottom: 1rem;
}

/* FAQ */
.faq-item {
  margin-bottom: 1rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.faq-question {
  cursor: pointer;
  background: #fff;
  padding: 1rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: var(--transition);
  padding: 0 1rem;
}
.faq-item.active .faq-answer {
  max-height: 200px;
  padding: 1rem;
}

/* Newsletter */
.newsletter {
  background: var(--bg-lighter);
  padding: 3rem 1rem;
  text-align: center;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}
.newsletter input[type="email"] {
  padding: 0.75rem;
  width: 300px;
  max-width: 100%;
  border: 1px solid #ccc;
  border-radius: var(--border-radius) 0 0 var(--border-radius);
}
.newsletter button {
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.post {
  background: #fff;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: center;
}
.post img {
  height: 180px;
  object-fit: cover;
}
.post-content {
  padding: 1rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.contact-grid > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}
.contact-form {
  background: #fff;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: var(--border-radius);
  font-family: inherit;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2);
}
.contact-form button {
  width: 100%;
}

/* Footer */
footer {
  background: #1f2937;
  color: #fff;
  padding: 3rem 1rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
  text-align: left;
}
.footer-col h4 {
  margin-bottom: 1rem;
}
.footer-col ul li {
  margin-bottom: 0.5rem;
}
.footer-col ul li a {
  color: var(--text-light);
  transition: var(--transition);
}
.footer-col ul li a:hover {
  color: #fff;
}
.footer-bottom {
  text-align: center;
  color: var(--text-light);
  margin-top: 2rem;
}

/* ────────────────────────────────
   RESPONSIVE ( ≤ 768 px )
   ──────────────────────────────── */
@media (max-width: 768px) {
  /* show hamburger */
  .mobile-toggle {
    display: block;
  }

  /* hide horizontal nav by default */
  .nav-list {
    display: none;
  }

  /* show vertical panel when active */
  .nav-list.active {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--header-h);
    right: 0;
    width: 80%;
    background: var(--bg-lighter);
    padding: 2rem 1.5rem;
    box-shadow: -2px 0 4px rgba(0, 0, 0, 0.1);
    gap: 1rem;
  }

  /* hero layout */
  .hero .container {
    flex-direction: column;
    text-align: center;
  }
  .hero-text,
  .hero-image {
    text-align: center;
  }
}