/* Coinquire public homepage (index.html) */
.home {
  --k: #0B0B0D;
  --k2: #16161A;
  --k3: #24242A;
  --y: #FDCA15;
  --y-dark: #E5B400;
  --paper: #F7F6F2;
  --text-dim: #B9BAC2;
  background: var(--paper);
  color: #17181C;
}
.home h1, .home h2, .home h3 { color: inherit; letter-spacing: -0.02em; }
.h-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.h-header { position: sticky; top: 0; z-index: 30; background: rgba(11, 11, 13, .94); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(255,255,255,.07); }
.h-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; flex-wrap: wrap; }
.h-logo img { display: block; height: 30px; width: auto; }
.h-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.h-nav a { color: #D9DAE0; text-decoration: none; font-size: 14px; font-weight: 500; padding: 8px 12px; border-radius: 8px; }
.h-nav a:hover { color: #fff; background: rgba(255,255,255,.06); }

.h-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 10px; font-weight: 700; font-size: 14.5px; text-decoration: none; border: 0; cursor: pointer; }
.h-btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
.h-nav a.h-btn-yellow, .h-btn-yellow { background: var(--y); color: var(--k); }
.h-nav a.h-btn-yellow:hover, .h-btn-yellow:hover { background: #FFD94A; color: var(--k); }
.btn.h-btn-dark { background: var(--k); color: #fff; }
.btn.h-btn-dark:hover:not(:disabled) { background: var(--k3); color: #fff; }

/* ---------- Hero ---------- */
.h-hero {
  background: var(--k); color: #fff; padding: 64px 0 40px; position: relative; overflow: hidden;
  background-image:
    radial-gradient(ellipse 60% 55% at 85% 20%, rgba(253, 202, 21, .16), transparent 70%),
    radial-gradient(ellipse 40% 40% at 5% 100%, rgba(253, 202, 21, .07), transparent 70%);
}
.h-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: center; }
.h-kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--y); margin-bottom: 20px; }
.h-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--y); box-shadow: 0 0 0 4px rgba(253, 202, 21, .18); }
.h-hero h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.06; font-weight: 800; margin: 0 0 20px; color: #fff; }
.h-mark { color: var(--y); }
.h-lead { font-size: 18px; line-height: 1.6; color: var(--text-dim); max-width: 560px; margin-bottom: 28px; }
.h-checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.h-checks li { display: flex; gap: 12px; align-items: flex-start; color: #E9EAEE; font-size: 15.5px; }
.h-checks svg { flex: none; width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: rgba(253, 202, 21, .14); stroke: var(--y); fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; margin-top: 1px; }

.h-signin { scroll-margin-top: 90px; }
.h-signin .auth-card { max-width: 440px; margin-left: auto; box-shadow: 0 30px 80px rgba(0,0,0,.45); border: 0; border-top: 4px solid var(--y); }
.h-signin .auth-card h2 { color: #0B0B0D; font-size: 26px; }
.h-signin-foot { display: flex; align-items: center; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.h-signin-foot svg { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.h-signin-foot a { color: #0B0B0D; font-weight: 600; }

.h-stats { margin: 56px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid rgba(255,255,255,.1); }
.h-stats > div { padding: 22px 20px 4px 0; }
.h-stats > div + div { padding-left: 20px; border-left: 1px solid rgba(255,255,255,.1); }
.h-stats dt { font-size: 12.5px; text-transform: uppercase; letter-spacing: .07em; color: #9C9DA6; margin-bottom: 6px; }
.h-stats dd { margin: 0; font-family: var(--display); font-weight: 800; font-size: 20px; color: #fff; }
.h-stats > div:first-child dd, .h-stats > div:nth-child(2) dd { font-size: 30px; color: var(--y); }

/* ---------- Sections ---------- */
.h-section { padding: 88px 0; scroll-margin-top: 60px; }
.h-section-alt { background: #fff; border-top: 1px solid #ECEBE6; border-bottom: 1px solid #ECEBE6; }
.h-section-dark { background: var(--k); color: #fff; }
.h-section-head { max-width: 720px; margin-bottom: 44px; }
.h-eyebrow { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #6B5A10; background: rgba(253, 202, 21, .22); padding: 5px 10px; border-radius: 6px; margin-bottom: 16px; }
.h-section-dark .h-eyebrow { color: var(--y); background: rgba(253, 202, 21, .12); }
.h-section-head h2 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.15; font-weight: 800; margin-bottom: 14px; }
.h-section-head p { font-size: 17px; line-height: 1.6; color: #55575F; }
.h-section-dark .h-section-head p { color: var(--text-dim); }

.h-features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.h-feature { background: #fff; border: 1px solid #E8E7E1; border-radius: 16px; padding: 26px 22px; display: flex; flex-direction: column; gap: 10px; }
.h-feature h3 { font-size: 17px; font-weight: 700; }
.h-feature p { font-size: 14.5px; line-height: 1.6; color: #55575F; }
.h-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--y); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.h-icon svg { width: 22px; height: 22px; stroke: #0B0B0D; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.h-secure { margin-top: 22px; display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: 14px; background: #0B0B0D; color: #D9DAE0; }
.h-secure svg { flex: none; width: 24px; height: 24px; stroke: var(--y); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.h-secure strong { color: #fff; }

.h-services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid #E8E7E1; border-radius: 16px; overflow: hidden; background: #fff; }
.h-service { padding: 24px 22px; border-right: 1px solid #EEEDE8; border-bottom: 1px solid #EEEDE8; position: relative; }
.h-service:nth-child(4n) { border-right: 0; }
.h-service:nth-last-child(-n+4) { border-bottom: 0; }
.h-service::before { content: ""; display: block; width: 28px; height: 4px; border-radius: 4px; background: var(--y); margin-bottom: 14px; }
.h-service h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.h-service p { font-size: 14px; line-height: 1.55; color: #5C5E66; }

.h-orgs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.h-org { border-radius: 18px; padding: 32px; background: #fff; border: 1px solid #E8E7E1; display: flex; flex-direction: column; gap: 14px; }
.h-org-dark { background: #0B0B0D; border-color: #0B0B0D; color: #D9DAE0; }
.h-org img { height: 34px; width: auto; align-self: flex-start; }
.h-org .h-org-name { font-family: Georgia, "Times New Roman", serif; font-size: 30px; line-height: 1; color: #0B0B0D; letter-spacing: -.01em; }
.h-org-name span { color: #B08900; font-style: italic; }
.h-org .h-org-tag { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #6B6D75; }
.h-org-dark .h-org-tag { color: var(--y); }
.h-org p { font-size: 15px; line-height: 1.65; }
.h-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: #0B0B0D; text-decoration: none; margin-top: auto; padding-top: 6px; border-bottom: 2px solid var(--y); align-self: flex-start; }
.h-link:hover { color: #000; border-bottom-color: #0B0B0D; }
.h-link-light { color: #fff; }
.h-link-light:hover { color: var(--y); border-bottom-color: var(--y); }
.h-link svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.h-people { margin-top: 20px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.h-person { display: flex; gap: 14px; align-items: center; padding: 18px; background: #fff; border: 1px solid #E8E7E1; border-radius: 14px; }
.h-initials { flex: none; width: 46px; height: 46px; border-radius: 50%; background: #0B0B0D; color: var(--y); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.h-person-name { font-weight: 700; font-size: 15px; }
.h-person-role { font-size: 13.5px; color: #5C5E66; margin-top: 2px; }

.h-offices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.h-office { font-style: normal; padding: 24px; border-radius: 14px; background: var(--k2); border: 1px solid rgba(255,255,255,.08); color: var(--text-dim); font-size: 14.5px; line-height: 1.6; }
.h-office h3 { color: #fff; font-size: 17px; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.h-office h3::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--y); }
.h-contact { background: var(--y); border-color: var(--y); color: #0B0B0D; display: flex; flex-direction: column; gap: 6px; }
.h-contact h3 { color: #0B0B0D; }
.h-contact h3::before { background: #0B0B0D; }
.h-contact a { color: #0B0B0D; font-weight: 700; font-size: 16px; text-decoration: none; }
.h-contact a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.h-footer { background: #050506; color: #8E9099; padding: 36px 0; border-top: 1px solid rgba(255,255,255,.06); }
.h-footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.h-footer img { height: 22px; width: auto; }
.h-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.h-footer nav a { color: #D9DAE0; text-decoration: none; font-size: 14px; }
.h-footer nav a:hover { color: var(--y); }
.h-legal { flex-basis: 100%; font-size: 12.5px; line-height: 1.6; color: #8E9099; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .h-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .h-signin .auth-card { margin: 0; max-width: 520px; }
  .h-features, .h-services, .h-offices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h-service:nth-child(4n) { border-right: 1px solid #EEEDE8; }
  .h-service:nth-child(2n) { border-right: 0; }
  .h-service:nth-last-child(-n+4) { border-bottom: 1px solid #EEEDE8; }
  .h-service:nth-last-child(-n+2) { border-bottom: 0; }
  .h-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h-stats > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .h-people { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .h-nav a:not(.h-btn) { display: none; }
  .h-orgs { grid-template-columns: 1fr; }
  .h-section { padding: 64px 0; }
}
@media (max-width: 560px) {
  .h-wrap { padding: 0 16px; }
  .h-logo img { height: 24px; }
  .h-hero { padding-top: 40px; }
  .h-lead { font-size: 16px; }
  .h-features, .h-services, .h-offices { grid-template-columns: 1fr; }
  .h-service { border-right: 0 !important; border-bottom: 1px solid #EEEDE8 !important; }
  .h-service:last-child { border-bottom: 0 !important; }
  .h-stats { grid-template-columns: 1fr; }
  .h-stats > div { padding-left: 0 !important; border-left: 0 !important; border-bottom: 1px solid rgba(255,255,255,.08); padding-bottom: 14px; }
  .h-org { padding: 24px; }
  .h-signin .auth-card { padding: 22px 18px; }
}
