:root{
  --bg:#0b0f19;
  --panel:#111827;
  --card:#0f172a;
  --text:#e5e7eb;
  --muted:#9ca3af;
  --border:rgba(255,255,255,.08);
  --accent:#ff9e1b;
}

*{box-sizing:border-box}

html, body{
  height: 100%;
  margin: 0;
}

body{
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  margin:0;
  overflow-x: hidden;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial,
               "Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background: transparent;
}

body::before{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;

  background:
    radial-gradient(1200px 600px at 20% 0%, rgba(255,158,27,.10), transparent 60%),
    radial-gradient(1200px 600px at 80% 20%, rgba(49,152,255,.10), transparent 60%),
    var(--bg);

  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% 100%;
}

html{
  background: var(--bg);
}

.container{max-width:1100px;margin:0 auto;padding:24px}
@media (max-width: 600px){
  .container{padding:16px}
}
.muted{color:var(--muted)}
.small{font-size:.9rem}
.mono{font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace}

.site-header{
  position:sticky;top:0;z-index:10;
  background:rgba(11,15,25,.75);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--border);
}
.header-row{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.brand{
  text-decoration:none;
  color:var(--text);
  font-weight:700;
  letter-spacing:.2px;
}
.header-right{
  display:flex;
  align-items:center;
  gap:20px;
  flex-wrap:wrap;
}
@media (max-width: 900px){
  .header-row{gap:12px}
  .header-right{gap:12px}
}
@media (max-width: 600px){
  .site-header .container{padding-top:12px;padding-bottom:12px}
  .brand{font-size:.95rem}
  .nav a{min-height:44px;padding:10px 12px;display:inline-flex;align-items:center}
  .brand-logo{height:32px}
}
.powered-by{
  display:flex;
  align-items:center;
  gap:8px;
  color:var(--muted);
  font-size:.9rem;
}
.powered-by a{
  display:inline-block;
  line-height:0;
}
.brand-logo{
  height:36px;
  width:auto;
  display:block;
}
.nav{display:flex;gap:14px;flex-wrap:wrap}
.nav a{
  color:var(--muted);
  text-decoration:none;
  padding:8px 10px;
  border-radius:10px;
  border:1px solid transparent;
}
.nav a:hover{color:var(--text);border-color:var(--border)}
.nav a.active{color:var(--text);border-color:rgba(255,158,27,.35);background:rgba(255,158,27,.07)}

.hero{
  display:flex;align-items:flex-end;justify-content:space-between;gap:18px;
  padding:10px 0 18px 0;
}
.hero h1{margin:0 0 6px 0;font-size:2rem}
.hero-actions{display:flex;gap:10px;flex-wrap:wrap}

.panel{
  background:rgba(17,24,39,.72);
  border:1px solid var(--border);
  border-radius:18px;
  padding:18px;
  margin:18px 0;
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
}
.panel-header h2{margin:0 0 6px 0}
.panel-header p{margin:0 0 14px 0}

.button{
  display:inline-flex;align-items:center;justify-content:center;
  gap:10px;
  padding:10px 14px;
  border-radius:12px;
  border:1px solid rgba(255,158,27,.45);
  background:rgba(255,158,27,.14);
  color:var(--text);
  text-decoration:none;
  cursor:pointer;
  font-weight:600;
}
.button:hover{background:rgba(255,158,27,.20)}
.button-ghost{
  border-color:var(--border);
  background:rgba(255,255,255,.03);
}
.button-ghost:hover{background:rgba(255,255,255,.06)}

.map-frame-wrap{
  border-radius:14px;
  overflow:hidden;
  border:1px solid var(--border);
  background:#000;
  height:min(70vh, 720px);
}
.map-frame{
  width:100%;
  height:100%;
  border:0;
}

.grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:14px;
}

.grid-2{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:14px;
}

.card{
  display:flex;
  flex-direction:column;
  background:rgba(15,23,42,.75);
  border:1px solid var(--border);
  border-radius:16px;
  padding:14px;
}
.card h3{margin:0 0 8px 0}
.card p{margin:0;color:var(--muted);line-height:1.5}
.card .card-actions{margin-top:auto;padding-top:12px}

.callout{
  margin-top:12px;
  padding:12px 12px;
  border-radius:12px;
  border:1px dashed rgba(255,255,255,.16);
  color:var(--muted);
}

.form{display:flex;flex-direction:column;gap:12px}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
label{display:flex;flex-direction:column;gap:6px;color:var(--muted);font-size:.95rem}
input, select, textarea{
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--border);
  background:rgba(0,0,0,.25);
  color:var(--text);
  outline:none;
}
input:focus, select:focus, textarea:focus{
  border-color:rgba(255,158,27,.55);
  box-shadow:0 0 0 3px rgba(255,158,27,.12);
}
.honeypot{display:none !important}

.footer{padding:8px 0 24px 0}

@media (max-width: 900px){
  .grid{grid-template-columns:1fr}
  .grid-2{grid-template-columns:1fr}
  .form-row{grid-template-columns:1fr}
  .hero{flex-direction:column;align-items:flex-start}
}
@media (max-width: 600px){
  .project-title{font-size:1.75rem}
  .project-tagline{font-size:1rem}
  .panel{padding:14px;margin:14px 0}
  .panel-header h2{font-size:1.25rem}
  .map-frame-wrap{height:min(60vh, 400px)}
}

.project-title{
  font-size:2.6rem;
  font-weight:800;
  letter-spacing:.3px;
  margin:0 0 6px 0;
}

.project-tagline{
  font-size:1.15rem;
  color:#f3f4f6;
  margin:0 0 10px 0;
}

.principles{
  margin:0;
  padding-left:18px;
  color:var(--muted);
  line-height:1.6;
}
.principles li{
  margin-bottom:6px;
}

.card .principles{
  margin-top:12px;
}

.button-small{
  padding:6px 10px;
  border-radius:10px;
  font-size:.9rem;
}

.map-actions{
  display:flex;
  justify-content:flex-end;
  margin-top:12px;
}

.map-updated{
  text-align:center;
  margin-top:10px;
}

.button-highlight{
  border-color: rgba(255,158,27,.75);
  background: rgba(255,158,27,.28);
  box-shadow: 0 0 0 3px rgba(255,158,27,.18);
}

.button-highlight:hover{
  background: rgba(255,158,27,.36);
}