/* 1. Header & Nav */

html { scroll-behavior: smooth; }
:root {
  --primary: #007bff;
  --card-hover: #f0f8ff;
  --link-hover: #0056b3;
  --highlight: #FFFF00;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.4;
  color: #333;
}

header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.462) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #000;
  z-index: 1000;
}
nav {
  display: flex;
  align-items: center;
  padding: 1rem 2rem;
}
nav .logo {
  height: 40px;
  margin-right: 2rem;
}
.nav-links {
  display: flex;
  gap: 1.5rem;
  flex-grow: 1;
}
.nav-links a {
  position: relative;
  color: #333;
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: #007bff;
  transition: width 0.3s;
}
.nav-links a:hover::after {
  width: 100%;
}
.icon-btn {
  background: transparent;
  border: none;
  margin-right: 1rem;
  cursor: pointer;
}
.icon-btn img {
  height: 24px;
  width: 24px;
}
.btn {
  padding: 0.5rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
}
.btn2 {
  padding: 0.75rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
}
.btn-primary {
  background: #007bff;
  color: #fff;
}
.btn-primary:hover {
  background: #0056b3;
}

/* 1. Hero */
.hero {
  margin-top: -5rem;
  background: url("image/hero.png") center/cover no-repeat;
  min-height: calc(120vh - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: 0 1rem;
}

.hero-content h1 {
  font-size: 5rem;
  margin-bottom: 1rem;
}
.hero-content h1 .highlight { 
  color: #007bff; 
}
.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}
.btn-secondary {
  background: #007bff;
  color: #fff; 
}
.btn-secondary:hover {
  background: #0056b3;
}

/* 2. Terminal */

/* Terminal Window */
.terminal-window {
  background: #2b2b2b;
  border-radius: 7px;
  overflow: hidden;
  max-width: 100%;
}
.terminal-header {
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: #444;
  color: #fff;
  font-size: 0.9rem;
}
.circles {
  display: flex;
  gap: 0.3rem;
}
.circles.left { margin-right: 0.75rem; }
.circles.right { margin-left: 0.75rem; }
.circle {
  width: 5px;
  height: 5px;
  border-radius: 50%;
}
/* Colored circles: red, yellow, green */
.circles.left .circle:nth-child(1),
.circles.right .circle:nth-child(1) {
  background: #ff5f56;
}
.circles.left .circle:nth-child(2),
.circles.right .circle:nth-child(2) {
  background: #ffbd2e;
}
.circles.left .circle:nth-child(3),
.circles.right .circle:nth-child(3) {
  background: #27c93f;
}
.title-left, .title-right {
  white-space: nowrap;
}
.header-spacer { flex: 1; }

.terminal-section {
  padding: 4rem 2rem;
}

.terminal-container {
  display: flex;
  height: 400px;
  max-height: 400px;
  border: 1px solid #333;
  border-radius: 8px;
  overflow: hidden;
}
.terminal-chat,
.terminal-code {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
}
.terminal-chat {
  background: #353535;
}

.terminal-code { 
  background: #222; 
  color: #fff; 
}
.terminal-code pre { 
  margin: 0; 
  font-family: monospace; 
  font-size: 0.9rem; 
}
.terminal-code code { 
  display: block;
  white-space: pre-wrap; 
}

/* Keyword coloring */
.keyword { color: #C680DD; }
/* Highlight for async def main and format line */
.format-highlight { color: yellow; }
/* Comment highlight */
.comment-code { color: #54425A; }

/* Chat message bubbles */
.chat-message {
  padding: 0.5rem 1rem;
  margin-bottom: 1rem;
  border-radius: 5px;
  border: 1px solid #f5f5f5;
  max-width: 80%;
  font-family: monospace;
  white-space: pre-wrap;
  word-break: break-word;
}
.chat-message.user {
  background: #2A5278;
  color: #ffffff;
  margin-left: auto;
  border-color: #fff;
  text-align: left;
}
.chat-message.bot {
  background: #182533;
  color: #ffffff;
  margin-right: auto;
  border-color: #fff;
  text-align: left;
}

/* 3. Steps */
.steps-section {
  padding: 4rem 2rem;
  background: #fafafa;
  text-align: center;
}
.steps-section h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.steps-section .subtitle {
  color: #666;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}
.steps-cards {
  display: flex;
  gap: 1rem;
  justify-content: center;
}
.step-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 7px;
  width: 400px;
  height: 500px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.step-card:hover {
  border: 1.5px solid rgba(103, 10, 233, 0.1);
}

.step-card .tag {
  display: inline-block;
  background: #fccdff;
  border-radius: 100px;
  padding: 0.25rem 1rem;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.step-card .icon-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.step-card .icon {
  width: 30px;
  height: 30px;
}
.step-card .points {
  list-style: disc inside;
  color: #444;
  margin-bottom: 1rem;
  flex-grow: 1;
  text-align: left;
}
.step-card .points li {
  margin-bottom: 0.5rem;
}
.step-card .integration {
  text-align: center;
}
.integration-line {
  width: 50%;
  height: 3px;
  background: #333;
  border: none;
  margin: 0 auto 0.5rem;
}
.integration-icons {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}
.integration-icons img {
  width: 25px;
  height: 25px;
}

/* Image 4: Convert Section */
.convert-section {
  display: flex;
  gap: 2rem;
  padding: 1rem 2rem;
  height: 400px;
  margin-top: 5rem;
  margin-bottom: 5rem;
}
.convert-left {
  flex: 0 0 70%;
  background: #fff;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  border-radius: 7px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.convert-right {
  background: #fff;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  border-radius: 7px;
}
.convert-left {
  flex: 0 0 68%;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}
.convert-right {
  flex: 0 0 30%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.convert-left h3 {
  margin-bottom: 1rem;
  font-size: 1.75rem;
}
.convert-left p {
  margin-bottom: 1.5rem;
  color: #555;
}
.signup-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.signup-row .btn-primary {
  padding: 0.5rem 1rem;
}
.avatars {
  display: flex;
  margin-left: 10px; /* overlap images by 30% */
}
.avatars img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #fff;
  margin-left: -15px;
}
.reviews-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1rem;
}
.reviews-row .stars {
  color: #fc0;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}
.reviews-row small {
  color: #888;
}

/* Rain effect: vertical drop, slow */
.rain-container {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.drop {
  position: absolute;
  width: 2px;
  height: 15px;
  background: rgba(0,0,0,0.2);
  animation: fall 5s linear infinite;
}
@keyframes fall {
  0% { transform: translateY(-20px); }
  100% { transform: translateY(420px); }
}

/* Mascot hover refinements */
.mascot-container {
  position: relative;
}
.mascot {
  max-width: 100%;
  display: block;
  transition: transform 0.3s ease;
}
.mascot-container:hover .mascot {
  transform: scale(0.9);
}
.mascot-hover {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(255,255,255,0.9);
  padding: 1rem;
  text-align: center;
  opacity: 0;
  transition: all 0.3s ease;
}
.mascot-container:hover .mascot-hover {
  opacity: 1;
  transform: translateY(0);
}


/* Pricing Section */
.pricing-section {
  padding: 4rem 2rem;
  background: #fafafa;
  text-align: center;
}
.price a {
  text-decoration: none;
}
.pricing-section p {
  margin-top: 1rem;
  font-size: 0.5rem;
  color: red;
}
.pricing-section h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.pricing-section .subtitle {
  color: #666;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}
.pricing-cards {
  display: flex;
  gap: 1rem;
  justify-content: center;
}
.pricing-card {
  position: relative;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 7px;
  width: 400px;
  height: 550px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  text-align: left;
  overflow: hidden;
}
.pricing-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}
.pricing-card .card-subtitle {
  color: #888;
  margin-bottom: 1rem;
}
.pricing-card .features {
  list-style: none;
  margin-bottom: 1rem;
  padding-left: 0;
}
.pricing-card .features li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}
.pricing-card .check {
  color: #27c93f;
  margin-right: 0.5rem;
}
.pricing-card .price {
  margin-top: auto;
}
.pricing-card .price h2 {
  font-size: 2rem;
  margin-bottom: 0.25rem;
}
.pricing-card .price small {
  color: #888;
}

/* Full-width signup hover button */
.card-hover {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  background: rgba(255,255,255,0.9);
  padding: 1rem;
}
.pricing-card:hover .card-hover {
  transform: translateY(0);
}
.card-hover .full-width {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.75rem 0;
  background: #007bff;
  color: #fff;
  border: none;
  border-radius: 4px;
  text-decoration: none;
}
.card-hover .full-width:hover {
  background: #0056b3;
}

/* Enterprise button full-width styling */
.pricing-card .btn-secondary.full-width {
  width: 100%;
  background: transparent;
  color: #007bff;
  border: 1px solid #007bff;
  padding: 0.75rem 0;
  text-align: center;
  border-radius: 4px;
  transition: background 0.3s ease, color 0.3s ease;
}
.pricing-card .btn-secondary.full-width:hover {
  background: #007bff;
  color: #fff;
}

/* Our 1M Users Section */
.users-section {
  padding: 4rem 0rem;
  padding-bottom: 8rem !important;
  background: #fafafa;
  text-align: center;
}
.users-section h2 {
  font-size: 2rem;
  margin-bottom: 0.25rem;
}
.users-section .subtitle {
  color: #666;
  margin-bottom: 2rem;
}

/* Carousel container hides overflow */
.users-carousel {
  overflow-x: hidden;
  width: 100%;
  position: relative;
}
/* Flex‐row of cards, moving right→left */
.users-cards {
  display: flex;
  gap: 1rem;
  animation: scrollLTR 30s linear infinite;
}
/* Individual cards */
.users-card {
  flex: 0 0 25%;           /* show 4 full cards in a row */
  min-width: 25%;
  height: 300px;
  background: #fff;
  border-radius: 7px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  padding: 1rem;
  position: relative;
}
/* Twitter logo top-right */
.twitter-icon {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 24px;
  height: 24px;
}
/* Feedback centered */
.feedback {
  margin: 3rem 1rem 1rem;
  font-style: italic;
  color: #333;
}
/* User info bottom */
.user-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: absolute;
  bottom: 1rem;
  left: 1rem;
}
.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}
/* Scroll animation */
@keyframes scrollLTR {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.users-cards {
  animation-play-state: running;
}

/* Pause the scroll when hovering over the carousel container */
.users-carousel:hover .users-cards {
  animation-play-state: paused;
}

/* FAQ Section */
.faq-section {
  padding: 4rem 2rem;
  background: #fff;
}
.faq-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
}
.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
}
.question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem;
  cursor: pointer;
}
.question span {
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
}
.icon {
  font-size: 1.5rem;
  line-height: 1;
}
.answer {
  padding: 0 1rem 1rem;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.8s ease, opacity 0.8s ease;
  color: #444;
  line-height: 1.5;
}
.faq-item.active .answer {
  max-height: 200px;
  opacity: 1;
}


/* Footer Styles */
.site-footer {
  background: #f9f9f9;
  padding: 2rem;
  font-family: 'Space Grotesk', sans-serif;
}
.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
}
.footer-left {
  flex: 1 1 200px;
}
.footer-logo {
  max-width: 150px;
  margin-bottom: 1rem;
}
.social-icons {
  display: flex;
  gap: 0.5rem;
}
.social-link img {
  width: 24px;
  height: 24px;
  transition: transform 0.2s ease;
}
.social-link:hover img {
  transform: scale(1.2);
}
.footer-right {
  display: flex;
  gap: 2rem;
  flex: 3 1 400px;
  justify-content: space-between;
}
.footer-col h4 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}
.footer-col a {
  display: block;
  color: #555;
  text-decoration: none;
  margin-bottom: 0.5rem;
  transition: color 0.2s ease;
}
.footer-col a:hover {
  color: var(--primary);
  text-decoration: underline;
}
.footer-divider {
  margin: 2rem 0 1rem;
  border: none;
  border-top: 1px solid rgba(0,0,0,0.1);
}
.footer-copy {
  text-align: center;
  color: #888;
  font-size: 0.9rem;
}

.footer-col.productsf {
  display: flex;
  flex-direction: column;
}

.text-button-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 8px;
}

.tooltip {
  position: absolute;
  top: 50%;
  left: 105%;
  transform: translateY(-50%);
  background-color: #333;
  color: #fff;
  padding: 4px 10px;
  border-radius: 100px;
  white-space: nowrap;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.text-button-wrapper:hover .tooltip {
  opacity: 1;
}


/* Announcement Strip */
.announcement-strip {
  width: 100%;
  background: #007bff;
  color: #fff;
  font-size: 0.95rem;
  padding: 0.6rem 1rem;
  font-weight: 500;
  position: sticky;
  top: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.strip-content {
  text-align: center;
  width: 100%;
}

.strip-content a {
  color: red;
  text-decoration: none;
}

.strip-link {
  color: #fff;
  text-decoration: underline;
  font-weight: 600;
  margin-left: 0.5rem;
}

.strip-link:hover {
  color: #e0e0e0;
}

.strip-close {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  transition: color 0.2s ease;
}

.strip-close:hover {
  color: #e0e0e0;
}


/* END */



/* === MOBILE (220px–480px) === */
@media (max-width: 480px) {
  html { font-size: 16px; }
  
  
  
  /* 1. Header */
  header {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  

  
  .nav-links { display: none; }
  .btn { order: 3; }
  .icon-btn {display: none;}
  .logo { order: 1;
          margin-left: -1.5rem;
  }

  /* 2. Hero */
  .hero {
    background-image: url("image/hero.png") !important;
  }
  .hero-content h1 {
    font-size: 2.3rem;
  }
  .hero-content p {
    font-size: 1rem;
  }

  /* 3. Terminal */
  .terminal-container { flex-direction: column; 
  min-height: 600px; !important}
  .terminal-chat, .terminal-code{
    width: 100%;
  }

  /* 4. Steps & 6. Pricing */
  .steps-cards{
    flex-direction: column;
    align-items: center;
  }
  .step-card {
    width: 100% !important;
    margin-bottom: 1.5rem;
  }
  
  .pricing-cards {
      flex-direction: column;
      align-items: center;
      margin-top: 10rem;
  }
  
  .pricing-card {
      width: 100% !important;
      
  }

  /* 5. Convert */
  .convert-section {
    flex-direction: column;
    margin-top: 2rem;
  }
  .signup-row a {
      display: none;
  }
  .convert-right { order: 1; } /* mascot first */
  .convert-left  { order: 2; } /* text second */
  .convert-left h3, .convert-left p {
    display: block;
  }
  .convert-left h3 {
      font-size: 1.3rem;
  }
  
  .footer-divider {
      margin-top: -5rem;
  }

/*
  .convert-left .signup-row,
  .convert-left .reviews-row,
  .rain-container {
  }

*/

  /* 7. Testimonials */
  .users-cards {
    flex-wrap: nowrap;
    overflow-x: auto;
    animation: none;
  }
  .users-card {
    flex: 0 0 90%;
    min-height: 350px;
  }

  /* 8. FAQ */
  
  /* Questions & answers unchanged */

  /* 9. Footer */
  .footer-main {
    display: flex;
    flex-direction: column;
    gap: 1 rem;
  }
  .footer-left{
    margin-bottom: -5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .footer-logo {
    margin-right: 5rem;
    width: 150px;
    height: 50px;
  }

/* === SMALL TABLET (481px–600px) === */
@media (min-width: 481px) and (max-width: 600px) {
  html { font-size: 17px; }

  /* Same stacking & rules as mobile */
  header { display: flex; justify-content: space-between; }

/* Navbar */
  .nav-links { display: none; }
  .btn { order: 3; }
  .icon-btn {order: 2;
              margin-left: 9.5rem;}
  .logo { order: 1; }
/* Nav bar end */

/* hero start */
  .hero { background-image: url("image/hero.png") !important; }
  .hero-content h1 {
    font-size: 3rem;
  }

/* Hero end */


  .terminal-container { flex-direction: column;}
  .terminal-container {min-height: 600px;}


  .steps-cards, .pricing-cards { flex-direction: column; align-items: center; }
  .step-card, .pricing-card { width: 100% !important; margin-bottom: 1.5rem; }

  .convert-section { flex-direction: column; margin-top: 2rem; }
  .convert-right { order: 1; }

  .users-card { flex: 0 0 50%; min-height: 350px; }
  .feedback {
    font-size: 0.9rem;
  }
  .footer-main { flex-direction: column; 
  margin-bottom: -5rem;}
  .footer-left{
    margin-bottom: -3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .footer-logo {
    width: 70px;
    height: 70px;
    margin-right: 10rem;
  }
}

/* === MEDIUM TABLET (601px–768px): show warning only === */
@media (min-width: 601px) and (max-width: 768px) {
  body > *:not(.medium-warning) { display: none !important; }
  .medium-warning {
    display: flex !important;
    align-items: center;
    justify-content: center;
    height: 100vh;
    font-size: 1.25rem;
    text-align: center;
    padding: 1rem;
  }
}

/* === LARGE TABLET (769px–1024px) === */
@media (min-width: 769px) and (max-width: 1024px) {
  html { font-size: 18px; }

  .hero { background-image: url("image/hero.png") !important; }
  .hero-content h1 {font-size: 4rem;}
  .terminal-container { flex-direction: row; }
  
  .steps-cards, .pricing-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
  }
  .step-card {height: 600px;}
  .step-card, .pricing-card {
    flex: 0 0 48%;
    margin-bottom: 1.5rem;
  }
  .step-card:nth-child(3), .pricing-card:nth-child(3) {
    flex: 0 0 100%;
  }
  .convert-section {
    flex-direction: row;
    height: auto;
  }
  .convert-left { flex: 0 0 65%; }
  .convert-right { flex: 0 0 35%; }
  .users-card { flex: 0 0 50%; min-height: 300px; }
}


/* === SMALL LAPTOP (1025px–1280px) === */
@media (min-width: 1025px) and (max-width: 1280px) {
  html { font-size: 19px; }
  .step-card { height: 600px; }
  .pricing-card { min-height: 600px; }
  .users-card { height: 350px; }
  .users-card .feedback {font-size: 0.80rem;}
  .points li {font-size: 0.80rem;}
  .icon-title h3 {font-size: 1.1rem;}
  .features li {font-size: 0.80rem;}
  .pricing-card h3 {font-size: 1.1rem;}
  .card-subtitle {font-size: 0.95rem;}
  .pricing-card .price h2 {font-size: 1rem;}
}

/* === LARGE DESKTOP (1441px–1920px) === */
@media (min-width: 1441px) and (max-width: 1920px) {
  html { font-size: 20px; }
  .hero-content h2 { font-size: 2.5rem; }
  .hero-content p  { font-size: 1.25rem; }
  .btn-primary, .btn-secondary { padding: 1rem 2rem; font-size: 1rem; }
  .steps-cards, .pricing-cards, .convert-section {
    width: 80%; margin: 0 auto;
  }
  .steps-cards .steps-card, .pricing-cards .pricing-card {
    flex: 1; margin: 0 0.5rem;
  }
  .convert-section { height: 500px; }
  .users-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    animation: none;
  }
}

/* === EXTRA-LARGE DESKTOP (1921px and up) === */
/* same as Large Desktop */

