/* Global Styles */
:root {
  --color-deep-sea-blue: #123955;
  --color-harbor-sand: #c3a47b;
  --color-harbor-sand-dark: #b0926a;
  --color-soft-wake: #f4f0e8;
  --color-white: #ffffff;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Offset for sticky header when scrolling to anchors */
#early-access {
  scroll-margin-top: 120px;
}

@media (max-width: 768px) {
  #early-access {
    scroll-margin-top: 80px;
  }
}

body {
  font-family: "Inter", sans-serif;
  background-color: var(--color-soft-wake);
  color: var(--color-deep-sea-blue);
  margin: 0;
  padding: 0;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle fade-in animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Button press animation */
@keyframes buttonPress {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.97);
  }
  100% {
    transform: scale(1);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.9s ease-out forwards;
}

.animate-fade-in {
  animation: fadeIn 0.8s ease-out forwards;
}

.animate-scale-in {
  animation: scaleIn 0.7s ease-out forwards;
}

/* Hero Section - New Creative Layout */
.hero-section {
  position: relative;
  min-height: 90vh;
  overflow: hidden;
}

.hero-bg-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-layer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(244, 240, 232, 0.95) 0%,
    rgba(244, 240, 232, 0.7) 50%,
    rgba(244, 240, 232, 0.4) 100%
  );
  z-index: 1;
}

.hero-bg-layer .hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-content-grid {
  position: relative;
  z-index: 10;
  max-width: 80rem;
  margin: 0 auto;
  padding: 8rem 1.5rem 4rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-content-grid {
    grid-template-columns: 1fr 1fr;
    padding: 10rem 2rem 6rem;
    gap: 4rem;
  }
}

.hero-text-side {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-text-side {
    text-align: left;
    align-items: flex-start;
  }
}

.hero-title {
  color: var(--color-deep-sea-blue);
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-weight: 500;
  color: var(--color-deep-sea-blue);
  opacity: 0.85;
  max-width: 50ch;
  line-height: 1.7;
}

@media (min-width: 1024px) {
  .hero-subtitle {
    margin: 0 0 1.5rem 0;
  }
}

/* Floating Phone Mockups */
.hero-mockups-side {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

.mockup-stack {
  position: relative;
  width: 320px;
  height: 580px;
  perspective: 1000px;
}

@media (min-width: 640px) {
  .mockup-stack {
    width: 400px;
    height: 680px;
  }
}

@media (min-width: 1024px) {
  .mockup-stack {
    width: 480px;
    height: 780px;
  }
}

.mockup-phone {
  position: absolute;
  width: 240px;
  border-radius: 28px;
  overflow: visible;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  background: transparent;
  padding: 0;
}

.mockup-phone img {
  width: 100%;
  height: auto;
  border-radius: 28px;
  display: block;
}

@media (min-width: 640px) {
  .mockup-phone {
    width: 290px;
    border-radius: 32px;
  }
  .mockup-phone img {
    border-radius: 32px;
  }
}

@media (min-width: 1024px) {
  .mockup-phone {
    width: 340px;
    border-radius: 36px;
  }
  .mockup-phone img {
    border-radius: 36px;
  }
}

.mockup-back {
  left: 0;
  top: 80px;
  transform: rotate(-8deg) translateZ(-40px);
  opacity: 0.7;
  z-index: 1;
}

.mockup-middle {
  right: 0;
  top: 60px;
  transform: rotate(8deg) translateZ(-20px);
  opacity: 0.85;
  z-index: 2;
}

.mockup-front {
  left: 50%;
  top: 0;
  transform: translateX(-50%) translateZ(0);
  z-index: 3;
}

.mockup-stack:hover .mockup-back {
  transform: rotate(-12deg) translateX(-20px) translateZ(-40px);
}

.mockup-stack:hover .mockup-middle {
  transform: rotate(12deg) translateX(20px) translateZ(-20px);
}

.mockup-stack:hover .mockup-front {
  transform: translateX(-50%) translateY(-10px) scale(1.02);
}

/* Transformation Section (Problem → Solution) */
.transformation-section {
  padding: 4rem 1.5rem;
  background: linear-gradient(180deg, var(--color-soft-wake) 0%, #fff 100%);
}

.transformation-container {
  max-width: 72rem;
  margin: 0 auto;
}

.transformation-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .transformation-visual {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 2rem;
  }
}

/* Chaos Side (Before) */
.chaos-side {
  flex: 1;
  max-width: 320px;
  width: 100%;
}

.chaos-label,
.solution-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 1rem;
  color: var(--color-deep-sea-blue);
}

.label-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.label-dot-red {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.4);
}

.label-dot-green {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.4);
}

.chaos-items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

.chaos-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 1rem 1.25rem;
  background: #fff;
  border-radius: 1rem;
  border: 1px solid rgba(239, 68, 68, 0.15);
  color: var(--color-deep-sea-blue);
  font-weight: 500;
  transition: all 0.3s ease;
}

.chaos-item svg {
  color: #ef4444;
  flex-shrink: 0;
}

.chaos-item:nth-child(1) {
  transform: rotate(-2deg);
}
.chaos-item:nth-child(2) {
  transform: rotate(1deg);
}
.chaos-item:nth-child(3) {
  transform: rotate(-1deg);
}

/* Transformation Arrow */
.transformation-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--color-harbor-sand),
    var(--color-harbor-sand-dark)
  );
  box-shadow: 0 8px 24px rgba(195, 164, 123, 0.35);
  flex-shrink: 0;
  transform: rotate(90deg);
}

@media (min-width: 768px) {
  .transformation-arrow {
    transform: rotate(0deg);
  }
}

.arrow-icon {
  width: 28px;
  height: 28px;
  color: #fff;
}

/* Solution Side (After) */
.solution-side {
  flex: 1;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (min-width: 768px) {
  .solution-side {
    align-items: flex-start;
  }
}

.solution-phone {
  width: 260px;
  border-radius: 28px;
  overflow: visible;
  background: transparent;
  padding: 0;
  transition: transform 0.4s ease;
}

.solution-phone:hover {
  transform: translateY(-8px) scale(1.02);
}

.solution-phone img {
  width: 100%;
  height: auto;
  border-radius: 28px;
  display: block;
}

/* Solution Features Pills */
.solution-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.875rem;
  margin-top: 3rem;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

.solution-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: #fff;
  border-radius: 100px;
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: var(--color-deep-sea-blue);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all 0.3s ease;
}

.solution-pill:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 197, 94, 0.3);
}

.solution-pill svg {
  color: #22c55e;
  flex-shrink: 0;
}

/* Buttons */
.btn-primary {
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  background-color: var(--color-harbor-sand);
  color: white;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  transform: translateY(-2px);
  background-color: var(
    --color-harbor-sand-dark
  ); /* Slightly darker harbor sand */
  box-shadow: 0 10px 15px -3px rgba(195, 164, 123, 0.3),
    0 4px 6px -4px rgba(195, 164, 123, 0.2);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
  transition: transform 0.15s ease;
}

.btn-primary:focus-visible {
  outline: 3px solid rgba(18, 57, 85, 0.12);
  box-shadow: 0 6px 18px rgba(18, 57, 85, 0.12);
}

/* Feature Cards */
.feature-card {
  background-color: var(--color-white);
  padding: 1.5rem; /* Slightly tighter to reduce visual bulk */
  border-radius: 1.25rem;
  box-shadow: 0 4px 18px rgba(18, 57, 85, 0.05); /* Soft deep sea blue shadow */
  border: none;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(18, 57, 85, 0.1);
}

.feature-card:focus {
  outline: 3px solid rgba(195, 164, 123, 0.25);
  transform: translateY(-4px);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 3.5rem;
  width: 3.5rem;
  border-radius: 1rem;
  background-color: rgba(195, 164, 123, 0.1); /* Light harbor sand */
  color: var(--color-harbor-sand);
  margin-bottom: 1rem;
  transition: transform 0.35s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.05);
}

/* Shorten paragraph length visually and clamp to 2-3 lines */
.feature-card p {
  font-size: 0.98rem;
  color: var(--color-deep-sea-blue);
  display: -webkit-box;
  -webkit-line-clamp: 3; /* Limit to 3 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Waitlist Section */
.waitlist-container {
  /* keep minimal custom styles, `.form-card` controls layout */
  padding: 0;
  text-align: left;
}

/* Simple survey card styling to match waitlist */
.survey-container {
  padding: 0;
  text-align: left;
}

/* Unify form presentation for survey and waitlist */
.form-card {
  background-color: var(--color-white);
  border: none;
  padding: 2rem;
  border-radius: 1.25rem;
  box-shadow: 0 18px 35px -12px rgba(18, 57, 85, 0.12);
  width: 100%;
  max-width: 44rem;
  min-height: 13rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.form-card h3,
.form-card h4 {
  color: var(--color-deep-sea-blue);
}

/* Feature icons - ensure adequate contrast */
.feature-icon svg {
  color: var(--color-deep-sea-blue);
}

/* Responsive tweaks */
@media (max-width: 640px) {
  .hero-section {
    min-height: 100vh;
  }
  .hero-content-grid {
    padding-top: 6rem;
    padding-bottom: 2rem;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  .mockup-stack {
    transform: scale(0.85);
  }
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.5rem;
  }
  .hero-subtitle {
    font-size: 1.25rem;
  }
}

@media (min-width: 640px) {
  .waitlist-container {
    padding: 3.5rem;
  }
}

/* CTA Section */
.cta-bg {
  background-color: var(--color-deep-sea-blue);
  color: var(--color-soft-wake);
  margin: 4rem auto;
  border-radius: 2rem;
  max-width: 80rem; /* max-w-7xl equivalent */
  position: relative;
  overflow: hidden;
  background-image: linear-gradient(
      rgba(18, 57, 85, 0.82),
      rgba(18, 57, 85, 0.75)
    ),
    url("../2.png");
  background-position: center;
  background-size: cover;
  box-shadow: 0 20px 40px -10px rgba(18, 57, 85, 0.3);
}

.cta-bg p,
.cta-bg span {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Features section background */
.bg-features {
  background-image: linear-gradient(
      rgba(244, 240, 232, 0.9),
      rgba(244, 240, 232, 0.9)
    ),
    url("../3.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.site-footer {
  background-color: var(--color-deep-sea-blue);
  color: var(--color-soft-wake);
  padding: 2rem 0;
}
.site-footer a {
  color: var(--color-soft-wake);
}

/* Typography Enhancements */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--color-deep-sea-blue);
}

.text-shadow {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Forms */
.input-field {
  padding: 1.25rem;
  border-radius: 1rem;
  border: 2px solid rgba(18, 57, 85, 0.1); /* Softer border */
  background-color: var(--color-soft-wake); /* Very light gray background */
  color: var(--color-deep-sea-blue);
  font-size: 1.125rem; /* text-lg */
  width: 100%; /* Full width */
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
  box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.02);
}

.input-field:focus {
  border-color: var(--color-harbor-sand);
  background-color: var(--color-white);
  box-shadow: 0 0 0 4px rgba(195, 164, 123, 0.1);
}

.input-field::placeholder {
  color: rgba(18, 57, 85, 0.4);
}

.btn-submit {
  width: 100%;
  background-color: var(--color-harbor-sand);
  color: white;
  font-weight: 700;
  padding: 1.25rem 1.5rem;
  border-radius: 1rem;
  font-size: 1.125rem; /* text-lg */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 6px -1px rgba(195, 164, 123, 0.2);
}

.btn-submit:hover {
  background-color: var(--color-harbor-sand-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(195, 164, 123, 0.3);
}

.btn-submit:active {
  transform: translateY(0) scale(0.98);
  transition: transform 0.15s ease;
}

.btn-outline {
  background-color: var(--color-white);
  color: var(--color-deep-sea-blue);
  border: 1px solid rgba(18, 57, 85, 0.06);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-outline:hover {
  background-color: #faf9f8;
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(18, 57, 85, 0.06);
}
.btn-outline:active {
  transform: translateY(0) scale(0.98);
}

/* Share count selector buttons */
.share-count-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3rem;
  height: 3rem;
  padding: 0 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-deep-sea-blue);
  background-color: var(--color-white);
  border: 2px solid rgba(18, 57, 85, 0.15);
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.share-count-btn:hover {
  border-color: var(--color-harbor-sand);
  background-color: rgba(195, 164, 123, 0.08);
  transform: translateY(-1px);
}

.share-count-btn:active {
  transform: scale(0.96);
}

/* FAQ styles */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .faq-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.faq-card {
  background-color: var(--color-white);
  padding: 1.25rem;
  border-radius: 1rem;
  box-shadow: 0 6px 16px rgba(18, 57, 85, 0.06);
}
