/* ============================================
   The Byte - Stripe-Inspired Static Site
   ============================================ */

/* === RESET & BASE === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #635bff;
  --primary-dark: #524ddb;
  --dark: #0a2540;
  --text: #425466;
  --text-light: #6b7c93;
  --light-bg: #f6f9fc;
  --white: #ffffff;
  --border: #e3e8ee;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--white);
}

/* === LAYOUT === */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

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

/* === TYPOGRAPHY === */
h1, h2, h3, h4 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--dark);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

p {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text);
}

.section-label {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  margin-bottom: 8px;
}

/* New: Paragraph spacing */
.problem-solution-section p {
  margin-bottom: 20px !important; /* Ensure spacing between paragraphs */
}

.problem-solution-section p:last-child {
  margin-bottom: 0 !important;
}

/* New: About Quote */
blockquote.about-quote {
  background: var(--light-bg);
  border-left: 5px solid var(--primary);
  padding: 20px 25px;
  margin: 30px auto;
  font-size: 1.25rem;
  font-style: italic;
  color: var(--dark);
  max-width: 700px;
  line-height: 1.5;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

blockquote.about-quote strong {
    font-style: normal;
    font-weight: 600;
    color: var(--primary);
}

/* === BUTTONS === */
.button {
  display: inline-block;
  font-family: inherit;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.button-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 1px 3px rgba(99, 91, 255, 0.3);
}

.button-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 14px rgba(99, 91, 255, 0.4);
  transform: translateY(-1px);
}

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

.button-outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-1px);
}

/* === HEADER === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.site-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.site-title:hover {
  color: var(--primary);
}

.main-navigation .menu {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}

.main-navigation .menu a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: var(--transition);
  padding: 8px 0;
}

.main-navigation .menu a:hover,
.main-navigation .menu a.active {
  color: var(--primary);
}

.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-icon {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  position: relative;
}

.menu-icon::before,
.menu-icon::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: var(--dark);
  left: 0;
}

.menu-icon::before { top: -7px; }
.menu-icon::after { top: 7px; }

/* === HERO === */
.hero-section {
  padding: 100px 0 80px;
  background: var(--light-bg);
}

.hero-section h1 {
  margin-bottom: 24px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* === PROBLEM/SOLUTION === */
.problem-solution-section {
  padding: 80px 0;
}

.problem-solution-section h3 {
  margin-bottom: 20px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.problem-solution-section p {
  max-width: 680px;
  margin: 0 auto;
  color: var(--text-light);
}

/* New: About Page Image */
.about-image {
  float: right;
  margin: 0 0 20px 40px;
  max-width: 300px; /* Slightly larger size for desktop */
  height: auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 15px; /* Padding inside the frame */
}

/* === FEATURES === */
.features-section {
  padding: 40px 0 80px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-grid-2col {
  grid-template-columns: repeat(2, 1fr);
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: var(--transition);
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--primary);
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.65;
}

.feature-card ul {
  margin-top: 16px;
  padding-left: 20px;
}

.feature-card ul li {
  font-size: 0.9375rem;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.5;
}

.feature-card ul li::marker {
  color: var(--primary);
}

/* === PROCESS === */
.process-section {
  padding: 80px 0;
  background: var(--light-bg);
}

.process-section h3 {
  margin-bottom: 48px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.process-step {
  text-align: center;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.process-step h4 {
  font-size: 1.125rem;
  margin-bottom: 8px;
}

.process-step p {
  font-size: 0.9375rem;
  color: var(--text-light);
}

/* === CTA BOTTOM === */
.cta-bottom-section {
  padding: 80px 0;
  background: var(--light-bg);
}

.cta-bottom-section h2 {
  margin-bottom: 16px;
}

.cta-bottom-section p {
  max-width: 560px;
  margin: 0 auto 32px;
  color: var(--text-light);
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* === FOOTER === */
.site-footer {
  padding: 40px 0;
  background: var(--dark);
  color: rgba(255, 255, 255, 0.6);
}

.site-footer p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

.site-footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition);
}

.site-footer a:hover {
  color: var(--white);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .mobile-nav-toggle {
    display: block;
  }

  .main-navigation .menu {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px 24px;
    gap: 0;
    box-shadow: var(--shadow-md);
  }

  .main-navigation .menu.is-open {
    display: flex;
  }

  .main-navigation .menu li {
    width: 100%;
  }

  .main-navigation .menu a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }

  .main-navigation .menu li:last-child a {
    border-bottom: none;
  }

  .hero-section {
    padding: 60px 0 50px;
  }

  .hero-subtitle {
    font-size: 1.0625rem;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }

  .hero-ctas .button {
    width: 100%;
    max-width: 320px;
    text-align: center;
  }

  .feature-grid,
  .feature-grid-2col {
    grid-template-columns: 1fr;
  }

  .feature-card {
    text-align: center;
  }

  .feature-card ul {
    text-align: left;
    display: inline-block;
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .problem-solution-section,
  .features-section,
  .cta-bottom-section {
    padding: 60px 0;
  }

  /* New: About Image */
  .about-image {
    float: none;
    margin: 20px auto;
    display: block;
    max-width: 250px; /* Larger on mobile */
  }
}

@media (max-width: 480px) {
  .process-grid {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 0 16px;
  }
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-section h1,
.hero-section .hero-subtitle,
.hero-section .hero-ctas {
  animation: fadeInUp 0.6s ease forwards;
}

.hero-section .hero-subtitle {
  animation-delay: 0.1s;
  opacity: 0;
}

.hero-section .hero-ctas {
  animation-delay: 0.2s;
  opacity: 0;
}
