/* Modern SaaS Homepage CSS */

/* CSS Variables for Easy Theming */
:root {
  --accent-color: #FF6F61;          /* Updated Coral Accent */
  --accent-color-hover: #E55C4B;      /* A slightly darker version for hover */
  --neutral-bg: #F2F2F2;
  --soft-white: #FFFFFF;            /* Using pure white for crisp contrast */
  --primary-blue: #2F80ED;           /* Fallback primary blue if needed */
  --section-bg: #FFFFFF;
  --light-bg: #F9F9FB;
  --secondary-text: #4B5563;
  --heading-blue: #1D4ED8;
}

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

body {
  margin: 0;
  font-family: 'Inter', sans-serif;  /* Updated font to 'Inter' for a modern, clean look */
  background-color: var(--neutral-bg);
  line-height: 1.6;
  color: #333;
}

/* === TYPOGRAPHY / RENDERING (ADD) === */
body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}


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

img {
  max-width: 100%;
  height: auto;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 100px 20px;
  /* Updated hero background to a modern gradient that transitions from blue to purple */
  background: linear-gradient(135deg, #4A90E2, #9013FE);
  color: var(--soft-white);
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
}

.hero p {
  font-size: 24px;
  margin-bottom: 40px;
}

/* CTA Button using the Updated Accent Color */
.cta-button-get-started {
  background-color: var(--accent-color);
  color: var(--soft-white);
  padding: 15px 30px;
  font-size: 18px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-button-get-started:hover {
  background-color: var(--accent-color-hover);
  transform: translateY(-2px);
}

/* Homepage Sections */
.homepage-sections {
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 4vw, 72px);
  padding: clamp(24px, 4vw, 72px);
  max-width: min(96vw, 1440px);  /* wider on desktop */
  margin-inline: auto;
}

.homepage-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(20px, 4vw, 56px);
  padding: clamp(20px, 3.5vw, 44px);
  background-color: var(--light-bg);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 20px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.08);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}


/* Decorative accent bar that flips sides on even rows */
.homepage-section::after {
  content: "";
  position: absolute;
  left: 0;
  top: 10%;
  bottom: 10%;
  width: 6px;
  border-radius: 6px;
  background: linear-gradient(180deg, var(--heading-blue), transparent);
  opacity: 0.18;
}
.homepage-section:nth-child(even)::after { left: auto; right: 0; }

.homepage-section:hover,
.homepage-section:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.10);
  border-color: rgba(0, 0, 0, 0.12);
}

.homepage-section:nth-child(even) {
  flex-direction: row-reverse;
}

.section-text {
  flex: 1;
}

.section-text h2 {
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 700;
  color: var(--heading-blue);
  margin-bottom: 12px;
}

.section-text p {
  font-size: clamp(16px, 1.2vw, 20px);
  color: var(--secondary-text);
  line-height: 1.75;
  max-width: 60ch;     /* optimal line length */
  text-wrap: pretty;
}


/* Makes art feel like part of the card and consistent in size */
.section-image img {
  max-width: 400px;
  width: 100%;
  display: block;
  border-radius: 12px;
  background: #fff;               /* gives illustrations a clean mat */
  padding: 12px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  object-fit: contain;
}


/* Bigger artwork on large screens (ADD) */
@media (min-width: 1200px) {
  .section-image img { max-width: 560px; }  /* was 400–520; this helps legibility */
}

/* Keep PNGs crisp on HiDPI (ADD) */
@media (min-resolution: 2dppx) {
  .section-image img { image-rendering: -webkit-optimize-contrast; }
}

/* XL screens: extend panels slightly (ADD) */
@media (min-width: 1536px) {
  .homepage-sections { max-width: 1600px; }
  .homepage-section   { padding: 48px 56px; gap: 64px; }
  .section-image img  { max-width: 600px; }
}


@media (max-width: 768px) {
  .homepage-section {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }
  .section-image img {
    max-width: 100%;
    padding: 10px;
  }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; }
}


/* Benefits Section */
.benefits {
  text-align: center;
  padding: 60px 20px;
  background-color: var(--accent-color);
  color: var(--soft-white);
}

.benefits h2 {
  font-size: 36px;
  margin-bottom: 20px;
}

.benefits p {
  font-size: 18px;
}

/* SaaS Chat Features Section */
.saas_7_chat_features-section {
  display: flex;
  flex-direction: column;
  gap: 60px;
  padding: 80px 20px;
  background-color: #F9FAFB;
  text-align: left;
}

.saas_7_chat_feature {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--section-bg);
  padding: 50px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.saas_7_chat_feature:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.saas_7_chat_feature-content {
  flex: 1;
  padding-right: 30px;
}

.saas_7_chat_feature-content h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--heading-blue);
  margin-bottom: 20px;
}

.saas_7_chat_feature-content p {
  font-size: 18px;
  color: var(--secondary-text);
  line-height: 1.8;
  margin-bottom: 15px;
}

.saas_7_chat_feature-image {
  flex: 1;
  text-align: right;
}

.saas_7_chat_feature-image img {
  width: 100%;
  max-width: 400px;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.saas_7_chat_feature-image img:hover {
  transform: scale(1.05);
}

/* Accent Color for Feature Headings */
.saas_7_chat_feature--red h2 {
  color: var(--accent-color);
}

.saas_7_chat_feature--blue h2 {
  color: var(--heading-blue);
}

.saas_7_chat_feature--green h2 {
  color: #10B981;
}

/* Mobile Responsiveness for Chat Features */
@media (max-width: 768px) {
  .saas_7_chat_feature {
    flex-direction: column;
    text-align: center;
  }

  .saas_7_chat_feature-content {
    padding-right: 0;
  }

  .saas_7_chat_feature-image {
    text-align: center;
    margin-top: 20px;
  }
}

/* Landing-only Newsletter CTA Styles */
:root {
  --newsletter-bg-accent: #f5f7fb;                 /* softer page band */
  --newsletter-card-bg: #ffffff;                   /* card surface */
  --newsletter-ring: rgba(37, 99, 235, 0.3);       /* indigo ring */
  --newsletter-shadow: 0 12px 32px rgba(2, 6, 23, 0.08);
  --newsletter-gradient: linear-gradient(90deg, #2563eb, #4f46e5);
}

/* Accessibility helper */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.prefooter-newsletter {
  background: radial-gradient(1200px 400px at 50% 0%, #eef2ff 0%, var(--newsletter-bg-accent) 60%, var(--newsletter-bg-accent) 100%);
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  padding: clamp(28px, 4vw, 56px) 16px;
}

.newsletter-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(320px, 1.1fr) 1fr;
  align-items: center;
  gap: clamp(18px, 3vw, 28px);
  background: var(--newsletter-card-bg);
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: var(--newsletter-shadow);
  padding: clamp(18px, 3vw, 28px);
}

.newsletter-copy h2 {
  font-size: clamp(22px, 2.2vw, 30px);
  color: #0f172a;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
  line-height: 1.2;
  position: relative;
  display: inline-block;              /* shrink to text width for underline */
}

/* subtle accent underline */
.newsletter-copy h2::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -10px;
  width: 100%; height: 4px;          /* underline spans the full heading */
  border-radius: 9999px;
  background: var(--newsletter-gradient);
}

.newsletter-sub {
  color: #475569;
  font-size: 15px;
  margin-top: 18px;
}

.newsletter-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.newsletter-form input[type="email"] {
  width: 100%;
  height: 52px;
  padding: 0 14px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  font-size: 15px;
  color: #0f172a;
  background: #ffffff;
  outline: none;
  box-shadow: 0 1px 2px rgba(2, 6, 23, 0.04);
  transition: box-shadow 0.18s ease, border-color 0.18s ease, transform 0.06s ease;
}

.newsletter-form input[type="email"]::placeholder {
  color: #9aa3b2;
}

.newsletter-form input[type="email"]:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px var(--newsletter-ring);
}

.newsletter-cta {
  height: 52px;
  padding: 0 18px;
  background: var(--newsletter-gradient);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.25);
  transition: transform 0.12s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.newsletter-cta:hover {
  filter: brightness(1.03);
  transform: translateY(-1px);
}

.newsletter-cta:active {
  transform: translateY(0);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.2);
}

/* Sending state */
.newsletter-cta.is-sending {
  opacity: 0.85;
  filter: saturate(0.9);
  cursor: wait;
}

/* Success state */
.newsletter-cta.is-sent {
  background: linear-gradient(90deg, #16a34a, #22c55e) !important; /* green */
  box-shadow: 0 10px 24px rgba(34, 197, 94, 0.25);
}

.newsletter-fineprint {
  grid-column: 1 / -1;
  margin-top: 2px;
  font-size: 12px;
  color: #94a3b8;
}

/* Honeypot field hidden from users */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

@media (max-width: 900px) {
  .newsletter-inner {
    grid-template-columns: 1fr;
    text-align: left;
  }
}

@media (max-width: 640px) {
  .newsletter-form {
    grid-template-columns: 1fr;
  }

  .newsletter-copy h2::after { left: 0; margin-inline: 0; }
}

/* Integration Partners */
.integration-partners {
  text-align: center;
  padding: 60px 20px;
  background-color: #FFF;
}

.integration-partners h2 {
  font-size: 36px;
  margin-bottom: 40px;
}

.partner-logos {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.partner-logos img {
  margin: 20px;
  width: 150px;
  height: auto;
}

/* === Live Demo Section === */
.demo {
    background: linear-gradient(135deg, #f8fbff 0%, #eef5ff 100%);
    padding: 4rem 1rem;
}

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

@media (min-width: 768px) {
    .demo-inner {
        flex-direction: row;
        justify-content: space-between;
    }
}

.demo-text {
    flex: 1 1 50%;
    text-align: center;
}

.demo-text h2 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.demo-text p {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.cta-button-demo {
    display: inline-block;
    background: #2563eb;          /* Indigo-600 */
    color: #fff;
    padding: 0.85rem 2.25rem;
    border-radius: 9999px;
    font-weight: 600;
    transition: background 0.25s ease, transform 0.25s ease;
}

.cta-button-demo:hover,
.cta-button-demo:focus {
    background: #1d4ed8;          /* Indigo-700 */
    transform: translateY(-2px);
}

.demo-image {
    flex: 1 1 50%;
}

.demo-image img {
    width: 100%;
    border-radius: 1rem;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}


/* Additional Responsive Adjustments */
@media (max-width: 768px) {
  .features {
    flex-direction: column;
    align-items: center;
  }
}
