/* ============================================
   GEMEGAME Studios — Indie Mobile Game Studio
   ============================================ */

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

:root {
  --bg: #FAFAF9;
  --bg-soft: #F4F2F8;
  --surface: #FFFFFF;
  --ink: #18121E;
  --ink-2: #4A4255;
  --mute: #7A7186;
  --hair: #E8E4F0;
  --line: #D8D2E4;

  --violet: #7C3AED;
  --violet-2: #6D28D9;
  --pink: #EC4899;
  --pink-2: #DB2777;
  --sky: #0EA5E9;
  --amber: #F59E0B;

  --grad: linear-gradient(135deg, #7C3AED 0%, #EC4899 100%);
  --grad-soft: linear-gradient(135deg, rgba(124,58,237,.12) 0%, rgba(236,72,153,.12) 100%);

  --radius: 16px;
  --radius-lg: 28px;
  --max: 1240px;
  --ease: cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: var(--violet); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--pink); }

ul, ol { list-style: none; }
img, svg { max-width: 100%; display: block; }

.g-container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
}

/* Decorative orbs */
.g-orbs {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .25;
}
.orb.o1 { width: 500px; height: 500px; background: var(--violet); top: -150px; right: -100px; }
.orb.o2 { width: 400px; height: 400px; background: var(--pink); top: 30%; left: -80px; opacity: .18; }
.orb.o3 { width: 600px; height: 600px; background: var(--sky); bottom: -300px; right: 20%; opacity: .15; }

/* ============ Buttons ============ */
.g-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -.01em;
  cursor: pointer;
  transition: all .25s var(--ease);
  text-decoration: none;
  white-space: nowrap;
  border: 2px solid transparent;
  font-family: inherit;
}
.g-btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 24px rgba(124,58,237,.3);
}
.g-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(124,58,237,.45);
  color: #fff;
}
.g-btn-ghost {
  background: rgba(255,255,255,.7);
  color: var(--ink);
  border-color: var(--line);
  backdrop-filter: blur(10px);
}
.g-btn-ghost:hover {
  border-color: var(--violet);
  color: var(--violet);
}

/* ============ Navbar ============ */
.g-nav {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(250,250,249,.82);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--hair);
}
.g-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}

.g-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}
.g-logo-mark { display: inline-flex; }
.g-logo-text {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.g-logo-sub {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .25em;
  color: var(--mute);
}

.g-nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.g-nav-links a {
  color: var(--ink-2);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: -.005em;
}
.g-nav-links a:hover { color: var(--violet); }

.g-nav-cta { padding: 10px 22px; font-size: 13.5px; }

.g-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.g-burger span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* ============ Hero ============ */
.g-hero {
  position: relative;
  padding: 100px 0 120px;
  overflow: hidden;
}
.g-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(236,72,153,.10), transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 30%, rgba(124,58,237,.10), transparent 60%);
}
.g-hero-inner {
  text-align: center;
  max-width: 900px;
}
.g-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: rgba(255,255,255,.8);
  border: 1px solid var(--hair);
  color: var(--ink-2);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -.005em;
  margin-bottom: 32px;
  backdrop-filter: blur(8px);
}
.g-eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 12px rgba(124,58,237,.6);
  animation: g-pulse 2.4s ease-in-out infinite;
}
@keyframes g-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}

.g-headline {
  font-size: clamp(40px, 6.6vw, 78px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -.035em;
  color: var(--ink);
  margin-bottom: 28px;
}
.g-grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.g-lede {
  font-size: clamp(16px, 1.55vw, 19px);
  color: var(--ink-2);
  max-width: 660px;
  margin: 0 auto 36px;
  line-height: 1.65;
}
.g-lede strong { color: var(--ink); font-weight: 700; }

.g-hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.g-platforms {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 18px 28px;
  background: rgba(255,255,255,.7);
  border: 1px solid var(--hair);
  border-radius: 999px;
  backdrop-filter: blur(10px);
}
.g-platform-label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .15em;
  color: var(--mute);
}
.g-platform-badges {
  display: flex;
  gap: 14px;
}
.g-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

/* ============ Sections ============ */
.g-section {
  padding: 96px 0;
  position: relative;
}
.g-section-soft {
  background: var(--bg-soft);
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}
.g-section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}
.g-section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--violet);
  margin-bottom: 14px;
}
.g-h2 {
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--ink);
  margin-bottom: 16px;
}
.g-section-sub {
  font-size: 17px;
  color: var(--ink-2);
  line-height: 1.65;
}

/* ============ Games Grid ============ */
.g-games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.g-game-card {
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all .35s var(--ease);
  display: flex;
  flex-direction: column;
}
.g-game-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 60px rgba(124,58,237,.12);
  border-color: transparent;
}

.g-game-art {
  position: relative;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.g-game-a .g-game-art { background: linear-gradient(135deg, #7C3AED 0%, #DB2777 100%); }
.g-game-b .g-game-art { background: linear-gradient(135deg, #0EA5E9 0%, #6366F1 100%); }
.g-game-c .g-game-art { background: linear-gradient(135deg, #F59E0B 0%, #EC4899 100%); }

/* Phone mockup */
.g-phone {
  position: relative;
  width: 130px;
  height: 220px;
  background: #0F0814;
  border-radius: 22px;
  padding: 7px;
  box-shadow: 0 20px 40px rgba(0,0,0,.35), inset 0 0 0 1.5px rgba(255,255,255,.08);
  transform: rotate(-6deg);
  transition: transform .45s var(--ease);
}
.g-game-card:hover .g-phone { transform: rotate(-2deg) translateY(-4px); }
.g-phone-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 6px;
  background: #0A0A0A;
  border-radius: 4px;
  z-index: 2;
}
.g-phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}
.g-screen-content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 16px;
  color: #fff;
}
.g-arcade { background: radial-gradient(circle at 50% 30%, rgba(255,255,255,.2), transparent 50%), linear-gradient(180deg, #A855F7 0%, #DB2777 100%); }
.g-puzzle { background: radial-gradient(circle at 50% 30%, rgba(255,255,255,.2), transparent 50%), linear-gradient(180deg, #38BDF8 0%, #6366F1 100%); }
.g-casual { background: radial-gradient(circle at 50% 30%, rgba(255,255,255,.25), transparent 50%), linear-gradient(180deg, #FBBF24 0%, #F472B6 100%); }

.g-screen-title {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .25em;
  opacity: .8;
}
.g-screen-icon { font-size: 48px; line-height: 1; }
.g-screen-tags {
  display: flex;
  gap: 6px;
}
.g-screen-tags span {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .12em;
  padding: 3px 8px;
  background: rgba(255,255,255,.22);
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

.g-game-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.g-game-status {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 10px;
  background: var(--grad-soft);
  color: var(--violet);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  margin-bottom: 4px;
}
.g-game-body h3 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ink);
}
.g-game-body p {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.55;
  flex: 1;
}
.g-game-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 14px;
  border-top: 1px dashed var(--hair);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--mute);
  letter-spacing: -.005em;
}

/* ============ Studio / About ============ */
.g-grid-2 {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 72px;
  align-items: start;
}
.g-p {
  font-size: 17px;
  color: var(--ink-2);
  line-height: 1.7;
  margin-bottom: 18px;
  max-width: 58ch;
}
.g-p strong { color: var(--ink); font-weight: 700; }

.g-info-card {
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: sticky;
  top: 100px;
  box-shadow: 0 20px 60px rgba(124,58,237,.08);
}
.g-info-head {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--hair);
  margin-bottom: 8px;
}
.g-info-pill {
  display: inline-block;
  padding: 5px 12px;
  background: var(--grad);
  color: #fff;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .15em;
}
.g-info-dl {
  display: flex;
  flex-direction: column;
}
.g-info-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--hair);
}
.g-info-row:last-child { border-bottom: 0; padding-bottom: 4px; }
.g-info-row dt {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--mute);
  text-transform: uppercase;
}
.g-info-row dd {
  font-size: 15px;
  color: var(--ink);
  font-weight: 600;
}
.g-active {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #059669;
  font-weight: 700;
}

/* ============ Craft ============ */
.g-craft-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.g-craft-item {
  background: var(--surface);
  padding: 32px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--hair);
  transition: all .3s var(--ease);
  text-align: left;
}
.g-craft-item:hover {
  transform: translateY(-3px);
  border-color: transparent;
  box-shadow: 0 16px 36px rgba(124,58,237,.1);
}
.g-craft-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 18px;
  box-shadow: 0 8px 22px rgba(124,58,237,.18);
}
.g-craft-item h4 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.015em;
  margin-bottom: 8px;
  color: var(--ink);
}
.g-craft-item p {
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.6;
}

/* ============ Legal ============ */
.g-legal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.g-legal-card {
  background: var(--surface);
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--hair);
  transition: all .3s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}
.g-legal-card:hover {
  transform: translateY(-3px);
  border-color: var(--violet);
  box-shadow: 0 16px 36px rgba(124,58,237,.12);
}
.g-legal-card.g-legal-static {
  background: var(--grad);
  color: #fff;
  border: 0;
}
.g-legal-card.g-legal-static:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(124,58,237,.35);
}
.g-legal-icon { font-size: 32px; margin-bottom: 8px; }
.g-legal-card h3 {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.g-legal-card p {
  font-size: 14.5px;
  line-height: 1.6;
  opacity: .85;
  flex: 1;
}
.g-legal-card.g-legal-static p { opacity: .92; }
.g-legal-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--violet);
  margin-top: 4px;
}
.g-legal-card.g-legal-static .g-legal-link { color: #fff; }

/* ============ Contact ============ */
.g-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.g-contact-card {
  background: var(--surface);
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--hair);
}
.g-contact-tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--violet);
  margin-bottom: 14px;
}
.g-contact-big {
  font-size: 21px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.015em;
  line-height: 1.4;
  margin-bottom: 10px;
  word-break: break-word;
}
.g-contact-meta {
  font-size: 14px;
  color: var(--mute);
  line-height: 1.5;
}
.g-contact-addr {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.65;
  font-weight: 500;
}

/* ============ Map + Form (below contact cards) ============ */
.g-contact-bottom {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 28px;
  margin-top: 28px;
  align-items: stretch;
}
.g-map-card, .g-form-card {
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
}
.g-map-head, .g-form-head {
  margin-bottom: 20px;
}
.g-map-head p, .g-form-head p {
  font-size: 14.5px;
  color: var(--mute);
  margin-top: 6px;
}
.g-map-wrap {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--hair);
  flex: 1;
  min-height: 360px;
  background: var(--bg-soft);
}
.g-map-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  display: block;
}

/* Form */
.g-form { display: flex; flex-direction: column; gap: 16px; }
.g-form-hp { display: none; }
.g-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.g-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.g-field label {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--ink-2);
  text-transform: uppercase;
}
.g-field input,
.g-field select,
.g-field textarea {
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--hair);
  border-radius: 10px;
  padding: 12px 14px;
  width: 100%;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
  appearance: none;
  -webkit-appearance: none;
}
.g-field input:focus,
.g-field select:focus,
.g-field textarea:focus {
  outline: none;
  border-color: var(--violet);
  box-shadow: 0 0 0 4px rgba(124,58,237,.12);
}
.g-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%237A7186' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 38px;
  cursor: pointer;
}
.g-field textarea {
  resize: vertical;
  min-height: 120px;
  font-family: inherit;
}
.g-form-submit {
  align-self: flex-start;
  margin-top: 4px;
}

/* ============ Footer ============ */
.g-footer {
  background: var(--ink);
  color: rgba(255,255,255,.78);
  padding-top: 64px;
}
.g-footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
}
.g-footer-brand .g-logo { margin-bottom: 18px; }
.g-footer-brand .g-logo-text, .g-footer-brand .g-logo-sub { color: #fff; }
.g-footer-brand .g-logo-sub { color: rgba(255,255,255,.5); }
.g-footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  max-width: 340px;
  color: rgba(255,255,255,.65);
}
.g-footer-col h5 {
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .15em;
  margin-bottom: 18px;
  text-transform: uppercase;
}
.g-footer-col ul li {
  font-size: 14px;
  padding: 5px 0;
  color: rgba(255,255,255,.65);
}
.g-footer-col ul li a { color: rgba(255,255,255,.65); }
.g-footer-col ul li a:hover { color: #fff; }
.g-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 24px 0;
}
.g-footer-bottom p {
  font-size: 13px;
  color: rgba(255,255,255,.5);
  text-align: center;
}
.g-foot-mini {
  margin-top: 6px;
  font-size: 11.5px !important;
  color: rgba(255,255,255,.35) !important;
}

/* ============ Reveal ============ */
.g-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
}
.g-reveal.g-in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .g-reveal { opacity: 1; transform: none; transition: none; }
  .g-eyebrow-dot { animation: none; }
}

/* ============ Responsive ============ */
@media (max-width: 1000px) {
  .g-craft-grid { grid-template-columns: 1fr 1fr; }
  .g-grid-2 { grid-template-columns: 1fr; gap: 48px; }
  .g-info-card { position: static; }
  .g-footer-grid { grid-template-columns: 1fr 1fr; }
  .g-contact-bottom { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .g-nav-links, .g-nav-cta { display: none; }
  .g-burger { display: flex; }
  .g-nav-links.open {
    display: flex;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: rgba(250,250,249,.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 24px;
    gap: 18px;
    border-bottom: 1px solid var(--hair);
  }
  .g-section, .g-hero { padding: 64px 0; }
  .g-craft-grid, .g-contact-grid { grid-template-columns: 1fr; }
  .g-form-row { grid-template-columns: 1fr; }
  .g-footer-grid { grid-template-columns: 1fr; }
}
