/* PatchPilotPro Static Site CSS
   Posture: calm, engineering-led, restraint-first
   Goal: encode control + risk boundaries (not “growth SaaS”)
*/
/* =========================================================
   PatchPilot Theme Tokens
   Phase 1: Foundation (no visual changes yet)
   ========================================================= */

:root {
  /* ================================
     Layout & structure (theme-agnostic)
     ================================ */
  --maxw: 1200px;
  --gutter: 22px;
  --radius: 18px;
  --shadow: 0 18px 60px rgba(0,0,0,0.45);

  /* ================================
     Base (Light Theme)
     ================================ */
  --bg0: #ffffff;
  --bg1: #f8f9fb;
  --surface: #ffffff;
  --surface-alt: #f0f2f5;

  --text: #0b1220;
  --muted: #5a6277;
  --muted-2: #7b8396;

  --border: rgba(0,0,0,0.08);
  --border-strong: rgba(0,0,0,0.12);

  --accent: #0066cc;
  --accent-hover: #0052a3;

  /* Hero emphasis (constant across themes) */
  --hero-accent: #7cddff;

  --success: #00a86b;
  --warning: #ff8c00;
}

/* ================================
   Dark theme overrides
   ================================ */
[data-theme="dark"] {
  --bg0: #05070f;
  --bg1: #070b16;
  --surface: #0b1220;
  --surface-alt: #0f1b2e;

  --text: #e7edf7;
  --muted: #a7b4c8;
  --muted-2: #7f8aa1;

  --border: rgba(255,255,255,0.09);
  --border-strong: rgba(255,255,255,0.13);

  --accent: #7cddff;
  --accent-hover: #5bc9ff;

  --success: #a6ffcb;
  --warning: #ffd28a;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin: 0;
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background:
    radial-gradient(
      900px 520px at 75% -10%,
      rgba(29,78,216,0.10),
      transparent 60%
    ),
    linear-gradient(
      180deg,
      var(--bg1) 0%,
      var(--bg0) 55%,
      #04050b 100%
    );
  background-attachment: fixed;
}

body:before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  opacity:0.06;
  background-image:
    linear-gradient(to right, rgba(226,232,240,0.30) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(226,232,240,0.30) 1px, transparent 1px);
  background-size:120px 120px;
}

main,header,footer{ position:relative; z-index:1; }

.container{
  max-width:var(--maxw);
  margin:0 auto;
  padding:0 var(--gutter);
}

.readable{ max-width:720px; }

/* Navigation */
header{
  backdrop-filter:blur(10px);
  background:rgba(5,7,15,0.42);
  border-bottom:1px solid rgba(148,163,184,0.10);
}

.nav{
  display:flex;
  justify-content:space-between;
  align-items:center;
  min-height:72px;
}

.navlinks a{
  padding:10px 12px;
  border-radius:12px;
  font-weight:700;
}

.navlinks a:hover,
.navlinks a.active{
  color:var(--cyan);
  background:rgba(34,211,238,0.08);
}

/* Cards */
.card{
  background:linear-gradient(135deg, rgba(15,27,46,0.92), rgba(11,18,32,0.92));
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:22px 24px;
}

/* Typography */
h1{
  font-size:clamp(30px,4.2vw,44px);
  letter-spacing:-0.03em;
}

p{ color:var(--muted); line-height:1.65; }

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 16px;
  border-radius:999px;
  font-weight:900;
  border:1px solid transparent;
  cursor:pointer;
}

.btn-primary{
  background: var(--accent);
  border: 1px solid var(--accent-hover);
  color: #000;
}

.btn-primary:hover{
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #000;
}

.btn-primary:focus-visible{
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* Keep generic hover from fighting primary buttons */
.btn:hover{
  border-color: var(--accent-hover);
}


/* Footer */
footer{
  border-top:1px solid rgba(148,163,184,0.10);
  padding:32px 0;
  margin-top:48px;
}

/* Responsive */
@media(max-width:980px){
  .grid-2,.grid-3{ grid-template-columns:1fr; }
}

/* =========================================================
   Phase 1 — Hero redesign (spacing + hierarchy)
   ========================================================= */

.hero{
  padding: 96px 0 64px;
}

.hero-inner{
  max-width: 860px;
}

.hero-badge{
  display: inline-block;
  margin-bottom: 20px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: rgba(0,0,0,0.06);
  border-radius: 6px;
}

[data-theme="dark"] .hero-badge{
  background: rgba(255,255,255,0.08);
}

.hero-title{
  margin: 0 0 24px;
  font-size: clamp(40px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.8px;
}

.hero-title .hero-highlight{
  color: var(--hero-accent) !important;
}

.hero-lead{
  margin: 0 0 36px;
  font-size: 20px;
  line-height: 1.5;
  color: var(--muted);
}

.hero-actions{
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.hero-micro{
  font-size: 14px;
  color: var(--muted-2);
}

/* =========================================================
   Phase 1 — Trust bar
   ========================================================= */

.trust-bar{
  padding: 18px 0 22px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.02),
    rgba(0,0,0,0.00)
  );
}

[data-theme="dark"] .trust-bar{
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.04),
    rgba(255,255,255,0.00)
  );
}

.trust-inner{
  display: flex;
  justify-content: center;
}

.trust-copy{
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

.trust-sep{
  margin: 0 8px;
  color: var(--muted-2);
}


/* Buttons (Phase 1 minimal) */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
}

.btn-primary{
  background: var(--accent);
  color: #000;
}

[data-theme="dark"] .btn-primary{
  color: #000;
}

.btn-secondary{
  border: 1px solid var(--border-strong);
  color: var(--text);
}
