:root {
      --bg: #08131f;
      --text: #f7fbff;
      --muted: rgba(237,244,255,0.76);
      --soft: rgba(237,244,255,0.56);
      --gold: #f1d28d;
      --shadow: 0 24px 64px rgba(0,0,0,0.22);
      --radius-pill: 999px;
      --container: min(1240px, calc(100% - 32px));
    }
    * { box-sizing: border-box; }
    html, body {
      margin: 0;
      min-height: 100%;
      background: var(--bg);
      color: var(--text);
      font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    }
    body { position: relative; overflow-x: hidden; isolation: isolate; }
    a, button { -webkit-tap-highlight-color: transparent; }
    .bg-root, .poster-layer, .yt-layer, .fallback-layer, .overlay-layer, .glow-layer, .transition-layer { position: fixed; inset: 0; }
    .bg-root { z-index: -6; background: #07121d; overflow: hidden; }
    .poster-layer {
      z-index: -5;
      background: url('assets/coast-gateway-poster.jpg') center center / cover no-repeat;
      transform: scale(1.025);
      filter: saturate(0.95) contrast(1.02) brightness(0.9);
    }
    .yt-layer, .fallback-layer { z-index: -4; opacity: 0; transition: opacity 1.2s ease; pointer-events: none; }
    body.yt-ready .yt-layer, body.fallback-ready .fallback-layer { opacity: 1; }
    .yt-stage, .fallback-video {
      position: absolute;
      top: 50%;
      left: 50%;
      width: max(177.78vh, 100vw);
      height: max(56.25vw, 100vh);
      min-width: 100vw;
      min-height: 100vh;
      transform: translate(-50%, -50%) scale(1.12);
      object-fit: cover;
      object-position: center center;
      border: 0;
      background: transparent;
      filter: saturate(0.92) contrast(1.04) brightness(0.78);
    }
    .overlay-layer {
      z-index: -3;
      background:
        linear-gradient(180deg, rgba(4,10,18,0.28) 0%, rgba(4,10,18,0.18) 20%, rgba(4,10,18,0.16) 48%, rgba(3,8,15,0.54) 100%),
        radial-gradient(circle at 50% 8%, rgba(255,255,255,0.06), transparent 28%),
        linear-gradient(90deg, rgba(5,12,21,0.22) 0%, rgba(5,12,21,0.04) 18%, rgba(5,12,21,0.04) 82%, rgba(5,12,21,0.22) 100%);
      pointer-events: none;
    }
    .glow-layer {
      z-index: -2;
      background:
        radial-gradient(circle at 15% 26%, rgba(66,145,240,0.10), transparent 26%),
        radial-gradient(circle at 82% 16%, rgba(241,210,141,0.08), transparent 20%),
        radial-gradient(circle at 50% 100%, rgba(61,128,220,0.12), transparent 30%);
      mix-blend-mode: screen;
      pointer-events: none;
    }
    .transition-layer {
      z-index: 30;
      opacity: 0;
      pointer-events: none;
      background: linear-gradient(180deg, rgba(5,11,18,0.74), rgba(3,8,15,0.96));
      transition: opacity .32s ease;
    }
    .transition-layer.active { opacity: 1; pointer-events: auto; }
    .shell {
      position: relative;
      z-index: 2;
      width: var(--container);
      min-height: 100vh;
      margin: 0 auto;
      padding: clamp(18px, 2vw, 28px) 0 0;
      display: grid;
      grid-template-rows: auto auto 1fr auto;
      gap: 18px;
    }
    .glass {
      background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.018));
      border: 1px solid rgba(255,255,255,0.09);
      box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.08);
      backdrop-filter: blur(18px);
      -webkit-backdrop-filter: blur(18px);
    }
    .topbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
      padding: 16px 18px;
      border-radius: 24px;
      animation: fadeUp .72s cubic-bezier(.2,.7,.2,1) both;
    }
    .brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
    .logo-shell {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 60px;
      padding: 10px 16px;
      border-radius: 20px;
      background: linear-gradient(180deg, rgba(255,255,255,0.024), rgba(255,255,255,0.008));
      border: 1px solid rgba(255,255,255,0.045);
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.045);
    }
    .logo-shell img { display: block; width: clamp(146px, 15vw, 208px); height: auto; }
    .brand-copy { min-width: 0; }
    .eyebrow {
      margin: 0 0 6px;
      color: var(--gold);
      font-size: 0.72rem;
      font-weight: 800;
      letter-spacing: 0.2em;
      text-transform: uppercase;
    }
    .brand-title {
      margin: 0;
      font-size: clamp(1rem, 0.52vw + 0.94rem, 1.22rem);
      font-weight: 740;
      letter-spacing: 0.02em;
    }
    .brand-subtitle { margin: 4px 0 0; color: var(--soft); font-size: 0.92rem; }
    .gateway-banner {
      position: relative;
      justify-self: center;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 72px;
      padding: 0 34px;
      border-radius: var(--radius-pill);
      background: linear-gradient(180deg, rgba(255,255,255,0.065), rgba(255,255,255,0.022));
      border: 1px solid rgba(255,255,255,0.11);
      box-shadow: 0 20px 44px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.09);
      backdrop-filter: blur(18px);
      -webkit-backdrop-filter: blur(18px);
      overflow: hidden;
      animation: fadeUp .82s cubic-bezier(.2,.7,.2,1) .05s both;
    }
    .gateway-banner::before {
      content: "";
      position: absolute;
      inset: 1px;
      border-radius: inherit;
      background: linear-gradient(180deg, rgba(255,255,255,0.045), transparent 64%);
      pointer-events: none;
    }
    .gateway-banner::after {
      content: "";
      position: absolute;
      left: 24%;
      right: 24%;
      top: 17px;
      height: 1px;
      background: linear-gradient(90deg, transparent, rgba(241,210,141,0.34), transparent);
      opacity: 0.8;
      pointer-events: none;
    }
    .gateway-banner span {
      position: relative;
      display: inline-flex;
      align-items: center;
      gap: 14px;
      padding: 0 6px;
      font-size: clamp(1.26rem, 0.95vw + 1rem, 1.82rem);
      font-weight: 800;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      white-space: nowrap;
      background: linear-gradient(180deg, #fffbf3 0%, #f6e3ba 58%, #d7b16a 100%);
      background-clip: text;
      -webkit-background-clip: text;
      color: transparent;
      -webkit-text-fill-color: transparent;
      filter: drop-shadow(0 10px 28px rgba(0,0,0,0.18));
    }
    .gateway-banner span::before,
    .gateway-banner span::after {
      content: "";
      width: 18px;
      height: 1px;
      background: linear-gradient(90deg, transparent, rgba(241,210,141,0.85), transparent);
      opacity: 0.86;
      flex: 0 0 auto;
    }
    .gateway-panel {
      border-radius: 30px;
      padding: clamp(18px, 2.5vw, 24px);
      animation: fadeUp .9s cubic-bezier(.2,.7,.2,1) .1s both;
    }
    .gateway-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
    .gateway-card {
      position: relative;
      display: flex;
      flex-direction: column;
      min-height: 214px;
      padding: 18px 18px 16px;
      border-radius: 24px;
      text-decoration: none;
      color: var(--text);
      overflow: hidden;
      background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.018));
      border: 1px solid rgba(255,255,255,0.09);
      box-shadow: 0 18px 40px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.08);
      backdrop-filter: blur(18px);
      -webkit-backdrop-filter: blur(18px);
      transition: transform .32s cubic-bezier(.2,.8,.2,1), border-color .32s ease, box-shadow .32s ease, background .32s ease;
    }
    .gateway-card::before {
      content: "";
      position: absolute;
      inset: 0;
      background:
        radial-gradient(circle at 82% 14%, rgba(241,210,141,0.10), transparent 28%),
        radial-gradient(circle at 10% 92%, rgba(67,149,240,0.10), transparent 32%);
      opacity: 0.7;
      pointer-events: none;
    }
    .gateway-card::after {
      content: "";
      position: absolute;
      inset: -42% auto auto -20%;
      width: 40%;
      height: 180%;
      background: linear-gradient(120deg, transparent, rgba(255,255,255,0.12), transparent);
      transform: translateX(-145%) rotate(12deg);
      opacity: 0;
      pointer-events: none;
    }
    .gateway-card:hover, .gateway-card:focus-visible {
      transform: translateY(-6px) scale(1.01);
      border-color: rgba(255,255,255,0.16);
      box-shadow: 0 28px 60px rgba(0,0,0,0.24), 0 0 0 1px rgba(255,255,255,0.04), 0 0 24px rgba(74,165,255,0.10);
      background: linear-gradient(180deg, rgba(255,255,255,0.068), rgba(255,255,255,0.02));
      outline: none;
    }
    .gateway-card:hover::after, .gateway-card:focus-visible::after { animation: shimmer 1.05s ease forwards; opacity: 1; }
    .gateway-card.recommended {
      border-color: rgba(241,210,141,0.40);
      box-shadow: 0 24px 56px rgba(0,0,0,0.24), 0 0 0 1px rgba(241,210,141,0.06), 0 0 18px rgba(241,210,141,0.10);
    }
    .recommended-pill {
      position: absolute;
      top: 14px;
      right: 14px;
      display: inline-flex;
      align-items: center;
      min-height: 30px;
      padding: 0 10px;
      border-radius: var(--radius-pill);
      background: rgba(241,210,141,0.10);
      border: 1px solid rgba(241,210,141,0.18);
      color: #ffe9b6;
      font-size: 0.7rem;
      font-weight: 800;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      pointer-events: none;
    }
    .card-top { display: flex; align-items: center; gap: 10px; min-width: 0; padding-right: 88px; }
    .flag {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 40px;
      height: 40px;
      border-radius: 14px;
      background: rgba(255,255,255,0.05);
      border: 1px solid rgba(255,255,255,0.07);
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
      font-size: 1.3rem;
      line-height: 1;
      flex: 0 0 auto;
    }
    .card-arrow {
      color: rgba(255,255,255,0.5);
      font-size: 0.98rem;
      flex: 0 0 auto;
      transition: transform .24s ease, color .24s ease;
    }
    .gateway-card:hover .card-arrow, .gateway-card:focus-visible .card-arrow { color: #fff; transform: translateX(2px); }
    .language {
      color: rgba(246,250,255,0.98);
      font-size: 1.04rem;
      font-weight: 760;
      letter-spacing: 0.01em;
      line-height: 1.35;
      min-width: 0;
    }
    .card-body { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; min-height: 0; }
    .localized-name {
      margin: 0;
      color: rgba(244,248,255,0.82);
      font-size: 0.98rem;
      line-height: 1.58;
      min-height: 5em;
    }
    .domain {
      margin-top: auto;
      padding-top: 12px;
      color: var(--gold);
      font-size: 0.86rem;
      font-weight: 720;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      opacity: 0.95;
    }
    .recommendation-popup {
      position: fixed;
      left: 50%;
      bottom: calc(26px + env(safe-area-inset-bottom));
      transform: translateX(-50%) translateY(16px);
      width: min(560px, calc(100% - 32px));
      z-index: 15;
      border-radius: 22px;
      padding: 12px 14px;
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      align-items: center;
      gap: 10px 14px;
      background: linear-gradient(180deg, rgba(7,18,30,0.38), rgba(7,18,30,0.24));
      border: 1px solid rgba(255,255,255,0.09);
      box-shadow: 0 18px 44px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.06);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      opacity: 0;
      pointer-events: none;
      transition: opacity .32s ease, transform .32s ease;
    }
    .recommendation-popup.visible {
      opacity: 1;
      pointer-events: auto;
      transform: translateX(-50%) translateY(0);
    }
    .recommendation-label {
      margin: 0 0 4px;
      color: var(--gold);
      text-transform: uppercase;
      letter-spacing: 0.14em;
      font-size: 0.6rem;
      font-weight: 800;
    }
    .recommendation-title {
      margin: 0;
      font-size: clamp(0.92rem, 0.34vw + 0.9rem, 1.04rem);
      line-height: 1.28;
      letter-spacing: -0.01em;
    }
    .recommendation-copy {
      margin: 5px 0 0;
      color: var(--muted);
      font-size: 0.84rem;
      line-height: 1.42;
    }
    .button {
      appearance: none;
      border: 0;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: transform .24s ease, box-shadow .24s ease, background .24s ease, border-color .24s ease, opacity .24s ease;
      min-height: 44px;
      padding: 0 16px;
      border-radius: var(--radius-pill);
      color: #08111f;
      font-weight: 760;
      letter-spacing: 0.02em;
      white-space: nowrap;
      background: linear-gradient(135deg, #fff7df, #f1d18b 48%, #d7a850 100%);
      box-shadow: 0 14px 28px rgba(172,122,32,0.18), inset 0 1px 0 rgba(255,255,255,0.72);
    }
    .button:hover, .button:focus-visible { transform: translateY(-2px); outline: none; }
    .recommendation-domain {
      color: var(--gold);
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      font-size: 0.72rem;
      opacity: 0.88;
      margin-top: 7px;
    }
    .footer-bar {
      min-height: 154px;
      display: flex;
      align-items: flex-end;
      justify-content: flex-start;
      padding: 14px 6px 18px;
    }
    .footer-note {
      color: rgba(244,248,255,0.62);
      font-size: 0.8rem;
      letter-spacing: 0.03em;
      text-shadow: 0 4px 20px rgba(0,0,0,0.22);
    }
    .whatsapp-float {
      position: fixed;
      z-index: 16;
      right: 20px;
      bottom: calc(18px + env(safe-area-inset-bottom));
      width: 62px;
      height: 62px;
      border-radius: 50%;
      display: inline-grid;
      place-items: center;
      background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04));
      border: 1px solid rgba(255,255,255,0.16);
      box-shadow: 0 18px 44px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.10);
      backdrop-filter: blur(18px);
      -webkit-backdrop-filter: blur(18px);
      text-decoration: none;
      overflow: hidden;
    }
    .whatsapp-float::before {
      content: "";
      position: absolute;
      inset: 5px;
      border-radius: 50%;
      background: radial-gradient(circle at 30% 28%, #41ef76 0%, #23cf59 54%, #15ae49 100%);
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.30), 0 10px 24px rgba(14,103,45,0.32);
    }
    .whatsapp-float::after {
      content: "";
      position: absolute;
      inset: 0;
      border-radius: 50%;
      background: linear-gradient(180deg, rgba(255,255,255,0.18), transparent 48%);
      opacity: 0.62;
      pointer-events: none;
    }
    .whatsapp-float:hover, .whatsapp-float:focus-visible {
      transform: translateY(-3px);
      box-shadow: 0 24px 54px rgba(0,0,0,0.32), 0 0 20px rgba(36, 198, 87, 0.16), inset 0 1px 0 rgba(255,255,255,0.12);
      outline: none;
    }
    .whatsapp-float svg {
      position: relative;
      z-index: 1;
      width: 28px;
      height: 28px;
      display: block;
      color: #fff;
      transform: translate(0.5px, 0.5px);
      filter: drop-shadow(0 4px 12px rgba(0,0,0,0.18));
    }
    @keyframes fadeUp {
      from { opacity: 0; transform: translateY(18px); }
      to { opacity: 1; transform: translateY(0); }
    }
    @keyframes shimmer {
      from { transform: translateX(-145%) rotate(12deg); }
      to { transform: translateX(360%) rotate(12deg); }
    }
    @media (max-width: 1080px) { .gateway-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
    @media (max-width: 780px) {
      .shell {
        padding-top: 16px;
        gap: 16px;
      }
      .topbar {
        padding: 16px 14px;
        justify-content: center;
      }
      .brand {
        width: 100%;
        gap: 10px;
        flex-direction: column;
        justify-content: center;
        text-align: center;
      }
      .logo-shell {
        margin: 0 auto;
        min-height: 64px;
        padding: 12px 18px;
      }
      .logo-shell img {
        width: min(220px, 64vw);
      }
      .brand-copy {
        display: block;
        text-align: center;
      }
      .eyebrow {
        margin: 0 0 5px;
        font-size: 0.62rem;
        letter-spacing: 0.18em;
      }
      .brand-title {
        font-size: 1rem;
      }
      .brand-subtitle {
        margin-top: 4px;
        font-size: 0.82rem;
      }
      .gateway-banner {
        min-height: 62px;
        padding: 0 22px;
      }
      .gateway-banner::after {
        left: 18%;
        right: 18%;
        top: 15px;
      }
      .gateway-banner span {
        gap: 10px;
        font-size: 1.08rem;
        letter-spacing: 0.13em;
      }
      .gateway-banner span::before,
      .gateway-banner span::after {
        width: 12px;
      }
      .gateway-grid { grid-template-columns: 1fr; }
      .gateway-card { min-height: 192px; }
      .localized-name { min-height: 0; }
      .recommendation-popup {
        width: min(392px, calc(100% - 28px));
        left: 50%;
        right: auto;
        bottom: calc(105px + env(safe-area-inset-bottom));
        transform: translateX(-50%) translateY(16px);
        grid-template-columns: 1fr;
        padding: 10px 12px;
        gap: 8px;
        border-radius: 20px;
      }
      .recommendation-popup.visible { transform: translateX(-50%) translateY(0); }
      .recommendation-title { font-size: 0.9rem; }
      .recommendation-copy {
        font-size: 0.78rem;
        line-height: 1.36;
      }
      .recommendation-domain {
        margin-top: 5px;
        font-size: 0.68rem;
      }
      .button { width: 100%; min-height: 42px; }
      .footer-bar {
        min-height: 244px;
        padding: 22px 4px 18px;
      }
      .footer-note {
        font-size: 0.74rem;
        max-width: 100%;
      }
      .whatsapp-float {
        right: 16px;
        bottom: calc(16px + env(safe-area-inset-bottom));
        width: 58px;
        height: 58px;
      }
      .whatsapp-float::before { inset: 5px; }
      .whatsapp-float svg { width: 26px; height: 26px; }
    }
    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
      }
    }
