/*
  ClarityInvest — Shared Stylesheet (Authoritative)
  Updated: 2026-01-27
*/

:root{
  --bg: #0b0f14;
  --panel: rgba(255,255,255,0.055);
  --panel2: rgba(255,255,255,0.035);
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.68);
  --faint: rgba(255,255,255,0.46);
  --border: rgba(255,255,255,0.10);
  --shadow: 0 10px 30px rgba(0,0,0,0.35);
  --accent: #4bd0b0;

  --radius: 6px;
  --radius2: 0px;
  --max: 1040px;

  --focus: 0 0 0 4px rgba(75,208,176,0.14);

  --h1: clamp(32px, 4.4vw, 56px);
  --h1-lh: 1.06;
  --h1-tracking: -0.02em;

  --h2: 14px;
  --h2-tracking: 0.16em;

  --p: 15px;
  --p-lh: 1.55;
}

*{ box-sizing: border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body::before{
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 20% 10%, rgba(75,208,176,0.08), transparent 55%),
    radial-gradient(900px 520px at 80% 0%, rgba(75,208,176,0.05), transparent 60%);
  z-index: -1;
}

a{ color: inherit; text-decoration: none; }

.wrap{
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 20px 96px;
}

/* =========================
   Typography
   ========================= */

h1{
  margin: 12px 0 14px;
  font-size: var(--h1);
  line-height: var(--h1-lh);
  letter-spacing: var(--h1-tracking);
  font-weight: 780;
}

p{
  margin: 0 0 12px;
  color: var(--muted);
  font-size: var(--p);
  line-height: var(--p-lh);
}

.sub{
  margin: 0 0 14px;
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 18px);
  max-width: 80ch;
}

.micro{
  color: var(--faint);
  font-size: 13px;
}

/* =========================
   Header / Navigation
   ========================= */

.top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
  padding: 6px 2px 28px;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
}

.brand img{
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}

.brand .wordmark{
  letter-spacing: 0.18em;
  font-weight: 700;
  font-size: 12px;
  color: var(--muted);
}

.nav{
  display:flex;
  gap: 10px;
  align-items:center;
}

.nav a{
  padding: 10px 12px;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 13px;
}

.nav a:hover{
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.84);
}

/* =========================
   Buttons
   ========================= */

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 0;              /* square, on-brand */
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.06);
  box-shadow: var(--shadow);
  font-weight: 700;
}

.btnPrimary{
  background: linear-gradient(
    180deg,
    rgba(75,208,176,0.18),
    rgba(255,255,255,0.06)
  );
  border-color: rgba(75,208,176,0.35);
}

.btnSecondary{
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.22);
  color: rgba(255,255,255,0.78);
}

/* =========================
   Cards
   ========================= */

.card{
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--panel), var(--panel2));
  border-radius: 0;              /* CHANGED: square corners */
  padding: 22px;
}

/* NEW: opt-in elevation for premium SaaS feel */
.cardElevated{
  box-shadow: 0 18px 50px rgba(0,0,0,0.45);
}

.sectionTitle,
.card h2{
  font-size: var(--h2);
  letter-spacing: var(--h2-tracking);
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
  font-weight: 760;
  margin-bottom: 12px;
}

/* NEW: subtle micro-motion for premium feel (safe defaults) */
.card, .btn, .nav a{
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:hover{
  transform: translateY(-1px);
}

.nav a:hover{
  transform: translateY(-1px);
}

/* =========================
   Footer
   ========================= */

.footer{
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.08);

  display:flex;
  flex-wrap: wrap;              /* allow breathing */
  justify-content:space-between;
  align-items: center;

  gap: 12px 28px;               /* vertical | horizontal spacing */

  color: var(--faint);
  font-size: 12px;
}

/* Footer links spacing (force separation) */
.footer > div:last-child{
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;         /* vertical | horizontal */
  justify-content: flex-end;
  align-items: center;
}

.footer > div:last-child a{
  padding: 6px 14px;
  border-radius: 0;       /* square, on-brand */
  display: inline-flex;   /* makes padding actually matter */
}

/* =========================
   Process / Step Cards
   ========================= */

.processGrid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.processStep{
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--panel), var(--panel2));
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.processTop{
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.processNum{
  width: 32px;
  height: 32px;
  border: 2px solid rgba(75,208,176,0.55);
  background: rgba(75,208,176,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: rgba(255,255,255,0.9);
}

.processTitle{
  font-weight: 780;
  letter-spacing: -0.01em;
  font-size: 16px;
  line-height: 1.15;
}

.processBody{
  color: var(--muted);
  font-size: 15px;
  line-height: 1.35;
}

@media (max-width: 860px){
  .processGrid{
    grid-template-columns: 1fr;
  }
}



/* =========================
   Mobile Navigation
   ========================= */

/* Button container */
.menuBtn{
  display: none;                /* hidden on desktop */
  width: 44px;
  height: 44px;
  border-radius: var(--radius2);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.05);
  align-items: center;
  justify-content: center;
}

/* Hamburger / X icon */
.menuIcon{
  position: relative;
  width: 22px;
  height: 16px;
}

.menuIcon span{
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(255,255,255,0.9);
  transition: transform 0.25s ease, opacity 0.2s ease;
  transform-origin: center;
}

.menuIcon span:nth-child(1){ top: 0; }
.menuIcon span:nth-child(2){ top: 7px; }
.menuIcon span:nth-child(3){ top: 14px; }

/* X state */
.menuBtn[aria-expanded="true"] .menuIcon span:nth-child(1){
  transform: translateY(7px) rotate(45deg);
}
.menuBtn[aria-expanded="true"] .menuIcon span:nth-child(2){
  opacity: 0;
}
.menuBtn[aria-expanded="true"] .menuIcon span:nth-child(3){
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 860px){
  .menuBtn{ display:flex; }

  .top{ position: relative; flex-wrap: nowrap; }
  .nav{ display:none; }

  .nav.isOpen{
    display:flex;
    flex-direction:column;
    position:absolute;
    right:0;
    top:58px;
    min-width:220px;
    padding:10px;
    background: rgba(10,12,16,0.92);
    border:1px solid rgba(255,255,255,0.10);
    backdrop-filter: blur(12px);
    z-index:80;
  }

  .nav.isOpen a{
    padding:12px;
    border-radius: var(--radius);
  }
}
