:root {
  /* Solarized Dark Core */
  --base03: #002b36;
  --base02: #073642;
  --base01: #586e75;
  --base00: #657b83;
  --base0: #839496;
  --base1: #93a1a1;
  --base2: #eee8d5;
  --base3: #fdf6e3;
  --yellow: #b58900;
  --orange: #cb4b16;
  --red: #dc322f;
  --magenta: #d33682;
  --violet: #6c71c4;
  --blue: #268bd2;
  --cyan: #2aa198;
  --green: #859900;

  /* Campaign Accents */
  --sage: #9CAF88;
  --slate: #5B7C99;
  --accent-cyan: #0FF0FC;
  
  /* UI System */
  --glass-bg: rgba(0, 43, 54, 0.8);
  --glass-border: rgba(147, 161, 161, 0.15);
  --transition-speed: 0.5s;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: #001e26; /* Deeper base than base03 for depth */
  color: var(--base0);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: crosshair;
}

/* Typography */
h1, h2, h3 {
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--base2);
}

.glow-text {
  text-shadow: 0 0 20px rgba(15, 240, 252, 0.4);
}

/* Nav */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 2rem 3rem;
  background: linear-gradient(to bottom, rgba(0, 43, 54, 0.9), transparent);
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(5px);
}

.logo {
  font-size: 1rem;
  font-family: monospace;
  color: var(--accent-cyan);
  letter-spacing: 2px;
}

/* Hero */
.hero {
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background-image: url('Images/APirog 17.jpg');
  background-size: cover;
  background-position: center 20%;
  background-attachment: fixed;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #001e26 30%, transparent 100%),
              radial-gradient(circle at 70% 30%, transparent 0%, #001e26 80%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 0 5%;
}

.hero-subtitle {
  color: var(--cyan);
  font-family: monospace;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: block;
}

h1 {
  font-size: clamp(3rem, 10vw, 5rem);
  line-height: 0.9;
  margin-bottom: 1.5rem;
}

/* Content System */
.rib-container {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  padding: 8rem 5%;
  max-width: 1400px;
  margin: 0 auto;
}

.rib {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 4px; /* Brutalist/Scientific feel */
  padding: 4rem;
  position: relative;
  transition: transform var(--transition-speed) cubic-bezier(0.16, 1, 0.3, 1);
}

.rib:hover {
  border-color: var(--accent-cyan);
}

.rib-title {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--base02);
  padding-bottom: 1rem;
}

.rib-number {
  font-family: monospace;
  color: var(--cyan);
  font-size: 1.2rem;
  opacity: 0.7;
}

.rib h2 {
  font-size: 2rem;
  color: var(--base1);
}

.description {
  color: var(--base0);
  max-width: 600px;
  font-size: 1.1rem;
}

/* Policy Grid */
.policy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.policy-card {
  background: rgba(255, 255, 255, 0.03);
  padding: 2rem;
  border-radius: 2px;
  border-left: 3px solid transparent;
  transition: background 0.3s, transform 0.3s ease;
  cursor: pointer;
  position: relative;
  padding-bottom: 3.5rem; /* Space for the toggle text */
}

.policy-card p {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin: 0;
  transition: max-height 0.4s ease, opacity 0.4s ease, margin-top 0.4s ease;
}

.policy-card.expanded p {
  max-height: 2000px;
  opacity: 1;
  margin-top: 1rem;
}

.policy-card::after {
  content: '[ + ] READ MORE';
  position: absolute;
  bottom: 1.5rem;
  left: 2rem;
  font-family: monospace;
  font-size: 0.75rem;
  color: var(--base01);
  letter-spacing: 1px;
}

.policy-card.expanded::after {
  content: '[ - ] MINIMIZE';
}

.policy-card:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-5px);
}

.blueprint .policy-card { border-left-color: var(--yellow); }
.neighborhood .policy-card { border-left-color: var(--green); }
.power .policy-card { border-left-color: var(--orange); }
.city24 .policy-card { border-left-color: var(--cyan); }

/* Observer Sections */
.observer-section {
  display: flex;
  align-items: center;
  gap: 4rem;
  margin: 6rem 0;
  min-height: 400px;
}

.observer-section.reverse {
  flex-direction: row-reverse;
}

.observer-image {
  flex: 1;
  height: 500px;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--glass-border);
  filter: grayscale(0.2) contrast(1.1);
  box-shadow: 20px 20px 0 var(--base02);
}

.observer-text {
  flex: 1;
}

/* Footer */
footer {
  padding: 6rem 2rem;
  background: #00151a;
  text-align: center;
  border-top: 1px solid var(--base02);
}

footer p {
  font-family: monospace;
  font-size: 0.9rem;
  letter-spacing: 2px;
  color: var(--base01);
}

@media (max-width: 768px) {
  .observer-section, .observer-section.reverse {
    flex-direction: column;
  }
  .hero-content {
      padding-top: 5rem;
  }
  .rib {
      padding: 2rem;
  }
  
  .contact-form {
      grid-template-columns: 1fr;
      padding: 1.5rem;
  }
  
  .form-group.full {
      grid-column: span 1;
  }
  
  .audit-dashboard {
      padding: 1.5rem;
      overflow-x: auto;
  }
  
  .audit-table {
      min-width: 600px;
  }
}

/* Audit Dashboard System */
.audit-dashboard {
    margin-top: 4rem;
    padding: 3rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--base02);
    font-family: monospace;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--base01);
    padding-bottom: 1rem;
}

.audit-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    color: var(--base1);
}

.audit-table th {
    text-align: left;
    padding: 1rem;
    color: var(--cyan);
    border-bottom: 1px solid var(--base02);
    text-transform: uppercase;
}

.audit-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(147, 161, 161, 0.05);
}

.status-badge {
    padding: 2px 8px;
    border-radius: 2px;
    font-size: 0.7rem;
    font-weight: bold;
}

.status-verified { background: rgba(133, 153, 0, 0.2); color: var(--green); border: 1px solid var(--green); }
.status-review { background: rgba(181, 137, 0, 0.2); color: var(--yellow); border: 1px solid var(--yellow); }

.meter-container {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.meter-box {
    flex: 1;
    padding: 1.5rem;
    background: var(--base02);
    border-left: 4px solid var(--cyan);
}

.meter-label {
    font-size: 0.7rem;
    color: var(--base01);
    margin-bottom: 0.5rem;
}

.meter-value {
    font-size: 1.5rem;
    color: var(--base3);
}

/* Neighbor Hub & Contact Systems */
.neighbor-hub {
    margin-top: 4rem;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    background: var(--glass-bg);
    padding: 3rem;
    border: 1px solid var(--glass-border);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group.full {
    grid-column: span 2;
}

label {
    font-family: monospace;
    font-size: 0.8rem;
    color: var(--cyan);
}

::selection {
    background: #0ff0fc;
    color: #001e26;
}

::-moz-selection {
    background: #0ff0fc;
    color: #001e26;
}

input, select, textarea {
    background-color: #001a20;
    border: 1px solid var(--base02);
    padding: 1rem;
    color: #93a1a1 !important;
    -webkit-text-fill-color: #93a1a1 !important;
    font-family: inherit;
    caret-color: #0ff0fc !important;
}

select option {
    background-color: var(--base03);
    color: var(--base1);
}

input:focus, select:focus, textarea:focus {
    border-color: var(--accent-cyan);
    outline: none;
}

/* Override Browser Autofill Styles */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #001a20 inset !important;
    -webkit-text-fill-color: #93a1a1 !important;
    transition: background-color 5000s ease-in-out 0s, color 5000s ease-in-out 0s;
}

.btn-submit {
    grid-column: span 2;
    background: transparent;
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
    padding: 1rem;
    font-family: monospace;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.btn-submit:hover {
    background: var(--accent-cyan);
    color: var(--base03);
    box-shadow: 0 0 20px rgba(15, 240, 252, 0.4);
}

.btn-donate {
    display: inline-block;
    background: transparent;
    border: 1px solid var(--green);
    color: var(--green);
    padding: 0.5rem 1rem;
    font-family: monospace;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
}

.btn-donate:hover {
    background: var(--green);
    color: var(--base03);
    box-shadow: 0 0 20px rgba(133, 153, 0, 0.4);
}

.hero .btn-donate {
    margin-top: 2rem;
    padding: 1rem 2rem;
    font-size: 1.1rem;
}



/* Mobile Responsiveness */
@media (max-width: 768px) {
  nav {
    flex-direction: column !important;
    padding: 1rem 2rem !important;
    gap: 0.8rem !important;
  }
  
  .logo {
    font-size: 0.9rem;
  }

  .status {
    display: none; /* Hide extraneous info on mobile */
  }

  .observer-section {
    flex-direction: column;
    gap: 2rem;
    margin: 4rem 0;
  }

  .observer-section.reverse {
    flex-direction: column;
  }
  
  .policy-card::after {
    left: 1.5rem; /* Better alignment on mobile */
  }

  /* Solvency Monitor Corrections */
  .meter-container {
    flex-direction: column;
  }

  /* Contact Form Grid Corrections */
  .contact-form {
    grid-template-columns: 1fr;
  }
  .contact-form .form-group.full, 
  .btn-submit {
    grid-column: 1;
  }
  #formStatus {
    grid-column: 1 !important;
  }
}

