/* ========== Base ========== */
:root{
  --bg: #0b0f14;
  --panel: rgba(255,255,255,0.04);
  --panel-2: rgba(255,255,255,0.06);
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.62);
  --muted-2: rgba(255,255,255,0.46);
  --stroke: rgba(255,255,255,0.10);
  --stroke-2: rgba(255,255,255,0.14);
  --accent: #c48a3a; /* warm brass */
  --accent-2: rgba(196,138,58,0.20);
  --radius: 18px;
  --shadow: 0 16px 60px rgba(0,0,0,0.55);
  --max: 860px;
}

*{ box-sizing: border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 800px at 50% 0%, rgba(255,255,255,0.06), transparent 55%),
              radial-gradient(800px 600px at 20% 30%, rgba(196,138,58,0.08), transparent 60%),
              var(--bg);
  overflow-x:hidden;
}

a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: none; }

.page{ position:relative; min-height:100%; }

/* faint grid */
.bg-grid{
  position:fixed; inset:0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.08;
  pointer-events:none;
  transform: translateZ(0);
}

/* ========== Layout ========== */
.container{
  width: min(var(--max), calc(100% - 48px));
  margin-inline:auto;
}

.section{ padding: 56px 0; }
.section h2{
  font-size: 22px;
  letter-spacing: 0.02em;
  margin: 0 0 18px 0;
}
.lede{ color: var(--muted); line-height: 1.7; margin: 0 0 10px; }
.muted{ color: var(--muted); }

/* ========== Hero ========== */
.hero{
  display:flex;
  justify-content:center;
  padding-top: 54px;
  padding-bottom: 10px;
}

.hero-card{
  width: min(720px, calc(100% - 48px));
  padding: 28px 26px 24px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: var(--shadow);
  position:relative;
  overflow:hidden;
}

.hero-card::before{
  content:"";
  position:absolute; inset:-2px;
  background: radial-gradient(500px 220px at 50% 0%, rgba(255,255,255,0.10), transparent 60%);
  opacity: 0.85;
  pointer-events:none;
}

.logo-mark{
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}

/* revised: desktop cap + mobile override */
.logo-mark img{
  width: 100%;
  max-width: 480px; /* desktop presence */
  height: auto;
}

.logo-mark svg{ width: 56px; height: 56px; }
.logo-mark rect{
  fill: rgba(255,255,255,0.02);
  stroke: rgba(196,138,58,0.60);
  stroke-width: 1.5;
}
.logo-mark path{
  fill: none;
  stroke: rgba(255,255,255,0.88);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand{
  position:relative;
  font-size: 56px;
  line-height: 1.02;
  margin: 0;
  text-align:center;
  letter-spacing: -0.03em;
}

.tagline{
  position:relative;
  margin: 14px 0 20px;
  text-align:center;
  color: var(--muted);
  letter-spacing: 0.22em;
  font-size: 12px;
}

.cta-row{
  position:relative;
  display:flex;
  gap: 12px;
  justify-content:center;
  margin-top: 12px;
}

/* ========== Buttons ========== */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  letter-spacing: 0.01em;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
  user-select:none;
}

.btn:hover{ transform: translateY(-1px); border-color: rgba(255,255,255,0.18); background: rgba(255,255,255,0.06); }
.btn:active{ transform: translateY(0px); }

.btn-primary{
  background: rgba(196,138,58,0.95);
  border-color: rgba(196,138,58,0.70);
  color: rgba(0,0,0,0.86);
}
.btn-primary:hover{ background: rgba(206,148,66,0.98); }

.btn-ghost{
  border-color: rgba(196,138,58,0.55);
  background: rgba(0,0,0,0.16);
  color: rgba(196,138,58,0.95);
}
.btn-ghost:hover{ background: rgba(196,138,58,0.10); }

/* ========== Products ========== */
.products .product{
  padding: 18px 18px 16px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.10);
  margin-bottom: 14px;
}

.product h3{
  margin: 0 0 6px;
  font-size: 16px;
  letter-spacing: 0.02em;
}
.product p{
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 13px;
}
.product-actions{ display:flex; gap: 10px; }

/* ========== Logbook ========== */
.log-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap: 14px;
  margin-bottom: 16px;
}
.log-entry{
  padding: 18px 18px 16px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.10);
  margin-bottom: 14px;
}
.log-entry-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 10px;
  margin-bottom: 10px;
}
.log-entry h3{ margin:0; font-size: 15px; letter-spacing: 0.02em; }
.pill{
  font-size: 12px;
  color: rgba(196,138,58,0.95);
  border: 1px solid rgba(196,138,58,0.45);
  background: rgba(196,138,58,0.08);
  padding: 6px 10px;
  border-radius: 999px;
  white-space:nowrap;
}
.log-entry p{ margin: 10px 0; color: var(--muted); line-height: 1.65; font-size: 13px; }
.log-entry strong{ color: rgba(255,255,255,0.86); }

.log-entry ul{
  margin: 8px 0 0 18px;
  padding: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 13px;
}
.log-entry code{
  background: rgba(0,0,0,0.26);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 1px 6px;
  border-radius: 8px;
  color: rgba(255,255,255,0.88);
}

/* ========== Footer ========== */
.site-footer{
  padding: 34px 0 26px;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.16);
}
.footer-row{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap: 18px;
}
.footer-brand{ font-weight: 700; letter-spacing: -0.02em; }
.footer-sub{ color: var(--muted); font-size: 13px; margin-top: 6px; }
.footer-right{ display:flex; gap: 16px; flex-wrap:wrap; justify-content:flex-end; }
.footer-link{ color: var(--muted); font-size: 13px; }
.footer-link:hover{ color: rgba(255,255,255,0.85); }
.footer-fine{
  margin-top: 18px;
  color: rgba(255,255,255,0.42);
  font-size: 12px;
}

/* ========== Responsive ========== */
@media (max-width: 560px){
  .brand{ font-size: 44px; }
  .cta-row{ flex-direction:column; }
  .btn{ width: 100%; }
  .log-head{ flex-direction:column; align-items:flex-start; }

  /* revised: mobile containment */
  .logo-mark img{
    max-width: 260px;
  }
}
