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

:root {
  --olive: #748a28;
  --olive-dark: #5a6b1e;
  --olive-light: #a8c060;
  --navy: #20291b;
  --warm-bg: #f8f9f3;
  --white: #ffffff;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --gray-600: #4b5563;
  --gray-800: #1f2937;
  --amber: #f97316;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,.07), 0 4px 16px rgba(0,0,0,.05);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.10);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex; align-items: center;
  background: var(--olive); color: #fff;
  padding: .65rem 1.4rem; border-radius: 8px;
  font-weight: 600; font-size: .9rem;
  text-decoration: none;
  transition: background .18s, transform .12s;
  border: none; cursor: pointer;
}
.btn-primary:hover { background: var(--olive-dark); transform: translateY(-1px); }
.btn-primary.btn-lg { padding: .85rem 1.75rem; font-size: 1rem; }

.btn-outline {
  display: inline-flex; align-items: center;
  border: 1.5px solid var(--olive); color: var(--olive);
  padding: .6rem 1.3rem; border-radius: 8px;
  font-weight: 600; font-size: .9rem;
  text-decoration: none;
  transition: background .18s, color .18s;
}
.btn-outline:hover { background: var(--olive); color: #fff; }

.btn-collab {
  display: inline-flex; align-items: center; gap: .35rem;
  background: linear-gradient(135deg, rgba(116,138,40,.1), rgba(116,138,40,.05));
  border: 1.5px solid rgba(116,138,40,.55); color: var(--olive-dark);
  padding: .45rem 1rem; border-radius: 20px;
  font-weight: 700; font-size: .88rem; text-decoration: none;
  transition: background .18s, color .18s, border-color .18s, transform .12s;
  white-space: nowrap;
}
.btn-collab:hover { background: var(--olive); color: #fff; border-color: var(--olive); transform: translateY(-1px); }

.btn-ghost {
  display: inline-flex; align-items: center;
  border: 1.5px solid rgba(255,255,255,.45); color: #fff;
  padding: .85rem 1.75rem; border-radius: 8px;
  font-weight: 600; font-size: 1rem;
  text-decoration: none;
  transition: background .18s, border-color .18s;
}
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.7); }

/* ── LAYOUT ── */
.container { max-width: 1120px; margin: 0 auto; padding: 0 2rem; }

/* ── NAV ── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
}
.nav-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 2rem;
  height: 64px; display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.logo-svg { width: 36px; height: 36px; flex-shrink: 0; }
.logo-svg.sm { width: 30px; height: 30px; }
.logo-text { font-weight: 700; font-size: 1.1rem; color: var(--navy); }
.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-links a { text-decoration: none; color: var(--gray-600); font-size: .9rem; font-weight: 500; transition: color .15s; }
.nav-links a:hover { color: var(--olive); }
.nav-toggle { display: none; background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--navy); padding: .25rem; }
.nav-mobile { display: none; flex-direction: column; gap: .5rem; padding: 1rem 2rem 1.5rem; border-top: 1px solid var(--gray-200); }
.nav-mobile a { text-decoration: none; color: var(--gray-600); font-size: .95rem; font-weight: 500; padding: .4rem 0; }
.nav-mobile.open { display: flex; }

/* ── HERO ── */
.hero {
  background: linear-gradient(140deg, var(--navy) 0%, #2a3d20 55%, #3a5228 100%);
  color: #fff; padding: 5rem 2rem 4rem;
}
.hero-inner {
  max-width: 760px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.name-change-badge {
  display: inline-block;
  background: rgba(251,146,60,.18); color: #fbbf80;
  border: 1px solid rgba(251,146,60,.4);
  padding: .3rem .9rem; border-radius: 20px;
  font-size: .75rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; margin-bottom: 1.25rem;
}
.hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 700;
  line-height: 1.2; margin-bottom: 1.25rem; color: #fff;
}
.hero h1 em { color: var(--olive-light); font-style: italic; }
.hero-sub {
  font-size: 1.05rem; color: rgba(255,255,255,.75);
  margin-bottom: 2.25rem; line-height: 1.75;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; justify-content: center; }
.hero-note { font-size: .8rem; color: rgba(255,255,255,.4); }

/* ── APP MOCKUP ── */
.app-mockup {
  background: #1a1a2e; border-radius: 12px;
  overflow: hidden; box-shadow: 0 24px 64px rgba(0,0,0,.5);
  border: 1px solid rgba(255,255,255,.08);
}
.mockup-bar {
  background: #2a2a3e; padding: .6rem 1rem;
  display: flex; align-items: center; gap: .4rem;
}
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.dot.red { background: #ff5f57; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #28c840; }
.mockup-title { margin-left: auto; margin-right: auto; font-size: .75rem; color: rgba(255,255,255,.4); font-family: 'Inter', sans-serif; }
.mockup-body { display: flex; min-height: 220px; }
.mockup-sidebar {
  width: 110px; background: #131320; padding: .75rem .5rem;
  display: flex; flex-direction: column; gap: .25rem; flex-shrink: 0;
}
.mock-nav-item {
  padding: .4rem .65rem; border-radius: 6px; font-size: .72rem;
  color: rgba(255,255,255,.45); cursor: default; transition: background .15s;
}
.mock-nav-item.active { background: var(--olive); color: #fff; font-weight: 600; }
.mockup-content { flex: 1; padding: .75rem 1rem; }
.mock-header { font-size: .75rem; font-weight: 700; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .07em; margin-bottom: .75rem; }
.mock-row {
  display: flex; align-items: center; gap: .6rem;
  padding: .5rem .4rem; border-radius: 6px; margin-bottom: .25rem;
}
.mock-row:first-of-type { background: rgba(116,138,40,.15); }
.mock-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--olive); color: #fff;
  font-size: .65rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.mock-info { flex: 1; min-width: 0; }
.mock-name { font-size: .78rem; font-weight: 600; color: rgba(255,255,255,.85); }
.mock-sub { font-size: .67rem; color: rgba(255,255,255,.4); }
.mock-badge {
  font-size: .65rem; font-weight: 700; padding: .2rem .5rem;
  border-radius: 20px; white-space: nowrap; flex-shrink: 0;
}
.mock-badge.green { background: rgba(40,200,64,.15); color: #4ade80; }
.mock-badge.blue { background: rgba(59,130,246,.15); color: #60a5fa; }
.mock-badge.gray { background: rgba(255,255,255,.08); color: rgba(255,255,255,.4); }
.mock-badge.amber { background: rgba(249,115,22,.15); color: #fb923c; }
.mockup-caption {
  text-align: center; padding: .5rem; font-size: .68rem;
  color: rgba(255,255,255,.2); background: #131320; border-top: 1px solid rgba(255,255,255,.05);
}

/* ── GALLERY ── */
.gallery-section {
  background: linear-gradient(180deg, #1a2415 0%, #131a0f 100%);
  padding: 3.5rem 2rem;
  border-top: 1px solid rgba(116,138,40,.18);
  border-bottom: 1px solid rgba(116,138,40,.18);
}
.gallery-inner {
  max-width: 900px;
  margin: 0 auto;
}
.gallery-track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  padding-bottom: .5rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(116,138,40,.3) transparent;
}
.gallery-slide {
  flex-shrink: 0;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,.5);
  border: 1px solid rgba(255,255,255,.07);
  background: #1a1a2e;
}
.placeholder-slide { opacity: .65; }
.gallery-slide-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  min-height: 260px;
  background: #131320;
}
.gallery-placeholder-label {
  font-size: .85rem; font-weight: 600;
  color: rgba(255,255,255,.35);
}
.gallery-placeholder-hint {
  font-size: .75rem;
  color: rgba(255,255,255,.18);
}

/* ── STATS BAR ── */
.stats-bar { background: var(--navy); padding: 1.5rem 2rem; }
.stats-inner {
  display: flex; align-items: center; justify-content: center;
  gap: 0; flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; align-items: center; padding: .5rem 2.5rem; }
.stat-num { font-size: 1.5rem; font-weight: 700; color: var(--olive-light); line-height: 1.2; }
.stat-label { font-size: .78rem; color: rgba(255,255,255,.5); margin-top: .2rem; text-align: center; }
.stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,.12); flex-shrink: 0; }

/* ── NAME CHANGE BANNER ── */
.name-change { background: #fffbf0; border-top: 3px solid var(--amber); border-bottom: 1px solid #fde8cc; padding: 2rem; }
.name-change-card { display: flex; gap: 1.25rem; align-items: flex-start; max-width: 820px; margin: 0 auto; }
.name-change-icon { font-size: 1.8rem; flex-shrink: 0; }
.name-change-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-bottom: .35rem; }
.name-change-card p { font-size: .9rem; color: var(--gray-600); line-height: 1.65; }

/* ── SECTION COMMON ── */
.section-label {
  display: inline-block; font-size: .72rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--olive); margin-bottom: .6rem;
}
.section-sub { color: var(--gray-600); font-size: .97rem; max-width: 540px; margin-bottom: 2.75rem; line-height: 1.65; }

/* ── FEATURES ── */
.features { padding: 6rem 2rem; background: var(--warm-bg); }
.features h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem); color: var(--navy);
  margin-bottom: .75rem; line-height: 1.25;
}
/* Tier headers */
.feature-tier-header {
  display: flex; align-items: center; gap: .75rem;
  margin-bottom: 1.25rem; padding-bottom: .75rem;
  border-bottom: 1.5px solid var(--gray-200);
}
.tier-badge {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .3rem .85rem; border-radius: 20px;
  font-size: .78rem; font-weight: 700; letter-spacing: .03em;
  white-space: nowrap;
}
.tier-badge.live { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.tier-badge.dev { background: #fef9c3; color: #854d0e; border: 1px solid #fde68a; }
.tier-badge.roadmap { background: #ede9fe; color: #6d28d9; border: 1px solid #ddd6fe; }
.tier-desc { font-size: .85rem; color: var(--gray-400); }

.feature-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1.25rem;
}

/* Dev cards — slightly muted */
.dev-card { opacity: .88; background: #fafafa; }
.dev-card:hover { opacity: 1; }

/* Roadmap list */
.roadmap-list { display: flex; flex-direction: column; gap: .85rem; }
.roadmap-item {
  display: flex; align-items: flex-start; gap: 1rem;
  background: #f5f0ff; border: 1px solid #ddd6fe;
  border-radius: var(--radius); padding: 1.1rem 1.25rem;
}
.roadmap-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: .1rem; }
.roadmap-title { font-size: .97rem; font-weight: 700; color: var(--navy); margin-bottom: .25rem; }
.roadmap-desc { font-size: .86rem; color: var(--gray-600); line-height: 1.6; }
.feature-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow);
  transition: transform .18s, box-shadow .18s;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.feature-icon { font-size: 1.6rem; margin-bottom: .7rem; }
.feature-card h4 { font-size: .97rem; font-weight: 700; color: var(--navy); margin-bottom: .35rem; }
.feature-card p { font-size: .86rem; color: var(--gray-600); line-height: 1.65; }

/* ── HIPAA SECTION ── */
.hipaa-section { padding: 6rem 2rem; background: #f0f4e8; }
.hipaa-section h2 { font-family: 'Playfair Display', serif; font-size: clamp(1.8rem,3.5vw,2.4rem); color: var(--navy); margin-bottom: .75rem; }
.hipaa-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 1.25rem; }
.hipaa-card {
  background: var(--white); border: 1px solid rgba(116,138,40,.2);
  border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow);
  transition: transform .18s, box-shadow .18s;
}
.hipaa-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.hipaa-icon { font-size: 1.6rem; margin-bottom: .75rem; }
.hipaa-card h4 { font-size: .97rem; font-weight: 700; color: var(--navy); margin-bottom: .35rem; }
.hipaa-card p { font-size: .86rem; color: var(--gray-600); line-height: 1.65; }

/* ── OPEN SOURCE ── */
.open-source { padding: 6rem 2rem; background: var(--white); }
.os-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
.os-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem); color: var(--navy);
  margin-bottom: 1rem; line-height: 1.25;
}
.os-text p { color: var(--gray-600); font-size: .93rem; line-height: 1.75; margin-bottom: 1rem; }
.os-list { list-style: none; margin: 1.25rem 0 2rem; display: flex; flex-direction: column; gap: .5rem; }
.os-list li { font-size: .91rem; color: var(--gray-600); }
.stack-card { background: var(--navy); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1rem; }
.stack-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: .6rem 0; border-bottom: 1px solid rgba(255,255,255,.07);
}
.stack-row:last-child { border-bottom: none; }
.stack-tech { color: var(--olive-light); font-weight: 700; font-size: .88rem; font-family: 'Courier New', monospace; }
.stack-desc { color: rgba(255,255,255,.45); font-size: .82rem; }
.github-stats { display: flex; flex-direction: column; gap: .6rem; }
.github-cta {
  display: flex; align-items: center; gap: .6rem;
  background: var(--warm-bg); border: 1px solid var(--gray-200);
  border-radius: 8px; padding: .75rem 1rem;
  text-decoration: none; color: var(--gray-800);
  font-size: .88rem; font-weight: 500;
  transition: border-color .15s, background .15s;
}
.github-cta:hover { border-color: var(--olive); background: var(--white); }

/* ── FEEDBACK ── */
.feedback-section { padding: 6rem 2rem; background: var(--warm-bg); }
.feedback-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem); color: var(--navy); margin-bottom: .75rem;
}
.feedback-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 3rem; align-items: start; }
.feedback-form-wrap { display: flex; flex-direction: column; gap: .85rem; }
.category-row { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.cat-btn {
  padding: .55rem .75rem; border-radius: 8px; font-size: .85rem; font-weight: 500;
  border: 1.5px solid var(--gray-200); background: var(--white); color: var(--gray-600);
  cursor: pointer; text-align: left; transition: border-color .15s, background .15s, color .15s;
}
.cat-btn:hover { border-color: var(--olive); color: var(--olive); }
.cat-btn.active { background: var(--olive); color: #fff; border-color: var(--olive); font-weight: 600; }
.feedback-form-wrap textarea {
  width: 100%; padding: .75rem 1rem;
  border: 1.5px solid var(--gray-200); border-radius: 8px;
  font-family: inherit; font-size: .9rem; color: var(--gray-800);
  background: var(--white); transition: border-color .15s; resize: vertical;
}
.feedback-form-wrap textarea:focus { outline: none; border-color: var(--olive); }
.feedback-form-wrap .btn-primary:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.feedback-success {
  display: flex; align-items: center; gap: .6rem;
  padding: .75rem 1rem; background: #ecfdf5; border: 1px solid #a7f3d0;
  border-radius: 8px; color: #065f46; font-size: .88rem; font-weight: 500;
}
.form-note { font-size: .78rem; color: var(--gray-400); }
.feedback-alt { display: flex; flex-direction: column; gap: 1rem; }
.alt-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow);
}
.alt-icon { font-size: 1.3rem; margin-bottom: .4rem; }
.alt-card h4 { font-size: .95rem; font-weight: 700; color: var(--navy); margin-bottom: .3rem; }
.alt-card p { font-size: .84rem; color: var(--gray-600); margin-bottom: .85rem; line-height: 1.5; }

/* ── FOOTER ── */
.footer { background: var(--navy); padding: 3rem 2rem 2rem; }
.footer-inner { max-width: 1120px; margin: 0 auto; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 3rem; margin-bottom: 2.5rem; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: .75rem; }
.footer-brand-name { font-size: 1rem; font-weight: 700; color: #fff; }
.footer-sub { font-size: .75rem; color: rgba(255,255,255,.35); margin-top: .1rem; }
.footer-cols { display: flex; gap: 3rem; }
.footer-col { display: flex; flex-direction: column; gap: .5rem; }
.footer-col-title { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.35); margin-bottom: .25rem; }
.footer-col a { text-decoration: none; color: rgba(255,255,255,.55); font-size: .85rem; transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
.footer-bottom p { font-size: .8rem; color: rgba(255,255,255,.3); }
.footer-bottom a { color: rgba(255,255,255,.45); }
.footer-bottom a:hover { color: #fff; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero-inner { max-width: 100%; }
  .os-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .feedback-grid { grid-template-columns: 1fr; }
  .stats-inner { gap: 0; }
  .stat { padding: .5rem 1.5rem; }
  .stat-divider { display: none; }
  .footer-top { flex-direction: column; gap: 2rem; }
  .footer-bottom { flex-direction: column; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .form-row { grid-template-columns: 1fr; }
  .hero { padding: 4rem 1.5rem 3rem; }
  .features, .open-source, .feedback-section { padding: 4rem 1.5rem; }
  .footer-cols { flex-direction: column; gap: 1.5rem; }
}
