/* ============================================================
   NEWSOLVA — LANDING STYLES
   Bagian dari MEA Ecosystem. Memakai token warna resmi
   (lihat shared/token/token-color.css di project induk) —
   nilai di-inline di sini sebagai fallback standalone.
   ============================================================ */

:root {
    --mea-bg: #010615;
    --mea-surface: #0A0A0A;
    --mea-surface-raised: #121212;
    --mea-border: #2A2A2A;
    --mea-border-strong: #3A3A3A;

    --mea-text-primary: #FAFAFA;
    --mea-text-secondary: #A1A1A1;
    --mea-text-muted: #6B6B6B;
    --mea-text-disabled: #4A4A4A;

    --mea-accent: #3B82F6;
    --mea-accent-hover: #2563EB;
    --mea-accent-muted: rgba(59, 130, 246, 0.12);
    --mea-accent-text: #81D4FA;
    --mea-brand-gradient: linear-gradient(135deg, var(--mea-accent), var(--mea-accent-text));

    --mea-success: #22C55E;
    --mea-success-text: #4ADE80;
    --mea-success-bg: rgba(34, 197, 94, 0.12);

    --mea-radius-sm: 6px;
    --mea-radius-md: 8px;
    --mea-radius-lg: 12px;

    color-scheme: dark;
  }

  * { box-sizing: border-box; }

  html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
  }

  body {
    margin: 0;
    background: var(--mea-bg);
    color: var(--mea-text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
  }

  h1, h2, h3 {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    margin: 0;
    letter-spacing: -0.02em;
  }

  p { margin: 0; }

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

  img, svg { display: block; max-width: 100%; }

  .wrap {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
  }

  /* ===== background texture ===== */
  .bg-field {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background: var(--mea-bg);
  }

  .bg-field::before {
    content: "";
    position: absolute;
    inset: -10%;
    background:
      radial-gradient(ellipse 50% 40% at 20% 15%, rgba(59,130,246,0.18), transparent 60%),
      radial-gradient(ellipse 45% 35% at 85% 10%, rgba(129,212,250,0.10), transparent 60%),
      radial-gradient(ellipse 60% 50% at 50% 100%, rgba(59,130,246,0.08), transparent 65%);
    animation: drift 24s ease-in-out infinite alternate;
  }

  .bg-field::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  }

  @keyframes drift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-3%, 2%); }
  }

  @media (prefers-reduced-motion: reduce) {
    .bg-field::before { animation: none; }
  }

  /* ===== navbar — mengikuti .site-header induk MEA Ecosystem ===== */
  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(8, 17, 32, 0.55);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
  }

  .site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
  }

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

  .brand-lockup img { width: 30px; height: 30px; }

  .brand-lockup span {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px;
    letter-spacing: 0.05em;
    color: var(--mea-text-primary);
  }

  .nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 12px 24px;
    border-radius: var(--mea-radius-sm);
    background: var(--mea-accent);
    color: #061121;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
    white-space: nowrap;
  }

  .nav-cta:hover { background: #ffffff; transform: translateY(-1px); }

  /* ===== hero ===== */
  .hero {
    min-height: calc(100vh - 64px);
    min-height: calc(100svh - 64px);
    padding-top: calc(64px + clamp(1.5rem, 4vw, 2.5rem));
    padding-bottom: clamp(2rem, 5vw, 3rem);
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
  }

  .eyebrow-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: var(--mea-accent-muted);
    border: 1px solid rgba(59,130,246,0.3);
    font-size: 0.82rem;
    color: var(--mea-accent-text);
    margin-bottom: 1.5rem;
  }

  .eyebrow-badge .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--mea-accent-text);
  }

  .hero h1 {
    font-size: clamp(2rem, 3.6vw, 3.1rem);
    line-height: 1.1;
    font-weight: 600;
  }

  .hero h1 em {
    font-style: normal;
    background: var(--mea-brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  .hero-sub {
    margin-top: 1.1rem;
    font-size: clamp(0.95rem, 1.4vw, 1.08rem);
    color: var(--mea-text-secondary);
    max-width: 34rem;
  }

  .hero-actions {
    margin-top: 1.6rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
  }

  .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.6rem;
    border-radius: var(--mea-radius-md);
    background: var(--mea-accent);
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
  }

  .btn-primary:hover { background: var(--mea-accent-hover); transform: translateY(-1px); }

  .btn-primary:disabled {
    background: var(--mea-success);
    cursor: default;
    transform: none;
  }

  .btn-ghost {
    font-size: 0.9rem;
    color: var(--mea-text-secondary);
    border-bottom: 1px solid var(--mea-border-strong);
    padding-bottom: 2px;
  }

  .notif-hint {
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: var(--mea-text-muted);
  }

  /* ===== hero visual: event linking demo ===== */
  .link-demo {
    position: relative;
    height: clamp(14rem, 22vw, 17rem);
  }

  .news-card {
    position: absolute;
    width: 15.5rem;
    padding: 1rem 1.1rem;
    border-radius: var(--mea-radius-lg);
    background: var(--mea-surface);
    border: 1px solid var(--mea-border);
    box-shadow: 0 20px 50px -20px rgba(0,0,0,0.6);
  }

  .news-card.a {
    top: 0;
    left: 0;
    animation: floatA 7s ease-in-out infinite;
  }

  .news-card.b {
    bottom: 0;
    right: 0;
    animation: floatB 7s ease-in-out infinite;
  }

  @keyframes floatA {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
  }
  @keyframes floatB {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
  }

  @media (prefers-reduced-motion: reduce) {
    .news-card.a, .news-card.b { animation: none; }
  }

  .news-card .src {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--mea-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.6rem;
  }

  .news-card .src .flag { font-size: 0.85rem; }

  .news-card .headline {
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--mea-text-primary);
  }

  .link-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
  }

  .link-svg path {
    stroke: url(#linkGrad);
    stroke-width: 1.6;
    fill: none;
    stroke-dasharray: 6 6;
    animation: dash 1.6s linear infinite;
  }

  @keyframes dash {
    to { stroke-dashoffset: -24; }
  }

  @media (prefers-reduced-motion: reduce) {
    .link-svg path { animation: none; }
  }

  .cluster-pill {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: var(--mea-surface-raised);
    border: 1px solid rgba(59,130,246,0.35);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--mea-accent-text);
    white-space: nowrap;
    box-shadow: 0 0 24px rgba(59,130,246,0.25);
  }

  /* ===== sections generic ===== */
  section { padding-block: clamp(4rem, 10vw, 7rem); }

  .section-head {
    max-width: 38rem;
    margin-bottom: clamp(2.5rem, 6vw, 3.5rem);
  }

  .section-head h2 {
    font-size: clamp(1.7rem, 3.2vw, 2.3rem);
    font-weight: 600;
    line-height: 1.2;
  }

  .section-head p {
    margin-top: 0.9rem;
    color: var(--mea-text-secondary);
    font-size: 1.02rem;
  }

  /* ===== how it works: asymmetric row layout ===== */
  .how-rows {
    display: flex;
    flex-direction: column;
  }

  .how-row {
    display: grid;
    grid-template-columns: 5rem 1fr 1.4fr;
    gap: 1.5rem;
    align-items: start;
    padding-block: 1.8rem;
    border-bottom: 1px solid var(--mea-border);
    transition: padding-left 0.2s ease;
  }

  .how-row:first-child { border-top: 1px solid var(--mea-border); }

  .how-row:hover { padding-left: 0.6rem; }

  .how-mark {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    color: var(--mea-text-muted);
    padding-top: 0.2rem;
  }

  .how-row h3 {
    font-size: 1.12rem;
    font-weight: 600;
  }

  .how-row p {
    color: var(--mea-text-secondary);
    font-size: 0.96rem;
    max-width: 34rem;
  }

  /* ===== whitelist sources ===== */
  .sources-note {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--mea-text-muted);
    margin-bottom: 1.8rem;
  }

  .sources-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    row-gap: 0.9rem;
    border-top: 1px solid var(--mea-border);
    padding-top: 1.6rem;
  }

  .source-item {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--mea-text-secondary);
    transition: color 0.15s ease;
  }

  .source-item:hover { color: var(--mea-text-primary); }

  .source-sep {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--mea-border-strong);
    margin-inline: 1.1rem;
    flex-shrink: 0;
  }

  .source-item.more {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.88rem;
    color: var(--mea-text-muted);
  }

  /* ===== notify section ===== */
  .notify {
    border-radius: var(--mea-radius-lg);
    border: 1px solid var(--mea-border);
    background: linear-gradient(180deg, rgba(59,130,246,0.06), transparent);
    padding: clamp(2.5rem, 6vw, 3.5rem);
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 2rem;
    align-items: center;
  }

  .notify h2 {
    font-size: clamp(1.5rem, 2.8vw, 2rem);
    font-weight: 600;
    line-height: 1.25;
  }

  .notify p {
    margin-top: 0.8rem;
    color: var(--mea-text-secondary);
    max-width: 30rem;
  }

  .notify-action { display: flex; flex-direction: column; align-items: flex-start; gap: 0.6rem; }

  @media (max-width: 52rem) {
    .notify-action { align-items: stretch; }
  }

  /* ===== ad slot ===== */
  .ad-slot {
    border: 1px dashed var(--mea-border-strong);
    border-radius: var(--mea-radius-md);
    padding: 1.4rem;
    text-align: center;
    color: var(--mea-text-muted);
    font-size: 0.78rem;
    letter-spacing: 0.03em;
  }

  /* ===== footer — mengikuti .site-footer induk MEA Ecosystem ===== */
  .site-footer {
    border-top: 1px solid var(--mea-border);
    padding: 28px 0;
  }

  .footer-inner {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
  }

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

  .footer-brand img { width: 20px; height: 20px; }

  .footer-brand span {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    letter-spacing: 0.04em;
    color: var(--mea-text-primary);
  }

  .footer-copyright {
    font-size: 12px;
    color: var(--mea-text-muted);
  }

  .footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 13px;
    color: var(--mea-text-secondary);
  }

  .footer-links a:hover { color: var(--mea-accent-text); }

  .footer-social {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
  }

  .footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    color: var(--mea-text-secondary);
    transition: color .15s ease, background-color .15s ease, transform .15s ease;
  }

  .footer-social a svg { width: 13px; height: 13px; }

  .footer-social a:hover {
    color: var(--mea-accent-text);
    background: var(--mea-accent-muted);
    transform: translateY(-1px);
  }

  @media (max-width: 40rem) {
    .footer-row { justify-content: center; text-align: center; }
    .footer-row-top { flex-direction: column; align-items: center; }
    .footer-row-top .footer-copyright { order: 3; width: 100%; text-align: center; }
    .footer-row-bottom { flex-direction: column; align-items: center; }
    .footer-links { justify-content: center; }
    .footer-social { justify-content: center; }
  }

  /* ===== responsive ===== */
  @media (max-width: 58rem) {
    .hero { grid-template-columns: 1fr; min-height: auto; }
    .link-demo { margin-top: 1rem; }
    .how-row { grid-template-columns: 3rem 1fr; }
    .how-row p { grid-column: 2; }
    .notify { grid-template-columns: 1fr; }
  }

  :focus-visible {
    outline: 2px solid var(--mea-accent-text);
    outline-offset: 2px;
  }
