
:root {
  --bg: #fdfafa;
  --bg-grid: #e2e8f0;
  --ink: #2d3748;
  --ink-soft: #718096;
  --line: #cbd5e1;
  --surface: rgba(255, 255, 255, 0.85);

  --accent-blue: #e0f2fe;
  --accent-blue-border: #bae6fd;
  --accent-green: #dcfce7;
  --accent-green-border: #bbf7d0;
  --accent-yellow: #fef9c3;
  --accent-yellow-border: #fef08a;

  --font-logo: \'Fredoka\', sans-serif;
  --font-body: \'Nunito\', sans-serif;
  --font-heading: \'Fredoka\', sans-serif;
  
  --radius-sm: 12px;
  --radius-md: 24px;
  --radius-lg: 32px;
  --radius-pill: 9999px;
  
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
  --shadow-float: 0 30px 40px -10px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, .logo-text, .logo-mark, .eyebrow, .btn, .card-tag {
  font-family: var(--font-heading);
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--bg-grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--bg-grid) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.5;
  z-index: -3;
}

.bg-orb {
  position: fixed;
  z-index: -2;
  opacity: 0.8;
  filter: blur(100px);
  border-radius: 50%;
}

.orb-1 {
  width: 50vw;
  height: 50vw;
  background: #bae6fd;
  top: -10vw;
  right: -10vw;
}

.orb-2 {
  width: 60vw;
  height: 60vw;
  background: #fef08a;
  bottom: -20vw;
  left: -20vw;
}

.site-header, main, .site-footer {
  width: min(1200px, 92vw);
  margin-inline: auto;
}

/* --- HEADER --- */
.site-header {
  position: sticky;
  top: 1rem;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.5rem 0.5rem 1rem;
  margin-top: 1.5rem;
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--ink);
  color: white;
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: 600;
}

.logo-text {
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.main-nav {
  display: flex;
  gap: 2rem;
  font-weight: 600;
}

.main-nav a {
  color: var(--ink-soft);
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: var(--ink);
}

.lang-switch-wrapper {
  background: white;
  padding: 0.3rem 0.5rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.lang-sep {
  color: var(--line);
  font-size: 0.8rem;
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-btn:hover {
  color: var(--ink);
}

.lang-btn.active {
  background: var(--ink);
  color: white;
}

/* --- HERO --- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  padding: 6rem 0 4rem;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: white;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

h1 {
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: var(--ink);
  letter-spacing: -0.03em;
}

.lead {
  font-size: 1.25rem;
  color: var(--ink-soft);
  margin-bottom: 2.5rem;
  max-width: 45ch;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: var(--radius-pill);
  font-size: 1.1rem;
  font-weight: 600;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn.primary {
  background: #bae6fd;
  color: #0369a1;
  box-shadow: 0 4px 14px rgba(186, 230, 253, 0.4);
}

.btn.primary:hover {
  background: #7dd3fc;
  transform: translateY(-2px);
}

.btn.secondary {
  background: white;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.btn.secondary:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.cursor-icon {
  font-size: 1.2rem;
}

.hero-illustration-panel {
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.illus-laptop {
  position: relative;
  width: 280px;
  height: 280px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-float);
  display: flex;
  align-items: center;
  justify-content: center;
}

.emoji-main {
  font-size: 8rem;
  filter: drop-shadow(0 10px 10px rgba(0,0,0,0.1));
}

.emoji-float {
  position: absolute;
  font-size: 3rem;
  background: white;
  padding: 1rem;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  animation: float 6s ease-in-out infinite;
}

.e-game { top: -20px; left: -30px; animation-delay: 0s; font-size: 2.5rem; }
.e-phone { bottom: 20px; right: -40px; animation-delay: 1.5s; font-size: 3.5rem; }
.e-gear { top: 40px; right: -20px; animation-delay: 3s; font-size: 2rem; }
.e-msg { bottom: -20px; left: 20px; animation-delay: 4.5s; font-size: 2rem; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

/* --- SECTIONS --- */
.section {
  padding: 6rem 0;
}

.section-head {
  text-align: center;
  margin-bottom: 4rem;
}

.section-head h2 {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  margin-bottom: 1rem;
}

.subtitle {
  font-size: 1.2rem;
  color: var(--ink-soft);
  margin: 0;
}

/* --- CARDS GRID (Works) --- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.project-card {
  position: relative;
  padding: 3rem 2rem;
  border-radius: var(--radius-lg);
  background: white;
  border: 2px solid transparent;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.style-blue {
  background: var(--accent-blue);
  border-color: var(--accent-blue-border);
}

.style-green {
  background: var(--accent-green);
  border-color: var(--accent-green-border);
}

.style-yellow {
  background: var(--accent-yellow);
  border-color: var(--accent-yellow-border);
}

.card-tag {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: white;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  align-self: flex-start;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.project-card h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.project-card .desc {
  color: var(--ink-soft);
  margin-bottom: 1rem;
}

.app-meta {
  list-style: none;
  margin: 0 0 1.4rem;
  padding: 0;
  display: grid;
  gap: 0.45rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.app-meta strong {
  color: var(--ink);
}

.store-links {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.badge {
  background: white;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.card-icon {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0,0,0,0.16);
  border: 2px solid rgba(255,255,255,0.8);
}

.card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-icon.emoji {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

/* --- VALUE GRID --- */
.value-grid, .store-grid {
  display: grid;
  gap: 2rem;
}

.value-grid {
  grid-template-columns: repeat(3, 1fr);
}

.value-box, .store-card, .contact-block {
  background: white;
  padding: 2.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
}

.value-box strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--ink);
  color: white;
  border-radius: 50%;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.store-grid {
  grid-template-columns: repeat(4, 1fr);
}

.store-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.2rem;
  text-align: center;
  transition: transform 0.2s ease;
}

.store-card:hover {
  transform: translateY(-4px);
  border-color: var(--ink-soft);
}

.store-card span {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--ink-soft);
}

/* --- CONTACT --- */
.contact-block {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.contact-mail {
  display: inline-block;
  margin: 2rem 0;
  font-size: 2rem;
  font-weight: 700;
  font-family: var(--font-heading);
}

.socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.socials a {
  background: var(--bg);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  transition: all 0.2s ease;
}

.socials a:hover {
  background: var(--ink);
  color: white;
}

/* --- FOOTER --- */
.site-footer {
  margin: 4rem auto 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--ink-soft);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.9rem;
}

.site-footer a:hover {
  color: var(--ink);
}

/* --- UTILS --- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.hidden {
  display: none !important;
}

/* --- RESPONSIVE --- */
@media (max-width: 980px) {
  .main-nav { display: none; }
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero-cta { justify-content: center; }
  .eyebrow { margin-inline: auto; }
  h1 { margin-inline: auto; }
  .lead { margin-inline: auto; }
  .store-grid { grid-template-columns: repeat(2, 1fr); }
  .value-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .store-grid { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: 1fr; }
  .site-header { padding: 0.5rem; }
  .brand { gap: 0.5rem; }
  .logo-text { display: none; }
  .contact-mail { font-size: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
