/* =============================================================
   MyPortfolioHub Landing UI v41
   Teal + coral product identity with light and dark presentation.
   This stylesheet intentionally layers over landing.css so every existing
   Jinja contract and frontend behavior remains intact.
   ============================================================= */

:root,
html[data-theme="light"] {
  --bg-0: #f5f8fb;
  --bg-1: #eef4f7;
  --surface-1: #ffffff;
  --surface-2: #f4f8fa;
  --surface-3: #e9f1f4;
  --border-subtle: rgba(8, 39, 60, 0.09);
  --border-mid: rgba(8, 39, 60, 0.16);
  --border-strong: rgba(8, 39, 60, 0.26);
  --text-hi: #0a2237;
  --text-mid: #536779;
  --text-lo: #7a8b99;
  --violet: #10b9b2;
  --violet-dim: #07958f;
  --cyan: #23c9d8;
  --cyan-dim: #10a5b4;
  --coral: #ff775d;
  --coral-deep: #f05c43;
  --navy: #061a2d;
  --navy-2: #0a263d;
  --navy-3: #10324a;
  --mint-soft: #e8fbf8;
  --coral-soft: #fff0ec;
  --grad-signature: linear-gradient(135deg, #0cbcb2 0%, #23c9d8 100%);
  --grad-signature-soft: linear-gradient(135deg, rgba(12, 188, 178, 0.13), rgba(35, 201, 216, 0.08));
  --shadow-card: 0 18px 55px -30px rgba(8, 39, 60, 0.34), 0 1px 0 rgba(255,255,255,.85) inset;
  --glow-violet: 0 14px 34px -18px rgba(12, 188, 178, 0.8);
  --glow-cyan: 0 14px 34px -18px rgba(35, 201, 216, 0.75);
  --container-w: 1320px;
  --nav-h: 72px;
}

html[data-theme="dark"] {
  --bg-0: #061522;
  --bg-1: #081c2b;
  --surface-1: #0c2233;
  --surface-2: #112b3e;
  --surface-3: #17354a;
  --border-subtle: rgba(201, 236, 242, 0.09);
  --border-mid: rgba(201, 236, 242, 0.16);
  --border-strong: rgba(201, 236, 242, 0.26);
  --text-hi: #f4fbfc;
  --text-mid: #afc3ce;
  --text-lo: #7893a2;
  --violet: #20cfc3;
  --violet-dim: #10aba3;
  --cyan: #43d9e4;
  --cyan-dim: #23b8c5;
  --coral: #ff846d;
  --coral-deep: #f2644c;
  --navy: #041321;
  --navy-2: #071d2d;
  --navy-3: #0d2a3f;
  --mint-soft: rgba(32, 207, 195, 0.10);
  --coral-soft: rgba(255, 132, 109, 0.10);
  --grad-signature: linear-gradient(135deg, #20cfc3 0%, #43d9e4 100%);
  --grad-signature-soft: linear-gradient(135deg, rgba(32, 207, 195, 0.14), rgba(67, 217, 228, 0.08));
  --shadow-card: 0 24px 70px -36px rgba(0, 0, 0, 0.78), 0 1px 0 rgba(255,255,255,.03) inset;
  --glow-violet: 0 16px 42px -20px rgba(32, 207, 195, 0.64);
  --glow-cyan: 0 16px 42px -20px rgba(67, 217, 228, 0.58);
}

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

body {
  background: var(--bg-0);
  color: var(--text-mid);
  transition: background-color 220ms ease, color 220ms ease;
}

.bg-mesh {
  opacity: 0;
  pointer-events: none;
}

.bg-grid {
  position: fixed;
  inset: 0;
  opacity: .22;
  background-image:
    linear-gradient(rgba(14, 169, 165, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 169, 165, .055) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, transparent 0, #000 18%, #000 76%, transparent 100%);
}

html[data-theme="dark"] .bg-grid {
  opacity: .12;
}

.container-mph {
  max-width: var(--container-w);
}

section {
  padding: 104px 0;
}

.section-head {
  max-width: 720px;
  margin-bottom: 48px;
}

.section-head h2 {
  font-size: clamp(2rem, 3.2vw, 3rem);
  color: var(--text-hi);
  letter-spacing: -0.04em;
}

.section-head p {
  max-width: 630px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-mid);
}

.eyebrow {
  color: #087e79;
  background: var(--mint-soft);
  border-color: rgba(12, 188, 178, .25);
  font-weight: 700;
}

html[data-theme="dark"] .eyebrow {
  color: #6fe8df;
}

.eyebrow .dot {
  background: var(--violet);
  box-shadow: 0 0 12px rgba(32, 207, 195, .7);
}

.text-gradient {
  background: linear-gradient(105deg, #24cbd5 0%, #6fe1d8 48%, #21b7b0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* =============================================================
   Navigation and theme switch
   ============================================================= */
.navbar-mph {
  height: var(--nav-h);
  background: rgba(4, 19, 33, .94);
  border-bottom: 1px solid rgba(158, 221, 226, .10);
  backdrop-filter: blur(18px) saturate(130%);
  box-shadow: 0 10px 35px -28px rgba(0,0,0,.9);
}

.navbar-mph.is-scrolled {
  background: rgba(4, 19, 33, .985);
  border-color: rgba(158, 221, 226, .16);
}

.nav-inner {
  max-width: var(--container-w);
  padding: 0 24px;
}

.brand {
  color: #f4fbfc;
  font-size: 1.08rem;
  letter-spacing: -.02em;
}

.brand:hover {
  color: #fff;
}

.brand-mark {
  width: 35px;
  height: 35px;
  border-radius: 9px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 8px 22px -10px rgba(35, 201, 216, .8);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-links {
  gap: 8px;
}

.nav-links a {
  color: #aabdc8;
  padding: 9px 12px;
  border-radius: 9px;
  font-size: .88rem;
  font-weight: 600;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: #5ee1d9;
  background: rgba(32, 207, 195, .08);
}

.nav-actions {
  gap: 8px;
}

.navbar-mph .btn-ghost {
  color: #d9e8ec;
}

.navbar-mph .btn-primary {
  background: linear-gradient(135deg, var(--coral), #ff957f);
  color: #fff;
  border-color: rgba(255,255,255,.12);
  box-shadow: 0 14px 28px -16px rgba(255, 119, 93, .95);
}

.navbar-mph .btn-primary:hover {
  color: #fff;
  box-shadow: 0 18px 36px -16px rgba(255, 119, 93, 1);
}

.theme-toggle {
  position: relative;
  width: 64px;
  height: 34px;
  flex: 0 0 64px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 9px;
  border: 1px solid rgba(176, 218, 224, .23);
  border-radius: 999px;
  background: rgba(255,255,255,.055);
  color: #bcd0d8;
  overflow: hidden;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.theme-toggle:hover {
  border-color: rgba(95, 225, 217, .48);
  background: rgba(32, 207, 195, .08);
}

.theme-toggle:active {
  transform: scale(.96);
}

.theme-toggle-icon {
  position: relative;
  z-index: 2;
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  font-size: .72rem;
  transition: color 180ms ease;
}

.theme-toggle-sun {
  color: #ffc86e;
}

.theme-toggle-moon {
  color: #c5d2ff;
}

.theme-toggle-thumb {
  position: absolute;
  z-index: 1;
  top: 4px;
  left: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 6px 14px rgba(0,0,0,.28);
  transition: transform 220ms cubic-bezier(.2,.8,.2,1), background 180ms ease;
}

html[data-theme="dark"] .theme-toggle-thumb {
  transform: translateX(30px);
  background: #17344a;
}

.mobile-menu {
  background: rgba(5, 22, 37, .985);
  border-color: rgba(158, 221, 226, .12);
}

.mobile-menu a {
  color: #c5d6dc;
}

/* =============================================================
   Buttons
   ============================================================= */
.btn-mph {
  border-radius: 11px;
  font-size: .91rem;
  padding: 12px 22px;
}

.btn-primary {
  background: linear-gradient(135deg, #0bbab1, #26cbd5);
  color: #032a2a;
  box-shadow: 0 14px 30px -17px rgba(12,188,178,.95);
}

.btn-primary:hover {
  color: #022a29;
  box-shadow: 0 18px 38px -18px rgba(12,188,178,1);
}

.btn-outline {
  background: transparent;
  border-color: var(--border-mid);
  color: var(--text-hi);
}

.btn-outline:hover {
  background: var(--surface-2);
  border-color: rgba(12,188,178,.44);
  color: var(--text-hi);
}

.btn-ghost {
  color: var(--text-hi);
}

.btn-ghost:hover {
  color: var(--violet);
}

/* =============================================================
   Hero
   ============================================================= */
.hero {
  min-height: 760px;
  padding: 122px 0 116px;
  overflow: hidden;
  background:
    radial-gradient(580px 420px at 96% 8%, rgba(255, 119, 93, .34), transparent 62%),
    radial-gradient(620px 430px at 78% 75%, rgba(13, 190, 183, .18), transparent 68%),
    linear-gradient(132deg, #041321 0%, #061b2d 54%, #08273b 100%);
  border-bottom: 0;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(79, 205, 208, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 205, 208, .045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, rgba(0,0,0,.6), transparent 78%);
}

.hero::after {
  content: "";
  position: absolute;
  width: 620px;
  height: 620px;
  right: -260px;
  top: -250px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 50%;
  box-shadow:
    0 0 0 58px rgba(255,255,255,.018),
    0 0 0 116px rgba(255,255,255,.012);
  pointer-events: none;
}

.hero-grid {
  grid-template-columns: minmax(0, .92fr) minmax(520px, 1.08fr);
  gap: clamp(44px, 6vw, 90px);
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 670px;
}

.hero .eyebrow {
  color: #59ded5;
  background: rgba(32,207,195,.075);
  border-color: rgba(80,222,214,.28);
}

.hero h1 {
  max-width: 720px;
  color: #fff;
  font-size: clamp(3.15rem, 5.25vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -.058em;
  text-wrap: balance;
}

.hero .lead {
  max-width: 640px;
  color: #b4c7d1;
  font-size: clamp(1rem, 1.35vw, 1.14rem);
  line-height: 1.75;
}

.hero-cta {
  gap: 12px;
  flex-wrap: wrap;
}

.hero .btn-primary {
  color: #042b2b;
  min-height: 50px;
}

.hero .btn-outline {
  color: #edf8f9;
  border-color: rgba(211, 239, 242, .30);
  background: rgba(255,255,255,.035);
}

.hero .btn-outline:hover {
  color: #fff;
  background: rgba(255,255,255,.08);
  border-color: rgba(83, 222, 214, .52);
}

.hero .btn-ghost {
  color: #dce9ed;
}

.hero .btn-ghost:hover {
  color: #63e1da;
}

.hero-benefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid rgba(208, 237, 240, .11);
}

.hero-benefits > span {
  min-width: 0;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 9px;
  color: #d8e8ec;
}

.hero-benefits i {
  grid-row: 1 / 3;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: #47d8d0;
  background: rgba(32,207,195,.09);
  border: 1px solid rgba(73,217,209,.16);
  border-radius: 50%;
  font-size: .78rem;
}

.hero-benefits strong {
  font-size: .78rem;
  line-height: 1.25;
  white-space: nowrap;
}

.hero-benefits small {
  margin-top: 2px;
  color: #7997a6;
  font-size: .66rem;
  line-height: 1.25;
}

.hero-meta {
  color: #91a8b4;
}

.hero-meta .avatar-fallback,
.hero-meta img {
  border-color: #071b2b;
}

.hero .trust-row {
  display: none;
}

.hero-visual {
  min-width: 0;
}

.browser-mock {
  transform: none;
  background: rgba(8, 31, 47, .94);
  border: 1px solid rgba(98, 218, 217, .28);
  border-radius: 22px;
  box-shadow:
    0 34px 85px -42px rgba(0, 0, 0, .92),
    0 0 0 1px rgba(255,255,255,.025) inset;
}

.browser-mock:hover {
  border-color: rgba(75, 222, 214, .45);
}

.browser-bar {
  background: #0a2235;
  border-color: rgba(161, 220, 225, .09);
}

.browser-url {
  background: rgba(255,255,255,.045);
  color: #758f9e;
}

.browser-body {
  min-height: 390px;
  background:
    radial-gradient(420px 260px at 78% 8%, rgba(33, 202, 194, .10), transparent 66%),
    #0a2031;
}

.mock-profile {
  padding: 22px;
  border-radius: 15px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(171,225,229,.08);
}

.mock-name {
  color: #f4fbfc;
}

.mock-role,
.mock-engage-stat {
  color: #89a2af;
}

.mock-bar {
  background: rgba(198, 230, 233, .10);
}

.mock-tile {
  background:
    linear-gradient(145deg, rgba(42, 205, 198, .18), rgba(255,255,255,.035));
  border-color: rgba(121, 219, 220, .12);
}

.mock-engage {
  border-color: rgba(153, 220, 224, .10);
}

.hero-preview-image {
  background: #0a2031;
}

.float-card {
  background: rgba(11, 34, 49, .96);
  color: #e7f4f6;
  border-color: rgba(119, 219, 220, .20);
  box-shadow: 0 22px 48px -28px rgba(0,0,0,.9);
}

.float-card.card-1 {
  right: -18px;
  top: -28px;
}

.float-card.card-2 {
  left: -26px;
  bottom: -30px;
}

.scroll-cue {
  color: #6f909d;
}

/* =============================================================
   Assurance panel and statistics
   ============================================================= */
.assurance-strip {
  z-index: 4;
  padding: 0;
  margin-top: -48px;
  background: transparent;
}

.assurance-panel {
  display: grid;
  grid-template-columns: minmax(290px, 1.35fr) repeat(3, minmax(160px, .72fr));
  align-items: center;
  gap: 0;
  min-height: 116px;
  padding: 22px 28px;
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  box-shadow: 0 24px 70px -36px rgba(8,39,60,.46);
}

.assurance-community {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
  padding-right: 28px;
}

.assurance-community .avatar-stack {
  flex: 0 0 auto;
}

.assurance-community img,
.assurance-community .avatar-fallback {
  border-color: var(--surface-1);
}

.assurance-community > div:last-child,
.assurance-item > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.assurance-community strong,
.assurance-item strong {
  color: var(--text-hi);
  font-size: .84rem;
}

.assurance-community span,
.assurance-item span {
  margin-top: 4px;
  color: var(--text-lo);
  font-size: .75rem;
  line-height: 1.45;
}

.assurance-item {
  min-height: 66px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  border-left: 1px solid var(--border-subtle);
}

.assurance-item > i {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #079b94;
  background: var(--mint-soft);
  font-size: 1.05rem;
}

html[data-theme="dark"] .assurance-item > i {
  color: #67e6de;
}

.stats-bar {
  padding: 48px 0 66px;
  border: 0;
  background: var(--bg-0);
}

.stats-row {
  gap: 0;
  overflow: hidden;
  padding: 28px 18px;
  background:
    radial-gradient(320px 150px at 92% 100%, rgba(34, 208, 201, .24), transparent 70%),
    linear-gradient(120deg, #06192b, #09283e);
  border: 1px solid rgba(93, 210, 211, .18);
  border-radius: 18px;
  box-shadow: 0 24px 50px -34px rgba(5, 32, 50, .8);
}

.stats-row > div {
  padding: 8px 24px;
  border-left: 1px solid rgba(202, 235, 238, .12);
}

.stats-row > div:first-child {
  border-left: 0;
}

.stat-num {
  color: #5ee1d9;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.8rem);
  letter-spacing: -.04em;
}

.stat-label {
  color: #b0c4cd;
}

/* =============================================================
   Light content rhythm
   ============================================================= */
#features,
#explore,
#founder,
#how-it-works,
#pricing,
#contact {
  background: var(--surface-1);
}

#themes,
#projects,
#community,
#testimonials,
#faq {
  background: var(--bg-1);
}

.section-alt {
  background: var(--bg-1);
}

html[data-theme="dark"] #features,
html[data-theme="dark"] #explore,
html[data-theme="dark"] #founder,
html[data-theme="dark"] #how-it-works,
html[data-theme="dark"] #pricing {
  background: var(--bg-0);
}

html[data-theme="dark"] #themes,
html[data-theme="dark"] #projects,
html[data-theme="dark"] #community,
html[data-theme="dark"] #testimonials,
html[data-theme="dark"] #faq {
  background: var(--bg-1);
}

/* =============================================================
   Cards used across features, themes, portfolios and projects
   ============================================================= */
.feature-grid {
  gap: 18px;
}

.feature-card,
.theme-card,
.pf-card,
.proj-card,
.t-card,
.price-card,
.faq-item,
.community-update-card,
.founder-copy-panel,
.founder-portrait-card {
  background: var(--surface-1);
  border-color: var(--border-subtle);
  box-shadow: 0 12px 34px -30px rgba(8,39,60,.35);
}

.feature-card {
  min-height: 208px;
  padding: 25px 23px;
  border-radius: 15px;
}

.feature-card:hover,
.theme-card:hover,
.pf-card:hover,
.proj-card:hover {
  transform: translateY(-5px);
  border-color: rgba(12,188,178,.34);
  background: var(--surface-1);
  box-shadow: var(--shadow-card);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #079d96;
  background: var(--mint-soft);
  border-color: rgba(12,188,178,.12);
}

html[data-theme="dark"] .feature-icon {
  color: #6fe8df;
}

.feature-card h3,
.theme-name,
.pf-name,
.proj-title,
.price-plan,
.t-person-name {
  color: var(--text-hi);
}

.feature-card p,
.pf-bio,
.proj-desc,
.price-desc,
.t-quote {
  color: var(--text-mid);
}

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

.theme-card {
  padding: 15px;
  border-radius: 16px;
}

.theme-preview {
  border-radius: 12px;
  background: var(--surface-2);
  border-color: var(--border-subtle);
}

.theme-badge,
.theme-tag,
.pf-tag,
.proj-tags span,
.proj-category-badge,
.proj-creator-badge {
  background: var(--mint-soft);
  color: #087e79;
  border-color: rgba(12,188,178,.16);
}

html[data-theme="dark"] .theme-badge,
html[data-theme="dark"] .theme-tag,
html[data-theme="dark"] .pf-tag,
html[data-theme="dark"] .proj-tags span,
html[data-theme="dark"] .proj-category-badge,
html[data-theme="dark"] .proj-creator-badge {
  color: #68e3da;
}

.showcase-grid {
  gap: 20px;
}

.pf-card {
  border-radius: 16px;
}

.pf-cover::after {
  background: linear-gradient(180deg, transparent 38%, var(--surface-1) 100%);
}

.pf-avatar {
  border-color: var(--surface-1);
}

.like-btn {
  background: var(--surface-2);
  border-color: var(--border-subtle);
}

.like-btn:hover {
  border-color: rgba(255,119,93,.4);
}

.landing-case-studies::before,
.community-section::before {
  opacity: .35;
}

.proj-card {
  border-radius: 18px;
  overflow: hidden;
}

.project-action-btn,
.project-action-case,
.project-action-download,
.project-action-portfolio {
  border-radius: 10px;
}

.project-action-case--primary {
  background: linear-gradient(135deg, #0bbab1, #26cbd5);
  color: #032b2b;
  border-color: transparent;
}

.project-download-menu,
.project-download-options {
  background: var(--surface-1);
  border-color: var(--border-mid);
  box-shadow: var(--shadow-card);
}

/* =============================================================
   Founder and community
   ============================================================= */
.founder-showcase {
  gap: 28px;
}

.founder-copy-panel,
.founder-portrait-card {
  border-radius: 20px;
}

.founder-label {
  color: #078f89;
}

html[data-theme="dark"] .founder-label {
  color: #68e3da;
}

.founder-heading,
.founder-portrait-name {
  color: var(--text-hi);
}

.founder-text,
.founder-portrait-role {
  color: var(--text-mid);
}

.community-feed {
  gap: 18px;
}

.community-update-card {
  border-radius: 16px;
}

.community-update-link,
.community-view-link {
  color: #078f89;
}

html[data-theme="dark"] .community-update-link,
html[data-theme="dark"] .community-view-link {
  color: #63e1da;
}

/* =============================================================
   Workflow
   ============================================================= */
.steps-row {
  gap: 20px;
}

.steps-row::before,
.step-connector {
  display: none;
}

.step-item {
  min-height: 190px;
  padding: 26px 22px;
  text-align: left;
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  box-shadow: 0 14px 34px -30px rgba(8,39,60,.38);
}

.step-num {
  width: 47px;
  height: 47px;
  margin: 0 0 19px;
  color: #078f89;
  background: var(--mint-soft);
  border-color: rgba(12,188,178,.18);
}

html[data-theme="dark"] .step-num {
  color: #63e1da;
}

.step-item h3 {
  color: var(--text-hi);
}

.step-item p {
  color: var(--text-mid);
}

/* =============================================================
   Testimonials
   ============================================================= */
.testimonial-track {
  border-radius: 18px;
}

.t-slide {
  padding: 4px;
}

.t-card {
  min-height: 310px;
  border-radius: 18px;
  padding: 34px;
}

.t-stars {
  color: var(--coral);
}

.t-dots .t-dot,
.t-dot {
  background: rgba(10, 58, 74, .18);
}

.t-dot.active {
  background: var(--violet);
}

/* =============================================================
   Pricing
   ============================================================= */
.pricing-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.price-card {
  border-radius: 18px;
}

.price-card.featured {
  border-color: rgba(12,188,178,.46);
  background: linear-gradient(180deg, rgba(12,188,178,.11), var(--surface-1) 42%);
  box-shadow: 0 24px 60px -34px rgba(12,188,178,.65);
}

.price-value {
  color: var(--text-hi);
}

.price-features li::before {
  color: #0aa59e;
}

.price-badge {
  background: var(--coral-soft);
  color: var(--coral-deep);
  border-color: rgba(255,119,93,.22);
}

/* =============================================================
   FAQ
   ============================================================= */
.faq-list {
  max-width: 970px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 12px 18px;
}

.faq-item {
  border-radius: 12px;
}

.faq-q {
  color: var(--text-hi);
  min-height: 58px;
}

.faq-q:hover {
  color: #078f89;
}

html[data-theme="dark"] .faq-q:hover {
  color: #63e1da;
}

.faq-a-inner {
  color: var(--text-mid);
}

/* =============================================================
   Contact — backend/form markup deliberately untouched
   ============================================================= */
#contact {
  background:
    radial-gradient(520px 350px at 8% 6%, rgba(32,207,195,.15), transparent 70%),
    radial-gradient(480px 320px at 94% 100%, rgba(255,119,93,.18), transparent 68%),
    linear-gradient(132deg, #041321 0%, #071d2d 56%, #0a2b3f 100%);
  overflow: hidden;
}

#contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(105, 214, 216, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(105, 214, 216, .045) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(circle at 50% 50%, #000, transparent 82%);
  pointer-events: none;
}

#contact .container-mph {
  position: relative;
  z-index: 1;
}

#contact .section-head h2 {
  color: #fff;
}

#contact .section-head p {
  color: #a9c0ca;
}

#contact .eyebrow {
  color: #62e2da;
  background: rgba(32,207,195,.08);
  border-color: rgba(82, 224, 216, .23);
}

.contact-grid {
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  gap: 24px;
}

.contact-info-card,
.contact-form-card {
  min-height: 100%;
  border-radius: 20px;
}

.contact-info-card {
  background: rgba(9, 35, 51, .84);
  border: 1px solid rgba(141, 218, 222, .15);
  box-shadow: 0 26px 70px -42px rgba(0,0,0,.9);
}

.contact-info-card::before {
  background: radial-gradient(circle, rgba(32,207,195,.12), transparent 70%);
}

.contact-row {
  border-color: rgba(184, 229, 232, .10);
}

.contact-row strong {
  color: #eff9fa;
}

.contact-row span,
.contact-row a,
.contact-muted {
  color: #9db5c0;
}

.contact-row a:hover {
  color: #61e0d8;
}

.icon-badge.violet,
.icon-badge.cyan,
.icon-badge.green {
  color: #5ee1d9;
  background: rgba(32,207,195,.09);
  border-color: rgba(80,221,214,.14);
}

.social-btn {
  background: var(--surface-2);
  border-color: var(--border-subtle);
  color: var(--text-mid);
}

.contact-info-card .social-btn {
  background: rgba(255,255,255,.04);
  border-color: rgba(180, 226, 230, .13);
  color: #acc2cb;
}

.contact-info-card .social-btn:hover {
  color: #5ee1d9;
  border-color: rgba(76, 219, 211, .4);
}

.map-card {
  border-color: rgba(172, 225, 229, .12);
  background: rgba(255,255,255,.025);
}

.map-card-canvas {
  color: #a9c0ca;
  background:
    linear-gradient(135deg, rgba(32,207,195,.10), rgba(255,119,93,.07)),
    repeating-linear-gradient(45deg, rgba(255,255,255,.025) 0 2px, transparent 2px 10px);
}

.map-card-footer {
  border-color: rgba(172,225,229,.10);
  color: #819ca9;
}

.contact-form-card {
  background: #ffffff;
  border: 1px solid rgba(194, 224, 227, .35);
  box-shadow: 0 30px 76px -44px rgba(0,0,0,.88);
}

.contact-form-card::before {
  background: radial-gradient(circle, rgba(255,119,93,.11), transparent 72%);
}

.contact-form-card label {
  color: #19384b;
  font-weight: 700;
}

.contact-form-card input,
.contact-form-card textarea,
.contact-form-card select {
  color: #102f43;
  background: #f5f8fa;
  border-color: rgba(16, 62, 82, .13);
  border-radius: 11px;
}

.contact-form-card input::placeholder,
.contact-form-card textarea::placeholder {
  color: #91a1aa;
}

.contact-form-card input:focus,
.contact-form-card textarea:focus,
.contact-form-card select:focus {
  color: #102f43;
  background: #fff;
  border-color: rgba(12,188,178,.66);
  box-shadow: 0 0 0 4px rgba(12,188,178,.10);
}

.contact-form-card .btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #0bbab1 0%, #24c8d3 56%, #ff775d 150%);
  min-height: 52px;
}

.contact-form-status.success {
  color: #075f5b;
  background: #e7faf6;
  border-color: #a9e9df;
}

.contact-form-status.warning {
  color: #7b4a00;
  background: #fff8df;
  border-color: #f4d98b;
}

.contact-form-status.error {
  color: #8c2636;
  background: #fff0f2;
  border-color: #f4bcc5;
}

html[data-theme="dark"] .contact-form-card {
  background: #0d2638;
  border-color: rgba(153, 221, 224, .16);
}

html[data-theme="dark"] .contact-form-card label {
  color: #e7f4f6;
}

html[data-theme="dark"] .contact-form-card input,
html[data-theme="dark"] .contact-form-card textarea,
html[data-theme="dark"] .contact-form-card select {
  color: #eef9fa;
  background: #091f30;
  border-color: rgba(162, 221, 225, .13);
}

html[data-theme="dark"] .contact-form-card input:focus,
html[data-theme="dark"] .contact-form-card textarea:focus,
html[data-theme="dark"] .contact-form-card select:focus {
  color: #fff;
  background: #0a2234;
}

html[data-theme="dark"] .contact-form-status.success {
  color: #9ff4e9;
  background: rgba(16,185,129,.12);
  border-color: rgba(52,211,153,.3);
}

html[data-theme="dark"] .contact-form-status.warning {
  color: #ffe399;
  background: rgba(245,158,11,.12);
  border-color: rgba(251,191,36,.3);
}

html[data-theme="dark"] .contact-form-status.error {
  color: #ffb4bf;
  background: rgba(239,68,68,.12);
  border-color: rgba(251,113,133,.3);
}

/* =============================================================
   Footer
   ============================================================= */
.footer-mph {
  background:
    radial-gradient(440px 260px at 88% 0%, rgba(32,207,195,.09), transparent 75%),
    #041321;
  border-top: 1px solid rgba(126, 215, 219, .12);
}

.footer-mph .brand,
.footer-col h5 {
  color: #eff9fa;
}

.footer-brand p,
.footer-col a,
.footer-bottom {
  color: #7895a3;
}

.footer-col a:hover {
  color: #5ee1d9;
}

.footer-mph .social-btn {
  color: #9bb2bd;
  background: rgba(255,255,255,.035);
  border-color: rgba(158, 220, 224, .13);
}

.footer-mph .social-btn:hover {
  color: #5ee1d9;
  border-color: rgba(83, 222, 214, .38);
}

.footer-bottom {
  border-color: rgba(155, 219, 223, .10);
}

.to-top {
  color: #fff;
  background: linear-gradient(135deg, #0bbab1, #24c8d3);
  border-color: rgba(255,255,255,.18);
  box-shadow: 0 16px 32px -18px rgba(12,188,178,.9);
}

/* =============================================================
   Dark mode card refinements
   ============================================================= */
html[data-theme="dark"] .feature-card,
html[data-theme="dark"] .theme-card,
html[data-theme="dark"] .pf-card,
html[data-theme="dark"] .proj-card,
html[data-theme="dark"] .t-card,
html[data-theme="dark"] .price-card,
html[data-theme="dark"] .faq-item,
html[data-theme="dark"] .community-update-card,
html[data-theme="dark"] .founder-copy-panel,
html[data-theme="dark"] .founder-portrait-card,
html[data-theme="dark"] .step-item,
html[data-theme="dark"] .assurance-panel {
  box-shadow: 0 20px 54px -38px rgba(0,0,0,.88);
}

/* =============================================================
   Responsive behavior
   ============================================================= */
@media (max-width: 1180px) {
  .nav-links {
    gap: 2px;
  }

  .nav-links a {
    padding: 9px 8px;
    font-size: .82rem;
  }

  .hero-grid {
    grid-template-columns: minmax(0, .95fr) minmax(460px, 1.05fr);
    gap: 42px;
  }

  .hero h1 {
    font-size: clamp(3rem, 5vw, 4.65rem);
  }

  .assurance-panel {
    grid-template-columns: 1.3fr repeat(3, .72fr);
    padding: 20px;
  }

  .assurance-item {
    padding: 0 14px;
  }

  .pricing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  section {
    padding: 82px 0;
  }

  .navbar-mph {
    height: 68px;
  }

  .nav-actions .btn-ghost,
  .nav-actions .btn-primary,
  .nav-actions .btn-outline {
    display: none;
  }

  .theme-toggle {
    display: inline-flex;
  }

  .hero {
    min-height: auto;
    padding: 108px 0 116px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 62px;
  }

  .hero-copy {
    order: 1;
    max-width: 760px;
  }

  .hero-visual {
    order: 2;
  }

  .hero h1 {
    max-width: 800px;
  }

  .hero-visual {
    max-width: 760px;
    width: 100%;
    margin: 0 auto;
  }

  .assurance-panel {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }

  .assurance-community {
    grid-column: 1 / -1;
    padding: 0 0 20px;
    border-bottom: 1px solid var(--border-subtle);
  }

  .assurance-item {
    padding: 0;
    border-left: 0;
  }

  .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .theme-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-info-card,
  .contact-form-card {
    min-height: auto;
  }

  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .container-mph,
  .nav-inner {
    padding-left: 18px;
    padding-right: 18px;
  }

  .brand {
    font-size: .98rem;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .theme-toggle {
    width: 58px;
    flex-basis: 58px;
  }

  html[data-theme="dark"] .theme-toggle-thumb {
    transform: translateX(24px);
  }

  .hero {
    padding: 100px 0 102px;
  }

  .hero h1 {
    font-size: clamp(2.75rem, 12vw, 4.1rem);
  }

  .hero .lead {
    font-size: .99rem;
  }

  .hero-cta .btn-mph {
    width: 100%;
  }

  .hero-benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 12px;
  }

  .hero-benefits strong {
    white-space: normal;
  }

  .hero-meta {
    align-items: flex-start;
  }

  .browser-body {
    min-height: 310px;
  }

  .float-card.card-1 {
    right: 8px;
    top: -26px;
  }

  .float-card.card-2 {
    left: 8px;
    bottom: -30px;
  }

  .assurance-strip {
    margin-top: -36px;
  }

  .assurance-panel {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .assurance-community {
    grid-column: auto;
  }

  .assurance-item {
    min-height: auto;
    padding-top: 12px;
  }

  .stats-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    padding: 18px 10px;
  }

  .stats-row > div {
    padding: 18px 10px;
    border-left: 0;
  }

  .stats-row > div:nth-child(even) {
    border-left: 1px solid rgba(202,235,238,.12);
  }

  .stats-row > div:nth-child(n+3) {
    border-top: 1px solid rgba(202,235,238,.12);
  }

  .feature-grid,
  .theme-grid,
  .showcase-grid,
  .pricing-grid,
  .faq-list {
    grid-template-columns: 1fr;
  }

  .steps-row {
    grid-template-columns: 1fr;
  }

  .step-item {
    min-height: auto;
  }

  .contact-info-card,
  .contact-form-card {
    padding: 22px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    gap: 38px 24px;
  }
}

@media (max-width: 480px) {
  .nav-actions {
    gap: 5px;
  }

  .theme-toggle {
    width: 54px;
    flex-basis: 54px;
    padding: 0 7px;
  }

  html[data-theme="dark"] .theme-toggle-thumb {
    transform: translateX(20px);
  }

  .hero h1 {
    font-size: clamp(2.45rem, 13vw, 3.35rem);
  }

  .hero-benefits {
    grid-template-columns: 1fr;
  }

  .browser-mock {
    border-radius: 16px;
  }

  .browser-body {
    min-height: 260px;
  }

  .float-card {
    font-size: .72rem;
    padding: 9px 11px;
  }

  .assurance-community {
    align-items: flex-start;
    flex-direction: column;
  }

  .stats-row {
    grid-template-columns: 1fr;
  }

  .stats-row > div:nth-child(even) {
    border-left: 0;
  }

  .stats-row > div + div {
    border-top: 1px solid rgba(202,235,238,.12);
  }
}
