*,
*::before,
*::after { box-sizing: border-box; }

:root {
  --text: #1f1c23;
  --muted: #666270;
  --gold-deep: #c59a3c;
  --gold-bright: #e9d9a9;
  --gold-soft: #f7f1df;
  --border-soft: #ebe4d6;
  --radius-lg: 26px;
  --radius-md: 18px;
  --shadow-soft: 0 20px 60px rgba(26, 18, 6, 0.12);
  --max-width: 1120px;
  --reading-width: 880px;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.75;
  color: var(--text);
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  background: linear-gradient(180deg, #fffdf8 0%, #ffffff 40%, #fbf7ee 100%);
}

/* Seamless golden background */
.bg-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 14% 12%, rgba(243, 218, 170, 0.3), transparent 32%),
    radial-gradient(circle at 85% 8%, rgba(228, 207, 169, 0.28), transparent 34%),
    linear-gradient(180deg, #fffefb 0%, #fffaf0 32%, #ffffff 100%);
  background-attachment: fixed;
}

/* Generic layout */

.shell {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.6rem;
}

.section {
  padding: 4.25rem 0;
}

.narrow,
.content-block {
  max-width: var(--reading-width);
  margin: 0 auto;
  padding: 0;
  background: transparent;
  box-shadow: none;
  border: none;
  backdrop-filter: none;
}

@media (min-width: 840px) {
  .narrow,
  .content-block {
    padding-inline: 0;
  }
}

.section h2 {
  font-family: "Marcellus", "Times New Roman", serif;
  font-size: clamp(2rem, 3vw, 2.7rem);
  letter-spacing: 0.12em;
  margin-top: 0;
  margin-bottom: 1.8rem;
}

.section h3 {
  font-family: "Marcellus", "Times New Roman", serif;
  font-size: 1.35rem;
  letter-spacing: 0.12em;
  margin-top: 2.3rem;
  margin-bottom: 1rem;
}

.section h4 {
  font-family: "Marcellus", "Times New Roman", serif;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  margin-top: 1.6rem;
  margin-bottom: 0.7rem;
}

p { margin-top: 0; margin-bottom: 0.95rem; }

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
  box-shadow: 0 6px 26px rgba(18, 13, 6, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 1.6rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  color: var(--text);
}

.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(24, 18, 6, 0.12), 0 0 0 2px rgba(231, 214, 176, 0.7);
}

.brand-text { display: flex; flex-direction: column; }

.brand-name {
  font-family: "Marcellus", serif;
  letter-spacing: 0.2em;
  font-size: 0.82rem;
}

.brand-tagline {
  font-size: 0.75rem;
  color: var(--muted);
}

/* Navigation */

.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin: 0;
  padding: 0;
}

.main-nav a {
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #312c35;
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright));
  transition: width 0.22s ease-out;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--gold-deep);
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  width: 100%;
}

/* Mobile nav */

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.26rem;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: #ffffff;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  width: 1.3rem;
  height: 2px;
  border-radius: 999px;
  background: #3b343f;
  margin-inline: auto;
}

@media (min-width: 900px) {
  .nav-toggle { display: none; }
}

@media (max-width: 899px) {
  .main-nav {
    position: fixed;
    inset-inline: 0;
    top: 58px;
    background: rgba(255, 255, 255, 0.97);
    transform: translateY(-120%);
    transition: transform 0.24s ease-out;
    border-bottom: 1px solid var(--border-soft);
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.6rem 1.4rem;
  }
}

/* Hero */

.hero {
  padding-top: 4.6rem;
  padding-bottom: 3.9rem;
}

.hero-inner {
  text-align: center;
}

.hero-logo-wrap { margin-bottom: 1.9rem; }

.hero-logo {
  width: min(220px, 60vw);
  border-radius: 50%;
  box-shadow:
    0 0 0 2px rgba(226, 207, 169, 0.7),
    0 20px 40px rgba(28, 20, 8, 0.18);
}

.hero-text {
  max-width: 780px;
  margin: 0 auto;
  padding: 2.2rem 1.8rem 2.4rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 20px 48px rgba(23, 16, 7, 0.08);
  border: 1px solid rgba(227, 217, 197, 0.8);
}

.hero-title {
  font-family: "Marcellus", serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: clamp(2.1rem, 3.3vw, 2.7rem);
  margin-bottom: 0.35rem;
}

.hero-subtitle {
  margin: 0;
  font-size: 0.95rem;
  color: var(--gold-deep);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-location {
  margin-top: 0.95rem;
  margin-bottom: 0.45rem;
  color: var(--muted);
}

.hero-quote {
  font-size: 1.05rem;
  margin-bottom: 1.2rem;
}

.hero-lead {
  margin-top: 0.9rem;
  font-weight: 600;
}

.hero p { margin-bottom: 0.9rem; }

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.8rem;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.9rem;
  border-radius: 999px;
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.16s ease-out, color 0.16s ease-out,
              box-shadow 0.2s ease-out, transform 0.12s ease-out,
              border-color 0.16s ease-out;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-deep), var(--gold-bright));
  color: #2f2614;
  border-color: rgba(189, 150, 64, 0.8);
  box-shadow: 0 14px 30px rgba(49, 35, 12, 0.18);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 18px 38px rgba(49, 35, 12, 0.24);
}

.btn-secondary {
  background: #ffffff;
  color: #2f2a33;
  border-color: var(--border-soft);
  box-shadow: 0 10px 24px rgba(27, 18, 7, 0.12);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: #fdf8ee;
}

.btn-outline {
  background: #ffffff;
  color: #2f2a33;
  border-color: rgba(194, 162, 79, 0.7);
  box-shadow: 0 10px 24px rgba(24, 18, 6, 0.12);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background: #fdf8ee;
}

.download-btn { margin-top: 1.4rem; }
.accordion .btn {
  width: auto;
  max-width: 100%;
  justify-content: center;
  margin-top: 1.1rem;
  margin-bottom: 0;
}

/* Text highlights */

.eyebrow {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.code-flow {
  display: inline-block;
  margin-top: 1.2rem;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(196, 154, 66, 0.45);
  background: #fffaf1;
  font-size: 0.83rem;
}

.code-quote {
  border-left: 3px solid rgba(197, 154, 66, 0.55);
  padding-left: 1rem;
  font-style: italic;
}

.gold-list {
  padding-left: 1.3rem;
}

.gold-list li {
  margin-bottom: 0.45rem;
}

.section-lead {
  margin-top: -0.5rem;
  margin-bottom: 1.8rem;
  color: #7a7484;
}

.founders-quote {
  font-style: italic;
  border-radius: var(--radius-md);
  padding: 1.6rem 1.5rem;
  background: #fffdfa;
  border: 1px solid rgba(231, 222, 202, 0.8);
}

.founders-signature {
  margin-top: 1.7rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Accordion */

.accordion {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.accordion-item {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(25, 16, 6, 0.1);
  overflow: hidden;
}

.accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.3rem;
  border: none;
  background: #fbf6ea;
  color: #2d282f;
  cursor: pointer;
  font: inherit;
}

.accordion-header span:first-child {
  text-align: left;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  line-height: 1.35;
}

.accordion-icon {
  font-size: 1.2rem;
  color: #c59a3c;
  transition: transform 0.2s ease-out;
}

.accordion-item.open .accordion-icon {
  transform: rotate(45deg);
}

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  padding: 0 1.3rem;
  border-top: 1px solid var(--border-soft);
  transition: max-height 0.26s ease-out, padding-bottom 0.22s ease-out, padding-top 0.22s ease-out;
}

.accordion-item.open .accordion-panel {
  padding-top: 1.2rem;
  padding-bottom: 2.2rem;
}

/* Contact */

.contact a {
  color: var(--gold-deep);
  text-decoration: none;
}

.contact a:hover,
.contact a:focus-visible {
  text-decoration: underline;
}

/* Footer */

.site-footer {
  padding: 2.2rem 0 2.6rem;
  background: #f7f2e7;
  color: #332d35;
  font-size: 0.86rem;
  border-top: 1px solid var(--border-soft);
}

.footer-inner { text-align: center; }

.footer-sub {
  color: #5e5865;
}

/* Back to top */

.back-to-top {
  position: fixed;
  right: 1.4rem;
  bottom: 1.5rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: #ffffff;
  color: #2f2a33;
  box-shadow: 0 12px 30px rgba(26, 19, 8, 0.1);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.4rem;
  z-index: 40;
}

.back-to-top.show { display: inline-flex; }

/* Responsive */

@media (max-width: 900px) {
  .accordion { gap: 0.85rem; }
  .accordion-header { padding: 0.8rem 1.1rem; }
  .accordion-header span:first-child {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
  }
  .accordion-icon { font-size: 1.05rem; }
  .accordion-panel { padding: 0 1.05rem; }
  .accordion-item.open .accordion-panel {
    padding-top: 1.05rem;
    padding-bottom: 2.2rem;
  }
  .accordion .btn {
    max-width: 100%;
    font-size: 0.8rem;
    padding: 0.66rem 1.1rem;
    margin-bottom: 0;
  }
}

@media (max-width: 640px) {
  .section { padding: 3rem 0 3.2rem; }
  .shell {
    padding: 0 1.3rem;
  }
  .narrow,
  .content-block {
    padding-inline: 0.8rem;
    border-radius: 0;
  }
  .brand-name {
    font-size: 0.74rem;
    letter-spacing: 0.16em;
  }
  .hero-title {
    font-size: 1.48rem;
    letter-spacing: 0.05em;
    white-space: nowrap;
  }
  .hero-text { padding-inline: 1.4rem; }
  .section h2 {
    font-size: clamp(1.7rem, 7vw, 2.1rem);
    letter-spacing: 0.1em;
  }
  .section h3 {
    font-size: 1.15rem;
    letter-spacing: 0.1em;
  }
  .section h4 {
    font-size: 0.98rem;
    letter-spacing: 0.1em;
  }
  .accordion { gap: 0.75rem; }
  .accordion-header {
    padding: 0.64rem 0.9rem;
  }
  .accordion-header span:first-child {
    font-size: 0.64rem;
    letter-spacing: 0.09em;
  }
  .accordion-icon { font-size: 1rem; }
  .accordion-panel { padding: 0 0.95rem; }
  .accordion-item.open .accordion-panel {
    padding-top: 1rem;
    padding-bottom: 2.4rem;
  }
  .accordion .btn {
    max-width: 100%;
    font-size: 0.76rem;
    letter-spacing: 0.12em;
    padding: 0.65rem 1rem;
    margin-top: 0.95rem;
    margin-bottom: 0;
  }
}
