:root {
    --background: hsl(220 20% 7%);
    --foreground: hsl(40 20% 90%);
    --foreground-60: hsla(40, 20%, 90%, 0.6);
    --foreground-50: hsla(40, 20%, 90%, 0.5);
    --foreground-40: hsla(40, 20%, 90%, 0.4);
    --foreground-70: hsla(40, 20%, 90%, 0.7);
    --card-bg: hsl(220 18% 11%);
    --primary: hsl(42 80% 55%);
    --primary-foreground: hsl(220 20% 7%);
    --secondary: hsl(160 35% 22%);
    --muted: hsl(220 15% 15%);
    --muted-foreground: hsl(220 10% 55%);
    --accent: hsl(15 55% 48%);
    --border-gold: hsla(42, 80%, 55%, 0.3);
    --shadow-gold: 0 0 30px -10px hsla(42, 80%, 55%, 0.3);
    --gradient-gold: linear-gradient(135deg, hsl(42 80% 55%), hsl(38 90% 65%), hsl(42 80% 55%));
    --gradient-dark: linear-gradient(180deg, hsl(220 20% 7%) 0%, hsl(220 18% 11%) 100%);
    --gradient-card: linear-gradient(145deg, hsl(220 18% 13%) 0%, hsl(220 18% 9%) 100%);
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body {
    background: var(--background); color: var(--foreground);
    font-family: 'Raleway', system-ui, sans-serif; line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }
  h1,h2,h3,h4,h5,h6 { font-family: 'Cinzel', serif; }
  a { color: inherit; text-decoration: none; }
  img { max-width: 100%; display: block; }
  .container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
  .text-gradient-gold {
    background: var(--gradient-gold);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  .inca-pattern {
    background-image:
      repeating-linear-gradient(90deg, hsla(42,80%,55%,0.03) 0 1px, transparent 1px 40px),
      repeating-linear-gradient(0deg, hsla(42,80%,55%,0.03) 0 1px, transparent 1px 40px);
  }
  .bg-gradient-dark { background: var(--gradient-dark); }
  .reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease, transform 0.8s ease; }
  .reveal.visible { opacity: 1; transform: translateY(0); }

  /* Navbar */
  .navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 50;
    transition: all 0.3s ease; background: transparent;
  }
  .navbar.scrolled {
    background: hsla(220, 20%, 7%, 0.95); backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-gold);
  }
  .nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.5rem; max-width: 1200px; margin: 0 auto; }
  .nav-logo { font-family: 'Cinzel', serif; font-size: 1.25rem; font-weight: 700; letter-spacing: 0.1em; }
  .nav-links { display: none; gap: 2rem; }
  .nav-links a { font-size: 0.875rem; font-weight: 500; color: var(--foreground-70); text-transform: uppercase; letter-spacing: 0.05em; transition: color 0.2s; }
  .nav-links a:hover { color: var(--primary); }
  .nav-toggle { background: none; border: none; color: var(--foreground); cursor: pointer; padding: 0.5rem; }
  .nav-mobile { display: none; flex-direction: column; align-items: center; gap: 1rem; padding: 1.5rem; background: hsla(220, 20%, 7%, 0.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border-gold); }
  .nav-mobile.open { display: flex; }
  .nav-mobile a { font-size: 0.875rem; color: var(--foreground-70); text-transform: uppercase; letter-spacing: 0.05em; }
  @media (min-width: 768px) { .nav-links { display: flex; } .nav-toggle { display: none; } .nav-mobile { display: none !important; } }

  /* Hero */
  .hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden; }
  .hero-bg { position: absolute; inset: 0; }
  .hero-bg img { width: 100%; height: 100%; object-fit: cover; }
  .hero-overlay { position: absolute; inset: 0; background: hsla(220, 20%, 7%, 0.6); }
  .hero-overlay-grad { position: absolute; inset: 0; background: linear-gradient(to top, var(--background), hsla(220, 20%, 7%, 0.3) 50%, transparent); }
  .hero-content { position: relative; z-index: 10; text-align: center; padding: 0 1.5rem; max-width: 56rem; }
  .hero-eyebrow { color: var(--primary); font-family: 'Cinzel', serif; font-size: 0.875rem; letter-spacing: 0.3em; text-transform: uppercase; margin-bottom: 1rem; }
  .hero h1 { font-size: clamp(2.5rem, 8vw, 6rem); font-weight: 700; line-height: 1.1; margin-bottom: 1.5rem; }
  .hero p.sub { color: var(--foreground-70); font-size: clamp(1rem, 2vw, 1.25rem); font-weight: 300; max-width: 32rem; margin: 0 auto 2.5rem; }
  .btn-primary {
    display: inline-block; padding: 1rem 2rem; background: var(--primary); color: var(--primary-foreground);
    font-family: 'Cinzel', serif; font-size: 0.875rem; letter-spacing: 0.1em; text-transform: uppercase;
    border-radius: 2px; transition: all 0.3s; cursor: pointer; border: none;
  }
  .btn-primary:hover { box-shadow: var(--shadow-gold); transform: scale(1.05); }
  .scroll-indicator { position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%); animation: bounce 2s infinite; }
  .scroll-dot { width: 1.5rem; height: 2.5rem; border-radius: 9999px; border: 2px solid hsla(42, 80%, 55%, 0.4); display: flex; justify-content: center; padding-top: 0.375rem; }
  .scroll-dot::before { content: ''; width: 0.375rem; height: 0.75rem; border-radius: 9999px; background: hsla(42, 80%, 55%, 0.6); }
  @keyframes bounce { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 10px); } }

  /* Sections */
  section { padding: 6rem 0; }
  @media (min-width: 768px) { section { padding: 8rem 0; } }
  .section-head { text-align: center; margin-bottom: 4rem; max-width: 48rem; margin-left: auto; margin-right: auto; }
  .eyebrow { color: var(--primary); font-family: 'Cinzel', serif; font-size: 0.875rem; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 0.75rem; }
  .section-head h2 { font-size: clamp(1.875rem, 4vw, 3rem); font-weight: 700; margin-bottom: 1.5rem; }
  .section-head p { color: var(--foreground-60); font-size: 1.125rem; }

  /* Cards grid */
  .grid { display: grid; gap: 1.5rem; }
  .grid-pillars { grid-template-columns: 1fr; }
  @media (min-width: 640px) { .grid-pillars { grid-template-columns: 1fr 1fr; } }
  @media (min-width: 1024px) { .grid-pillars { grid-template-columns: repeat(4, 1fr); } }
  .card {
    background: var(--gradient-card); border: 1px solid var(--border-gold);
    border-radius: 2px; padding: 2rem; text-align: center; transition: all 0.5s;
  }
  .card:hover { box-shadow: var(--shadow-gold); }
  .card svg { width: 2.5rem; height: 2.5rem; color: var(--primary); margin: 0 auto 1rem; display: block; }
  .card h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 0.5rem; }
  .card p { color: var(--foreground-50); font-size: 0.875rem; }

  /* Games */
  .grid-games { grid-template-columns: 1fr; gap: 2rem; }
  @media (min-width: 1024px) { .grid-games { grid-template-columns: repeat(3, 1fr); } }
  .game-card { background: var(--gradient-card); border: 1px solid var(--border-gold); border-radius: 2px; overflow: hidden; transition: all 0.5s; }
  .game-card:hover { box-shadow: var(--shadow-gold); }
  .game-img-wrap { position: relative; aspect-ratio: 16/9; overflow: hidden; }
  .game-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s; }
  .game-card:hover .game-img-wrap img { transform: scale(1.1); }
  .status-badge { position: absolute; top: 0.75rem; right: 0.75rem; font-size: 0.75rem; font-weight: 600; padding: 0.25rem 0.75rem; border-radius: 2px; }
  .status-dev { background: hsla(42,80%,55%,0.2); color: var(--primary); }
  .status-concept { background: hsla(15,55%,48%,0.2); color: var(--accent); }
  .game-card .body { padding: 1.5rem; }
  .game-card h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.75rem; }
  .game-card p { color: var(--foreground-50); font-size: 0.875rem; }

  /* Culture */
  .culture-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }
  @media (min-width: 1024px) { .culture-grid { grid-template-columns: 1fr 1fr; } }
  .culture-img { border: 1px solid var(--border-gold); border-radius: 2px; overflow: hidden; box-shadow: var(--shadow-gold); }
  .culture-text p { color: var(--foreground-60); margin-bottom: 1rem; }
  .culture-text h2 { font-size: clamp(1.875rem, 4vw, 3rem); font-weight: 700; margin-bottom: 1.5rem; }
  .tags { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
  .tag { padding: 0.375rem 1rem; font-size: 0.75rem; font-family: 'Cinzel', serif; letter-spacing: 0.05em; text-transform: uppercase; border: 1px solid var(--border-gold); color: hsla(42, 80%, 55%, 0.8); border-radius: 2px; }

  /* Services */
  .grid-services { grid-template-columns: 1fr; gap: 2rem; max-width: 64rem; margin: 0 auto; }
  @media (min-width: 768px) { .grid-services { grid-template-columns: 1fr 1fr; } }
  .service { display: flex; gap: 1.25rem; background: var(--gradient-card); border: 1px solid var(--border-gold); border-radius: 2px; padding: 2rem; transition: all 0.5s; }
  .service:hover { box-shadow: var(--shadow-gold); }
  .service svg { width: 2.5rem; height: 2.5rem; color: var(--primary); flex-shrink: 0; margin-top: 0.25rem; }
  .service h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 0.5rem; }
  .service p { color: var(--foreground-50); font-size: 0.875rem; }

  /* Gallery */
  .gallery { display: grid; grid-template-columns: 1fr; gap: 1rem; grid-auto-rows: 250px; }
  @media (min-width: 768px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
  .gallery-item { position: relative; overflow: hidden; border-radius: 2px; border: 1px solid var(--border-gold); }
  .gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s; }
  .gallery-item:hover img { transform: scale(1.1); }
  .gallery-item .caption { position: absolute; inset: 0; background: hsla(220, 20%, 7%, 0); display: flex; align-items: flex-end; padding: 1rem; color: var(--foreground); font-family: 'Cinzel', serif; font-size: 0.875rem; opacity: 0; transition: all 0.5s; transform: translateY(1rem); }
  .gallery-item:hover .caption { opacity: 1; transform: translateY(0); background: hsla(220, 20%, 7%, 0.4); }
  .span-row-2 { grid-row: span 2; }
  @media (min-width: 768px) { .span-col-2 { grid-column: span 2; } }

  /* Contact */
  .contact-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; max-width: 64rem; margin: 0 auto; }
  @media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
  .contact-info p.lead { color: var(--foreground-60); margin-bottom: 2rem; }
  .contact-info .row { display: flex; align-items: center; gap: 1rem; color: var(--foreground-60); margin-bottom: 1rem; }
  .contact-info .row svg { width: 1.25rem; height: 1.25rem; color: var(--primary); }
  .socials { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
  .socials a { padding: 0.5rem 1rem; font-size: 0.75rem; font-family: 'Cinzel', serif; letter-spacing: 0.05em; text-transform: uppercase; border: 1px solid var(--border-gold); color: hsla(42, 80%, 55%, 0.8); border-radius: 2px; transition: background 0.2s; }
  .socials a:hover { background: hsla(42, 80%, 55%, 0.1); }
  .contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
  .contact-form input, .contact-form textarea {
    width: 100%; padding: 0.75rem 1.25rem; background: var(--muted); border: 1px solid var(--border-gold);
    border-radius: 2px; color: var(--foreground); font-family: inherit; font-size: 1rem;
  }
  .contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--muted-foreground); }
  .contact-form input:focus, .contact-form textarea:focus { outline: none; box-shadow: 0 0 0 1px var(--primary); }
  .contact-form textarea { resize: none; }
  .contact-form button { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 2rem; align-self: flex-start; }
  .contact-form button svg { width: 1rem; height: 1rem; }

  /* Footer */
  footer { padding: 2.5rem 0; border-top: 1px solid var(--border-gold); }
  .footer-inner { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 1rem; }
  @media (min-width: 768px) { .footer-inner { flex-direction: row; } }
  .footer-logo { font-family: 'Cinzel', serif; font-size: 0.875rem; letter-spacing: 0.1em; }
  .footer-copy { color: var(--foreground-40); font-size: 0.875rem; }