/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --bg:         #0c0c0e;
  --bg2:        #111116;
  --bg3:        #14141a;
  --fg:         #e8e8e4;
  --fg-muted:   #787888;
  --fg-dim:     #5a5a68;
  --fg-ghost:   #3a3a46;
  --border:     #1e1e24;
  --border2:    #2a2a32;
  --gold:       #c8a97e;
  --gold-dim:   rgba(200,169,126,0.4);
  --gold-faint: rgba(200,169,126,0.08);
  --teal:       #8fb8ad;
  --lavender:   #b8a8c8;
  --slate:      #a8b8c8;
  --font: 'Inter', system-ui, sans-serif;
  --max-w: 1200px;
}

html { scroll-behavior: smooth; color-scheme: dark; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* ── Blueprint grid ─────────────────────────────────────────── */
.blueprint-grid {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(200,169,126,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,169,126,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* ── Container ──────────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 2.5rem; }

/* ── Header ─────────────────────────────────────────────────── */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(12,12,14,0.92);
  backdrop-filter: blur(12px);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 56px;
}
.logo {
  display: flex; align-items: center; gap: 0.6rem;
  text-decoration: none; color: var(--fg);
  font-size: 0.9375rem; font-weight: 600; letter-spacing: 0.06em;
}
.logo img { height: 24px; width: auto; object-fit: contain; }
.nav-links {
  display: flex; align-items: center; gap: 1.75rem;
}
.nav-links a {
  text-decoration: none; color: var(--fg-dim);
  font-size: 0.8125rem; transition: color 0.15s;
}
.nav-links a:hover { color: var(--gold); }
.btn-contact-nav { color: var(--fg-dim) !important; }
.btn-nav {
  padding: 0.375rem 0.875rem !important;
  background: var(--fg) !important; color: var(--bg) !important;
  font-size: 0.75rem !important; font-weight: 500 !important;
  letter-spacing: 0.1em !important; text-transform: uppercase !important;
  transition: opacity 0.15s !important;
}
.btn-nav:hover { opacity: 0.85; }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span {
  display: block; width: 22px; height: 1.5px; background: var(--fg);
  transition: 0.2s;
}

/* ── Eyebrow ─────────────────────────────────────────────────── */
.section-eyebrow {
  display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.25rem;
}
.eyebrow-line { height: 1px; width: 2rem; background: var(--gold); flex-shrink: 0; }
.section-eyebrow span {
  font-size: 0.625rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold); font-weight: 500;
}

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  position: relative; z-index: 1;
  padding: 7rem 0 6rem;
  border-bottom: 1px solid var(--border);
}
.hero-inner {
  display: grid; grid-template-columns: 1fr auto; gap: 4rem; align-items: flex-end;
}
.hero-title {
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 700; line-height: 0.95; letter-spacing: -0.02em;
  color: var(--fg); margin-bottom: 2rem;
}
.hero-title .accent { color: var(--gold); }
.hero-sub {
  color: var(--fg-muted); font-size: 1rem; max-width: 38rem;
  line-height: 1.7; margin-bottom: 2.5rem;
}
.hero-actions { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  background: var(--fg); color: var(--bg);
  font-size: 0.875rem; font-weight: 500; letter-spacing: 0.02em;
  text-decoration: none; transition: opacity 0.15s;
}
.btn-primary:hover { opacity: 0.85; }
.btn-primary svg { width: 14px; height: 14px; }
.btn-ghost {
  font-size: 0.6875rem; color: var(--gold);
  letter-spacing: 0.04em; text-decoration: underline;
  text-underline-offset: 3px; transition: color 0.15s;
}
.btn-ghost:hover { color: #e0c090; }
.floor-plan { opacity: 0.3; }

/* ── Modules divider ─────────────────────────────────────────── */
.divider-label {
  position: relative; z-index: 1;
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}
.divider-inner {
  display: flex; align-items: center; gap: 1rem;
}
.divider-line { flex: 1; height: 1px; background: var(--border); }
.divider-label span {
  font-size: 0.625rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--fg-ghost);
}

/* ── Features grid ───────────────────────────────────────────── */
.features { position: relative; z-index: 1; padding: 0 0 5rem; }
.features-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--border);
}
.feature-card {
  background: var(--bg); padding: 1.75rem;
  display: flex; flex-direction: column; gap: 0;
  transition: background 0.15s;
}
.feature-card:hover { background: var(--bg2); }
.feature-card-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 1.5rem;
}
.feature-icon {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(200,169,126,0.18); background: var(--gold-faint); flex-shrink: 0;
}
.feature-icon svg { width: 20px; height: 20px; stroke: var(--gold); }
.feature-num {
  font-size: 0.6875rem; font-family: monospace; color: var(--gold); opacity: 0.3;
}
.feature-card h3 {
  font-size: 0.8125rem; font-weight: 600; color: #d8d8d2;
  letter-spacing: 0.02em; margin-bottom: 0.5rem;
}
.feature-card p { font-size: 0.75rem; color: var(--fg-dim); line-height: 1.65; }

.feature-card--wide { grid-column: span 4; }

/* ── Capabilities ────────────────────────────────────────────── */
.capabilities {
  position: relative; z-index: 1;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 4.5rem 0;
}
.capabilities-inner {
  display: grid; grid-template-columns: 1fr 2fr; gap: 4rem; align-items: start;
}
.capabilities-lead h2 {
  font-size: clamp(1.4rem, 2.5vw, 2rem); font-weight: 700;
  color: var(--fg); line-height: 1.2; margin-top: 0.25rem;
}
.capabilities-list {
  list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0.875rem 2rem;
  align-content: start; padding-top: 0.25rem;
}
.capabilities-list li {
  display: flex; align-items: center; gap: 0.625rem;
  font-size: 0.875rem; color: var(--fg-muted);
}
.capabilities-list li svg { width: 15px; height: 15px; stroke: var(--teal); flex-shrink: 0; }

/* ── Templates section ───────────────────────────────────────── */
.templates-section { position: relative; z-index: 1; padding: 5rem 0; }
.templates-box {
  position: relative;
  background: linear-gradient(135deg, var(--bg2) 0%, var(--bg3) 100%);
  border: 1px solid var(--border2); padding: 2.5rem 3rem;
}
.corner {
  position: absolute; width: 14px; height: 14px;
  border-color: var(--gold-dim); border-style: solid;
}
.corner.tl { top: 10px; left: 10px; border-width: 1px 0 0 1px; }
.corner.tr { top: 10px; right: 10px; border-width: 1px 1px 0 0; }
.corner.bl { bottom: 10px; left: 10px; border-width: 0 0 1px 1px; }
.corner.br { bottom: 10px; right: 10px; border-width: 0 1px 1px 0; }
.templates-box-header {
  display: flex; align-items: flex-start; gap: 1.25rem; margin-bottom: 2rem;
}
.templates-icon-wrap {
  width: 38px; height: 38px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(200,169,126,0.2); background: var(--gold-faint);
}
.templates-icon-wrap svg { width: 18px; height: 18px; stroke: var(--gold); }
.templates-box-header h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.25rem; }
.templates-box-header p { font-size: 0.8125rem; color: var(--fg-dim); }
.templates-steps {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--border2);
}
.template-step {
  background: var(--bg); padding: 1.25rem 1.5rem;
  display: flex; flex-direction: column; gap: 0.35rem;
}
.template-step-num {
  font-size: 0.6875rem; font-weight: 600; color: var(--gold); letter-spacing: 0.1em;
}
.template-step strong { font-size: 0.875rem; color: var(--fg); font-weight: 600; }
.template-step p { font-size: 0.8rem; color: var(--fg-dim); line-height: 1.55; }

/* ── Plans ───────────────────────────────────────────────────── */
.plans { position: relative; z-index: 1; border-top: 1px solid var(--border); padding: 5rem 0; }
.plans-title { font-size: clamp(1.4rem, 2.5vw, 2rem); font-weight: 700; margin-bottom: 0.5rem; }
.plans-sub { color: var(--fg-dim); font-size: 0.875rem; margin-bottom: 3rem; max-width: 36rem; }
.plans-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--border);
}
.plan-card {
  background: var(--bg); padding: 2rem;
  display: flex; flex-direction: column; gap: 1.25rem;
  position: relative; transition: background 0.15s;
}
.plan-card:hover { background: var(--bg2); }
.plan-card.featured { outline: 1px solid rgba(200,169,126,0.25); }
.plan-badge {
  position: absolute; top: 0; left: 50%; transform: translate(-50%,-50%);
  background: var(--gold); color: var(--bg);
  font-size: 0.625rem; letter-spacing: 0.2em; text-transform: uppercase;
  font-weight: 500; padding: 0.2rem 0.65rem;
}
.plan-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(200,169,126,0.18); background: var(--gold-faint);
}
.plan-icon svg { width: 20px; height: 20px; stroke: var(--gold); }
.plan-name { font-size: 0.9375rem; font-weight: 700; letter-spacing: 0.04em; }
.plan-desc { font-size: 0.8125rem; color: var(--fg-dim); line-height: 1.55; margin-top: -0.5rem; }
.plan-features {
  list-style: none; flex: 1;
  display: flex; flex-direction: column; gap: 0.625rem;
}
.plan-features li {
  display: flex; align-items: center; gap: 0.625rem;
  font-size: 0.8125rem; color: var(--fg-muted);
}
.plan-features li svg { width: 14px; height: 14px; flex-shrink: 0; }
.btn-plan {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.5rem 0.75rem; font-size: 0.75rem; letter-spacing: 0.04em;
  font-weight: 500; text-decoration: none; transition: background 0.15s;
  border: 1px solid rgba(200,169,126,0.3); color: var(--gold); background: var(--gold-faint);
}
.btn-plan:hover { background: rgba(200,169,126,0.14); }
.btn-plan.featured { background: var(--gold); color: var(--bg); border-color: var(--gold); }
.btn-plan.featured:hover { opacity: 0.9; }
.plans-note {
  margin-top: 2rem; text-align: center;
  font-size: 0.6875rem; color: var(--fg-ghost); letter-spacing: 0.04em;
}

/* ── Access widget ───────────────────────────────────────────── */
.access { position: relative; z-index: 1; border-top: 1px solid var(--border); padding: 5rem 0; }
.access-inner { max-width: 520px; margin: 0 auto; }
.access-card {
  position: relative;
  background: var(--bg2); border: 1px solid var(--border2); padding: 2.5rem;
  margin-top: 2rem;
}
.access-card .corner { border-color: var(--gold-dim); }
.access-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.25rem; }
.access-card > p { font-size: 0.8125rem; color: var(--fg-dim); margin-bottom: 1.25rem; }
.access-input-row {
  display: flex; align-items: stretch; border: 1px solid var(--border2);
  margin-bottom: 0.5rem;
}
.access-prefix, .access-suffix {
  padding: 0.6rem 0.75rem; font-size: 0.8125rem; color: var(--fg-dim);
  background: var(--bg); border: none; white-space: nowrap; user-select: none;
}
.access-suffix { border-left: 1px solid var(--border2); }
.access-input {
  flex: 1; background: transparent; border: none; outline: none;
  color: var(--fg); font-size: 0.875rem; padding: 0.6rem 0.5rem;
  font-family: var(--font);
}
.access-input::placeholder { color: var(--fg-ghost); }
.access-error { display: none; color: #f87171; font-size: 0.75rem; margin-bottom: 0.75rem; }
.access-btn {
  width: 100%; padding: 0.65rem; margin-top: 0.5rem;
  background: var(--fg); color: var(--bg); border: none; cursor: pointer;
  font-size: 0.875rem; font-weight: 500; font-family: var(--font);
  transition: opacity 0.15s;
}
.access-btn:hover { opacity: 0.85; }

/* ── Contact ─────────────────────────────────────────────────── */
.contact { position: relative; z-index: 1; border-top: 1px solid var(--border); padding: 5rem 0; }
.contact-inner { max-width: 520px; margin: 0 auto; }
.contact-form { display: flex; flex-direction: column; gap: 1rem; margin-top: 2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
input, textarea {
  width: 100%; background: var(--bg2); border: 1px solid var(--border2);
  color: var(--fg); font-size: 0.875rem; padding: 0.65rem 0.875rem;
  outline: none; transition: border-color 0.15s; font-family: var(--font);
  resize: none;
}
input:focus, textarea:focus { border-color: rgba(200,169,126,0.4); }
input::placeholder, textarea::placeholder { color: var(--fg-ghost); }
.btn-submit {
  padding: 0.65rem; background: var(--fg); color: var(--bg); border: none; cursor: pointer;
  font-size: 0.875rem; font-weight: 500; font-family: var(--font); transition: opacity 0.15s;
}
.btn-submit:hover { opacity: 0.85; }
.form-note { font-size: 0.75rem; color: var(--fg-ghost); text-align: center; }
.form-success {
  display: none; flex-direction: column; align-items: center;
  gap: 0.75rem; padding: 3rem 0; text-align: center;
}
.form-success svg { width: 40px; height: 40px; stroke: var(--teal); }
.form-success p { font-size: 1rem; font-weight: 600; }

/* ── Footer ──────────────────────────────────────────────────── */
.footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--border); padding: 2rem 0;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
}
.footer-logo { display: flex; align-items: center; gap: 0.5rem; }
.footer-logo img { height: 14px; width: auto; opacity: 0.35; }
.footer-logo span {
  font-size: 0.6875rem; color: var(--fg-ghost); letter-spacing: 0.15em; text-transform: uppercase;
}
.footer-tagline { font-size: 0.6875rem; color: var(--fg-ghost); letter-spacing: 0.04em; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: 0.75rem; color: var(--fg-ghost); text-decoration: none; transition: color 0.15s; }
.footer-links a:hover { color: var(--gold); }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-card--wide { grid-column: span 2; }
  .capabilities-inner { grid-template-columns: 1fr; gap: 2rem; }
  .capabilities-list { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; }
  .floor-plan { display: none; }
  .plans-grid { grid-template-columns: 1fr; max-width: 420px; }
  .templates-steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .templates-box { padding: 1.75rem; }
}

@media (max-width: 640px) {
  .container { padding: 0 1.25rem; }
  .features-grid { grid-template-columns: 1fr; }
  .capabilities-list { grid-template-columns: 1fr; }
  .nav-links {
    display: none; position: fixed; top: 56px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start;
    background: rgba(12,12,14,0.97); backdrop-filter: blur(12px);
    padding: 1.25rem 1.5rem 2rem; border-bottom: 1px solid var(--border);
    gap: 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.75rem 0; border-bottom: 1px solid var(--border); width: 100%; }
  .nav-links a:last-child { border-bottom: none; }
  .btn-nav { margin-top: 0.5rem; text-align: center; padding: 0.6rem 0 !important; }
  .nav-toggle { display: flex; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
}
