/* =========================================
   SWAHUB - GLOBAL STYLE.CSS
   Premium / Corporate / Clean
========================================= */

/* ---------- CSS Variables ---------- */
:root {
    --color-primary: #1b56fd;
    --color-primary-dark: #1243cc;
    --color-primary-soft: #eaf1ff;
  
    --color-text: #172033;
    --color-text-muted: #5e6980;
    --color-heading: #101828;
  
    --color-bg: #f7f9fc;
    --color-surface: #ffffff;
    --color-surface-soft: #f9fbff;
    --color-border: #dbe5f2;
    --color-border-strong: #c7d5ea;
  
    --color-success: #0f9d58;
    --color-shadow: 0 12px 32px rgba(16, 24, 40, 0.08);
    --color-shadow-soft: 0 6px 20px rgba(16, 24, 40, 0.05);
  
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --radius-xl: 28px;
  
    --container-width: 1200px;
  
    --space-1: 8px;
    --space-2: 12px;
    --space-3: 16px;
    --space-4: 20px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 40px;
    --space-8: 56px;
    --space-9: 72px;
  
    --transition: all 0.25s ease;
  }
  
  /* ---------- Reset ---------- */
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }
  
  html {
    scroll-behavior: smooth;
  }
  
  body,
  h1,
  h2,
  h3,
  h4,
  p,
  ul,
  ol,
  figure {
    margin: 0;
    padding: 0;
  }
  
  body {
    font-family: "Inter", sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }
  
  body.nav-open {
    overflow: hidden;
  }
  
  img {
    max-width: 100%;
    display: block;
  }
  
  a {
    color: inherit;
    text-decoration: none;
  }
  
  ul,
  ol {
    padding-left: 20px;
  }
  
  button,
  input,
  textarea,
  select {
    font: inherit;
  }
  
  button {
    border: none;
    background: none;
    cursor: pointer;
  }
  
  /* ---------- Global Layout ---------- */
  .container {
    width: min(100% - 40px, var(--container-width));
    margin: 0 auto;
  }
  
  .section {
    position: relative;
    padding: var(--space-9) 0;
  }
  
  .soft-section {
    background:
      url("../images/backgrounds/hero-grid-bg.svg") center/cover no-repeat,
      linear-gradient(180deg, #fbfdff 0%, #f3f7ff 100%);
  }
  
  .center {
    text-align: center;
  }
  
  .narrow {
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
  }
  
  /* ---------- Background ---------- */
  .site-background {
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
      linear-gradient(180deg, #f8fbff 0%, #f4f7fc 100%),
      url("../images/backgrounds/subtle-noise-bg.svg") center/600px repeat;
  }
  
  /* ---------- Typography ---------- */
  .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 7px 14px;
    border-radius: 999px;
    background: var(--color-primary-soft);
    color: var(--color-primary);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
  }
  
  .highlight {
    color: var(--color-primary);
  }
  
  .section-heading {
    max-width: 860px;
    margin-bottom: var(--space-7);
  }
  
  .section-heading.center {
    margin-left: auto;
    margin-right: auto;
  }
  
  .section-heading h2 {
    color: var(--color-heading);
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 14px;
  }
  
  .section-heading p {
    color: var(--color-text-muted);
    font-size: 17px;
    max-width: 780px;
    margin: 0 auto;
  }
  
  .small-note {
    margin-top: 14px;
    color: var(--color-text-muted);
    font-size: 14px;
  }
  
  .text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--color-primary);
    transition: var(--transition);
  }
  
  .text-link:hover {
    color: var(--color-primary-dark);
    transform: translateX(2px);
  }
  
  /* ---------- Header / Navbar ---------- */
  .site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: rgba(247, 249, 252, 0.88);
    border-bottom: 1px solid rgba(199, 213, 234, 0.5);
    transition: var(--transition);
  }
  
  .site-header.scrolled {
    box-shadow: 0 10px 28px rgba(16, 24, 40, 0.08);
    background: rgba(247, 249, 252, 0.94);
  }
  
  .navbar {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
  }
  
  .brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
  }
  
  .brand-logo {
    width: 42px;
    height: 42px;
    object-fit: cover;
    border-radius: 10px;
  }
  
  .brand-text {
    color: var(--color-heading);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.03em;
  }
  
  .nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
  }
  
  .nav-links a {
    position: relative;
    color: var(--color-text);
    font-size: 15px;
    font-weight: 600;
    transition: var(--transition);
  }
  
  .nav-links a:hover,
  .nav-links a.active {
    color: var(--color-primary);
  }
  
  .nav-links a.active::after,
  .nav-links a:hover::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: var(--color-primary);
  }
  
  .nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  
  .menu-toggle {
    width: 46px;
    height: 46px;
    display: none;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    box-shadow: var(--color-shadow-soft);
  }
  
  .menu-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: var(--color-heading);
    transition: all 0.25s ease;
  }
  
  .menu-toggle.active span:nth-child(1) {
    transform: translateY(3.5px) rotate(45deg);
  }
  
  .menu-toggle.active span:nth-child(2) {
    transform: translateY(-3.5px) rotate(-45deg);
  }
  
  /* ---------- Buttons ---------- */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    transition: var(--transition);
  }
  
  .btn-primary {
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 10px 22px rgba(27, 86, 253, 0.22);
  }
  
  .btn-primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
  }
  
  .btn-secondary {
    background: #fff;
    color: var(--color-heading);
    border: 1px solid var(--color-border);
    box-shadow: var(--color-shadow-soft);
  }
  
  .btn-secondary:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-2px);
  }
  
  /* ---------- Hero ---------- */
  .hero-section,
  .page-hero {
    position: relative;
    padding: 88px 0 72px;
  }
  
  .page-hero::before,
  .hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
      linear-gradient(90deg, rgba(255,255,255,0.82), rgba(255,255,255,0.5)),
      url("../images/backgrounds/swahub-flow-bg.svg") center/cover no-repeat;
    opacity: 1;
    pointer-events: none;
  }
  
  .hero-grid,
  .page-hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 44px;
    align-items: center;
  }
  
  .hero-content,
  .page-hero-content,
  .hero-card,
  .page-hero-panel {
    position: relative;
    z-index: 1;
  }
  
  .hero-content h1,
  .page-hero-content h1 {
    color: var(--color-heading);
    font-size: clamp(40px, 5vw, 68px);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.045em;
    margin-bottom: 18px;
    max-width: 820px;
  }
  
  .hero-text,
  .page-hero-text {
    max-width: 700px;
    color: var(--color-text-muted);
    font-size: 18px;
    margin-bottom: 28px;
  }
  
  .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 28px;
  }
  
  .hero-inline-points,
  .hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }
  
  .hero-inline-points span {
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    color: var(--color-text);
    font-size: 14px;
    font-weight: 600;
    box-shadow: var(--color-shadow-soft);
  }
  
  .hero-trust {
    gap: 14px;
  }
  
  .trust-item {
    flex: 1 1 220px;
    padding: 16px 18px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--color-border);
    box-shadow: var(--color-shadow-soft);
  }
  
  .trust-item strong {
    display: block;
    color: var(--color-heading);
    font-size: 15px;
    margin-bottom: 4px;
  }
  
  .trust-item span {
    color: var(--color-text-muted);
    font-size: 14px;
  }
  
  .hero-card,
  .page-hero-panel {
    position: relative;
  }
  
  .hero-card-inner,
  .hero-panel-card {
    padding: 28px;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(199, 213, 234, 0.7);
    box-shadow: var(--color-shadow);
  }
  
  .mini-label {
    display: inline-block;
    margin-bottom: 18px;
    color: var(--color-primary);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
  }
  
  .flow-list,
  .hero-panel-list {
    display: grid;
    gap: 18px;
  }
  
  .flow-item,
  .hero-panel-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    align-items: start;
  }
  
  .flow-step,
  .process-number {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--color-primary-soft);
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    flex-shrink: 0;
  }
  
  .flow-item h4,
  .hero-panel-item h4,
  .process-card h4,
  .benefit-card h3,
  .info-card h3,
  .trust-card h4,
  .role-cta-card h3 {
    color: var(--color-heading);
    font-size: 18px;
    line-height: 1.3;
    font-weight: 700;
    margin-bottom: 6px;
  }
  
  .flow-item p,
  .hero-panel-item p,
  .process-card p,
  .benefit-card p,
  .info-card p,
  .trust-card p,
  .role-cta-card p {
    color: var(--color-text-muted);
    font-size: 15px;
  }
  
  /* ---------- Cards / Blocks ---------- */
  .split-cards,
  .role-cta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 26px;
  }
  
  .info-card,
  .benefit-card,
  .trust-card,
  .process-card,
  .role-cta-card {
    padding: 28px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--color-shadow-soft);
    transition: var(--transition);
  }
  
  .info-card:hover,
  .benefit-card:hover,
  .trust-card:hover,
  .process-card:hover,
  .role-cta-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(16, 24, 40, 0.08);
    border-color: var(--color-border-strong);
  }
  
  .large-card {
    min-height: 100%;
  }
  
  .full-width-card {
    width: 100%;
  }
  
  .card-tag {
    display: inline-flex;
    margin-bottom: 14px;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--color-primary-soft);
    color: var(--color-primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
  }
  
  .info-card ul,
  .info-card ol {
    margin-top: 16px;
    color: var(--color-text-muted);
  }
  
  .info-card li,
  .ordered-flow li {
    margin-bottom: 10px;
  }
  
  .benefit-grid,
  .trust-grid,
  .process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
  }
  
  .process-card {
    text-align: left;
  }
  
  .process-number {
    margin-bottom: 16px;
  }
  
  /* ---------- Access blocks ---------- */
  .access-points {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 22px 0;
  }
  
  .access-point {
    flex: 1 1 220px;
    padding: 16px;
    border-radius: var(--radius-md);
    background: var(--color-surface-soft);
    border: 1px solid var(--color-border);
  }
  
  .access-point strong {
    display: block;
    color: var(--color-heading);
    font-size: 14px;
    margin-bottom: 4px;
  }
  
  .access-point span {
    color: var(--color-text-muted);
    font-size: 14px;
  }
  
  .card-actions,
  .form-actions,
  .section-action {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
  }
  
  .section-action.center,
  .form-actions {
    justify-content: center;
  }
  
  /* ---------- Founder note ---------- */
  .founder-note {
    padding: 36px;
    border-radius: var(--radius-xl);
    background:
      url("../images/backgrounds/soft-radial-bg.svg") center/cover no-repeat,
      #ffffff;
    border: 1px solid rgba(199, 213, 234, 0.75);
    box-shadow: var(--color-shadow-soft);
    max-width: 980px;
    margin: 0 auto;
  }
  
  .founder-note h2 {
    color: var(--color-heading);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 14px;
  }
  
  .founder-note p {
    color: var(--color-text-muted);
    font-size: 17px;
  }
  
  /* ---------- FAQ ---------- */
  .faq-list {
    display: grid;
    gap: 16px;
    max-width: 980px;
    margin: 0 auto;
  }
  
  .faq-item {
    padding: 20px 22px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--color-shadow-soft);
    transition: var(--transition);
  }
  
  .faq-item[open] {
    border-color: var(--color-primary);
  }
  
  .faq-item summary {
    list-style: none;
    cursor: pointer;
    color: var(--color-heading);
    font-size: 17px;
    font-weight: 700;
    position: relative;
    padding-right: 28px;
  }
  
  .faq-item summary::-webkit-details-marker {
    display: none;
  }
  
  .faq-item summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 0;
    color: var(--color-primary);
    font-size: 22px;
    line-height: 1;
    font-weight: 500;
  }
  
  .faq-item[open] summary::after {
    content: "–";
  }
  
  .faq-item p {
    margin-top: 12px;
    color: var(--color-text-muted);
    font-size: 15px;
  }
  
  /* ---------- Forms ---------- */
  .contact-form-wrap {
    max-width: 920px;
    margin: 0 auto;
    padding: 32px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--color-shadow);
  }
  
  .contact-form {
    display: grid;
    gap: 18px;
  }
  
  .form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
  
  .form-group {
    display: grid;
    gap: 8px;
  }
  
  .form-group label {
    color: var(--color-heading);
    font-size: 14px;
    font-weight: 700;
  }
  
  .form-group input,
  .form-group textarea,
  .form-group select {
    width: 100%;
    min-height: 52px;
    padding: 0 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: #fff;
    color: var(--color-text);
    transition: var(--transition);
  }
  
  .form-group textarea {
    min-height: 140px;
    padding: 14px 16px;
    resize: vertical;
  }
  
  .form-group input:focus,
  .form-group textarea:focus,
  .form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(27, 86, 253, 0.08);
  }
  
  /* ---------- Footer ---------- */
  .site-footer {
    padding-top: var(--space-8);
    background: #0f1726;
    color: rgba(255, 255, 255, 0.82);
    margin-top: var(--space-9);
  }
  
  .footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr;
    gap: 32px;
    padding-bottom: 36px;
  }
  
  .footer-brand-link .brand-text {
    color: #fff;
  }
  
  .footer-brand p {
    margin: 16px 0;
    color: rgba(255, 255, 255, 0.72);
    max-width: 360px;
  }
  
  .footer-mail {
    color: #9db9ff;
    font-weight: 600;
  }
  
  .footer-links h4 {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 14px;
  }
  
  .footer-links a {
    display: block;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 10px;
    font-size: 15px;
    transition: var(--transition);
  }
  
  .footer-links a:hover {
    color: #fff;
  }
  
  .footer-bottom {
    padding: 18px 0 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
  
  .footer-bottom p {
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
  }
  
  /* ---------- Illustration / Icon Helpers ---------- */
  .section-illustration {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    object-fit: contain;
  }
  
  .illustration-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .feature-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 16px;
    object-fit: contain;
  }
  
  /* ---------- Reveal Animations ---------- */
  .section,
  .info-card,
  .benefit-card,
  .trust-card,
  .process-card,
  .role-cta-card,
  .founder-note,
  .hero-card-inner,
  .hero-panel-card,
  .contact-form-wrap {
    opacity: 0;
    transform: translateY(18px);
    transition:
      opacity 0.6s ease,
      transform 0.6s ease;
    transition-delay: var(--reveal-delay, 0s);
  }
  
  .section.revealed,
  .info-card.revealed,
  .benefit-card.revealed,
  .trust-card.revealed,
  .process-card.revealed,
  .role-cta-card.revealed,
  .founder-note.revealed,
  .hero-card-inner.revealed,
  .hero-panel-card.revealed,
  .contact-form-wrap.revealed {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* ---------- Utilities ---------- */
  .startup-card {
    border-color: rgba(27, 86, 253, 0.18);
    background:
      url("../images/backgrounds/soft-radial-bg.svg") center/cover no-repeat,
      rgba(255, 255, 255, 0.96);
  }
  
  .contributor-card {
    border-color: rgba(27, 86, 253, 0.18);
    background:
      url("../images/backgrounds/soft-radial-bg.svg") center/cover no-repeat,
      rgba(255, 255, 255, 0.96);
  }
  
  .center .btn,
  .center .text-link {
    margin-inline: auto;
  }