/* ========================================
   Unsaid Games — You Word Never Guess Landing Page
   ======================================== */

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

:root {
  /* Colors */
  --cream: #0000FF;
  --cream-light: #F7FFF7;
  --orange: #22C55E;
  --orange-dark: #15803D;
  --orange-light: #BBF7D0;
  /* Accents */
  --purple: #166534;
  --purple-light: #86EFAC;
  --yellow: #CCF666;
  --yellow-light: #E7FFB1;
  --charcoal: #2D2D2D;
  --charcoal-light: #555555;
  --white: #ffffff;

  /* Typography */
  --font-display: 'Baloo 2', cursive;
  --font-body: 'Nunito', sans-serif;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(45,45,45,0.06);
  --shadow-md: 0 4px 20px rgba(45,45,45,0.08);
  --shadow-lg: 0 8px 40px rgba(45,45,45,0.10);
  --shadow-orange: 0 4px 24px rgba(34,197,94,0.35);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--charcoal);
  background-color: var(--cream);
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(34, 197, 94, 0.03) 0%, transparent 20%),
    radial-gradient(circle at 90% 80%, rgba(204, 246, 102, 0.04) 0%, transparent 25%);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-decoration: none;
  line-height: 1.2;
}

.btn-primary {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
  color: var(--white);
  box-shadow: var(--shadow-orange);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 30px rgba(34,197,94,0.45);
}

.btn-white {
  background: var(--white);
  color: var(--orange-dark);
  box-shadow: var(--shadow-md);
}

.btn-white:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: var(--shadow-lg);
}

.btn-lg {
  font-size: 18px;
  padding: 16px 36px;
}

.btn-sm {
  font-size: 14px;
  padding: 8px 20px;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(240,251,240,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nav--scrolled {
  box-shadow: var(--shadow-sm);
}

.nav--hidden {
  transform: translateY(-100%);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--charcoal);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-links a:not(.btn) {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  color: var(--charcoal-light);
  transition: color 0.2s ease;
  position: relative;
}

.nav-links a.active {
  color: var(--orange);
}

.nav-links a:not(.btn):hover {
  color: var(--orange);
}

.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--orange);
  border-radius: 1px;
  transition: width 0.3s ease;
}

.nav-links a:not(.btn):hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-light) 60%, var(--white) 100%);
  padding-top: 100px;
  padding-bottom: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  flex: 1;
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-4xl);
  position: relative;
  z-index: 2;
}

.hero-top-image {
  max-width: 250px;
  margin-bottom: var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.hero-title {
  display: flex;
  flex-direction: column;
  line-height: 0.95;
  margin-bottom: var(--space-lg);
}

.title-guessing {
  font-family: var(--font-display);
  font-size: clamp(64px, 10vw, 110px);
  font-weight: 900;
  color: var(--orange);
  letter-spacing: -2px;
}

.title-board {
  font-family: var(--font-display);
  font-size: clamp(72px, 11vw, 124px);
  font-weight: 900;
  color: var(--orange-dark);
  letter-spacing: -4px;
  margin-top: -12px;
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: clamp(20px, 2.5vw, 26px);
  color: var(--charcoal-light);
  margin-bottom: var(--space-md);
}

.highlight-party {
  color: var(--orange);
  font-weight: 700;
}

.hero-description {
  font-size: 18px;
  color: var(--charcoal-light);
  max-width: 480px;
  margin-bottom: var(--space-xl);
  line-height: 1.7;
}

.hero-cta-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.hero-meta {
  font-size: 13px;
  color: var(--charcoal-light);
  opacity: 0.7;
}

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

.phone-mockup {
  width: 280px;
  background: var(--white);
  border-radius: 32px;
  padding: 12px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0,0,0,0.04);
  position: relative;
  z-index: 2;
  animation: phoneFloat 6s ease-in-out infinite;
}

.hero-illustration {
  position: absolute;
  width: 140%;
  height: auto;
  z-index: 1;
  opacity: 0.8;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.1));
}

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

.phone-notch {
  width: 80px;
  height: 6px;
  background: var(--charcoal);
  opacity: 0.15;
  border-radius: 3px;
  margin: 4px auto 12px;
}

.phone-screen {
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-light) 100%);
  border-radius: 22px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-height: 400px;
}

.mock-app-icon {
  margin-bottom: 4px;
}

.mock-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
}

.mock-guessing {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: var(--orange);
}

.mock-board {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--charcoal);
  margin-top: -2px;
}

.mock-tagline {
  font-size: 11px;
  color: var(--charcoal-light);
  margin-bottom: 4px;
}

.mock-card {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.mock-card-orange {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
  color: var(--white);
}

.mock-card-icon {
  font-size: 18px;
}
.mock-card-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
}
.mock-card-sub {
  font-size: 10px;
  opacity: 0.85;
}

.mock-cards-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
}

.mock-card-small {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 8px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.mock-card-icon-sm { font-size: 16px; }
.mock-card-title-sm { font-family: var(--font-display); font-size: 11px; font-weight: 700; }

.mock-info-bar {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-size: 10px;
  color: var(--charcoal-light);
  padding: 8px 10px;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

/* --- Games Gallery Section --- */
.bg-cream-light { background-color: var(--cream-light); }

.section-subtitle {
  font-size: 1.25rem;
  color: var(--charcoal-light);
  margin-top: 1rem;
  margin-bottom: 3rem;
}

.games-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-4xl);
}

.game-showcase-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.game-showcase-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.game-logo-container {
  aspect-ratio: 1 / 1;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.game-placeholder-icon {
  font-size: 4rem;
}

.game-info {
  padding: var(--space-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.game-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
}

.game-desc {
  font-size: 0.95rem;
  color: var(--charcoal-light);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.game-meta-tags {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.game-meta-tags span {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  background: var(--orange-light);
  color: var(--orange-dark);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

/* --- Footer --- */
footer,
.footer {
  background-color: var(--orange-dark);
  color: var(--white);
}

footer a,
.footer a {
  color: var(--white);
  opacity: 0.95;
  text-decoration: none;
}

footer a:hover,
.footer a:hover {
  opacity: 1;
}

/* ============================
   Services Page
   ============================ */
.services-hero {
  position: relative;
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-light) 80%, var(--white) 100%);
  padding-top: 120px; /* account for fixed nav */
  padding-bottom: var(--space-3xl);
  overflow: hidden;
}

.services-hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: var(--space-xl);
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
}

.services-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 0.95;
  color: var(--orange);
  letter-spacing: -1px;
  margin-bottom: var(--space-md);
}

.services-subtitle {
  font-size: clamp(18px, 2.2vw, 22px);
  color: var(--charcoal-light);
  max-width: 720px;
}

.services-cta {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-xl);
  flex-wrap: wrap;
}

.services-hero-wave svg {
  width: 100%;
  height: 100px;
  display: block;
}

/* Services Cards */
.services-section {
  background: var(--white);
  padding: var(--space-4xl) 0;
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  border: 1px solid rgba(0,0,0,0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
  color: var(--white);
  font-size: 28px;
  box-shadow: var(--shadow-orange);
}

.service-name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--charcoal);
}

.service-desc {
  color: var(--charcoal-light);
}

.service-bullets {
  margin-left: 1.2rem;
  display: grid;
  gap: 8px;
  color: var(--charcoal);
}

.service-bullets li {
  list-style: disc;
}

/* FAQ */
.services-faq {
  background: var(--cream-light);
  padding: var(--space-4xl) 0;
}

.services-h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.5vw, 40px);
  font-weight: 800;
  color: var(--charcoal);
  margin-bottom: var(--space-xl);
}

.faq-list {
  display: grid;
  gap: var(--space-md);
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.05);
  overflow: hidden;
}

.faq-item > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-lg) var(--space-xl);
  font-weight: 700;
  color: var(--charcoal);
}

.faq-item > summary::-webkit-details-marker {
  display: none;
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
}

.faq-icon {
  font-weight: 800;
  color: var(--orange-dark);
  transition: transform 0.2s ease;
}

.faq-body {
  padding: 0 var(--space-xl) var(--space-xl);
  color: var(--charcoal-light);
}

.faq-body ul {
  margin-left: 1.2rem;
  margin-top: 0.5rem;
}

/* Contact */
.services-contact {
  background: var(--white);
  padding: var(--space-4xl) 0 var(--space-4xl);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

.contact-intro p {
  color: var(--charcoal-light);
  margin-top: var(--space-sm);
}

.contact-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: var(--space-lg);
}

.contact-chip {
  background: var(--orange-light);
  color: var(--orange-dark);
  padding: 8px 12px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.9rem;
}

.contact-form {
  background: var(--cream-light);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--space-xl);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  font-weight: 700;
  color: var(--charcoal);
}

.form-field input,
.form-field select,
.form-field textarea {
  border: 1.5px solid rgba(0,0,0,0.12);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font: inherit;
  outline: none;
  background: var(--white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field textarea {
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(34,197,94,0.18);
}

.contact-footnote {
  margin-top: var(--space-md);
  font-size: 0.9rem;
  color: var(--charcoal-light);
}

.contact-footnote a {
  color: var(--orange-dark);
  text-decoration: underline;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .service-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-links {
    gap: var(--space-md);
  }
  .service-cards {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .services-title {
    font-size: clamp(36px, 8vw, 54px);
  }
}