:root{
  --gold: #d6b25e;
  --gold-glow: rgba(255, 215, 120, .70);
  --overlay: rgba(0,0,0,.35);

  --card: rgba(12, 14, 18, .45);
  --card2: rgba(12, 14, 18, .30);
  --border: rgba(255,255,255,.14);
  --text: rgba(255,255,255,.95);
  --muted: rgba(255,255,255,.75);

  --radius: 18px;
  --max: 1100px;
}

*{ box-sizing:border-box; }
html, body{ height:100%; margin:0; }
body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);

  /* Full-screen background */
  background:
    linear-gradient(var(--overlay), var(--overlay)),
    url("sunrise.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;

  /* Do NOT center everything */
  display: block;
  padding: 40px 18px 70px;
}

/* Golden glowing border around the whole page */
.page-border{
  position: fixed;
  inset: 14px;
  pointer-events: none;
  border-radius: 22px;
  border: 2px solid var(--gold);
  box-shadow:
    0 0 12px rgba(214,178,94,.55),
    0 0 30px var(--gold-glow),
    inset 0 0 14px rgba(255, 215, 120, .22);
  z-index: 999;
}

/* Main site container */
.container{
  max-width: var(--max);
  margin: 0 auto;
}

/* Header */
header{
  text-align: center;
  margin-bottom: 18px;
}

header h1{
  margin: 0 0 8px;
  font-size: clamp(36px, 4.2vw, 64px);
  letter-spacing: .8px;
  text-shadow: 0 6px 22px rgba(0,0,0,.35);
}

header p{
  margin: 0 auto;
  max-width: 820px;
  color: var(--muted);
  font-size: clamp(14px, 1.6vw, 18px);
  line-height: 1.55;
}

/* Layout: nav + content */
.layout{
  margin-top: 18px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 18px;
  align-items: start;
}

nav{
  position: sticky;
  top: 22px;

  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  backdrop-filter: blur(10px);
}

nav button{
  width: 100%;
  margin: 8px 0;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  color: var(--text);
  font-size: 15px;
  cursor: pointer;
  text-align: left;
}

nav button:hover{
  border-color: rgba(214,178,94,.55);
}

nav button.active{
  border-color: rgba(214,178,94,.85);
  box-shadow: 0 0 18px rgba(214,178,94,.25);
  background: rgba(214,178,94,.10);
}

/* Content area */
.content{
  display: grid;
  gap: 18px;
}

/* Panels */
.panel{ display:none; }
.panel.active{ display:block; }

/* Cards + grid inside panels */
.grid{
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0,0,0,.22);
}

.card h2, .card h3{
  margin: 0 0 10px;
}

blockquote{
  margin: 10px 0 10px;
  padding-left: 12px;
  border-left: 3px solid rgba(214,178,94,.75);
  color: rgba(255,255,255,.92);
}

.muted{ color: var(--muted); }

/* Inputs */
input, textarea{
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.22);
  color: var(--text);
  outline: none;
}

textarea{ min-height: 160px; resize: vertical; }

button[type="button"], .primary{
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(214,178,94,.7);
  background: rgba(214,178,94,.14);
  color: var(--text);
  cursor: pointer;
}

button[type="button"]:hover, .primary:hover{
  background: rgba(214,178,94,.22);
}

/* Footer */
footer{
  margin-top: 26px;
  text-align: center;
  color: rgba(255,255,255,.65);
  font-size: 14px;
}

/* Mobile */
@media (max-width: 900px){
  .layout{
    grid-template-columns: 1fr;
  }
  nav{
    position: relative;
    top: auto;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px;
  }
  nav button{
    width: auto;
    white-space: nowrap;
    margin: 0;
  }
  body{ background-attachment: scroll; }
}