:root {
  --bg: #FAF7F0;
  --bg-alt: #F0EBE0;
  --fg: #1C1C1C;
  --fg-muted: #6B6B5A;
  --accent: #1a5c3a;
  --accent-light: #E8F0EB;
  --accent-mid: #2D7A52;
  --gold: #A07830;
  --gold-light: #F5EDD8;
  --navy: #1B2B40;
  --border: #DDD8CC;
  --card-bg: #FFFFFF;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* NAV */
.site-nav {
  position: sticky;
  top: 0;
  background: rgba(250, 247, 240, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  padding: 0 2rem;
}

.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.nav-tagline {
  font-size: 0.8rem;
  color: var(--fg-muted);
  font-weight: 400;
}

/* SECTION UTILITIES */
.section-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--navy);
  margin-bottom: 1.5rem;
}

.section-sub {
  color: var(--fg-muted);
  font-size: 1.05rem;
  max-width: 580px;
  margin-bottom: 3rem;
}

/* HERO */
.hero {
  padding: 5rem 2rem 4rem;
  background: var(--bg);
  overflow: hidden;
}

.hero-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--navy);
  margin-bottom: 1.75rem;
  letter-spacing: -0.02em;
}

.hero-lede {
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* HERO VISUAL — Document Stack */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 380px;
}

.doc-stack {
  position: relative;
  width: 200px;
  height: 360px;
}

.doc-card {
  position: absolute;
  width: 180px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.doc-card-1 { bottom: 0; left: 0; z-index: 1; }
.doc-card-2 { bottom: 40px; left: 20px; z-index: 2; transform: rotate(-2deg); }
.doc-card-3 { bottom: 80px; left: 8px; z-index: 3; transform: rotate(1.5deg); }
.doc-card-4 { bottom: 130px; left: 28px; z-index: 4; transform: rotate(-1deg); }

.doc-icon {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  margin-bottom: 0.25rem;
}
.doc-icon.accent { background: var(--accent-mid); }
.doc-icon.gold { background: var(--gold); }

.doc-lines { display: flex; flex-direction: column; gap: 6px; }

.doc-line {
  height: 6px;
  background: var(--bg-alt);
  border-radius: 3px;
}
.w-45 { width: 45%; }
.w-50 { width: 50%; }
.w-55 { width: 55%; }
.w-60 { width: 60%; }
.w-65 { width: 65%; }
.w-70 { width: 70%; }
.w-75 { width: 75%; }
.w-80 { width: 80%; }
.w-85 { width: 85%; }
.w-90 { width: 90%; }

.doc-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--fg-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 0.25rem;
}

/* CATEGORIES */
.categories { background: var(--bg-alt); }

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.category-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem;
}

.category-icon {
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.category-item h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.category-item p {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* LICENSE TIERS */
.tiers { background: var(--navy); }

.tiers .section-eyebrow { color: #8BAFA0; }
.tiers .section-heading { color: #FFFFFF; }
.tiers .section-sub { color: #8BAFA0; }

.tier-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}

.tier-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tier-card-featured {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.25);
}

.tier-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 4px;
}

.tier-badge.personal { background: #3A5A40; color: #A8D5B5; }
.tier-badge.commercial { background: #2D6A4F; color: #B8E0C8; }
.tier-badge.agency { background: #8BAFA0; color: #1B2B40; }
.tier-badge.resell { background: #A07830; color: #F5EDD8; }

.tier-price {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: #FFFFFF;
}

.tier-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tier-features li {
  font-size: 0.85rem;
  color: #8BAFA0;
  padding-left: 1rem;
  position: relative;
}

.tier-features li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: #5A7A66;
}

.tier-note {
  margin-top: 2rem;
  font-size: 0.85rem;
  color: #5A7A66;
  font-style: italic;
}

/* PRINCIPLES */
.principles { background: var(--bg); }

.principles-intro { max-width: 680px; margin-bottom: 3rem; }

.principles-body {
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-top: 1rem;
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.principle {}

.principle-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-light);
  line-height: 1;
  margin-bottom: 1rem;
}

.principle h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.principle p {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.7;
}

/* INFRASTRUCTURE */
.infrastructure { background: var(--bg-alt); }

.infra-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.infra-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.75rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.infra-logo {
  width: 44px;
  height: 44px;
  background: var(--accent);
  color: #FFF;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.75rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.05em;
}

.infra-info h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.infra-info p {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* CLOSING */
.closing { background: var(--accent); }

.closing-content { max-width: 760px; }

.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.15;
  margin-bottom: 2rem;
}

.closing-body {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.75;
  margin-bottom: 1rem;
}

/* FOOTER */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
}

.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 4rem 2rem 2rem;
}

.footer-brand {
  margin-bottom: 3rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #FFFFFF;
  display: block;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}

.footer-col a:hover { color: #FFFFFF; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  line-height: 1.6;
}

/* NAV LINKS */
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-link:hover { color: var(--accent); }

/* STORE HERO */
.store-hero {
  padding: 3rem 2rem 2rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.store-hero .section-heading { margin-bottom: 0.5rem; }
.store-hero .section-sub { margin-bottom: 0; }

/* PRODUCT GRID */
.store-grid-section { background: var(--bg); padding: 3rem 2rem 5rem; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 0;
}

/* PRODUCT CARD */
.product-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.product-card:hover {
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  border-color: var(--accent);
}

.product-card-header { display: flex; align-items: center; }

.product-category {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.product-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}

.product-description {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.65;
  flex-grow: 1;
}

/* PRICING */
.product-pricing {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.price-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.price-value {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  flex-grow: 1;
}

.btn-buy {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.9rem;
  background: var(--accent);
  color: #FFFFFF;
  border-radius: 6px;
  text-decoration: none;
  text-align: center;
  transition: background 0.2s;
  cursor: pointer;
  border: none;
}

.btn-buy:hover { background: var(--accent-mid); }

.btn-soon {
  background: var(--bg-alt);
  color: var(--fg-muted);
  cursor: default;
}

.product-disclaimer {
  font-size: 0.75rem;
  color: var(--fg-muted);
  font-style: italic;
  margin-top: 0.25rem;
}

.store-empty {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--fg-muted);
}

/* FOOTER */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
}

.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 4rem 2rem 2rem;
}

.footer-brand { margin-bottom: 3rem; }

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #FFFFFF;
  display: block;
  margin-bottom: 0.5rem;
  text-decoration: none;
}

.footer-brand p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  line-height: 1.6;
}

/* MOBILE */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero-visual { height: 260px; transform: scale(0.8) translateX(20px); }
  .category-grid { grid-template-columns: 1fr; }
  .tier-grid { grid-template-columns: repeat(2, 1fr); }
  .principles-grid { grid-template-columns: 1fr; }
  .infra-grid { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr; gap: 1.5rem; }
  .nav-tagline { display: none; }
  .product-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .tier-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
}
