/* ============================================================
   main.css — shared across ALL pages.
   Sections: tokens · reset/base · utilities · nav · buttons ·
             footer · shared responsive
   Page-specific styles live in home.css / careers.css.
   ============================================================ */

/* ============================================================
   TOKENS — every color/size knob, theme via [data-theme]
   ============================================================ */
:root {
  --coral:  #ff6b6b;
  --yellow: #feca57;
  --sky:    #48dbfb;
  --pink:   #ff9ff3;
  --mint:   #1dd1a1;

  /* light-mode surfaces */
  --bg:             #fff9f0;
  --bg-card:        #ffffff;
  --bg-nav:         rgba(255,249,240,0.85);
  --text-primary:   #1a1a2e;
  --text-secondary: #4a4a6a;
  --text-muted:     #8888aa;
  --border:         rgba(26,26,46,0.08);
  --shadow:         0 4px 24px rgba(26,26,46,0.10);
  --shadow-hover:   0 12px 40px rgba(26,26,46,0.16);

  /* footer surfaces — flip with theme (light values here) */
  --footer-bg:           #fdf4e8;             /* warm light band, a touch deeper than --bg */
  --footer-text:         var(--text-primary);
  --footer-muted:        var(--text-secondary);
  --footer-faint:        var(--text-muted);
  --footer-chip-bg:      rgba(26,26,46,0.04);
  --footer-chip-border:  rgba(26,26,46,0.10);
  --footer-chip-hover:   rgba(26,26,46,0.08);
  --footer-divider:      rgba(26,26,46,0.10);

  /* gradients */
  --grad-hero:   linear-gradient(135deg, #fff0f3 0%, #fff8e7 40%, #e8f8ff 100%);
  --grad-accent: linear-gradient(135deg, var(--coral), var(--yellow), var(--sky), var(--pink));
  --grad-text:   linear-gradient(90deg, var(--coral), var(--yellow) 50%, var(--sky));

  --radius-card: 24px;
  --radius-pill: 999px;
  --transition:      0.25s cubic-bezier(0.34,1.56,0.64,1);
  --transition-fast: 0.18s ease;
}

[data-theme="dark"] {
  --bg:             #0d0d1a;
  --bg-card:        #161629;
  --bg-nav:         rgba(13,13,26,0.88);
  --text-primary:   #f0f0ff;
  --text-secondary: #b0b0d0;
  --text-muted:     #6666aa;
  --border:         rgba(255,255,255,0.08);
  --shadow:         0 4px 24px rgba(0,0,0,0.5);
  --shadow-hover:   0 12px 40px rgba(0,0,0,0.7);
  --grad-hero:      linear-gradient(135deg, #0d0d1a 0%, #12122a 50%, #0a1628 100%);

  --footer-bg:           #08080f;
  --footer-text:         #ffffff;
  --footer-muted:        rgba(255,255,255,0.7);
  --footer-faint:        rgba(255,255,255,0.45);
  --footer-chip-bg:      rgba(255,255,255,0.08);
  --footer-chip-border:  rgba(255,255,255,0.12);
  --footer-chip-hover:   rgba(255,255,255,0.14);
  --footer-divider:      rgba(255,255,255,0.10);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 { font-family: 'Fredoka', sans-serif; letter-spacing: -0.01em; }

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

/* ============================================================
   UTILITIES
   ============================================================ */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* keyboard-only skip link */
.skip-link {
  position: absolute;
  left: -9999px; top: 0;
  z-index: 200;
  padding: 10px 18px;
  background: var(--bg-card);
  color: var(--text-primary);
  border-radius: 0 0 12px 0;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
}
.skip-link:focus { left: 0; outline: 2px solid var(--coral); }

/* ============================================================
   NAV
   ============================================================ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--bg-nav);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease;
}

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

.nav-logo {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 300% 300%;
  animation: gradShift 4s ease infinite;
}

@keyframes gradShift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

.nav-links { display: flex; align-items: center; gap: 8px; list-style: none; }

.nav-links a {
  font-family: 'Fredoka', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  color: var(--text-secondary);
  transition: background var(--transition-fast), color var(--transition-fast);
}
.nav-links a:hover,
.nav-links a.active {
  background: linear-gradient(135deg, rgba(255,107,107,0.12), rgba(72,219,251,0.12));
  color: var(--text-primary);
}
.nav-links a:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; }

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

.theme-btn {
  width: 44px; height: 44px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--border);
  background: var(--bg-card);
  color: var(--text-primary);
  cursor: pointer;
  font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  transition: transform var(--transition), border-color var(--transition-fast);
}
.theme-btn:hover { transform: scale(1.15) rotate(20deg); border-color: var(--coral); }
.theme-btn:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: 0.3s ease;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-family: 'Fredoka', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition-fast);
}
.btn:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }

.btn-primary {
  background: linear-gradient(135deg, var(--coral), #ff8e53);
  color: #fff;
  box-shadow: 0 4px 20px rgba(255,107,107,0.4);
}
.btn-primary:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 8px 32px rgba(255,107,107,0.55); }

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 2px solid var(--border);
  box-shadow: var(--shadow);
}
.btn-secondary:hover { transform: translateY(-3px) scale(1.03); box-shadow: var(--shadow-hover); border-color: var(--sky); }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  border-top: 1px solid var(--border);
  padding: 80px 0 40px;
  position: relative;
  overflow: hidden;
}
footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,107,107,0.08), rgba(72,219,251,0.08));
  pointer-events: none;
}
.footer-inner { position: relative; z-index: 1; }

.footer-cta-heading {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 300%;
  animation: gradShift 5s ease infinite;
  margin-bottom: 12px;
}
.footer-cta-sub { font-size: 1.05rem; color: var(--footer-muted); margin-bottom: 36px; }

.footer-contacts { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 56px; }

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  background: var(--footer-chip-bg);
  border: 1px solid var(--footer-chip-border);
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  color: var(--footer-text);
  transition: background var(--transition-fast), transform var(--transition);
}
.contact-item:hover { background: var(--footer-chip-hover); transform: translateY(-2px); }
.contact-item span { font-size: 1.1rem; }

.footer-divider { height: 1px; background: var(--footer-divider); margin-bottom: 28px; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom-logo {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.footer-copy { font-size: 0.85rem; color: var(--footer-faint); }

/* ============================================================
   SHARED RESPONSIVE (nav + footer)
   ============================================================ */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--bg-nav);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 16px;
    gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-hamburger { display: flex; }

  .footer-bottom { flex-direction: column; text-align: center; }
}
