/* RiseHub.in — styles */

:root {
  --navy-950: #071325;
  --navy-900: #0b1a30;
  --navy-800: #112646;
  --navy-700: #1a3560;
  --ink: #0f1b2d;
  --text: #33415c;
  --muted: #5b6b85;
  --line: #dfe5ee;
  --line-strong: #c9d3e1;
  --surface: #ffffff;
  --surface-alt: #f4f7fb;
  --accent: #0f766e;        /* teal for text/buttons on light (AA) */
  --accent-strong: #115e59;
  --accent-bright: #5eead4; /* teal on dark */
  --accent-soft: #e6f5f3;
  --blue-soft: #e8f0fd;
  --focus: #2563eb;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(15, 27, 45, .06);
  --shadow: 0 1px 2px rgba(15, 27, 45, .05), 0 8px 24px -8px rgba(15, 27, 45, .12);

  --container: 1160px;
  --gutter: 24px;
  --header-h: 68px;

  --font: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--accent); }
img, svg { display: block; max-width: 100%; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
@media (max-width: 600px) { :root { --gutter: 16px; } }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius-sm);
  font-weight: 600;
  box-shadow: var(--shadow);
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: .975rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .925rem; }
.btn svg { width: 16px; height: 16px; flex: none; }

.btn-primary { background: var(--navy-900); color: #fff; }
.btn-primary:hover { background: var(--navy-700); }

.btn-accent { background: #14b8a6; color: var(--navy-950); }
.btn-accent:hover { background: var(--accent-bright); }

.btn-ghost-light { border-color: rgba(255,255,255,.28); color: #fff; background: rgba(255,255,255,.04); }
.btn-ghost-light:hover { border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.1); }

.btn-outline { border-color: var(--line-strong); color: var(--ink); background: var(--surface); }
.btn-outline:hover { border-color: var(--ink); }

.btn-launch { background: var(--accent); color: #fff; width: 100%; }
.btn-launch:hover { background: var(--accent-strong); }

.btn-dark-focus:focus-visible,
.hero :focus-visible,
.contact-card :focus-visible,
.site-footer :focus-visible { outline-color: var(--accent-bright); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy-900);
}
.brand-mark { width: 32px; height: 32px; color: var(--navy-900); }
.brand-word { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); }
.brand-word span { color: var(--accent); }
.brand-light .brand-mark { color: var(--accent-bright); }
.brand-light .brand-word { color: #fff; }
.brand-light .brand-word span { color: var(--accent-bright); }

.site-nav { display: flex; align-items: center; gap: 28px; }
.nav-list { display: flex; gap: 4px; }
.nav-list a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
}
.nav-list a:hover { color: var(--ink); background: var(--surface-alt); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  position: relative;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  position: absolute;
  left: 50%;
  width: 18px; height: 2px;
  margin-left: -9px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle-bars { top: 50%; margin-top: -1px; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; left: 0; margin-left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .site-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 12px var(--gutter) 20px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px -12px rgba(15,27,45,.18);
  }
  .js .site-nav:not(.is-open) { display: none; }
  .nav-list { flex-direction: column; gap: 2px; }
  .nav-list a { padding: 12px; font-size: 1rem; }
  .nav-cta { min-height: 46px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(900px 480px at 85% 10%, rgba(20, 184, 166, .12), transparent 60%),
    var(--navy-900);
  color: #c4d1e4;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent 85%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent 85%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 56px;
  padding-top: 88px;
  padding-bottom: 96px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.25rem, 4.6vw, 3.6rem);
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin-top: 14px;
}
.hero-lead {
  margin-top: 22px;
  font-size: 1.125rem;
  max-width: 34em;
  color: #c4d1e4;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 36px;
}
.hero-tags li {
  padding: 5px 12px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  font-size: .85rem;
  color: #aebfd8;
}
.hero-visual svg { width: 100%; height: auto; filter: drop-shadow(0 30px 50px rgba(0,0,0,.35)); }

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; padding-top: 64px; padding-bottom: 72px; }
  .hero-visual { max-width: 520px; }
}
@media (max-width: 600px) {
  .hero-inner { padding-top: 48px; padding-bottom: 56px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-lead { font-size: 1.05rem; }
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--surface-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (max-width: 600px) { .section { padding: 64px 0; } }

.eyebrow {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow-light { color: var(--accent-bright); }

.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(1.75rem, 3vw, 2.35rem); margin-top: 10px; }
.section-lead { margin-top: 14px; font-size: 1.075rem; color: var(--muted); }

/* ---------- Directory ---------- */
.directory-tools {
  display: grid;
  grid-template-columns: minmax(260px, 380px) 1fr;
  gap: 24px 32px;
  align-items: end;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-alt);
}
@media (max-width: 860px) { .directory-tools { grid-template-columns: 1fr; } }

.search-field label,
.filter-label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}
.search-input-wrap { position: relative; }
.search-icon {
  position: absolute;
  left: 14px; top: 50%;
  width: 18px; height: 18px;
  transform: translateY(-50%);
  fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round;
  pointer-events: none;
}
.search-field input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px 0 42px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  font: inherit;
  color: var(--ink);
}
.search-field input::placeholder { color: #7a879c; }
.search-field input:hover { border-color: #aab7ca; }
.search-field input:focus-visible { border-color: var(--focus); outline-offset: 1px; border-radius: 10px; }

.filter-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-btn {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: .9rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.filter-btn:hover { border-color: var(--ink); color: var(--ink); }
.filter-btn[aria-pressed="true"] { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.filter-count {
  min-width: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--surface-alt);
  font-size: .78rem;
  font-weight: 600;
  line-height: 20px;
  text-align: center;
  color: var(--muted);
}
.filter-btn[aria-pressed="true"] .filter-count { background: rgba(255,255,255,.16); color: #fff; }

.results-status { margin: 20px 0 16px; font-size: .9rem; color: var(--muted); }

.platform-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 1100px) { .platform-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .platform-grid { grid-template-columns: 1fr; } }

.card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.card.is-live:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }

.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.card-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  flex: none;
}
.card-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  white-space: nowrap;
}
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-live { background: var(--accent-soft); color: var(--accent-strong); }
.status-pending { background: var(--surface-alt); color: var(--muted); border: 1px solid var(--line); }

.card-category {
  margin-top: 20px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
}
.card h3 { margin-top: 6px; font-size: 1.2rem; }
.card-tagline { margin-top: 4px; font-size: .925rem; font-weight: 500; color: var(--ink); opacity: .75; }
.card-desc { margin-top: 12px; font-size: .95rem; color: var(--muted); flex: 1; }

.card-action { margin-top: 24px; }
.card-action-note { margin-top: 8px; font-size: .8rem; color: var(--muted); text-align: center; }
.launch-pending {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 16px;
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  background: var(--surface-alt);
  color: var(--muted);
  font-size: .925rem;
  font-weight: 600;
  cursor: default;
}
.launch-pending svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.card-apps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}
.card-apps li {
  padding: 3px 10px;
  border-radius: 6px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  font-size: .8rem;
  font-weight: 500;
  color: var(--text);
}
.card .btn-launch svg { width: 16px; height: 16px; }

/* ---------- Platform pop-up ---------- */
html.dialog-open { overflow: hidden; }
.apps-dialog {
  width: min(760px, calc(100% - 32px));
  max-height: calc(100% - 48px);
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 30px 80px -20px rgba(7, 19, 37, .45);
}
.apps-dialog::backdrop { background: rgba(7, 19, 37, .6); }
.apps-dialog[open] { animation: dialog-in .18s ease-out; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.dialog-panel { padding: 28px; }
.dialog-head { display: flex; align-items: flex-start; gap: 16px; }
.dialog-heading { flex: 1; min-width: 0; }
.dialog-heading .card-category { margin-top: 0; }
.dialog-heading h2 { margin-top: 4px; font-size: 1.5rem; }
.dialog-close {
  flex: none;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
.dialog-close:hover { background: var(--surface-alt); }
.dialog-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.dialog-desc { margin-top: 16px; color: var(--muted); }

.app-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 24px;
}
.app-box {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.app-box.is-live { border-color: var(--line-strong); }
.app-box h3 { margin-top: 16px; font-size: 1.075rem; }
.app-box .card-action { margin-top: 20px; }
.card-icon-sm { width: 40px; height: 40px; border-radius: 10px; }
.card-icon-sm svg { width: 20px; height: 20px; }
.app-empty {
  grid-column: 1 / -1;
  padding: 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  text-align: center;
  color: var(--muted);
}
.dialog-note { margin-top: 20px; font-size: .85rem; color: var(--muted); }

@media (max-width: 600px) {
  .apps-dialog { width: calc(100% - 24px); max-height: calc(100% - 24px); }
  .dialog-panel { padding: 20px; }
  .dialog-head .card-icon { display: none; }
  .app-grid { grid-template-columns: 1fr; }
}

.empty-state {
  margin-top: 8px;
  padding: 40px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  text-align: center;
  color: var(--muted);
}
.empty-state .btn { margin-top: 16px; }
.empty-title { font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.noscript-note { padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); }

/* ---------- How it works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.step-num {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--navy-900);
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
}
.step h3 { margin-top: 18px; font-size: 1.1rem; }
.step p { margin-top: 8px; color: var(--muted); font-size: .95rem; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ---------- About ---------- */
.about-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: start;
}
.about-copy h2 { font-size: clamp(1.75rem, 3vw, 2.35rem); margin-top: 10px; }
.about-copy p:not(.eyebrow) { margin-top: 16px; font-size: 1.05rem; }
.principles { display: grid; gap: 14px; }
.principles li {
  display: flex;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.principle-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: var(--blue-soft);
  color: #1d4ed8;
  flex: none;
}
.principle-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.principles h3 { font-size: 1rem; }
.principles p { margin-top: 2px; color: var(--muted); font-size: .95rem; }
@media (max-width: 860px) { .about-inner { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Contact ---------- */
.contact-section { padding-top: 0; }
.contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px 40px;
  padding: 48px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(20,184,166,.16), transparent 60%),
    var(--navy-900);
  color: #c4d1e4;
}
.contact-card h2 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: 8px; }
.contact-text { margin-top: 10px; max-width: 36em; }
.contact-text a { color: var(--accent-bright); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 600px) {
  .contact-card { padding: 32px 24px; }
  .contact-actions, .contact-actions .btn { width: 100%; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: #9fb0c8; padding: 56px 0 32px; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand p { margin-top: 12px; font-size: .925rem; }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.footer-nav a {
  display: block;
  padding: 8px 10px;
  color: #c4d1e4;
  text-decoration: none;
  font-size: .95rem;
  border-radius: 6px;
}
.footer-nav a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px 40px;
  padding-top: 24px;
  font-size: .85rem;
}
.footer-note { max-width: 46em; }
