/* ===== GOOGLE FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;800;900&family=DM+Sans:wght@400;500;600;700&display=swap');

/* ===== DESIGN TOKENS ===== */
:root {
  --white: #FFFFFF;
  --black: #0D0D0D;
  --green: #1A3A2A;
  --green-hover: #254A38;
  --sand: #D4C5A9;
  --sand-hover: #C4B599;
  --border: #E0E0E0;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --container: 1200px;
  --section-pad: clamp(60px, 8vw, 120px);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea {
  font-family: inherit; font-size: inherit; color: inherit;
  border: none; outline: none; background: none;
}
button { cursor: pointer; }

/* ===== UTILITIES ===== */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: var(--section-pad) 0; }
.eyebrow {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.eyebrow--sand { color: var(--sand); }
.eyebrow--green { color: var(--green); }
.headline {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.headline--xl { font-size: clamp(36px, 5vw, 64px); }
.headline--lg { font-size: clamp(30px, 4vw, 48px); }
.headline--md { font-size: clamp(24px, 3vw, 36px); }
.subheadline {
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.7;
  max-width: 680px;
  color: #444;
}
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body);
  font-weight: 600; font-size: 15px;
  padding: 14px 32px;
  border-radius: 6px;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--green); color: var(--white);
}
.btn-primary:hover {
  background: var(--green-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(26,58,42,0.25);
}
.btn-sand {
  background: var(--sand); color: var(--green);
}
.btn-sand:hover {
  background: var(--sand-hover);
  transform: translateY(-2px);
}
.btn-link {
  background: none; padding: 14px 0; color: var(--green);
  border-bottom: 2px solid var(--green);
}
.btn-link:hover { border-color: var(--sand); color: var(--green-hover); }
.btn-link--light { color: var(--sand); border-color: var(--sand); }
.btn-link--light:hover { color: var(--white); border-color: var(--white); }
.btn-group { display: flex; gap: 16px; flex-wrap: wrap; }

/* ===== PAGE TRANSITION ===== */
.page-content { animation: fadeUp 0.5s ease both; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== NAVIGATION ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  z-index: 1000;
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s ease;
}
.nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.06); }
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.nav__logo {
  display: flex;
  align-items: center;
}
.nav__logo img {
  height: 40px; /* Adjust height as needed */
  width: auto;
}
.nav__links {
  display: flex; align-items: center; gap: 32px;
}
.nav__link {
  font-size: 14px; font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.nav__link:hover { color: var(--green); }
.nav__cta .btn { padding: 10px 24px; font-size: 14px; }
.nav__hamburger {
  display: none; flex-direction: column; gap: 5px;
  width: 28px; cursor: pointer; z-index: 1001;
}
.nav__hamburger span {
  display: block; height: 2px; width: 100%;
  background: var(--black); transition: all 0.3s ease;
}
.nav__hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav__hamburger.active span:nth-child(2) { opacity: 0; }
.nav__hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Mobile menu overlay */
.mobile-menu {
  display: none; position: fixed; inset: 0;
  background: var(--white); z-index: 999;
  flex-direction: column; align-items: center; justify-content: center; gap: 32px;
}
.mobile-menu.active { display: flex; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 700;
}

/* Sticky mobile CTA */
.mobile-sticky-cta {
  display: none; position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 998; padding: 12px 16px;
  background: var(--green);
}
.mobile-sticky-cta .btn {
  width: 100%; justify-content: center;
  background: var(--white); color: var(--green);
  font-size: 15px; padding: 14px;
}

@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
  .mobile-sticky-cta { display: block; }
  body { padding-bottom: 70px; }
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex; align-items: center;
  padding-top: 72px;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  z-index: 0;
}
.hero__bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(13,13,13,0.72) 0%, rgba(13,13,13,0.45) 100%);
}
.hero__content {
  position: relative; z-index: 1;
  max-width: 720px; color: var(--white);
}
.hero__content .headline { color: var(--white); margin-bottom: 24px; }
.hero__content .subheadline { color: rgba(255,255,255,0.85); margin-bottom: 36px; }
.trust-bar {
  display: flex; flex-wrap: wrap; gap: 8px 24px;
  margin-top: 40px;
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--sand);
}
.trust-bar span { opacity: 0.8; }
.trust-bar span::before {
  content: ''; display: inline-block;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--sand); margin-right: 10px;
  vertical-align: middle;
}

/* ===== PROBLEM SECTION ===== */
.section--green { background: var(--green); color: var(--white); }
.section--green .subheadline { color: rgba(255,255,255,0.75); }
.problem-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
  margin-top: 48px;
}
.problem-card h3 {
  font-family: var(--font-display); font-size: 22px; font-weight: 700;
  margin-bottom: 12px; color: var(--sand);
}
.problem-img {
  width: 100%;
  max-width: 120px;
  height: auto;
  margin: 0 auto 24px;
}
.problem-card p { font-size: 15px; line-height: 1.75; color: rgba(255,255,255,0.8); }
.problem-bottom {
  margin-top: 48px; padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 18px; font-weight: 500;
}
@media (max-width: 768px) {
  .problem-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ===== PILLAR CARDS (Teaser + Full) ===== */
.pillar-grid {
  display: grid; gap: 24px; margin-top: 48px;
}
.pillar-grid--teaser { grid-template-columns: repeat(2, 1fr); }
.pillar-grid--full { grid-template-columns: repeat(2, 1fr); }
.pillar-card {
  border: 1px solid var(--black);
  padding: 36px 32px;
  transition: transform 0.25s ease;
}
.pillar-card:hover { transform: translateY(-4px); }
.pillar-card__number {
  font-family: var(--font-body);
  font-size: 13px; font-weight: 700;
  color: var(--green); letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.pillar-card h3 {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 700;
  margin-bottom: 12px;
}
.pillar-card p { font-size: 15px; line-height: 1.7; color: #555; }
@media (max-width: 768px) {
  .pillar-grid--teaser, .pillar-grid--full { grid-template-columns: 1fr; }
}

/* ===== WORKFLOW ===== */
.section--sand { background: var(--sand); }
.workflow-steps {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px;
  margin-top: 48px;
}
.workflow-step { text-align: center; }
.workflow-step__img {
  width: 100%;
  max-width: 100px;
  height: auto;
  margin: 0 auto 16px;
}
.workflow-step__number {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--green); color: var(--white);
  font-family: var(--font-display); font-weight: 800; font-size: 20px;
  border-radius: 50%;
  margin: 0 auto 16px;
}
.workflow-step h3 {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 700;
  margin-bottom: 8px;
}
.workflow-step p { font-size: 14px; line-height: 1.65; color: #444; }
@media (max-width: 768px) {
  .workflow-steps { grid-template-columns: 1fr; gap: 32px; }
}

/* ===== COMPARISON TABLE ===== */
.comparison-wrapper { overflow-x: auto; margin-top: 48px; -webkit-overflow-scrolling: touch; }
.comparison-table {
  width: 100%; border-collapse: collapse;
  font-size: 15px; min-width: 600px;
}
.comparison-table th, .comparison-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.comparison-table th {
  font-family: var(--font-body);
  font-weight: 700; font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 20px;
}
.comparison-table th:first-child, .comparison-table td:first-child {
  text-align: left; font-weight: 600;
}
.comparison-table th.dormie-col {
  background: var(--green); color: var(--white);
}
.comparison-table td.dormie-col { background: rgba(26,58,42,0.04); }
.check { color: var(--green); font-weight: 700; font-size: 18px; }
.cross { color: #ccc; font-size: 18px; }

@media (max-width: 768px) {
  .comparison-wrapper {
    margin-top: 32px;
    margin-left: -24px;
    margin-right: -24px;
    width: calc(100% + 48px);
  }
  .comparison-table {
    min-width: 500px;
    font-size: 14px;
  }
  .comparison-table th, .comparison-table td {
    padding: 14px 12px;
  }
  .comparison-table th {
    padding: 16px 12px;
    font-size: 13px;
  }
  .comparison-table th:first-child, 
  .comparison-table td:first-child {
    position: sticky;
    left: 0;
    background: var(--white);
    z-index: 2;
    padding-left: 24px;
  }
  .comparison-table th:last-child, 
  .comparison-table td:last-child {
    padding-right: 24px;
  }
  .comparison-table th:first-child::after,
  .comparison-table td:first-child::after {
    content: '';
    position: absolute;
    top: 0;
    right: -8px;
    bottom: -1px;
    width: 8px;
    background: linear-gradient(to right, rgba(0,0,0,0.08), transparent);
    pointer-events: none;
  }
}

/* ===== SCARCITY CTA ===== */
.scarcity .headline { margin-bottom: 20px; }
.scarcity .subheadline { color: rgba(255,255,255,0.8); margin-bottom: 12px; }
.scarcity__limit {
  font-size: 14px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--sand);
  margin-bottom: 32px;
}
.scarcity__note {
  margin-top: 20px; font-size: 14px;
  color: rgba(255,255,255,0.55);
}

/* ===== FAQ ===== */
.faq-list { max-width: 800px; margin: 48px auto 0; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-question {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 24px 0;
  font-size: 17px; font-weight: 600;
  text-align: left; cursor: pointer;
  transition: color 0.2s;
}
.faq-question:hover { color: var(--green); }
.faq-question__icon {
  flex-shrink: 0; width: 24px; height: 24px;
  position: relative; margin-left: 16px;
}
.faq-question__icon::before, .faq-question__icon::after {
  content: ''; position: absolute;
  background: var(--black);
  transition: transform 0.3s ease;
}
.faq-question__icon::before {
  width: 16px; height: 2px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.faq-question__icon::after {
  width: 2px; height: 16px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.faq-item.active .faq-question__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}
.faq-answer__inner {
  padding: 0 0 24px;
  font-size: 15px; line-height: 1.75; color: #555;
}

/* ===== SYSTEM PAGE ===== */
.accent-bar {
  width: 60px; height: 4px;
  background: var(--green);
  margin-bottom: 24px;
}
.text-center .accent-bar { margin-left: auto; margin-right: auto; }

/* ===== OWNERSHIP GUARANTEE ===== */
.guarantee .headline { margin-bottom: 24px; }
.guarantee p {
  max-width: 720px; margin: 0 auto;
  font-size: 17px; line-height: 1.8;
  color: rgba(255,255,255,0.8);
}

/* ===== FOUNDER CARDS ===== */
.founders-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px;
  margin-top: 48px;
}
.founder-card {}
.founder-card__photo {
  width: 100%; aspect-ratio: 4/5;
  object-fit: cover;
  margin-bottom: 24px;
}
.founder-card__name {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 800;
  margin-bottom: 4px;
}
.founder-card__title {
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--green); margin-bottom: 16px;
}
.founder-card__bio {
  font-size: 15px; line-height: 1.75; color: #555;
  margin-bottom: 16px;
}
.founder-card__detail {
  font-size: 13px; font-style: italic;
  color: var(--sand);
}
@media (max-width: 768px) {
  .founders-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ===== ORIGIN STORY ===== */
.story-text {
  max-width: 720px;
}
.story-text p {
  font-size: 16px; line-height: 1.85;
  color: rgba(255,255,255,0.8);
  margin-bottom: 24px;
}
.story-text p:last-child { margin-bottom: 0; }

/* ===== APPLY FORM ===== */
.apply-page {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 120px 24px 60px;
}
.apply-header { text-align: center; margin-bottom: 48px; }
.apply-header .headline { margin-bottom: 12px; }
.apply-header .subheadline { margin: 0 auto; }
.progress-bar {
  display: flex; gap: 8px; margin-bottom: 48px;
  justify-content: center;
}
.progress-bar__step {
  width: 48px; height: 4px;
  background: var(--border); border-radius: 2px;
  transition: background 0.3s ease;
}
.progress-bar__step.active { background: var(--green); }
.progress-bar__step.completed { background: var(--sand); }
.form-step {
  display: none;
  max-width: 480px; width: 100%;
  text-align: center;
}
.form-step.active { display: block; animation: fadeUp 0.35s ease both; }
.form-step label {
  display: block;
  font-size: 18px; font-weight: 600;
  margin-bottom: 16px;
}
.form-step input, .form-step select, .form-step textarea {
  width: 100%; padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 16px;
  transition: border-color 0.2s;
  margin-bottom: 12px;
}
.form-step input:focus, .form-step select:focus, .form-step textarea:focus {
  border-color: var(--green);
}
.form-step textarea { min-height: 120px; resize: vertical; }
.form-nav {
  display: flex; gap: 12px; justify-content: center;
  margin-top: 24px;
}
.form-nav .btn { min-width: 140px; justify-content: center; }
.btn-back {
  background: var(--border); color: var(--black);
}
.btn-back:hover { background: #d0d0d0; }
.form-confirmation {
  display: none; text-align: center;
  max-width: 480px;
}
.form-confirmation.active { display: block; animation: fadeUp 0.4s ease both; }
.form-confirmation .headline { margin-bottom: 16px; }
.form-confirmation p { font-size: 16px; color: #555; line-height: 1.7; }

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
}
.footer__inner {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 32px;
  align-items: start;
}
.footer__brand {}
.footer__logo {
  display: inline-block;
  margin-bottom: 12px;
}
.footer__logo img {
  height: 48px; /* Adjust height as needed */
  width: auto;
}
.footer__tagline { font-size: 13px; color: #888; }
.footer__nav { text-align: center; }
.footer__nav a {
  font-size: 14px; font-weight: 500;
  margin: 0 12px;
  transition: color 0.2s;
}
.footer__nav a:hover { color: var(--green); }
.footer__contact { text-align: right; }
.footer__contact a {
  display: block; font-size: 14px;
  margin-bottom: 8px;
  transition: color 0.2s;
}
.footer__contact a:hover { color: var(--green); }
.footer__social {
  display: flex; gap: 16px; justify-content: flex-end;
  margin-top: 8px;
}
.footer__social a {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: 50%;
  transition: all 0.2s;
}
.footer__social a:hover {
  background: var(--green); border-color: var(--green); color: var(--white);
}
.footer__social svg { width: 16px; height: 16px; }
.footer__bottom {
  margin-top: 40px; padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between;
  font-size: 12px; color: #999;
}
@media (max-width: 768px) {
  .footer__inner {
    grid-template-columns: 1fr; text-align: center; gap: 24px;
  }
  .footer__nav { text-align: center; }
  .footer__contact { text-align: center; }
  .footer__social { justify-content: center; }
  .footer__bottom { flex-direction: column; align-items: center; gap: 8px; }
}

/* ===== CTA SECTIONS ===== */
.cta-section { text-align: center; }
.cta-section .headline { margin-bottom: 16px; }
.cta-section .subheadline { margin: 0 auto 32px; }

/* ===== APPLY NAV ===== */
.nav--minimal .nav__links { display: none; }
.nav--minimal .nav__hamburger { display: none; }
