/* ==========================================================================
   SIGMA SCANNER — footer.css
   §14 Footer · one of only two dark surfaces on the whole page.

   ---------------------------------------------------------------------------
   WHY THIS BARELY TOUCHES COLOUR
   ---------------------------------------------------------------------------
   [data-theme="dark"] (style.css @layer tokens) already remaps every --ink-*
   and --paper token to its dark-surface equivalent, and --signal-700/600 to
   their higher-contrast dark-surface variants. Every rule below reaches for
   the SAME token names components use everywhere else on this page — the
   dark-appropriate values fall out of the cascade for free. This file is
   almost entirely layout; the two --glass-*-dark tokens (already defined in
   style.css specifically for this scope) are what make the newsletter row
   genuine dark-mode glass rather than a hand-rolled approximation.

   ---------------------------------------------------------------------------
   LAYER DISCIPLINE
   ---------------------------------------------------------------------------
   Base rules and every responsive override live together in
   @layer components — an override left in @layer layout has silently lost
   to a components-layer base rule twice already in this project, regardless
   of specificity or matching media query.
   ========================================================================== */

@layer components {

  /* ========================================================================
     SHELL
     ======================================================================== */
  .ss-footer {
    position: relative;
    isolation: isolate;
    overflow: clip;
    background-image: var(--grad-deep);
    border-block-start: 1px solid var(--deep-700);
    padding-block-start: var(--section-y-airy);
    padding-block-end: var(--sp-8);
  }

  /* A slow-rotating conic sweep, not a pair of drifting blobs — §12's
     stage already owns that motif (two radial-gradient blobs translating
     and scaling independently) and reusing it here would read as the same
     effect copy-pasted rather than two sections each with their own
     signature. This one rotates continuously from a fixed point above the
     content, like a searchlight sweeping the same soft arc — same "elegant
     gradient" brief, a different shape of motion. */
  .footer__glow {
    position: absolute;
    inset-block-start: -60%;
    inset-inline: -20%;
    block-size: 140%;
    z-index: 0;
    pointer-events: none;
    overflow: clip;
  }
  .footer__glow::before {
    content: "";
    position: absolute;
    inset: 0;
    background: conic-gradient(from 0deg at 50% 0%,
      rgb(34 197 94 / 0)    0deg,
      rgb(34 197 94 / .16)  70deg,
      rgb(74 222 128 / .1) 150deg,
      rgb(34 197 94 / 0)   230deg,
      rgb(34 197 94 / 0)   360deg);
    filter: blur(64px);
    transform-origin: 50% 22%;
  }
  [data-motion="full"] .footer__glow::before { animation: footer-aurora-sweep 28s linear infinite; }

  .ss-footer .ss-container { position: relative; z-index: 1; }

  /* ========================================================================
     STATEMENT — large logo + large headline
     ======================================================================== */
  .footer__statement { margin-block-end: var(--sp-13); }

  .footer__logo { block-size: 34px; inline-size: auto; margin-block-end: var(--sp-6); }

  .footer__headline {
    font-family: var(--font-display);
    font-weight: var(--fw-bold);
    font-size: clamp(2rem, 1.5rem + 2.5vw, 3.25rem);
    line-height: 1.05;
    letter-spacing: var(--ls-h1);
    color: var(--ink-900);
    max-inline-size: 16ch;
  }


  /* ========================================================================
     TOP — newsletter + link columns
     ======================================================================== */
  .footer__top {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-10);
    padding-block-end: var(--sp-11);
    border-block-end: 1px solid var(--deep-700);
  }

  .footer__col-title {
    font-size: var(--fs-eyebrow);
    letter-spacing: var(--ls-eyebrow);
    text-transform: uppercase;
    font-weight: var(--fw-semibold);
    color: var(--ink-400);
    margin-block-end: var(--sp-5);
  }

  .footer__col ul { display: flex; flex-direction: column; gap: var(--sp-3); }
  .footer__col ul li { font-size: var(--fs-sm); color: var(--ink-500); }
  .footer__col ul li a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    gap: var(--sp-2);
    color: var(--ink-500);
    transition: color var(--dur-fast) var(--ease-out-quad);
  }
  .footer__col ul li a .ss-icon { inline-size: 15px; block-size: 15px; }
  .footer__col ul li a:hover { color: var(--ink-900); }

  /* ---------- NEWSLETTER ---------------------------------------------------- */
  .footer__newsletter-copy { font-size: var(--fs-sm); color: var(--ink-500); margin-block-end: var(--sp-5); max-inline-size: 34ch; }

  .footer__newsletter-row {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    padding: var(--sp-2) var(--sp-2) var(--sp-2) var(--sp-5);
    border-radius: var(--r-full);
    background: var(--glass-bg-dark);
    -webkit-backdrop-filter: var(--glass-blur-dark);
    backdrop-filter: var(--glass-blur-dark);
    border: 1px solid rgb(255 255 255 / .08);
  }
  .footer__newsletter-input {
    flex: 1 1 auto;
    min-inline-size: 0;
    border: 0;
    background: none;
    font-size: var(--fs-sm);
    color: var(--deep-fg);
  }
  .footer__newsletter-input::placeholder { color: var(--deep-fg-muted); }
  .footer__newsletter-input:focus-visible { outline: none; }
  .footer__newsletter-submit { flex: none; white-space: nowrap; }

  .footer__newsletter-note { margin-block-start: var(--sp-3); font-size: var(--fs-xs); color: var(--ink-400); }

  .footer__newsletter-success {
    display: none;
    align-items: center;
    gap: var(--sp-2);
    margin-block-start: var(--sp-3);
    padding: var(--sp-3) var(--sp-5);
    border-radius: var(--r-full);
    background: rgb(34 197 94 / .12);
    color: var(--signal-400);
    font-size: var(--fs-sm);
    font-weight: 600;
  }
  .footer__newsletter.is-sent .footer__newsletter-row,
  .footer__newsletter.is-sent .footer__newsletter-note { display: none; }
  .footer__newsletter.is-sent .footer__newsletter-success { display: flex; }

  .footer__socials { display: flex; gap: var(--sp-3); margin-block-start: var(--sp-6); }
  .footer__social {
    display: flex;
    align-items: center;
    justify-content: center;
    inline-size: 40px; block-size: 40px;
    border-radius: 50%;
    background: rgb(255 255 255 / .06);
    border: 1px solid var(--deep-700);
    color: var(--ink-400);
    transition: background-color var(--dur-fast) var(--ease-out-quad), color var(--dur-fast) var(--ease-out-quad), transform var(--dur-fast) var(--ease-out-quad);
  }
  .footer__social:hover { background: rgb(34 197 94 / .14); color: var(--signal-400); transform: translateY(-2px); }


  

  /* ========================================================================
     BOTTOM
     ======================================================================== */
  .footer__bottom {
    display: flex;
    flex-direction: column;
    gap: var(--sp-4);
    padding-block: var(--sp-7);
    font-size: var(--fs-xs);
    color: var(--ink-400);
  }

  .footer__legal-links { display: flex; gap: var(--sp-5); }
  .footer__legal-links a { color: var(--ink-400); text-decoration: none; text-underline-offset: .18em; transition: color var(--dur-fast) var(--ease-out-quad); }
  .footer__legal-links a:hover { color: var(--ink-900); }

  .footer__cvd-toggle {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    align-self: flex-start;
    padding: var(--sp-2) var(--sp-4);
    border-radius: var(--r-full);
    border: 1px solid var(--deep-700);
    color: var(--ink-400);
    font-size: var(--fs-xs);
    font-weight: 600;
    transition: border-color var(--dur-fast) var(--ease-out-quad), color var(--dur-fast) var(--ease-out-quad);
  }
  .footer__cvd-toggle .ss-icon { inline-size: 14px; block-size: 14px; }
  .footer__cvd-toggle:hover { border-color: var(--signal-400); color: var(--signal-400); }
  .footer__cvd-toggle[aria-pressed="true"] { border-color: var(--signal-400); color: var(--signal-400); background: rgb(34 197 94 / .1); }

  .footer__disclaimer {
    max-inline-size: 90ch;
    font-size: 11px;
    line-height: 1.7;
    color: var(--ink-300);
    padding-block-start: var(--sp-6);
    border-block-start: 1px solid var(--deep-700);
  }


  /* =========================================
   SUPPORT SECTION
========================================= */
.gs-community-section{
    padding:60px 20px;
}

.gs-community-box{
/* max-width: px; */
    margin: auto;
    background: #0b2a1b;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 34px 40px;
    overflow: hidden;
    position: relative;
}

/* Background circles */

.gs-community-box::after{

    content:"";

    position:absolute;

    right:280px;
    top:-180px;

    width:500px;
    height:500px;

    border-radius:50%;

    border:1px solid rgba(255,255,255,.08);

    box-shadow:
    0 0 0 35px rgba(255,255,255,.05),
    0 0 0 70px rgba(255,255,255,.04),
    0 0 0 105px rgba(255,255,255,.03),
    0 0 0 140px rgba(255,255,255,.02);

}

/* Hash */

.gs-community-hash{

    font-size:55px;

    color:#10a050;

    font-weight:800;

    line-height:1;

}

/* Content */

.gs-community-content{

    flex:1;

    z-index:2;

}

.gs-community-content h3{

    color:#fff;

    font-size:20px;

    margin-bottom:12px;

}

.gs-community-content p{

    color:#cfd6df;

    line-height:1.7;

    font-size:13px;

    max-width:600px;

}

/* Members */

.gs-community-members{

    display:flex;

    align-items:center;

    margin-right:20px;

    z-index:2;

}

.gs-community-members img{

    width:50px;
    height:50px;

    border-radius:50%;

    object-fit:cover;

    border:3px solid #2f4b69;

    margin-left:-12px;

}

.gs-community-members img:first-child{

    margin-left:0;

}

.gs-community-count{

    width:50px;
    height:50px;

    border-radius:50%;

    background:#10a050;

    color:#fff;

    display:flex;
    align-items:center;
    justify-content:center;

    font-weight:700;

    margin-left:-12px;

}

/* Button */

.gs-community-btn{

    background:#10a050;

    color:#fff;

    text-decoration:none;

    padding:16px 33px;

    border-radius:14px;

    font-size:12px;

    font-weight:700;

    display:flex;
    align-items:center;

    gap:12px;

    transition:.3s;

    z-index:2;

}

.gs-community-btn:hover{

    background:#ffb21d;

    transform:translateY(-2px);

    box-shadow:0 12px 25px rgba(255, 153, 0, 0);

}

/* =========================================
   COMMUNITY SECTION - RESPONSIVE
========================================= */

/* =========================================
   TABLET
========================================= */

@media (max-width: 991px) {

  .gs-community-section {
    padding: 50px 24px;
  }

  .gs-community-box {
    max-width: 100%;
    padding: 32px;
    gap: 25px;
  }

  .gs-community-hash {
    font-size: 48px;
  }

  .gs-community-content h3 {
    font-size: 20px;
  }

  .gs-community-content p {
    font-size: 13px;
    line-height: 1.6;
  }

  .gs-community-members {
    margin-right: 0;
  }

  .gs-community-members img,
  .gs-community-count {
    width: 45px;
    height: 45px;
  }

  .gs-community-btn {
    padding: 14px 22px;
  }
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 767px) {

  .gs-community-section {
    padding: 40px 20px;
  }

  .gs-community-box {
    width: 100%;
    min-height: auto;
    padding: 32px 28px;
    border-radius: 24px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;

    gap: 20px;
  }

  /* Background circles */
  .gs-community-box::after {
    right: -180px;
    top: -120px;

    width: 400px;
    height: 400px;
  }

  /* Hash */
  .gs-community-hash {
    font-size: 45px;
    line-height: 1;

    position: relative;
    z-index: 2;
  }

  /* Content */
  .gs-community-content {
    width: 100%;
    flex: none;
    position: relative;
    z-index: 2;
  }

  .gs-community-content h3 {
    font-size: 22px;
    line-height: 1.25;
    margin: 0 0 12px;
  }

  .gs-community-content p {
    max-width: 100%;
    font-size: 14px;
    line-height: 1.65;
    margin: 0;
  }

  /* Members */
  .gs-community-members {
    width: 100%;
    margin: 0;

    display: flex;
    align-items: center;
    justify-content: flex-start;

    position: relative;
    z-index: 3;
  }

  .gs-community-members img {
    width: 42px;
    height: 42px;
    border-width: 2px;
  }

  .gs-community-count {
    width: 46px;
    height: 46px;
    font-size: 12px;
    margin-left: -10px;
  }

  /* Button */
  .gs-community-btn {
    width: 100%;
    justify-content: center;

    padding: 14px 20px;
    border-radius: 12px;

    font-size: 13px;
  }
}


/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 480px) {

  .gs-community-section {
    padding: 30px 16px;
  }

  .gs-community-box {
    padding: 28px 24px;
    border-radius: 22px;
    gap: 18px;
  }

  .gs-community-box::after {
    right: -210px;
    top: -100px;

    width: 360px;
    height: 360px;
  }

  .gs-community-hash {
    font-size: 40px;
  }

  .gs-community-content h3 {
    font-size: 21px;
    line-height: 1.25;
  }

  .gs-community-content p {
    font-size: 13px;
    line-height: 1.7;
  }

  .gs-community-members img {
    width: 40px;
    height: 40px;
  }

  .gs-community-count {
    width: 43px;
    height: 43px;
    font-size: 11px;
  }

  .gs-community-btn {
    font-size: 12px;
    padding: 13px 18px;
  }
}

  /* ========================================================================
     MOTION
     ======================================================================== */
  @keyframes footer-aurora-sweep {
    to { transform: rotate(360deg); }
  }

  /* ========================================================================
     RESPONSIVE — all in @layer components, see file header
     ======================================================================== */
  @media (min-width: 640px) {
    .footer__bottom { flex-direction: row; align-items: center; justify-content: space-between; }
  }

  @media (min-width: 900px) {
    .footer__top { grid-template-columns: 1fr 1fr 1fr 1fr 1fr; }
  }
}
