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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  color: #1a1a1a;
  background: #f0f0ec;
  line-height: 1.6;
  min-width: 320px;
  max-width: 1600px;
  margin: 0 auto;
}

h1, h2, h3 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: #1a1a1a;
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 8px 8px;
  z-index: 200;
  font-size: 0.9rem;
}

.skip-link:focus {
  top: 0;
}

/* ========== NAVBAR ========== */
.navbar {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.75rem 2.5rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.footer-logo-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: brightness(0);
}

.nav-brand {
  font-family: 'Chiron GoRound TC', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin-left: auto;
  margin-right: 2rem;
}

.nav-links a {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.nav-signin {
  font-size: 0.9rem;
  padding: 0.5rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 100px;
  color: #fff;
  background: rgba(180, 200, 220, 0.15);
  backdrop-filter: blur(8px);
  transition: background 0.2s, color 0.2s;
}

.nav-signin:hover {
  background: #fff;
  color: #1a1a1a;
}

.nav-signin-desktop {
  flex-shrink: 0;
}

.nav-signin-item {
  display: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

/* ========== HERO ========== */
.hero {
  position: relative;
  border-radius: 16px;
  margin: 2.25rem;
  overflow: hidden;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
}

.hero-image-placeholder {
  position: absolute;
  inset: 0;
  background: url('images/hero.webp') center/cover no-repeat, url('images/hero.jpg') center/cover no-repeat;
  z-index: 0;
  transition: transform 8s ease-out;
}

.hero:hover .hero-image-placeholder {
  transform: scale(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(160deg, rgba(180, 160, 95, 0.85) 0%, transparent 70%),
    linear-gradient(to bottom, rgba(55, 100, 150, 0.45) 0%, transparent 50%),
    linear-gradient(to top, rgba(25, 50, 40, 0.88) 0%, transparent 50%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 5;
  margin-top: auto;
  padding: 2.5rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 3rem;
}

.hero-left {
  flex: 1 1 auto;
  min-width: 0;
}

.hero-right {
  flex: 0 0 360px;
  max-width: 360px;
  background: rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 1.5rem;
}

.hero-right p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

/* Social proof */
.social-proof {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.flag-stack {
  display: flex;
}

.flag-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.6);
  margin-right: -10px;
  object-fit: cover;
}

.flag-circle:last-child {
  margin-right: 0;
}

.social-proof-text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
}

.social-proof-text strong {
  display: block;
  font-size: 1rem;
  color: #fff;
}

h1 {
  font-size: 3.25rem;
  color: #1a1a1a;
  letter-spacing: -0.02em;
}

.hero h1 {
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  font-size: 1.4rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 0.5rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

/* CTA Button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 100px;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: rgba(255, 255, 255, 0.3);
}

.btn-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  font-size: 1rem;
}

/* ========== ACCENT ========== */
.accent {
  color: #2a7ab5;
}

/* ========== SECTION RULE ========== */
.section-rule {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.section-rule::before,
.section-rule::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #ccc;
}

.section-rule span {
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #888;
  white-space: nowrap;
}

/* ========== HOW IT WORKS SECTION ========== */
.how-it-works {
  margin: 2.25rem;
  background: #fff;
  border-radius: 16px;
  padding: 4rem 3rem;
}

.how-it-works-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.how-it-works-heading {
  font-size: 2.25rem;
  text-align: center;
  max-width: 550px;
  margin: 0 auto 3.5rem;
  color: #1a1a1a;
}

.steps-row {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.step {
  flex: 1;
  text-align: center;
  padding: 0 1rem;
}

.step-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: #f0f0ec;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: #5a6a40;
}

.step h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #1a1a1a;
}

.step p {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.6;
  max-width: 220px;
  margin: 0 auto;
}

.step-connector {
  width: 40px;
  min-width: 40px;
  height: 2px;
  background: #ddd;
  margin-top: 32px;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .steps-row {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .step-connector {
    width: 2px;
    height: 30px;
    min-width: unset;
    margin-top: 0;
  }

  .step {
    padding: 0;
  }
}

/* ========== ABOUT SECTION ========== */
.about {
  margin: 2.25rem;
  background: #fff;
  border-radius: 16px;
  padding: 4rem 3rem;
}

.about-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.about-description {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.65rem;
  line-height: 1.45;
  color: #1a1a1a;
  max-width: 600px;
  margin-bottom: 3.5rem;
}

.value-props {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}

.value-prop {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.value-prop svg {
  flex-shrink: 0;
  color: #5a6a40;
  margin-top: 0.15rem;
}

.value-prop h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
  color: #1a1a1a;
}

.value-prop p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.6;
}

.btn-about {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 2.5rem;
  padding: 0.75rem 1.5rem;
  background: #1a1a1a;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 100px;
  transition: background 0.2s;
}

.btn-about:hover {
  background: #333;
}

@media (max-width: 640px) {
  .value-props {
    grid-template-columns: 1fr;
  }
}

/* ========== FEATURES SECTION ========== */
.features {
  margin: 2.25rem;
  background: #e8e8e2;
  border-radius: 16px;
  padding: 4rem 3rem;
}

.features-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.features-heading {
  font-size: 2.25rem;
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
  color: #1a1a1a;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  padding-bottom: 1.5rem;
}

.feature-image-wrap {
  position: relative;
  overflow: hidden;
  height: 220px;
}

.feature-image-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: inherit;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
}

.feature-card:hover .feature-image-wrap::before {
  transform: scale(1.05);
}

.badge-coming-soon {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  letter-spacing: 0.03em;
}

.feature-card h3 {
  font-size: 1.2rem;
  padding: 1.25rem 1.5rem 0.5rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: #555;
  padding: 0 1.5rem;
  line-height: 1.6;
}

.btn-card {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 1rem 1.5rem 0.5rem;
  padding: 0.6rem 1.25rem;
  background: #1a1a1a;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 100px;
  transition: background 0.2s;
}

.btn-card:hover {
  background: #333;
}

.btn-card-secondary {
  background: transparent;
  color: #555;
  border: 1px solid #ccc;
}

.btn-card-secondary:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #333;
}

/* ========== FOOTER ========== */
.footer {
  margin: 2.25rem;
  margin-top: 0;
  padding: 3rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #d0d0c8;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-brand .nav-brand {
  color: #1a1a1a;
  font-size: 1.25rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: #555;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #1a1a1a;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: #888;
}

.footer-legal {
  display: flex;
  gap: 1.25rem;
}

.footer-legal a {
  font-size: 0.85rem;
  color: #888;
  transition: color 0.2s;
}

.footer-legal a:hover {
  color: #1a1a1a;
}

/* ========== WAITLIST MODAL ========== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-panel {
  background: #fff;
  border-radius: 16px;
  padding: 2.5rem;
  max-width: 440px;
  width: 90%;
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s ease;
}

.modal-overlay.open .modal-panel {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #999;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.modal-close:hover {
  color: #333;
}

.modal-panel h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #1a1a1a;
}

.modal-panel > p {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

#waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

#waitlist-form input {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: 10px;
  outline: none;
  transition: border-color 0.2s;
}

#waitlist-form input:focus {
  border-color: #999;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.5rem;
  background: #1a1a1a;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: background 0.2s;
}

.btn-submit:hover {
  background: #333;
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-submit.loading::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-right: 0.5rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.form-legal {
  font-size: 0.75rem;
  color: #999;
  text-align: center;
  margin-top: 0.5rem;
}

.form-legal a {
  color: #888;
  text-decoration: underline;
}

.form-success {
  display: none;
  text-align: center;
  padding: 1rem 0;
}

.form-success p {
  font-size: 1rem;
  color: #2a7ab5;
  font-weight: 500;
}

/* ========== COOKIE BANNER ========== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: #fff;
  border-top: 1px solid #e5e5e5;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-banner p {
  font-size: 0.85rem;
  color: #555;
  margin: 0;
  line-height: 1.5;
}

.cookie-banner a {
  color: #2a7ab5;
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.cookie-btn {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  cursor: pointer;
  border: none;
  transition: background 0.2s;
}

.cookie-btn-accept {
  background: #1a1a1a;
  color: #fff;
}

.cookie-btn-accept:hover {
  background: #333;
}

.cookie-btn-decline {
  background: transparent;
  color: #555;
  border: 1px solid #ccc;
}

.cookie-btn-decline:hover {
  background: rgba(0, 0, 0, 0.05);
}

@media (max-width: 640px) {
  .cookie-banner {
    flex-direction: column;
    text-align: center;
    padding: 1.25rem;
  }

  .cookie-actions {
    width: 100%;
    justify-content: center;
  }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .hero-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .hero-right {
    flex: 0 0 auto;
    max-width: 100%;
  }

  .hero-right p {
    margin-bottom: 1rem;
  }

  h1 {
    font-size: 2.5rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 1rem;
  }
}

@media (max-width: 880px) {
  .navbar {
    padding: 1rem 1.25rem;
  }

  .nav-links {
    display: flex;
    position: absolute;
    top: 0;
    left: -3rem;
    right: -3rem;
    z-index: -1;
    background: linear-gradient(to bottom, rgba(22, 32, 37, 0.5), rgba(18, 25, 30, 0.75));
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    flex-direction: column;
    padding: 0 4.5rem;
    gap: 0;
    border-radius: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.35s ease;
  }

  .nav-links.open {
    max-height: 500px;
    opacity: 1;
    padding: 5rem 4.5rem 2rem;
    gap: 1rem;
  }

  .nav-signin-desktop {
    display: none;
  }

  .nav-signin-item {
    display: list-item;
    margin-top: 1rem;
    list-style: none;
  }

  .nav-toggle {
    display: flex;
  }

  .navbar.menu-open {
    background: linear-gradient(to bottom, rgba(22, 32, 37, 0.75), transparent);
  }

  .hero,
  .how-it-works,
  .about,
  .features,
  .footer {
    margin: 0.75rem;
  }

  .hero {
    min-height: 60vh;
  }

  .hero-image-placeholder {
    background-position: 65% center;
  }

  .hero-content {
    padding: 1.5rem;
  }

  h1 {
    font-size: 2rem;
  }

  .how-it-works {
    padding: 2.5rem 1.5rem;
  }

  .about,
  .features {
    padding: 2.5rem 1.5rem;
  }

  .about-description {
    font-size: 1.35rem;
  }

  .features-heading {
    font-size: 1.75rem;
  }

  .footer {
    padding: 2rem 1.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .footer-legal {
    flex-direction: column;
    gap: 0.4rem;
  }
}
