/* ============================================
   TotemVault landing page
   External stylesheet (extracted from inline <style>)
   ============================================ */

:root {
  --navy: #0f1e3d;
  --navy-light: #1a2d56;
  --gold: #d4a04e;
  --green: #2ecc71;
  --text: #1a1a1a;
  --text-light: #4a4a4a;
  --bg: #ffffff;
  --bg-soft: #f8f7f4;
  --border: #e5e0d8;
  --max-width: 1100px;
  --radius: 6px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(15, 30, 61, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, "Helvetica Neue",
    sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
}

a {
  color: var(--navy);
  text-decoration: none;
}
a:hover {
  color: var(--gold);
}

/* ============================================
   Header
   ============================================ */
header {
  background: var(--navy);
  color: white;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: white;
  letter-spacing: -0.5px;
}

.logo-mark {
  color: var(--gold);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Language toggle */
.lang-toggle {
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  overflow: hidden;
}

.lang-toggle button {
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border: none;
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.15s;
}

.lang-toggle button.active {
  background: var(--gold);
  color: var(--navy);
  font-weight: 600;
}

.lang-toggle button:hover:not(.active) {
  color: white;
}

.header-cta {
  background: var(--gold);
  color: var(--navy);
  padding: 0.55rem 1.2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.15s;
}

.header-cta:hover {
  background: white;
  color: var(--navy);
}

/* ============================================
   Layout
   ============================================ */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 4rem 0;
}

section.alt {
  background: var(--bg-soft);
}

h1 {
  font-size: 2.6rem;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 1rem;
}
h2 {
  font-size: 1.9rem;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 1.2rem;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

.lead {
  font-size: 1.15rem;
  color: var(--text);
}

/* ============================================
   Hero
   ============================================ */
.hero {
  padding: 5rem 0 4rem;
  text-align: center;
}

.hero-anchor {
  margin-top: 1.2rem;
  font-size: 1rem;
  color: var(--text);
}
.hero-anchor strong {
  color: var(--navy);
  font-weight: 700;
}
.hero-secondary {
  margin-top: 0.4rem;
  font-size: 0.9rem;
}
.hero-secondary a {
  color: var(--text-light);
  border-bottom: 1px dotted var(--text-light);
}
.hero-secondary a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.hero h1 {
  font-size: 3rem;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .tagline {
  font-size: 1.3rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero .hook {
  background: var(--bg-soft);
  border-left: 4px solid var(--gold);
  padding: 1.5rem 1.8rem;
  margin: 2.5rem auto;
  max-width: 750px;
  text-align: left;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text);
}

.hero-cta {
  display: inline-block;
  background: var(--navy);
  color: white;
  padding: 1rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1.05rem;
  transition: all 0.15s;
}

.hero-cta:hover {
  background: var(--gold);
  color: var(--navy);
}

.hero-meta {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-light);
}

/* ============================================
   Sections
   ============================================ */
.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-title h2 {
  display: inline-block;
  position: relative;
}

.section-title h2::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background: var(--gold);
  margin: 0.8rem auto 0;
  border-radius: 2px;
}

/* Problem section */
.problem-list {
  max-width: 700px;
  margin: 2rem auto 0;
}

.problem-list li {
  list-style: none;
  padding: 0.8rem 0 0.8rem 2rem;
  position: relative;
  border-bottom: 1px solid var(--border);
}

.problem-list li:last-child {
  border-bottom: none;
}

.problem-list li::before {
  content: "✕";
  position: absolute;
  left: 0;
  color: #c0392b;
  font-weight: 700;
  font-size: 1.2rem;
}

/* Pillars */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.pillar {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow);
  transition: all 0.2s;
}

.pillar:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.pillar-icon {
  width: 48px;
  height: 48px;
  background: var(--navy);
  color: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.pillar h3 {
  color: var(--navy);
}

/* Isolation section */
.isolation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
  align-items: center;
}

@media (max-width: 768px) {
  .isolation-grid {
    grid-template-columns: 1fr;
  }
}

.isolation-list {
  list-style: none;
}

.isolation-list li {
  padding: 0.6rem 0 0.6rem 2rem;
  position: relative;
}

.isolation-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
  font-size: 1.2rem;
}

.isolation-visual {
  background: var(--navy);
  color: white;
  padding: 2rem;
  border-radius: var(--radius);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.85rem;
  line-height: 1.8;
}

.isolation-visual .accent {
  color: var(--gold);
}
.isolation-visual .dim {
  opacity: 0.6;
}

/* Tiers */
.tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
  align-items: stretch;
}

.tier {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.tier.featured {
  border: 2px solid var(--gold);
  position: relative;
  transform: scale(1.02);
}

.tier.featured::before {
  content: "Most Popular";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--navy);
  padding: 0.25rem 0.9rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tier h3 {
  color: var(--navy);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.tier-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.3rem;
}

.tier-price-unit {
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 400;
}

.tier-features {
  list-style: none;
  margin: 1.5rem 0;
  flex-grow: 1;
}

.tier-features li {
  padding: 0.4rem 0 0.4rem 1.6rem;
  position: relative;
  font-size: 0.95rem;
}

.tier-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

.tier-cta {
  display: block;
  text-align: center;
  background: var(--navy);
  color: white;
  padding: 0.8rem;
  border-radius: var(--radius);
  font-weight: 600;
  margin-top: auto;
}

.tier-cta:hover {
  background: var(--gold);
  color: var(--navy);
}

/* Pricing details (in-page section after Tiers) */
.tiers-note {
  text-align: center;
  margin: 2rem auto 0;
  max-width: 700px;
  font-size: 0.95rem;
  color: var(--text-light);
}
.tiers-note a {
  color: var(--navy);
  border-bottom: 1px dotted var(--navy);
}
.tiers-note a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.pricing-table-wrap {
  max-width: var(--max-width);
  margin: 2rem auto;
  overflow-x: auto;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: 0.95rem;
}

.pricing-table caption {
  text-align: left;
  padding: 1rem 1.2rem;
  font-weight: 700;
  color: var(--navy);
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  font-size: 1rem;
  caption-side: top;
}

.pricing-table th,
.pricing-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.pricing-table thead th {
  background: var(--bg-soft);
  color: var(--navy);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
}

.pricing-table tbody tr:last-child td {
  border-bottom: none;
}

.pricing-table .row-featured {
  background: rgba(212, 160, 78, 0.06);
}

.pricing-table .row-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  padding: 0.15rem 0.6rem;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: 0.4rem;
  vertical-align: middle;
}

.pricing-tables-pair {
  max-width: var(--max-width);
  margin: 2rem auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .pricing-tables-pair {
    grid-template-columns: 1fr;
  }
}

.pricing-notes {
  max-width: 800px;
  margin: 2rem auto 0;
  padding: 0 1rem;
}

.pricing-notes p {
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.pricing-source {
  font-size: 0.85rem !important;
  color: var(--text-light);
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.pricing-source code {
  background: white;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  font-size: 0.85rem;
  border: 1px solid var(--border);
}

/* ============================================
   404 page
   ============================================ */
.hero.notfound {
  padding: 6rem 0 5rem;
}

.notfound-code {
  font-size: 9rem;
  font-weight: 900;
  color: var(--gold);
  letter-spacing: -4px;
  line-height: 1;
  margin: 0 0 1.5rem 0;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: initial;
}

.notfound-cta-row {
  margin-top: 2.5rem;
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .notfound-code {
    font-size: 6.5rem;
  }
}

/* ============================================
   Process steps
   ============================================ */
.process {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  counter-reset: step;
}

.step {
  text-align: center;
  padding: 1.5rem;
  position: relative;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: block;
  width: 50px;
  height: 50px;
  margin: 0 auto 1rem;
  background: var(--gold);
  color: var(--navy);
  border-radius: 50%;
  line-height: 50px;
  font-weight: 700;
  font-size: 1.3rem;
}

.step h3 {
  color: var(--navy);
  margin-bottom: 0.4rem;
}

/* Compliance */
.compliance-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin: 2rem 0;
}

.compliance-list span {
  background: white;
  border: 1px solid var(--border);
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--navy);
  font-weight: 500;
}

/* CTA */
.cta-section {
  background: var(--navy);
  color: white;
  text-align: center;
  padding: 5rem 0;
}

.cta-section h2 {
  color: white;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
}

.cta-section .hero-cta {
  background: var(--gold);
  color: var(--navy);
  font-size: 1.1rem;
  padding: 1.1rem 2.4rem;
}

.cta-section .hero-cta:hover {
  background: white;
}

/* Contact form */
.contact-form {
  max-width: 500px;
  margin: 2rem auto 0;
  display: grid;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: none;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: 2px solid var(--gold);
}

.contact-form textarea {
  min-height: 100px;
  resize: vertical;
}

.contact-form button {
  background: var(--gold);
  color: var(--navy);
  border: none;
  padding: 1rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
}

.contact-form button:hover {
  background: white;
}

/* Footer */
footer {
  background: #0a1628;
  color: rgba(255, 255, 255, 0.7);
  padding: 2.5rem 0 1.5rem;
  font-size: 0.9rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
}

.footer-inner p {
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.6rem;
}

.footer-links {
  margin-bottom: 1.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0.8rem;
}

.footer-links a:hover {
  color: var(--gold);
}

/* ============================================
   Language system
   ============================================ */
[data-lang]:not(.active) {
  display: none;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
  h2 {
    font-size: 1.5rem;
  }
  .hero .tagline {
    font-size: 1.1rem;
  }
  section {
    padding: 3rem 0;
  }
  .header-right {
    gap: 0.8rem;
  }
  .header-cta {
    padding: 0.45rem 0.9rem;
    font-size: 0.85rem;
  }
  .tier.featured {
    transform: none;
  }
}
