@import url("https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Nunito:wght@600;700;800&display=swap");

:root {
      --slate: #334155;
      --coral: #f87171;
      --light: #f8fafc;
      --white: #ffffff;
      --text: #1e293b;
      --border: #e2e8f0;
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    html, body {
      height: 100%;
    }

    body {
      font-family: 'Lato', sans-serif;
      color: var(--text);
      line-height: 1.6;
      background: var(--white);
    }

    img {
      max-width: 100%;
      height: auto;
      display: block;
    }

    /* Header & Nav */
    header {
      background: var(--white);
      border-bottom: 1px solid var(--border);
      padding: 1.5rem 2rem;
      position: sticky;
      top: 0;
      z-index: 100;
    }

    header > div {
      max-width: 1200px;
      margin: 0 auto;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .brand {
      display: flex;
      flex-direction: column;
      gap: 0.25rem;
    }

    .brand h1 {
      font-family: 'Nunito', sans-serif;
      font-size: 1.25rem;
      font-weight: 800;
      color: var(--slate);
    }

    .brand p {
      font-size: 0.75rem;
      color: var(--coral);
      font-weight: 600;
      letter-spacing: 0.05em;
    }

    nav a {
      margin-left: 2rem;
      text-decoration: none;
      color: var(--text);
      font-weight: 600;
      font-size: 0.95rem;
      transition: color 0.2s;
    }

    nav a:hover {
      color: var(--coral);
    }

    nav a.active {
      color: var(--coral);
      border-bottom: 2px solid var(--coral);
      padding-bottom: 0.25rem;
    }

    /* Hero Section */
    .hero {
      position: relative;
      height: 500px;
      overflow: hidden;
      background: var(--slate);
    }

    .hero-image {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
    }

    .hero-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .hero-scrim {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(51, 65, 85, 0.5);
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
    }

    .hero-content h2 {
      font-family: 'Nunito', sans-serif;
      font-size: 3.5rem;
      font-weight: 800;
      color: var(--white);
      margin-bottom: 0.5rem;
    }

    .hero-content p {
      font-size: 1.25rem;
      color: var(--light);
      font-weight: 300;
    }

    /* Main Content */
    main {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 2rem;
    }

    section {
      padding: 4rem 0;
    }

    section:nth-child(odd) {
      background: var(--white);
    }

    section:nth-child(even) {
      background: var(--light);
      margin: 0 -2rem;
      padding: 4rem 2rem;
    }

    section h2 {
      font-family: 'Nunito', sans-serif;
      font-size: 2.5rem;
      font-weight: 800;
      color: var(--slate);
      margin-bottom: 0.5rem;
    }

    section h3 {
      font-family: 'Nunito', sans-serif;
      font-size: 1.1rem;
      font-weight: 600;
      color: var(--coral);
      margin-bottom: 1.5rem;
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }

    section p {
      color: var(--text);
      margin-bottom: 1rem;
      line-height: 1.8;
    }

    /* Mission Section */
    #platform_mission {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 3rem;
      align-items: center;
    }

    #platform_mission > div:first-child {
      order: 1;
    }

    #platform_mission > div:last-child {
      order: 2;
    }

    #platform_mission img {
      border-radius: 12px;
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    }

    /* Content Pillars Grid */
    .pillars-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 1.5rem;
      margin-top: 2rem;
    }

    .pillar-card {
      background: var(--white);
      padding: 2rem;
      border-radius: 8px;
      border: 1px solid var(--border);
      text-align: center;
      transition: transform 0.2s, box-shadow 0.2s;
    }

    .pillar-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    }

    .pillar-card h4 {
      font-family: 'Nunito', sans-serif;
      font-size: 1.2rem;
      font-weight: 700;
      color: var(--slate);
      margin-bottom: 0.75rem;
    }

    .pillar-card p {
      font-size: 0.95rem;
      color: #64748b;
    }

    /* Featured Games Grid */
    .games-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 2rem;
      margin-top: 2rem;
    }

    .game-card {
      background: var(--white);
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
      transition: transform 0.2s;
    }

    .game-card:hover {
      transform: translateY(-6px);
    }

    .game-card-image {
      height: 200px;
      overflow: hidden;
      background: var(--slate);
    }

    .game-card-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .game-card-content {
      padding: 1.5rem;
    }

    .game-card h4 {
      font-family: 'Nunito', sans-serif;
      font-size: 1.1rem;
      font-weight: 700;
      color: var(--slate);
      margin-bottom: 0.5rem;
    }

    .game-card p {
      font-size: 0.9rem;
      color: #64748b;
      margin-bottom: 1rem;
    }

    .game-tags {
      display: flex;
      gap: 0.5rem;
      flex-wrap: wrap;
    }

    .tag {
      display: inline-block;
      background: var(--light);
      color: var(--slate);
      padding: 0.25rem 0.75rem;
      border-radius: 20px;
      font-size: 0.75rem;
      font-weight: 600;
    }

    /* CTA Section */
    #cta_explore {
      text-align: center;
      padding: 5rem 2rem;
    }

    #cta_explore h2 {
      margin-bottom: 2rem;
    }

    .cta-links {
      display: flex;
      justify-content: center;
      gap: 2rem;
      flex-wrap: wrap;
    }

    .cta-link {
      display: inline-block;
      padding: 0.75rem 1.5rem;
      background: var(--coral);
      color: var(--white);
      text-decoration: none;
      border-radius: 6px;
      font-weight: 600;
      transition: background 0.2s;
    }

    .cta-link:hover {
      background: #f97316;
    }

    .cta-link.secondary {
      background: var(--slate);
    }

    .cta-link.secondary:hover {
      background: #1e293b;
    }

    /* Footer */
    footer {
      background: var(--slate);
      color: var(--light);
      margin-top: 3rem;
    }

    .footer-top {
      max-width: 1200px;
      margin: 0 auto;
      padding: 3rem 2rem;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 2rem;
    }

    .footer-col h4 {
      font-family: 'Nunito', sans-serif;
      font-size: 1rem;
      font-weight: 700;
      margin-bottom: 1rem;
      color: var(--white);
    }

    .footer-col p {
      font-size: 0.9rem;
      margin-bottom: 0.5rem;
      color: var(--light);
    }

    .footer-col a {
      display: block;
      font-size: 0.9rem;
      color: var(--light);
      text-decoration: none;
      margin-bottom: 0.5rem;
      transition: color 0.2s;
    }

    .footer-col a:hover {
      color: var(--coral);
    }

    .footer-bottom {
      border-top: 1px solid rgba(255, 255, 255, 0.1);
      padding: 1.5rem 2rem;
      text-align: center;
      font-size: 0.85rem;
      color: var(--light);
      max-width: 1200px;
      margin: 0 auto;
    }

    /* Responsive */
    @media (max-width: 768px) {
      header > div {
        flex-direction: column;
        gap: 1rem;
      }

      nav a {
        margin-left: 0;
        margin-right: 1rem;
      }

      .hero-content h2 {
        font-size: 2.5rem;
      }

      #platform_mission {
        grid-template-columns: 1fr;
      }

      main {
        padding: 0 1rem;
      }

      section {
        padding: 2rem 0;
      }

      section:nth-child(even) {
        margin: 0 -1rem;
        padding: 2rem 1rem;
      }
    }
/* ── image safety ── */
img { max-width: 100%; height: auto; display: block; }
img[style*='width:'] { max-width: 100%; }
