:root{
  --bg:#0b0714;
  --bg2:#120a26;
  --ink:#e9e5ff;
  --muted:#bdb6e6;
  --brand:#6c3bf0;
  --brand2:#22d3ee;
  --accent:#863421; /* used where you referenced the hex directly */
}

*{box-sizing:border-box}

body{
  margin:0;
  padding:0;
  background:linear-gradient(180deg,var(--bg),var(--bg2));
  color:var(--ink);
  font:16px/1.6 system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Helvetica Neue,Arial
}

a{color:#cfe7ff;text-decoration:none}
a:hover{opacity:.9;text-decoration:underline}

/* Header */
header{
  background:#120a26cc;
  backdrop-filter:blur(8px);
  padding:12px 20px;
  position:sticky;
  top:0;
  z-index:50;
  border-bottom:1px solid rgba(255,255,255,.1)
}

/* === NAV LAYOUT (matches: .nav-wrap / .brand / .site-nav / #pwaInstallBtn) === */
.nav-wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.5rem 1rem;
  flex-wrap:wrap;             /* ✅ allow wrapping on small screens */
  max-width:1100px;
  margin:0 auto;
}

/* Keep logo + text steady */
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:700;
}
.brand img{
  height:36px;
  width:auto;
  display:block;
}

/* Chip-style base */
.btn{
  padding:8px 14px;
  border:1px solid rgba(255,255,255,.2);
  border-radius:8px;
  background:rgba(255,255,255,.08);
  line-height:1;
}
.btn:hover{background:rgba(255,255,255,.15)}

/* Chip nav area */
.site-nav{
  display:flex;
  align-items:center;
  gap:.5rem;
  flex-wrap:wrap;            /* ✅ chips wrap to next line */
  flex:1 1 auto;             /* take remaining space on wide screens */
}
.site-nav a.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

/* Install button behavior */
#pwaInstallBtn{
  flex:0 0 auto;
  margin-left:auto;          /* push to right on wide screens */
  white-space:nowrap;        /* keep label on one line */
  color:#fff;
}

/* Tiny screens: chips get a touch smaller; stack rows predictably */
@media (max-width: 640px){
  .site-nav{ flex-basis:100%; }   /* chips occupy their own full row */
  #pwaInstallBtn{ margin-left:0; }/* no pushing on stacked layout */
}
@media (max-width: 380px){
  .btn{ padding:7px 12px; font-size:.95rem; }
}

/* Main layout */
main{margin:0 auto;padding:40px 20px}

/* Typography */
h1{font-size:clamp(32px,6vw,56px)}
h2{font-size:clamp(24px,4vw,36px);margin-top:10px}
p{max-width:780px}

/* Cards */
.cards{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:20px;
  margin-top:20px
}
.card{
  background:#1a1130;
  border:1px solid rgba(255,255,255,.1);
  border-radius:16px;
  padding:20px
}
.card h3{margin-top:0}

/* Footer */
footer{
  padding:40px 20px;
  border-top:1px solid rgba(255,255,255,.1);
  margin-top:40px;
  text-align:center
}
footer p{max-width:100%}

/* Hero */
.hero{margin-top:10px; text-align: center;}
.hero h1{margin-top:.25rem; margin-bottom:.25rem}
.hero .subtitle{
  font-size:1.1rem;
  font-weight:300;
  font-style:italic;
  color:#cfe7ff;
  margin-top:0;
  margin-bottom:1rem;  
}
.hero p {
	margin: 0 auto;
}
/* === Full-Width Hero Refresh === */
.hero.full-width {
  width: 100%;
  margin: 0;
  padding: 48px 20px;
  background: linear-gradient(180deg, var(--bg2) 0%, var(--bg) 100%);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  box-shadow: 0 6px 22px rgba(0,0,0,0.3);
}

.hero.full-width .hero-inner {
  max-width: 900px;
  margin: 0 auto;
}

.hero.full-width h1 {
  font-size: clamp(36px, 6vw, 39px);
  margin-bottom: 1rem;
}

.hero.full-width p {
  font-size: 1.1rem;
  color: var(--muted);
  margin: 0 auto 1.5rem;
}

.hero.full-width .btn-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* --- Blog Refinement --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Blog layout wrapper */
.blog-content,
.post-body {
  max-width: 850px;
  margin: 0 auto;
  padding: 20px;
  line-height: 1.7;
  font-size: 1.05rem;
}

/* Hero image or featured image at top of post */
.post-body img,
.post-hero,
.post-image {
  display: block;
  max-width: 100%;
  height: auto;
  width: 820px; /* target desktop size, scales down on mobile */
  margin: 30px auto;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 6px 22px rgba(0,0,0,0.25);
}

/* Headings and spacing */
.post-body h1,
.post-body h2,
.post-body h3 {
  margin-top: 2em;
  margin-bottom: 0.5em;
  line-height: 1.3;
  color: #fff;
}

.post-body p {
  margin-bottom: 1.2em;
  color: var(--ink);
  max-width: 780px;
}

/* Metadata styling */
.post-meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 10px 0 28px;
  text-align: center;
}

/* Inline code and code blocks */
.post-body pre {
  background: #0f0a1e;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 14px 18px;
  overflow-x: auto;
  font-size: 0.95rem;
}

.post-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: rgba(255,255,255,0.08);
  padding: 2px 5px;
  border-radius: 4px;
  font-size: 0.95em;
}

/* Grid cards for /blog index remain unchanged but clean spacing */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 20px;
}

.post-card {
  background: #1a1130;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.post-card .thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 12px;
}

.post-card h3 { margin: 0 0 6px; color: #fff; }
.post-card .meta { color: var(--muted); font-size: 14px; margin-bottom: 10px; }

/* Responsive adjustments */
@media (max-width: 768px) {
  .blog-content,
  .post-body {
    padding: 16px;
    font-size: 1rem;
  }
  .post-body img,
  .post-image {
    width: 100%;
    margin: 20px 0;
  }
}


/* Pagination (dark theme) */
.pagination{
  display:flex;
  gap:10px;
  justify-content:center;
  margin-top:30px
}
.pagination a,.pagination span{
  padding:8px 12px;
  border:1px solid rgba(255,255,255,.2);
  border-radius:8px
}
.pagination .current{background:rgba(255,255,255,.12)}

/* Accents */
.site-nav .btn.active{
  font-weight:600;
  border-bottom:2px solid var(--accent)
}
.dyor{
  font-weight:bold;
  letter-spacing:.5px;
  text-transform:uppercase;
  color:var(--accent)
}


/* Layout tweaks so brand + install sit together, chips wrap below when tight */
.nav-wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.5rem 1rem;
  flex-wrap:wrap;
  max-width:1100px;
  margin:0 auto;
}
.brand{flex:0 0 auto}
#pwaInstallBtn{ flex:0 0 auto }        /* ensure it stays beside brand */

/* Chips occupy remaining width on wide screens; wrap cleanly on mobile */
.site-nav{
  display:flex;
  align-items:center;
  gap:.5rem;
  flex-wrap:wrap;
  flex:1 1 auto;
}

@media (min-width: 1025px){
  #pwaInstallBtn{ display:none !important; }
}

/* On ≤640px: chips drop to their own row (brand + install remain on top row) */
@media (max-width: 640px){
  .site-nav{ flex-basis:100% }
}

/* Distinct Install CTA (pill, subtle glow) */
.install-cta{
  display:inline-flex;
  align-items:center;
  gap:.25rem;
  padding:9px 14px;
  border-radius:9999px;                           /* pill */
  border:1px solid rgba(255,255,255,.22);
  background: linear-gradient(135deg,var(--brand),var(--brand2));
  color:#fff;
  font-weight:700;
  line-height:1;
  box-shadow: 0 6px 18px rgba(108,59,240,.25);
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.install-cta:hover{
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(108,59,240,.35);
  text-decoration:none;
  opacity:.95;
}
.install-cta:focus-visible{
  outline:2px solid var(--brand2);
  outline-offset:2px;
}
.install-cta[hidden]{ display:none !important; }
.social-row {  display: flex;  flex-wrap: wrap;  gap: 8px;  margin-top: 8px;}.social-row .btn {  flex: 0 0 auto;  padding: 6px 12px;}
/* --- SimpleFLO Beta Form --- */
#signup form {
  background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 30px 25px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  transition: all 0.25s ease;
}

#signup form:hover {
  box-shadow: 0 12px 32px rgba(0,0,0,0.35);
  transform: translateY(-2px);
}

/* Inputs + Select + Textarea */
#signup input,
#signup select,
#signup textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-size: 15px;
  transition: all 0.2s ease;
}

#signup input:focus,
#signup select:focus,
#signup textarea:focus {
  outline: none;
  border-color: var(--accent, #3b82f6);
  background: rgba(255,255,255,0.12);
  box-shadow: 0 0 0 2px rgba(59,130,246,0.3);
}

/* Submit Button */
#signup button.btn {
  background: var(--accent, #3b82f6);
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  padding: 14px;
  border-radius: 8px;
  border: none;
  width: 100%;
  cursor: pointer;
  transition: all 0.25s ease;
}

#signup button.btn:hover {
  background: #2563eb; /* darker accent */
  box-shadow: 0 4px 16px rgba(37,99,235,0.4);
  transform: translateY(-1px);
}

/* Success message */
#signup .card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 25px;
  text-align: center;
}

/* Placeholder text */
#signup ::placeholder {
  color: rgba(255,255,255,0.6);
}
/* Fix dropdown (select) styling */
#signup select {
  color: #fff;                        /* Make dropdown text white */
  appearance: none;                   /* Removes default arrow styling */
  background-image: linear-gradient(45deg, transparent 50%, #fff 50%),
                    linear-gradient(135deg, #fff 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(1em + 2px),
                       calc(100% - 13px) calc(1em + 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 30px;                /* Space for custom arrow */
}

/* Make dropdown options dark for readability */
#signup select option {
  background-color: #111;             /* dark dropdown background */
  color: #fff;
}
/* === Blog Post Refinement (Image + Layout) === */
.post {
  max-width: 850px;
  margin: 0 auto;
  padding: 24px;
  line-height: 1.7;
}

.post h1 {
  font-size: clamp(30px, 5vw, 39px);
  margin-bottom: 0.4em;
}

.post-meta {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 10px 0 24px;
  text-align: center;
}

/* Image styling */
.post img {
  display: block;
  width: 100%;
  max-width: 525px;
  height: auto;
  margin: 40px auto;
  padding: 8px;

  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.06),
    rgba(255,255,255,0.02)
  );

  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.12);

  box-shadow:
    0 10px 28px rgba(0,0,0,0.45),
    inset 0 0 0 1px rgba(255,255,255,0.04);
}


/* Keep any markdown image wrapped <p> from adding extra margins */
.post p > img {
  margin-top: 0;
  margin-bottom: 0;
}
.post h1 {
  font-size: clamp(1.8rem, 4vw, 2.2rem);
  line-height: 1.25;
  max-width: 720px;
  margin: 0 auto 24px;
}

/* Better paragraph + link spacing */
.post-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--ink);
}
.post-body p {
  margin-bottom: 1.2em;
}
.post-body a {
  color: var(--brand2);
  text-decoration: none;
}
.post-body a:hover {
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .post {
    padding: 16px;
  }
  .post img {
    width: 100%;
    margin: 20px 0;
  }
}
/* -------------------------------
   Contact Form (NL Labs)
-------------------------------- */

.contact-section {
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.04),
    rgba(255,255,255,0.01)
  );
  padding: 32px 28px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 12px 36px rgba(0,0,0,0.45);
}

.contact-section form {
  display: grid;
  gap: 18px;
}

/* Labels */
.contact-section label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* Inputs & textarea */
.contact-section input,
.contact-section textarea,
.contact-section select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.4;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

/* Focus states */
.contact-section input:focus,
.contact-section textarea:focus,
.contact-section select:focus {
  outline: none;
  border-color: var(--brand);
  background: rgba(0,0,0,0.45);
  box-shadow: 0 0 0 3px rgba(108,59,240,0.25);
}

/* Textarea specifics */
.contact-section textarea {
  resize: vertical;
  min-height: 120px;
}

/* Placeholder text */
.contact-section ::placeholder {
  color: rgba(233,229,255,0.45);
}

/* Select arrow consistency */
.contact-section select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 12px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}

/* Submit button */
.contact-section .btn {
  align-self: flex-start;
  padding: 12px 22px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    var(--brand),
    var(--brand2)
  );
  border: none;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0,0,0,0.35);
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}

.contact-section .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(0,0,0,0.45);
  opacity: 0.95;
}

/* Alert messages */
.alert {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.9rem;
}

.alert-info {
  background: rgba(34,211,238,0.12);
  color: #bff4fb;
  border: 1px solid rgba(34,211,238,0.3);
}

.alert-success {
  background: rgba(34,197,94,0.12);
  color: #c7f9dd;
  border: 1px solid rgba(34,197,94,0.3);
}

.alert-error {
  background: rgba(239,68,68,0.12);
  color: #ffd6d6;
  border: 1px solid rgba(239,68,68,0.35);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: 28px;
  margin-top: 30px;
}

.team-card {
  text-align: center;
}

.team-card img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 12px;
}

.team-card h3 {
  margin: 6px 0;
}

.team-card .role {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 8px;
}

/* Desktop breathing room */
@media (min-width: 900px) {
  .contact-section {
    padding: 40px 44px;
  }
}
