/* Optimized Google Fonts - Only necessary weights */
@import url("https://fonts.googleapis.com/css2?family=Libre+Baskerville:wght@400;700&family=Poppins:wght@300;400;500;600&display=swap");

/* CSS Variables for consistency */
:root {
  /* Colors */
  --color-primary: #000000;
  --color-secondary: #ffffff;
  --color-text-primary: #3a3a3a;
  --color-text-secondary: #666666;
  --color-text-heading: #404040;
  --color-border: #d3d3d3;
  --color-border-light: #e0e0e0;
  --color-background: #fafafa;
  --color-background-light: #fafafb;

  /* Typography */
  --font-primary: "Poppins", sans-serif;
  --font-heading: "Libre Baskerville", serif;

  /* Spacing */
  --spacing-xs: 10px;
  --spacing-sm: 20px;
  --spacing-md: 30px;
  --spacing-lg: 40px;
  --spacing-xl: 60px;
  --spacing-xxl: 80px;
  --spacing-xxxl: 140px;

  /* Breakpoints */
  --breakpoint-sm: 640px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;

  /* Z-index layers */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-modal: 300;
  --z-toast: 400;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.6s ease;
}

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

/* SVG rendering improvements */
svg {
  shape-rendering: geometricPrecision;
}

img[src$=".svg"] {
  image-rendering: auto;
  shape-rendering: geometricPrecision;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--color-secondary);
  color: var(--color-text-primary);
  font-weight: 400;
  font-family: var(--font-primary);
}

.image-full {
  text-align: center;
  margin-top: var(--spacing-sm);
  margin-bottom: 0;
  line-height: 0;            /* add this */
}

.image-full img {
  width: 1141px;
  max-width: 100%;
  height: auto;
  display: block;            /* was: inline-block */
  margin: 0 auto;            /* keep it centered */
  border: 1px solid var(--color-border);
  border-radius: 8px 8px 0 0;
  box-shadow: 0 -6px 12px rgba(115, 115, 115, 0.15), 0 -4px 6px rgba(130, 130, 130, 0.1), 0 2px 4px rgba(122, 122, 122, 0.05);
}

p {
  font-size: 18px;
}

.heading1 {
  margin-top: var(--spacing-lg);
  margin-bottom: 12px;
  font-weight: 400;
  font-size: 26px;
  color: var(--color-text-heading);
  font-family: var(--font-heading);
  text-align: left;
}
@media (min-width: 640px) {
  .heading1 {
    font-size: 48px;
  }
}

.heading2 {
  margin-bottom: var(--spacing-xs);
  font-weight: 400;
  font-size: 34px;
  font-family: var(--font-heading);
  text-align: center;
  margin-top: 0;
  padding-top: var(--spacing-xxxl);
}
@media (min-width: 640px) {
  .heading2 {
    font-size: 38px;
  }
}

.heading3 {
  margin-bottom: 14px;
  font-weight: 400;
  font-size: 20px;
  font-family: var(--font-heading);
}
@media (min-width: 640px) {
  .heading3 {
    font-size: 30px;
  }
}

.button {
  display: inline-block;
  padding: 0 var(--spacing-sm);
  min-height: 40px;
  background: var(--color-primary);
  border-radius: 6px;
  color: var(--color-secondary);
  line-height: 40px;
  text-decoration: none;
  transition: all var(--transition-base);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
.button.button--light {
  display: flex;
  align-items: center;
  min-height: 48px;
  background: var(--color-secondary);
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  line-height: 46px;
}
.button.button--light:after {
  content: "";
  display: block;
  margin-left: 14px;
  width: 12px;
  height: 14px;
  background: url(../images/icon-arrow.svg) no-repeat;
  background-size: contain;
}

.header {
  position: relative;
  width: 100%;
  height: 100px;
  background: #fff;
}
.header .header__inner {
  margin: 0 auto;
  width: 90%;
  max-width: 1141px;
  padding: 20px 0;
}
@media (min-width: 768px) {
  .header .header__inner {
    display: flex;
    justify-content: space-between;
  }
}
.header .header__inner .logo {
  display: block;
  margin: 0 auto 20px;
  flex: 0 0 120px;
  width: 120px;
  height: 60px;
  background: url(../images/logo.svg) no-repeat;
  background-size: contain;
  position: relative;
  top: 12px;
}
@media (min-width: 768px) {
  .header .header__inner .logo {
    margin: 0;
  }
}
.header .header__inner .hamburger-menu {
  align-self: center;
}
.header .header__inner .hamburger-menu #menu-toggle {
  display: none;
}
@media (max-width: 767px) {
  .header .header__inner .hamburger-menu #menu-toggle:checked ~ .menu-button > span {
    transform: rotate(45deg);
  }
  .header .header__inner .hamburger-menu #menu-toggle:checked ~ .menu-button > span::before {
    top: 0;
    transform: rotate(0);
  }
  .header .header__inner .hamburger-menu #menu-toggle:checked ~ .menu-button > span::after {
    top: -4px;
    transform: rotate(90deg);
  }
  .header .header__inner .hamburger-menu #menu-toggle:checked ~ .menu {
    visibility: visible;
    left: 0;
  }
  .header .header__inner .hamburger-menu .menu-button {
    display: flex;
    align-items: center;
    position: fixed;
    top: 34px;
    left: 34px;
    width: 26px;
    height: 26px;
    cursor: pointer;
    z-index: var(--z-dropdown);
  }
  .header .header__inner .hamburger-menu .menu-button > span,
  .header .header__inner .hamburger-menu .menu-button > span::before,
  .header .header__inner .hamburger-menu .menu-button > span::after {
    position: relative;
    display: block;
    width: 33px;
    height: 4px;
    background: #cdcdcd;
    border-radius: 3px;
    transition-duration: .25s;
  }
  .header .header__inner .hamburger-menu .menu-button > span::before {
    content: '';
    top: -9px;
  }
  .header .header__inner .hamburger-menu .menu-button ::after {
    content: '';
    top: 5px;
  }
  .header .header__inner .hamburger-menu .menu {
    display: block;
    position: fixed;
    visibility: hidden;
    top: 0;
    left: -100%;
    margin: 0;
    width: 300px;
    height: 100%;
    list-style: none;
    background-color: #fff;
    box-shadow: 1px 0px 6px rgba(0, 0, 0, 0.2);
    transition-duration: .25s;
  }
  .header .header__inner .hamburger-menu .menu li {
    margin-bottom: 20px;
  }
}
.header .header__inner .menu {
  list-style: none;
}
@media (min-width: 768px) {
  .header .header__inner .menu {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}
.header .header__inner .menu li {
  margin-left: var(--spacing-sm);
  color: var(--color-primary);
}
.header .header__inner .menu li a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}
.header .header__inner .menu li a:hover {
  text-decoration: underline;
  opacity: 0.8;
}
.header .header__inner .menu li a.button {
  color: #fff;
}

.hero {
  margin: 0 auto;
  width: 90%;
  max-width: 1060px;
  padding-top: var(--spacing-lg);
  padding-bottom: var(--spacing-xxl);
  margin-bottom: var(--spacing-lg);
  background: url(../images/icon-light_bulb2.svg) no-repeat;
  background-position: right 90px;
  background-size: 380px auto;
}
@media (min-width: 768px) {
  .hero {
    margin-bottom: var(--spacing-sm);
    padding-top: var(--spacing-xl);
    padding-bottom: 120px;
    background-position: right 106px;
    background-size: 520px auto;
  }
}
.hero h1 {
  text-align: left;
  margin-bottom: 20px;
  max-width: 700px;
}
.hero p {
  margin-bottom: 30px;
  text-align: left;
  max-width: 720px;
}
@media (min-width: 640px) {
  .hero p {
    margin-bottom: var(--spacing-lg);
  }
}
.hero .hero__footer {
  display: flex;
  gap: 14px;
  justify-content: flex-start;
  flex-wrap: wrap;
}
@media (max-width: 425px) {
  .hero .hero__footer {
    flex-direction: column;
  }
}
@media (max-width: 424px) {
  .hero .hero__footer .button {
    margin-bottom: 10px;
    justify-content: center;
    width: 100%;
  }
}

.inner {
  margin: 0 auto;
  width: 90%;
  max-width: 1200px;
}

.image {
  margin-bottom: 45px;
}

.cards-section {
  margin: var(--spacing-xl) 0;
}

.card-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
  margin-bottom: var(--spacing-xxl);
  max-width: 1250px;
  margin-left: auto;
  margin-right: auto;
}

.card-row:last-child {
  margin-bottom: 0;
}

.card-content {
  width: 500px;
  text-align: left;
}

.card-content img {
  width: 100%;
  max-width: 260px;
  height: auto;
  display: block;
  position: relative;
  top: 10px;
}

/* Special styling for clipboard icon */
.card-content .clipboard-icon {
  width: 240px;
  max-width: 240px;
  margin-bottom: 36px;
  position: relative;
}

/* Special styling for airplane icon */
.box .airplane-icon {
  width: 48%;
  height: 48%;
  object-fit: contain;
  margin-bottom: 0;
}

.screenshot-container {
  width: 700px;
  min-height: 400px;
  background: var(--color-secondary);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.screenshot-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-content h3 {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 400;
  color: #444444;
  margin-bottom: var(--spacing-xs);
  line-height: 1.2;
}

.card-content p {
  font-size: 16px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

@media (max-width: 1300px) {
  .card-row {
    flex-direction: column;
    gap: 30px;
  }

  .card-row.reverse {
    flex-direction: column;
  }

  .screenshot-container {
    max-width: 100%;
    width: 700px;
  }

  .card-content {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .screenshot-container {
    width: 100%;
    min-height: 300px;
  }

  .card-content {
    width: 100%;
  }
}

.cols {
  padding: var(--spacing-sm);
  background: var(--color-background-light);
}
@media (min-width: 640px) {
  .cols {
    display: flex;
    justify-content: space-between;
    padding: var(--spacing-lg) var(--spacing-md);
  }
}
.cols .col {
  flex: 0 0 calc(50% - 19px);
}
.cols .col p {
  margin-bottom: 25px;
  font-size: 12px;
  line-height: normal;
}

/* Three Boxes Section Styles */
.zero-setup-section {
  margin-top: 160px;
  padding: 0 0 var(--spacing-xs) 0;
  background: var(--color-background);
}

.zero-setup-container {
  margin: 0 auto;
  width: min(1240px, 90%);
  min-height: 500px;
  margin-bottom: var(--spacing-xs);
  padding: 60px 0 var(--spacing-xl) 0;
  background: var(--color-background);
  position: relative;
}

.zero-setup-container .section-heading {
  padding-top: 60px;
}

.section-heading {
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 400;
  color: var(--color-text-heading);
  margin-bottom: var(--spacing-xs);
  text-align: center;
}

.section-subheading {
  font-family: var(--font-primary);
  font-size: 17px;
  font-weight: 400;
  color: var(--color-text-secondary);
  text-align: center;
  margin-bottom: var(--spacing-lg);
  line-height: 1.5;
}

.boxes-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--spacing-md);
  width: calc(100% - 60px);
  margin: 0 var(--spacing-md);
}

.box-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.box {
  width: 360px;
  height: 320px;
  border-radius: 12px;
  background: var(--color-background);
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: var(--spacing-sm);
}

.box img {
  width: 40%;
  height: 40%;
  object-fit: contain;
  margin-bottom: 22px;
}

.box .box-text {
  margin-top: var(--spacing-sm);
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 400;
  color: var(--color-text-primary);
  text-align: center;
  width: 100%;
}

/* Responsive styles for the three boxes section */
@media (max-width: 1300px) {
  .zero-setup-container {
    height: auto;
    min-height: 600px;
  }

  .boxes-wrapper {
    flex-wrap: wrap;
    justify-content: center;
  }

  .box {
    width: 300px;
    height: 300px;
  }
}

@media (max-width: 768px) {
  .zero-setup-section {
    padding: 0 0 40px 0;
  }

  .zero-setup-container {
    padding: 20px;
  }

  .section-heading {
    font-size: 24px;
    margin-bottom: 30px;
  }

  .boxes-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .box {
    width: 100%;
    max-width: 360px;
    height: 360px;
  }

  .box-text {
    font-size: 16px;
  }
}

/* Features Container with 4x2 Grid */
.features-container {
  margin: var(--spacing-xl) auto var(--spacing-xl) auto;
  width: min(1280px, 90%);
  padding-top: var(--spacing-xl);
  padding-bottom: 20px;
}

.features-container .section-heading {
  text-align: center;
  margin-left: 0;
}

.grid-wrapper {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-sm);
  padding: var(--spacing-sm);
  max-width: 1280px;
  margin: 0 auto;
}

.grid-box {
  min-height: 220px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-secondary);
  position: relative;
  padding: var(--spacing-sm);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.box-icon {
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 28px;
  color: #5a5a5a;
  margin-bottom: 0px;
  max-width: 48px;
  max-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.box-heading {
  font-family: var(--font-primary);
  font-size: 19px;
  font-weight: 400;
  color: var(--color-text-heading);
  margin-top: 50px;
  margin-bottom: 4px;
  line-height: 1.3;
}

.box-subheading {
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* Responsive styles for features container - simplified with auto-fit */
@media (max-width: 768px) {
  .features-container {
    padding-top: var(--spacing-xl);
    margin-bottom: var(--spacing-xs);
  }

  .grid-wrapper {
    padding: var(--spacing-xs);
  }
}

/* FAQ Section Styles */
.faq-section {
  padding: var(--spacing-xxl) 0;
  background: var(--color-background);
}

.faq-container {
  margin: 0 auto;
  width: min(900px, 90%);
}

.faq-heading {
  font-family: var(--font-heading);
  font-size: 34px;
  font-weight: 400;
  color: var(--color-text-heading);
  text-align: center;
  margin-bottom: 50px;
}

.faq-item {
  margin-bottom: 26px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--color-border-light);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  font-family: var(--font-primary);
  font-size: 20px;
  font-weight: 500;
  color: var(--color-text-primary);
  line-height: 1.4;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  transition: color var(--transition-fast);
}

.faq-question:hover {
  color: #555555;
}

.faq-toggle {
  font-size: 28px;
  font-weight: 300;
  color: var(--color-text-secondary);
  min-width: 30px;
  text-align: center;
  transition: transform var(--transition-fast);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base), padding var(--transition-base);
}

.faq-answer.active {
  max-height: 500px;
  padding-bottom: var(--spacing-sm);
}

.faq-answer p {
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 400;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin: 0;
  padding-top: var(--spacing-xs);
}

/* FAQ Responsive Styles */
@media (max-width: 768px) {
  .faq-section {
    padding: var(--spacing-xl) 0;
  }

  .faq-heading {
    font-size: 28px;
    margin-bottom: var(--spacing-lg);
  }

  .faq-question {
    font-size: 18px;
  }

  .faq-answer p {
    font-size: 15px;
  }
}

/* Styles moved from inline HTML */
.card-content > div {
  margin-top: var(--spacing-md);
}

/* Footer styles */
.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--color-background);
  padding: var(--spacing-lg) 0;
}

.footer-divider {
  width: 1200px;
  max-width: 90%;
  height: 1px;
  background-color: #808080;
  margin-bottom: var(--spacing-md);
}

.footer-links {
  display: flex;
  gap: var(--spacing-lg);
  font-family: var(--font-primary);
  font-size: 14px;
  color: var(--color-text-secondary);
}

.footer-links a {
  text-decoration: none;
  color: var(--color-text-secondary);
  transition: opacity var(--transition-fast);
}

.footer-links a:hover {
  opacity: 0.7;
}

/* Flowchart Section */
.flowchart-section {
  padding: 80px 20px;
  background: #ffffff;
}

.flowchart-container {
  max-width: 1264px;
  margin: 0 auto;
  text-align: center;
}

.flowchart-heading {
  font-family: "Libre Baskerville", serif;
  font-size: 2.5rem;
  font-weight: 400;
  color: #333;
  margin-bottom: var(--spacing-xs);
  line-height: 1.2;
}

.flowchart-image {
  max-width: 100%;
  width: 1264px;
  height: auto;
  display: block;
  margin: 0 auto;
  margin-bottom: -60px;
}

@media (max-width: 768px) {
  .flowchart-heading {
    font-size: 1.8rem;
    margin-bottom: var(--spacing-xs);
  }

  .flowchart-section {
    padding: 60px 20px;
  }
}

/* Top section wrapper with gradient background */
.top-section-wrapper {
  background: linear-gradient(to bottom, #ffffff, #FAF8F6);
  padding-bottom: 0;
}

/* Adjust inner container within the wrapper */
.top-section-wrapper .inner {
  padding-top: 0;
  padding-bottom: 0;
}

/* Intersection Observer Animation Styles */
.animate-on-scroll {
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-up {
  transform: translateY(50px);
}

.slide-left {
  transform: translateX(50px);
}

.slide-right {
  transform: translateX(-50px);
}

.scale-up {
  transform: scale(0.9);
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

/* Style for first word in box text */
.box-text span {
  font-weight: 600;
  color: #333;
}

/* Staggered animation for grid items */
.stagger-animation {
  transition-delay: calc(var(--animation-order) * 0.1s);
}
