/* =======================================
   ANYWARE LANDING PAGE - style.css
   ======================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

:root {
  --accent: #caff1f; /* Updated to user's requested accent color */
  --black: #000000;
  --white: #ffffff;
  --gray: #666666;
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--black);
  color: var(--white);
  overflow-x: hidden;
}

/* ---------------- NAVBAR ---------------- */
.navbar {
  background-color: var(--black);
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 999;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 3000px;
  margin: 0 auto;
}

.navbar .logo {
  height: 28px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--accent);
}

/* Accent Button */
.btn-accent {
  background-color: var(--accent);
  color: var(--black);
  font-weight: 700;
  padding: 0.6rem 1.4rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 0 0px rgba(203, 255, 31, 0);
}

.btn-accent:hover {
  box-shadow: 0 0 20px rgba(203, 255, 31, 0.6);
  transform: translateY(-2px) scale(1.02);
}

.btn-accent.large {
  font-size: 1.1rem;
  padding: 0.9rem 2rem;
}

/* ---------------- HERO ---------------- */
#hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: radial-gradient(circle at center, rgba(203, 255, 31, 0.15), var(--black) 95%);
  padding: 0 1rem;
}

#hero .hero-icon {
  width: 80px;
  margin-bottom: 1.5rem;
  animation: float 6s ease-in-out infinite;
}

#hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

#hero p {
  color: #cccccc;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  width: 24px;
  height: 40px;
  border: 2px solid var(--accent);
  border-radius: 20px;
  animation: bounce 2s infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ---------------- SECTIONS ---------------- */
section {
  padding: 6rem 2rem;
  max-width: 3000px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s forwards;
  animation-timeline: view();
  animation-range: entry 0% cover 40%;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ---------------- STUCK SECTION ---------------- */
#stuck {
  background-color: var(--white);
  color: var(--black);
  text-align: center;
  padding-top: 8rem;
  padding-bottom: 8rem;
}

#stuck h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 3rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  justify-items: center;
  margin-bottom: 2.5rem;
}

.card {
  background-color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  max-width: 280px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.card .icon {
  font-size: 2.5rem;
  color: #000; /* var(--accent);*/
  margin-bottom: 1rem;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border: 2px solid var(--accent); /* Accent border on hover */
}

.card p {
  color: var(--gray);
  font-size: 1rem;
  line-height: 1.5;
}

/* Subtext line under cards */
#stuck .stuck-subtext {
  color: var(--gray);
  margin-top: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.6;
}

#stuck .stuck-subtext span {
  color: var(--black);
  font-weight: 600;
}


/* ---------------- PERSPECTIVE ---------------- */
#perspective {
  background-color: var(--black);
  text-align: center; /* Left justify text */
}

#perspective h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 3rem;
  color: var(--accent);
}

/* New styling for the perspective grid and cards */
#perspective .grid {
  display: grid;
  grid-template-columns: 1fr; /* Default to 1 column for mobile */
  gap: 2rem;
}

@media (min-width: 1024px) { /* lg:grid-cols-3 */
  #perspective .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

#perspective .rounded-lg {
  border-radius: 0.5rem; /* rounded-lg */
  border: 1px solid rgba(255, 255, 255, 0.1); /* border-white/10 */
  background-color: rgba(255, 255, 255, 0.05); /* bg-white/5 */
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06); /* shadow-sm */
  color: var(--white); /* text-card-foreground, text-white */
  transition: var(--transition); /* transition-all */
  text-align: left;
}

#perspective .rounded-lg:hover {
  border-color: var(--accent); /* hover:border-lime */
  transform: translateY(-8px); /* hover-lift */
}

#perspective .flex {
  display: flex;
}

#perspective .flex-col {
  flex-direction: column;
}

#perspective .space-y-1\.5 > *:not([hidden]) ~ *:not([hidden]) {
  margin-top: 0.375rem; /* space-y-1.5 */
}

#perspective .p-6 {
  padding: 1.5rem; /* p-6 */
}

#perspective .items-center {
  align-items: center;
}

#perspective .gap-3 > *:not([hidden]) ~ *:not([hidden]) {
  margin-left: 0.75rem; /* gap-3 */
}

#perspective .mb-4 {
  margin-bottom: 1rem; /* mb-4 */
}

#perspective .w-12 {
  width: 3rem; /* w-12 */
}

#perspective .h-12 {
  height: 3rem; /* h-12 */
}

#perspective .rounded-full {
  border-radius: 9999px; /* rounded-full */
}

#perspective .bg-lime\/20 {
  background-color: rgba(202, 255, 31, 0.2); /* bg-lime/20 */
}

#perspective .justify-center {
  justify-content: center;
}

#perspective .lucide {
  width: 1.5rem; /* w-6 */
  height: 1.5rem; /* h-6 */
  color: var(--accent); /* text-lime */
}

#perspective .tracking-tight {
  letter-spacing: -0.025em; /* tracking-tight */
}

#perspective .text-2xl {
  font-size: 1.5rem; /* text-2xl */
  line-height: 2rem;
}

#perspective .font-bold {
  font-weight: 700; /* font-bold */
}

#perspective .text-white {
  color: var(--white); /* text-white */
}

#perspective .rounded-lg p { /* General text color */
  color: #b7b7b7;
}

#perspective .rounded-lg h3 { /* h3 tags should be white */
  color: var(--white);
}

#perspective .text-xl {
  font-size: 1.25rem; /* text-xl */
  line-height: 1.75rem;
}

#perspective .font-semibold {
  font-weight: 600; /* font-semibold */
}

#perspective .mb-3 {
  margin-bottom: 0.75rem; /* mb-3 */
}

#perspective .pt-0 {
  padding-top: 0; /* pt-0 */
}

#perspective .space-y-4 > *:not([hidden]) ~ *:not([hidden]) {
  margin-top: 1rem; /* space-y-4 */
}

#perspective .text-white\/70 {
  color: rgba(255, 255, 255, 0.7); /* text-white/70 */
}

#perspective .leading-relaxed {
  line-height: 1.625; /* leading-relaxed */
}

#perspective .pt-4 {
  padding-top: 1rem; /* pt-4 */
}

#perspective .border-t {
  border-top-width: 1px; /* border-t */
}

#perspective .border-white\/10 {
  border-color: rgba(255, 255, 255, 0.1); /* border-white/10 */
}

#perspective .text-sm {
  font-size: 0.875rem; /* text-sm */
  line-height: 1.25rem;
}

#perspective .mb-2 {
  margin-bottom: 0.5rem; /* mb-2 */
}

#perspective .text-white\/80 {
  color: rgba(255, 255, 255, 0.8); /* text-white/80 */
}

#perspective .pt-4.border-t p:first-child { /* "Outcome:" and "Example Use Cases:" */
  color: var(--accent);
}

#perspective ul {
  list-style: none; /* Remove default list styling */
}

#perspective ul.space-y-2 > *:not([hidden]) ~ *:not([hidden]) {
  margin-top: 0.5rem; /* space-y-2 */
}

#perspective .mt-1 {
  margin-top: 0.25rem; /* mt-1 */
}

#perspective ul li span:first-child { /* Bullet points */
  color: var(--accent);
  display: inline-block;
  width: 1em; /* Adjust as needed for centering */
  margin-left: -1em; /* Pull bullet point back */
  text-align: center;
}

/* ---------------- USE CASES ---------------- */
#use-cases {
  background-color: var(--white);
  color: var(--black);
  text-align: center;
}

#use-cases h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.scroll-cards {
  display: flex;
  overflow-x: auto;
  gap: 1rem;
  padding-bottom: 1rem;
  scroll-snap-type: x mandatory;
  justify-content: center;
  padding-top:40px;
}

.scroll-cards .card {
  scroll-snap-align: start;
  min-width: 250px;
}

.scroll-cards::-webkit-scrollbar {
  display: none;
}

/* ---------------- WHY ---------------- */
#why {
  background-color: var(--black);
  color: var(--white);
  text-align: center;
}

#why h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 3rem;
}

.why-list {
  list-style: none;
  max-width: 700px;
  margin: 2rem auto 0;
  text-align: left;
}

.why-list li {
  margin: 1rem 0;
  line-height: 1.5;
  position: relative;
  padding-left: 2rem;
}

.why-list li::before {
  content: '✔';
  color: var(--accent);
  position: absolute;
  left: 0;
}

/* ---------------- ABOUT ---------------- */
#about {
  background-color: var(--white);
  color: var(--black);
  text-align: center;
}

#about h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

#about p {
  color: #464646;
  margin-bottom: 2.5rem;
}

.logo-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding-top: 40px;
}

.logo-grid img {
  height: 40px;
  filter: grayscale(1);
  opacity: 0.8;
  transition: var(--transition);
}

.logo-grid img:hover {
  filter: grayscale(0);
  opacity: 1;
  transform: scale(1.1);
}

/* ---------------- CONTACT ---------------- */
#contact {
  background-color: var(--black);
  color: var(--white);
  text-align: center;
}

#contact h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

#contact p {
  color: #b3b3b3;
}

form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: 700px;
  margin: 0 auto;
  padding-top: 50px;
}

form input, form select {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  border: none;
  font-size: 1rem;
  margin-bottom: 10px; /* Added spacing */
}

form input[type="text"], form input[type="email"], form select {
  background-color: #111;
  color: var(--white);
  border: 1px solid #333; /* Add a subtle border */
}

form select {
  appearance: none; /* Remove default browser styling */
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23cbfe1f%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-6.5%200-12.3%203.2-16.1%208.1-3.8%204.9-4.6%2011-2.4%2016.2l139.3%20168.5c4.3%205.3%2011.4%208.6%2019%208.6s14.7-3.3%2019-8.6L289.4%2093.7c2.2-5.2%201.4-11.3-2.4-16.2z%22%2F%3E%3C%2Fsvg%3E'); /* Custom arrow */
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  background-size: 12px;
  padding-right: 2.5rem; /* Make space for the arrow */
  color: var(--gray); /* Set default text color for select */
}

form select option {
  background-color: #111;
  color: var(--white);
}

form input::placeholder {
  color: #aaa;
}

form button {
  margin-top: 1.5rem;
}

/* ---------------- FOOTER ---------------- */
footer {
  background-color: var(--white);
  color: var(--black);
  text-align: center;
  padding: 2rem 0;
  border-top: 1px solid #eee;
}

footer img {
  height: 24px;
  margin-bottom: 0.5rem;
}

/* ---------------- MOBILE NAV ---------------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 18px;
  cursor: pointer;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--white);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translateY(7px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-7px);
}

.nav-links.open {
  display: flex !important;
  flex-direction: column;
  position: absolute;
  top: 70px;
  right: 0;
  background-color: var(--black);
  width: 100%;
  text-align: center;
  padding: 1rem 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 768px) {
  #hero h1 {
    font-size: 2.2rem;
  }

  .steps, .card-grid {
    flex-direction: column;
    display: flex;
    align-items: center;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
  }

  .navbar .container {
    justify-content: space-between;
  }
}

/* ---------------- CHAT MODAL ---------------- */
.chat-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
  width: 100%;
  max-width: 42rem; /* max-w-2xl */
  gap: 1rem; /* gap-4 */
  border-radius: 0.5rem; /* sm:rounded-lg */
  background-color: var(--black); /* bg-black */
  border: 1px solid rgba(255, 255, 255, 0.2); /* border-white/20 */
  color: var(--white); /* text-white */
  padding: 1.5rem; /* p-6 */
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); /* shadow-lg */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
}

.chat-modal.active {
  opacity: 1;
  visibility: visible;
}

.chat-modal .flex-col {
  flex-direction: column;
}

.chat-modal .space-y-1\.5 > *:not([hidden]) ~ *:not([hidden]) {
  margin-top: 0.375rem; /* space-y-1.5 */
}

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

@media (min-width: 640px) { /* sm:text-left */
  .chat-modal .sm\:text-left {
    text-align: left;
  }
}

.chat-modal h2.text-lime {
  color: var(--accent); /* text-lime */
  letter-spacing: -0.025em; /* tracking-tight */
  font-size: 1.5rem; /* text-2xl */
  font-weight: 700; /* font-bold */
}

.chat-modal p.text-white\/70 {
  color: rgba(255, 255, 255, 0.7); /* text-white/70 */
  font-size: 1rem; /* text-base */
}

.chat-modal .mt-6 {
  margin-top: 1.5rem; /* mt-6 */
}

.chat-modal .rounded-lg {
  border-radius: 0.5rem; /* rounded-lg */
}

.chat-modal .bg-white\/5 {
  background-color: rgba(255, 255, 255, 0.05); /* bg-white/5 */
}

.chat-modal .border-white\/10 {
  border: 1px solid rgba(255, 255, 255, 0.1); /* border-white/10 */
}

.chat-modal .items-start {
  align-items: flex-start;
}

.chat-modal .gap-3 > *:not([hidden]) ~ *:not([hidden]) {
  margin-left: 0.75rem; /* gap-3 */
}

.chat-modal .mb-4 {
  margin-bottom: 1rem; /* mb-4 */
}

.chat-modal .w-8 {
  width: 2rem; /* w-8 */
}

.chat-modal .h-8 {
  height: 2rem; /* h-8 */
}

.chat-modal .rounded-full {
  border-radius: 9999px; /* rounded-full */
}

.chat-modal .bg-lime\/20 {
  background-color: rgba(202, 255, 31, 0.2); /* bg-lime/20 */
}

.chat-modal .justify-center {
  justify-content: center;
}

.chat-modal .flex-shrink-0 {
  flex-shrink: 0;
}

.chat-modal span.text-lime {
  color: var(--accent); /* text-lime */
  font-weight: 700; /* font-bold */
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%; /* Ensure it takes full height of parent for vertical centering */
  width: 100%; /* Ensure it takes full width of parent for horizontal centering */
}

.chat-modal .flex-1 {
  flex: 1 1 0%;
}

.chat-modal p.text-white {
  color: var(--white); /* text-white */
}

.chat-modal p.text-white\/80 {
  color: rgba(255, 255, 255, 0.8); /* text-white/80 */
}

.chat-modal .mt-4 {
  margin-top: 1rem; /* mt-4 */
}

.chat-modal input {
  display: flex;
  height: 2.5rem; /* h-10 */
  width: 100%; /* w-full */
  border-radius: 0.375rem; /* rounded-md */
  border: 1px solid rgba(255, 255, 255, 0.2); /* border-white/20 */
  background-color: rgba(255, 255, 255, 0.1); /* bg-white/10 */
  padding: 0.5rem 0.75rem; /* px-3 py-2 */
  font-size: 1rem; /* text-base */
  color: var(--white); /* text-white */
}

.chat-modal input::placeholder {
  color: rgba(255, 255, 255, 0.4); /* placeholder:text-white/40 */
}

.chat-modal .close-chat-modal {
  position: absolute;
  right: 1rem; /* right-4 */
  top: 1rem; /* top-4 */
  border-radius: 0.125rem; /* rounded-sm */
  opacity: 0.7; /* opacity-70 */
  transition: opacity 0.2s ease-in-out;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--white); /* Default color for the icon */
}

.chat-modal .close-chat-modal:hover {
  opacity: 1;
}

.chat-modal .close-chat-modal svg {
  width: 1rem; /* w-4 */
  height: 1rem; /* h-4 */
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------------- PRIVACY & TERMS CONTENT ---------------- */
.content-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 2rem;
  background-color: #1a1a1a; /* Dark background */
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  color: var(--white);
  line-height: 1.8;
}

.content-container h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: center;
  color: var(--accent);
}

.content-container h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--white);
}

.content-container h3 {
  font-size: 1.5rem;
  font-weight: 500;
  margin-top: 1.5rem;
  margin-bottom: 0.8rem;
  color: var(--white);
}

.content-container p {
  margin-bottom: 1rem;
  color: #cccccc;
}

.content-container ul {
  list-style: disc;
  margin-left: 25px;
  margin-bottom: 1rem;
  color: #cccccc;
}

.content-container ul li {
  margin-bottom: 0.5rem;
}

.content-container a {
  color: var(--accent);
  text-decoration: none;
}

.content-container a:hover {
  text-decoration: underline;
}

/* Adjust section padding for these pages to avoid double padding */
#privacy-policy, #terms-of-use {
  padding-top: 100px; /* To account for fixed navbar */
  padding-bottom: 6rem;
}

@media (max-width: 768px) {
  .content-container {
    padding: 2rem 1rem;
  }
  .content-container h1 {
    font-size: 2rem;
  }
  .content-container h2 {
    font-size: 1.6rem;
  }
}
