/* ============================================
   FUNFINITY GAMES — Website Styles
   Brand colors derived from logo & game UI
   ============================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Brand palette */
  --navy:       #1a2744;
  --navy-light: #243352;
  --blue:       #2563eb;
  --blue-ui:    #3478f6;
  --orange:     #f37021;
  --orange-light:#f9a825;
  --green:      #4caf50;
  --green-dark: #388e3c;
  --red-accent: #ef5350;
  --cream:      #fdf6ec;
  --white:      #ffffff;
  --gray-100:   #f8f9fa;
  --gray-200:   #e9ecef;
  --gray-400:   #adb5bd;
  --gray-600:   #6c757d;
  --gray-800:   #343a40;

  /* Typography */
  --font-heading: 'Nunito', 'Segoe UI', sans-serif;
  --font-body:    'Inter', 'Segoe UI', sans-serif;

  /* Layout */
  --max-w: 1200px;
  --section-py: 5rem;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--orange); }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 800; line-height: 1.2; }
h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 1rem; }
h3 { font-size: 1.35rem; margin-bottom: .5rem; }
p  { margin-bottom: 1rem; }

.section-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: .75rem;
}

/* ---------- Navigation ---------- */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(26, 39, 68, .95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo { display: flex; align-items: center; gap: .6rem; }
.nav-logo img { height: 36px; width: auto; }
.nav-logo span { font-family: var(--font-heading); font-weight: 800; font-size: 1.1rem; color: var(--white); }

.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a {
  font-family: var(--font-heading);
  font-size: .9rem;
  font-weight: 600;
  color: rgba(255,255,255,.8);
  transition: color .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--orange); }

.nav-cta {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .5rem 1.2rem;
  background: var(--orange);
  color: var(--white) !important;
  border-radius: 8px;
  font-weight: 700;
  font-size: .85rem;
  transition: background .2s, transform .15s;
}
.nav-cta:hover { background: #e0601a; color: var(--white) !important; transform: translateY(-1px); }

/* Mobile menu */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: .5rem; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--white); margin: 5px 0; transition: .3s; border-radius: 1px; }

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; top: 64px; left: 0; right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.2rem;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: .3s;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: all; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.75rem;
  border-radius: 12px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform .15s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(243, 112, 33, .35);
}
.btn-primary:hover { background: #e0601a; color: var(--white); box-shadow: 0 6px 20px rgba(243,112,33,.45); }

.btn-secondary {
  background: var(--white);
  color: var(--navy);
  border: 2px solid var(--gray-200);
}
.btn-secondary:hover { border-color: var(--orange); color: var(--orange); }

.btn-dark {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(26,39,68,.3);
}
.btn-dark:hover { background: var(--navy-light); color: var(--white); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.4);
}
.btn-outline:hover { border-color: var(--white); color: var(--white); background: rgba(255,255,255,.1); }

.btn-sm { padding: .6rem 1.2rem; font-size: .9rem; border-radius: 8px; }

/* Store buttons */
.store-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }
.store-btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .7rem 1.4rem;
  background: var(--gray-800);
  color: var(--white);
  border-radius: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .95rem;
  transition: background .2s, transform .15s;
}
.store-btn:hover { background: #000; color: var(--white); transform: translateY(-1px); }
.store-btn svg { width: 24px; height: 24px; fill: currentColor; }
.store-btn .store-label { font-size: .65rem; font-weight: 500; opacity: .7; display: block; line-height: 1; }
.store-btn .store-name { display: block; line-height: 1.1; }

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--navy) 0%, #0f1b33 50%, #1a2744 100%);
  overflow: hidden;
  padding-top: 64px;
}

.hero-bg {
  position: absolute; inset: 0;
  background: url('images/bg-landscape.png') center bottom / cover no-repeat;
  opacity: .12;
}

.hero-content {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 4rem 0;
}

.hero-text { color: var(--white); }
.hero-text h1 { margin-bottom: 1.25rem; }
.hero-text h1 .highlight { color: var(--orange); }
.hero-text .subtitle {
  font-size: 1.2rem;
  color: rgba(255,255,255,.75);
  margin-bottom: 2rem;
  max-width: 500px;
  line-height: 1.7;
}

.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-icon {
  width: 340px;
  height: 340px;
  border-radius: 48px;
  box-shadow: 0 20px 60px rgba(0,0,0,.4), 0 0 80px rgba(243,112,33,.15);
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@media (max-width: 768px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-text .subtitle { margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; }
  .hero-icon { width: 220px; height: 220px; border-radius: 36px; }
  .hero-visual { order: -1; }
}

/* ---------- Section Base ---------- */
.section { padding: var(--section-py) 0; }
.section-light { background: var(--gray-100); }
.section-dark { background: var(--navy); color: var(--white); }
.section-cream { background: var(--cream); }

.section-header { text-align: center; max-width: 680px; margin: 0 auto 3rem; }
.section-header p { color: var(--gray-600); font-size: 1.1rem; }
.section-dark .section-header p { color: rgba(255,255,255,.65); }

/* ---------- Features Grid ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--white);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  transition: transform .2s, box-shadow .2s;
  border: 1px solid var(--gray-200);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,.1); }

.feature-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.feature-icon.orange { background: rgba(243,112,33,.12); color: var(--orange); }
.feature-icon.blue   { background: rgba(37,99,235,.1); color: var(--blue); }
.feature-icon.green  { background: rgba(76,175,80,.12); color: var(--green); }
.feature-icon.red    { background: rgba(239,83,80,.1); color: var(--red-accent); }

.feature-card p { color: var(--gray-600); font-size: .95rem; margin-bottom: 0; }

/* ---------- Screenshots Carousel ---------- */
.screenshots-row {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 1rem .5rem 2rem;
}
.screenshots-row::-webkit-scrollbar { height: 6px; }
.screenshots-row::-webkit-scrollbar-thumb { background: var(--gray-400); border-radius: 3px; }

.screenshot-item {
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: 220px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,.15);
  transition: transform .2s;
}
.screenshot-item:hover { transform: scale(1.03); }
.screenshot-item img { width: 100%; height: auto; }

/* ---------- Stats Row ---------- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  text-align: center;
  padding: 2rem 0;
}

.stat-item .stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
}
.stat-item .stat-label {
  font-size: .9rem;
  color: rgba(255,255,255,.6);
  margin-top: .3rem;
}

/* ---------- Team Grid ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.team-card {
  text-align: center;
  background: var(--white);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  border: 1px solid var(--gray-200);
}

.team-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--white);
}

.team-card h3 { margin-bottom: .25rem; }
.team-card .team-role {
  color: var(--orange);
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: .75rem;
}
.team-card p { color: var(--gray-600); font-size: .9rem; margin-bottom: 0; }

/* ---------- AI Section ---------- */
.ai-section {
  background: linear-gradient(135deg, var(--navy) 0%, #0f1b33 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.ai-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.ai-steps { display: flex; flex-direction: column; gap: 1.5rem; }

.ai-step {
  display: flex; gap: 1rem; align-items: flex-start;
  background: rgba(255,255,255,.06);
  border-radius: 12px;
  padding: 1.25rem;
  border: 1px solid rgba(255,255,255,.08);
}

.ai-step-num {
  flex: 0 0 40px; height: 40px;
  border-radius: 10px;
  background: var(--orange);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
}

.ai-step h4 { font-size: 1rem; margin-bottom: .25rem; }
.ai-step p { color: rgba(255,255,255,.6); font-size: .9rem; margin-bottom: 0; }

@media (max-width: 768px) {
  .ai-grid { grid-template-columns: 1fr; }
}

/* ---------- Video Embed ---------- */
.video-showcase {
  display: flex;
  justify-content: center;
  margin: 2.5rem 0;
}
.video-container {
  position: relative;
  width: 320px;
  aspect-ratio: 9 / 16;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,.2);
  background: var(--navy);
}
.video-container iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: none;
}
@media (max-width: 768px) {
  .video-container { width: 260px; }
}

/* ---------- Press Page ---------- */
.fact-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}
.fact-table th, .fact-table td {
  padding: .85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
}
.fact-table th {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--gray-600);
  width: 200px;
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.fact-table td { font-size: 1rem; }

.press-assets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.press-asset-card {
  background: var(--gray-100);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid var(--gray-200);
}
.press-asset-card h4 { margin-bottom: .5rem; }
.press-asset-card p { color: var(--gray-600); font-size: .9rem; margin-bottom: 0; }

/* ---------- CTA Band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--orange) 0%, #e8580a 100%);
  color: var(--white);
  text-align: center;
  padding: 4rem 1.5rem;
}
.cta-band h2 { color: var(--white); margin-bottom: .75rem; }
.cta-band p { color: rgba(255,255,255,.85); font-size: 1.1rem; margin-bottom: 1.5rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.7);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer-brand img { height: 40px; margin-bottom: 1rem; }
.footer-brand p { font-size: .9rem; max-width: 300px; }

.footer-col h4 {
  font-family: var(--font-heading);
  color: var(--white);
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: .5rem; }
.footer-col a { color: rgba(255,255,255,.6); font-size: .9rem; }
.footer-col a:hover { color: var(--orange); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  font-size: .8rem;
}

.footer-social { display: flex; gap: 1rem; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.6);
  transition: .2s;
}
.footer-social a:hover { background: var(--orange); color: var(--white); }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: .75rem; text-align: center; }
}

/* ---------- Page Hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #0f1b33 100%);
  color: var(--white);
  padding: 8rem 0 4rem;
  text-align: center;
}
.page-hero h1 { margin-bottom: .75rem; }
.page-hero p { color: rgba(255,255,255,.65); font-size: 1.15rem; max-width: 600px; margin: 0 auto; }

/* ---------- Content Sections ---------- */
.content-block { max-width: 800px; margin: 0 auto; }
.content-block h2 { margin-top: 2.5rem; }
.content-block p { color: var(--gray-600); line-height: 1.8; }

/* ---------- Mission Banner ---------- */
.mission-banner {
  background: var(--cream);
  border-left: 4px solid var(--orange);
  border-radius: 0 12px 12px 0;
  padding: 2rem 2.5rem;
  margin: 2rem 0;
}
.mission-banner p {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  font-style: italic;
  margin-bottom: 0;
}

/* ---------- Two Column Layout ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
@media (max-width: 768px) {
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
}

/* ---------- Badge ---------- */
.badge {
  display: inline-block;
  padding: .3rem .8rem;
  border-radius: 6px;
  font-size: .8rem;
  font-weight: 700;
  font-family: var(--font-heading);
}
.badge-orange { background: rgba(243,112,33,.12); color: var(--orange); }
.badge-green  { background: rgba(76,175,80,.12); color: var(--green-dark); }
.badge-blue   { background: rgba(37,99,235,.1); color: var(--blue); }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.gap-1 { gap: 1rem; }

/* ---------- Google Fonts Link (placed in HTML) ---------- */
/* @import url('https://fonts.googleapis.com/css2?family=Nunito:wght@600;700;800;900&family=Inter:wght@400;500;600&display=swap'); */
