@font-face {
  font-family: 'Microgramma';
  src: url('../assets/fonts/microgrammanormal.ttf') format('truetype');
  font-weight: normal;
}

:root {
  --bg:           #171413; /* 1 black */
  --text:         #FCFBFB; /* 2 white */
  --surface:      #35302C; /* 3 dark surface */
  --card:         #544E4A; /* 4 card background */
  --brown-dark:   #6C4635; /* 5 dark brown */
  --brown-deeper: #4F2A1B; /* 6 deeper brown */
  --muted:        #9B9898; /* 7 muted text */
  --surface-dark: #3F3122; /* 8 dark warm surface */
  --warm:         #B48F7D; /* 9 warm rose-brown */
  --accent:       #EBC66D; /* 10 golden accent */
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 40px 20px;
}

/* Header */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 24px 40px 30px;
  font-family: 'Microgramma', sans-serif;
  font-size: 22px;
  letter-spacing: 0.15em;
  color: var(--text);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: auto;
  z-index: 2;
}

.site-header span {
  position: absolute;
  left: 40px;
}

.site-nav {
  display: flex;
  gap: 32px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: none;
  margin: 0;
}

.header-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: var(--text);
}

.site-nav a.active {
  color: #B48F7D;
}

/* Hero */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  padding: 100px 0 80px;
  justify-content: space-between;
  gap: 40px;
}

.hero-side {
  position: absolute;
  top: 20px;
  right: 40px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  max-width: 320px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
  opacity: 0;
  transform: none;
  transition: opacity 1s ease;
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(23,20,19,0.85) 30%, rgba(23,20,19,0.2) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-text {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 160px 60px 0;
  opacity: 0;
  transform: translateY(30px);
}

.hero-signup {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  max-width: 320px;
  padding: 18px 22px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  backdrop-filter: blur(14px);
}

.signup-privacy {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  color: var(--text);
  line-height: 1.4;
}

.signup-privacy input {
  margin-top: 3px;
}

.signup-privacy a {
  color: var(--accent);
  text-decoration: underline;
}

.hero-signup .signup-cta-small {
  color: #fff;
  opacity: 0.95;
  max-width: 100%;
  font-size: 14px;
  line-height: 1.4;
  white-space: normal;
  word-wrap: break-word;
}

.hero-signup .signup-form {
  width: 100%;
  margin-top: 0;
  align-items: stretch;
}

.hero-signup .signup-input {
  width: 100%;
}

.hero h1 {
  font-size: 36px;
  margin-bottom: 16px;
}

.hero p {
  font-size: 20px;
  color: var(--muted);
}

/* Button */
.btn {
  display: inline-block;
  margin-top: 30px;
  padding: 14px 28px;
  background: var(--accent);
  color: #000;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(235,198,109,0.3);
}

/* Sections */
.section { padding: 100px 0; }

#how-it-works { padding-top: 40px; padding-bottom: 0; }

.how-it-works-text p {
  font-size: 16px;
  color: var(--muted);
  margin: 0 0 12px;
}

.timeline-img {
  display: block;
  width: 100%;
  margin-top: 24px;
  border-radius: 12px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.card {
  background: var(--card);
  padding: 30px;
  border-radius: 16px;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s ease;
}

.card-img {
  display: block;
  width: 100%;
  margin-top: 20px;
  border-radius: 8px;
}

.card:hover {
  transform: translateY(-10px) scale(1.02);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.step {
  background: var(--card);
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s ease;
}

.cta { text-align: center; }

.cta h2 {
  font-size: 42px;
  opacity: 0;
  transform: translateY(30px);
}

/* Sign up */
.signup-section { text-align: center; padding-top: 0; }

.signup-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  align-self: center;
  margin: 0;
  padding: 0;
}

/* nudge the signup form slightly down to align with the nav baseline */
.signup-form {
  margin-top: 16px;
}

.signup-cta {
  font-family: 'Microgramma', sans-serif;
  font-size: 22px;
  letter-spacing: 0.15em;
  color: var(--text);
  text-transform: uppercase;
  margin: 0;
}

.signup-text-small {
  font-size: 8px;
  color: var(--muted);
  max-width: 350px;
  margin: 0 0 4px 0;
  line-height: 1.3;
  text-align: center;
}

.signup-cta-small {
  font-size: 9px;
  color: var(--text);
  font-weight: 700;
  margin: 0 0 4px 0;
  line-height: 1;
  text-align: center;
  display: inline-block;
  white-space: nowrap;
  max-width: none;
}

/* when CTA is placed in the header, ensure it sits inline with nav/logo */


.signup-text {
  font-size: 10px;
  color: var(--muted);
  max-width: 350px;
  margin: 0;
  line-height: 1.4;
  text-align: center;
}

.signup-input {
  padding: 10px 18px;
  border-radius: 30px;
  border: 1px solid var(--card);
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  width: 220px;
  outline: none;
  transition: border-color 0.3s ease;
}

.signup-input:focus {
  border-color: var(--accent);
}

.signup-btn {
  margin-top: 0;
  cursor: pointer;
  border: none;
  padding: 10px 22px;
  font-size: 14px;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 200;
}

.modal-overlay[hidden] { display: none; }

.no-scroll {
  overflow: hidden;
}

.modal-box {
  background: var(--surface);
  padding: 22px;
  border-radius: 18px;
  text-align: center;
  max-width: 820px;
  width: min(94%, 820px);
}

.consent-box {
  max-width: 100%;
  padding: 18px;
  text-align: left;
}

.consent-box h2 {
  margin-top: 0;
  margin-bottom: 14px;
  font-size: 24px;
}

.consent-box p {
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 18px;
}

.consent-box p a {
  color: var(--accent);
  text-decoration: underline;
}

.consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 16px;
}

.consent-actions .btn {
  min-width: 140px;
  padding: 10px 18px;
  font-size: 13px;
}

.consent-manage-panel {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 18px;
  border-radius: 18px;
}

.consent-manage-panel h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 18px;
}

.consent-manage-panel p {
  margin: 0 0 14px;
  color: var(--text);
  opacity: 0.85;
}

.consent-manage-panel label {
  display: block;
  font-size: 14px;
  margin-bottom: 10px;
  color: var(--text);
}

.consent-manage-panel input[type="checkbox"] {
  margin-right: 10px;
}

.modal-box p {
  font-size: 18px;
  margin-bottom: 24px;
  color: var(--text);
}

/* Footer */
.footer {
  text-align: center;
  padding: 40px;
  color: #666;
}

/* Image */
img {
  border-radius: 20px;
  width: 100%;
  transform: translateY(40px);
  opacity: 0;
  transition: all 1s ease;
}

/* Animations */
.reveal {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Responsive */
@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    text-align: center;
    align-items: center;
    padding: 100px 0 60px;
  }

  .hero-text {
    padding: 0 24px;
    max-width: 100%;
  }

  .hero-side {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    max-width: 100%;
    padding: 0 24px;
    align-items: center;
  }

  .hero-signup {
    max-width: 100%;
    width: 100%;
  }

  .site-header {
    flex-direction: column;
    padding: 16px 24px 12px;
    gap: 10px;
  }

  .site-header span {
    position: relative;
    left: auto;
  }

  .site-nav {
    gap: 20px;
  }

  .grid, .steps {
    grid-template-columns: 1fr;
  }

  .consent-actions {
    flex-direction: column;
  }

  .consent-actions .btn {
    min-width: unset;
    width: 100%;
    text-align: center;
  }
}
