/* ============================================
   Geronix Play - Web3 Gamification
   Design System & Global Styles
   ============================================ */

:root {
  /* Primary gradient */
  --blue-deep: #1e3c72;
  --blue-mid: #2a5298;
  --blue-light: #3d6cb9;
  --blue-accent: #5b8fd4;
  --blue-pale: #7eb8e8;
  
  /* Neutrals */
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  
  /* UI */
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.12);
  --shadow-soft: 0 4px 20px rgba(30, 60, 114, 0.15);
  --shadow-medium: 0 8px 32px rgba(30, 60, 114, 0.2);
  --shadow-strong: 0 16px 48px rgba(30, 60, 114, 0.25);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  
  /* Spacing */
  --section-padding: clamp(4rem, 8vw, 6rem);
  --container-max: 1200px;
  --nav-height: 72px;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--white);
  overflow-x: hidden;
}

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

a {
  color: var(--blue-mid);
  text-decoration: none;
  transition: color var(--transition-fast), opacity var(--transition-fast);
}

a:hover {
  color: var(--blue-deep);
}

ul, ol {
  list-style: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--gray-900);
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); margin-bottom: 0.75rem; }
h4 { font-size: 1.125rem; margin-bottom: 0.5rem; }

p {
  margin-bottom: 1rem;
  color: var(--gray-600);
}

p:last-child {
  margin-bottom: 0;
}

/* Layout */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: var(--section-padding) 0;
}

.section--dark {
  background: linear-gradient(135deg, var(--gray-900) 0%, var(--blue-deep) 50%, var(--gray-800) 100%);
  color: var(--white);
}

.section--dark h2,
.section--dark h3 {
  color: var(--white);
}

.section--dark p {
  color: var(--gray-200);
}

.section--light {
  background: var(--gray-50);
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 1000;
  transition: background var(--transition-smooth), box-shadow var(--transition-smooth);
}

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

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav__logo img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.nav__logo span {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--gray-900);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__links a {
  font-weight: 500;
  color: var(--gray-700);
  position: relative;
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--blue-mid);
}

.nav__links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-deep), var(--blue-mid));
  border-radius: var(--radius-full);
}

.nav__cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Mobile menu */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav__toggle span {
  width: 24px;
  height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: var(--transition-fast);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-smooth), background var(--transition-smooth);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: linear-gradient(135deg, var(--blue-deep), var(--blue-mid));
  color: var(--white);
  box-shadow: 0 4px 14px rgba(30, 60, 114, 0.4);
}

.btn--primary:hover {
  box-shadow: 0 6px 24px rgba(30, 60, 114, 0.5);
  background: linear-gradient(135deg, var(--blue-mid), var(--blue-light));
}

.btn--secondary {
  background: var(--white);
  color: var(--blue-mid);
  border: 2px solid var(--blue-mid);
}

.btn--secondary:hover {
  background: var(--gray-50);
  border-color: var(--blue-deep);
  color: var(--blue-deep);
}

.btn--glass {
  background: var(--glass-bg);
  color: var(--white);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
}

.btn--glass:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  background: linear-gradient(160deg, var(--gray-50) 0%, var(--white) 40%, rgba(30, 60, 114, 0.06) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 120%;
  background: radial-gradient(ellipse, rgba(42, 82, 152, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.hero__content {
  max-width: 640px;
}

.hero__badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background: linear-gradient(135deg, var(--blue-deep), var(--blue-mid));
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
  animation: fadeInUp 0.6s ease forwards;
}

.hero__title {
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, var(--blue-deep), var(--blue-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 0.6s ease 0.1s both;
}

.hero__subtitle {
  font-size: 1.25rem;
  color: var(--gray-600);
  margin-bottom: 2rem;
  line-height: 1.7;
  animation: fadeInUp 0.6s ease 0.2s both;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  animation: fadeInUp 0.6s ease 0.3s both;
}

.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.8s ease 0.4s both;
}

.hero__visual img {
  max-width: 280px;
  filter: drop-shadow(0 20px 40px rgba(30, 60, 114, 0.2));
}

/* Cards */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--gray-200);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
}

.card--glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  color: var(--white);
}

.card--glass h3 {
  color: var(--white);
}

.card--glass p {
  color: var(--gray-200);
}

/* Grid layouts */
.grid {
  display: grid;
  gap: 2rem;
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat__value {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--blue-deep), var(--blue-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.25rem;
}

.stat__label {
  font-size: 0.9rem;
  color: var(--gray-500);
  font-weight: 500;
}

/* Section headers */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section-header h2 {
  margin-bottom: 0.75rem;
}

.section-header p {
  font-size: 1.1rem;
}

/* Footer */
.footer {
  background: linear-gradient(180deg, var(--gray-900) 0%, var(--blue-deep) 100%);
  color: var(--gray-300);
  padding: 4rem 0 2rem;
}

.footer .container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer__brand {
  max-width: 320px;
}

.footer__brand img {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  object-fit: contain;
}

.footer__brand p {
  font-size: 0.95rem;
  color: var(--gray-400);
  margin-bottom: 1.25rem;
}

.footer__title {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer__links a {
  display: block;
  color: var(--gray-400);
  padding: 0.25rem 0;
  font-size: 0.95rem;
}

.footer__links a:hover {
  color: var(--white);
}

.footer__social {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.footer__social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--white);
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.footer__social a:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.footer__bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.9rem;
  color: var(--gray-500);
}

/* Forms */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  background: var(--white);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue-mid);
  box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.15);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #dc2626;
}

.form-group .error-message {
  font-size: 0.85rem;
  color: #dc2626;
  margin-top: 0.35rem;
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

/* Page header (inner pages) */
.page-hero {
  padding: calc(var(--nav-height) + 4rem) 0 4rem;
  background: linear-gradient(135deg, var(--blue-deep), var(--blue-mid));
  color: var(--white);
  text-align: center;
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 0.75rem;
}

.page-hero p {
  color: var(--gray-200);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp 0.6s ease forwards;
}

/* Partner logos placeholder */
.partners {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  padding: 2rem 0;
  opacity: 0.7;
}

.partner-placeholder {
  width: 120px;
  height: 48px;
  background: var(--gray-200);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-500);
}

/* Blog cards */
.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--gray-200);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
}

.blog-card__image {
  height: 200px;
  background: linear-gradient(135deg, var(--blue-deep), var(--blue-mid));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: rgba(255, 255, 255, 0.5);
}

.blog-card__body {
  padding: 1.5rem;
}

.blog-card__meta {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-bottom: 0.5rem;
}

.blog-card h3 {
  margin-bottom: 0.5rem;
}

.blog-card h3 a {
  color: var(--gray-900);
}

.blog-card h3 a:hover {
  color: var(--blue-mid);
}

/* Case study cards */
.case-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-soft);
  transition: var(--transition-smooth);
}

.case-card:hover {
  box-shadow: var(--shadow-medium);
  border-color: var(--blue-mid);
}

.case-card__metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

.metric-box {
  text-align: center;
  padding: 1rem;
  background: var(--gray-50);
  border-radius: var(--radius-md);
}

.metric-box__value {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--blue-mid);
}

.metric-box__label {
  font-size: 0.8rem;
  color: var(--gray-500);
}

/* Solution / Service blocks */
.solution-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--gray-200);
}

.solution-block:last-child {
  border-bottom: none;
}

.solution-block__content h3 {
  margin-bottom: 1rem;
}

.solution-block__impact {
  background: var(--gray-50);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--blue-mid);
}

/* Contact info block */
.contact-info {
  background: linear-gradient(135deg, var(--blue-deep), var(--blue-mid));
  color: var(--white);
  padding: 2rem;
  border-radius: var(--radius-lg);
}

.contact-info h3 {
  color: var(--white);
  margin-bottom: 1rem;
}

.contact-info p,
.contact-info a {
  color: var(--gray-200);
}

.contact-info a:hover {
  color: var(--white);
}

/* Responsive */
@media (max-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer .container { grid-template-columns: 1fr 1fr; }
  .solution-block { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav__links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 2rem;
    gap: 1rem;
    box-shadow: var(--shadow-medium);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
  }
  
  .nav__links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nav__cta {
    display: none;
  }
  
  .nav__toggle {
    display: flex;
  }
  
  .hero__cta {
    flex-direction: column;
  }
  
  .hero__cta .btn {
    width: 100%;
    justify-content: center;
  }
  
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }
  
  .stats {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .footer .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer__brand {
    max-width: none;
  }
  
  .footer__social {
    justify-content: center;
  }
  
  .case-card__metrics {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 3rem 0;
  }
  
  .card {
    padding: 1.5rem;
  }
}
