/* ==========================================================================
   3rdAI — landing page styles
   Depends on: colors_and_type.css (tokens), components.css (box-sizing reset)
   Never import deck.css here. Never import this file in deck.html.
   ========================================================================== */

/* ---------- Layout tokens ---------- */
:root {
  --land-max:       1200px;
  --land-gutter:    clamp(24px, 6vw, 80px);
  --land-section-y: clamp(96px, 12vw, 160px);
}

/* ---------- Page base ---------- */
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-display);
  background: #fff;
  color: var(--gray-950);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- Shared inner wrapper ---------- */
.land-inner {
  max-width: var(--land-max);
  margin: 0 auto;
  padding: 0 var(--land-gutter);
}

/* ==========================================================================
   NAV
   ========================================================================== */
.land-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 64px;
  padding: 0 var(--land-gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(22, 9, 31, 0.80);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.land-nav-brand {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.land-nav-cta {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  padding: 7px 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  transition: color 0.16s ease, border-color 0.16s ease;
}
.land-nav-cta:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

/* ==========================================================================
   HERO
   ========================================================================== */
.land-hero {
  min-height: 100vh;
  background: #16091F;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 0 var(--land-gutter);
}

@media (max-width: 600px) {
}

.land-hero-inner {
  max-width: var(--land-max);
  margin: 0 auto;
  width: 100%;
  padding-top: 120px;
  padding-bottom: 120px;
}

.land-hero-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-400);
  margin-bottom: 28px;
}

.land-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(52px, 8vw, 104px);
  line-height: 1.02;
  font-weight: 400;
  color: #fff;
  margin: 0 0 28px;
  letter-spacing: -0.025em;
  max-width: 13ch;
}

.land-hero-sub {
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.58);
  font-weight: 400;
  max-width: 50ch;
  margin: 0 0 52px;
}

.land-hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.land-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  background: #fff;
  color: var(--gray-950);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  transition: opacity 0.16s ease;
  white-space: nowrap;
}
.land-btn-primary:hover { opacity: 0.86; }

.land-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.16s ease;
}
.land-btn-ghost:hover { color: rgba(255, 255, 255, 0.88); }

/* ==========================================================================
   GLOCAL STRIP
   ========================================================================== */
.land-strip {
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  padding: 52px var(--land-gutter);
}

.land-strip-inner {
  max-width: var(--land-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
}

.land-strip-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-600);
  margin-bottom: 10px;
}

.land-strip-value {
  font-size: 15px;
  line-height: 1.6;
  color: var(--gray-500);
}

/* ==========================================================================
   VISION / MISSION
   ========================================================================== */
.land-vision {
  padding: var(--land-section-y) var(--land-gutter);
}

.land-vision-inner {
  max-width: var(--land-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.land-vision-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand-700);
  background: var(--brand-50);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 24px;
}

.land-vision-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin: 0 0 14px;
}

.land-vision-headline {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.12;
  font-weight: 400;
  color: var(--gray-950);
  margin: 0;
  letter-spacing: -0.015em;
}

.land-vision-body {
  font-size: 17px;
  line-height: 1.8;
  color: var(--gray-500);
  margin: 0;
  padding-top: 8px;
}

/* ==========================================================================
   PROJECTS
   ========================================================================== */
.land-projects {
  padding: var(--land-section-y) var(--land-gutter);
  border-top: 1px solid var(--gray-200);
}

.land-projects-inner {
  max-width: var(--land-max);
  margin: 0 auto;
}

.land-projects-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 56px;
}

.land-projects-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray-400);
}

.land-projects-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 400;
  color: var(--gray-950);
  margin: 0;
  letter-spacing: -0.015em;
}

.land-project-item {
  display: grid;
  grid-template-columns: 64px 1fr 32px;
  align-items: center;
  gap: 40px;
  padding: 44px 0;
  border-top: 1px solid var(--gray-200);
  text-decoration: none;
  color: inherit;
  transition: opacity 0.16s ease;
}
.land-project-item:last-child { border-bottom: 1px solid var(--gray-200); }
.land-project-item:hover { opacity: 0.68; }
.land-project-item:hover .land-project-arrow { color: var(--gray-950); transform: translate(3px, -3px); }

.land-project-num {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--gray-300);
  font-variant-numeric: tabular-nums;
  align-self: start;
  padding-top: 6px;
}

.land-project-name {
  font-family: var(--font-serif);
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 400;
  color: var(--gray-950);
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

.land-project-desc {
  font-size: 15px;
  line-height: 1.65;
  color: var(--gray-500);
  margin: 0 0 14px;
  max-width: 54ch;
}

.land-project-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 500;
  color: var(--gray-400);
  background: var(--gray-50);
  padding: 3px 10px;
  border-radius: 4px;
  border: 1px solid var(--gray-200);
}

.land-project-arrow {
  font-size: 20px;
  color: var(--gray-300);
  transition: color 0.16s ease, transform 0.16s ease;
  align-self: center;
  line-height: 1;
}

/* ==========================================================================
   CLOSING CTA
   ========================================================================== */
.land-close {
  background: #16091F;
  padding: var(--land-section-y) var(--land-gutter);
  position: relative;
  overflow: hidden;
}

.land-close-inner {
  max-width: var(--land-max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}

.land-close-headline {
  font-family: var(--font-serif);
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 400;
  color: #fff;
  margin: 0;
  letter-spacing: -0.022em;
  max-width: 18ch;
  line-height: 1.1;
}

.land-close-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px;
  flex-shrink: 0;
}

.land-contact-row {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.land-contact-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}

.land-contact-value {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.16s ease;
}
.land-contact-value:hover { color: #fff; }

/* ==========================================================================
   GLOW DECORATION
   ========================================================================== */
.land-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.5;
  pointer-events: none;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

/* Tablet — 900px */
@media (max-width: 900px) {
  .land-nav {
    padding: 0 clamp(16px, 4vw, 40px);
  }

  .land-hero {
    padding: 0 clamp(16px, 4vw, 40px);
  }

  .land-strip {
    padding: 44px clamp(16px, 4vw, 40px);
  }
  .land-strip-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px 48px;
  }

  .land-vision {
    padding: clamp(64px, 10vw, 120px) clamp(16px, 4vw, 40px);
  }
  .land-vision-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .land-projects {
    padding: clamp(64px, 10vw, 120px) clamp(16px, 4vw, 40px);
  }
  .land-projects-header {
    flex-direction: column;
    gap: 8px;
    margin-bottom: 40px;
  }

  .land-close {
    padding: clamp(64px, 10vw, 120px) clamp(16px, 4vw, 40px);
  }
  .land-close-inner {
    gap: 36px;
  }
}

/* Mobile — 600px */
@media (max-width: 600px) {
  /* Nav */
  .land-nav {
    height: 56px;
    padding: 0 20px;
  }
  .land-nav-brand { font-size: 18px; }
  .land-nav-cta {
    font-size: 13px;
    padding: 6px 14px;
  }

  /* Hero */
  .land-hero { padding: 0 20px; }
  .land-hero-inner {
    padding-top: 96px;
    padding-bottom: 80px;
  }
  .land-hero-label { margin-bottom: 20px; }
  .land-hero-sub { margin-bottom: 40px; }
  .land-hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .land-btn-primary,
  .land-btn-ghost {
    font-size: 14px;
  }

  /* Stats strip */
  .land-strip { padding: 40px 20px; }
  .land-strip-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* Vision / Mission */
  .land-vision { padding: 56px 20px; }
  .land-vision-inner { gap: 32px; }
  .land-vision-body { font-size: 15px; }

  /* Projects */
  .land-projects { padding: 56px 20px; }
  .land-project-item {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 32px 0;
  }
  .land-project-num  { display: none; }
  .land-project-arrow { display: none; }
  .land-project-name { font-size: clamp(22px, 6vw, 32px); }

  /* Closing CTA */
  .land-close { padding: 56px 20px; }
  .land-close-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }
  .land-close-right {
    align-items: flex-start;
    gap: 16px;
  }

  .land-contact-row { align-items: flex-start; }
  .land-close-headline { font-size: clamp(28px, 8vw, 44px); }
}

/* ==========================================================================
   Password gate modal
   ========================================================================== */

.pg-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.pg-backdrop.pg-visible {
  opacity: 1;
  pointer-events: auto;
}

.pg-modal {
  background: #1a0f2e;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 36px 32px 28px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(127, 86, 217, 0.15) inset;
  transform: translateY(8px);
  transition: transform 0.22s ease;
}

.pg-backdrop.pg-visible .pg-modal {
  transform: translateY(0);
}

.pg-access-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-400, #b692f6);
  margin-bottom: 10px;
}

.pg-project-name {
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
  line-height: 1.25;
}

.pg-hint {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 24px;
  line-height: 1.5;
}

.pg-field-wrap {
  margin-bottom: 20px;
}

.pg-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 15px;
  color: #fff;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.15s;
  font-family: var(--font-mono, monospace);
  letter-spacing: 0.06em;
}

.pg-input:focus {
  border-color: rgba(127, 86, 217, 0.6);
  box-shadow: 0 0 0 3px rgba(127, 86, 217, 0.15);
}

.pg-input::placeholder {
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 0;
  font-family: var(--font-body, sans-serif);
}

.pg-error {
  font-size: 13px;
  color: #f97066;
  margin-top: 8px;
  min-height: 18px;
}

@keyframes pg-shake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-6px); }
  40%       { transform: translateX(6px); }
  60%       { transform: translateX(-4px); }
  80%       { transform: translateX(4px); }
}

.pg-shake { animation: pg-shake 0.35s ease; }

.pg-actions {
  display: flex;
  gap: 10px;
}

.pg-btn-cancel,
.pg-btn-confirm {
  flex: 1;
  padding: 11px 0;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: opacity 0.15s, background 0.15s;
  font-family: var(--font-body, sans-serif);
}

.pg-btn-cancel {
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.55);
}
.pg-btn-cancel:hover { background: rgba(255, 255, 255, 0.11); color: rgba(255, 255, 255, 0.8); }

.pg-btn-confirm {
  background: #7f56d9;
  color: #fff;
}
.pg-btn-confirm:hover { background: #6941c6; }

@media (max-width: 480px) {
  .pg-modal {
    margin: 16px;
    padding: 28px 20px 22px;
  }
}
