/* ==========================================================================
   Company Pages Design System - Toolify Studio / Gamify
   Deadline Survivors - Corporate Survival Roguelite
   ========================================================================== */

:root {
  --bg-main: #080d1a;
  --bg-surface: #0f172a;
  --bg-card: #1e293b;
  --bg-card-hover: #273549;
  --border-subtle: #334155;
  --border-accent: #0284c7;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-cyan: #38bdf8;
  --accent-cyan-bright: #7ee8fa;
  --accent-gold: #ffd166;
  --accent-green: #7ef29a;
  --accent-red: #f87171;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --container-max: 1120px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-cyan-bright);
}

/* ---------------- Navbar ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 13, 26, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.brand-logo img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.brand-badge {
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
}

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

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.btn-play-header {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #06b6d4, #0284c7);
  color: #080d1a !important;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-play-header:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(6, 182, 212, 0.5);
}

/* ---------------- Main Content Layout ---------------- */
.main-wrapper {
  flex: 1;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 48px 24px 80px;
  width: 100%;
}

.page-hero {
  margin-bottom: 40px;
  text-align: center;
}

.page-category {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.page-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #ffffff 40%, var(--accent-cyan-bright));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto;
}

/* Content Cards & Sections */
.content-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-card);
}

.content-card h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.content-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent-cyan);
  margin: 24px 0 10px;
}

.content-card p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-size: 1rem;
}

.content-card ul, .content-card ol {
  color: var(--text-secondary);
  margin-left: 24px;
  margin-bottom: 20px;
}

.content-card li {
  margin-bottom: 8px;
}

.grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* Feature pill grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 24px 0;
}

.feature-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
}

.feature-box .icon {
  font-size: 1.75rem;
  margin-bottom: 10px;
  display: block;
}

.feature-box h4 {
  font-size: 1.05rem;
  color: #ffffff;
  margin-bottom: 6px;
}

.feature-box p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* FAQ Accordions / List */
.faq-item {
  border-bottom: 1px solid var(--border-subtle);
  padding: 18px 0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.faq-answer {
  color: var(--text-secondary);
  font-size: 0.96rem;
}

/* ---------------- Form Styles ---------------- */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.96rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

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

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--accent-cyan);
  color: #080d1a;
  border: none;
  border-radius: var(--radius-sm);
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.btn-submit:hover {
  background: var(--accent-cyan-bright);
  transform: translateY(-1px);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.status-alert {
  display: none;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: 0.95rem;
  font-weight: 600;
}

.status-alert.success {
  background: rgba(126, 242, 154, 0.15);
  border: 1px solid var(--accent-green);
  color: var(--accent-green);
}

.status-alert.error {
  background: rgba(248, 113, 113, 0.15);
  border: 1px solid var(--accent-red);
  color: var(--accent-red);
}

/* ---------------- Site Footer ---------------- */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 48px 24px 32px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-container {
  max-width: var(--container-max);
  margin: 0 auto;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-subtle);
}

.footer-brand {
  max-width: 360px;
}

.footer-brand-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.footer-brand-title img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.footer-gamify-banner {
  background: rgba(2, 132, 199, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-top: 14px;
}

.footer-gamify-banner strong {
  color: var(--accent-gold);
}

.footer-gamify-banner a {
  display: inline-block;
  margin-top: 4px;
  font-weight: 700;
  color: var(--accent-cyan);
}

.footer-links-group h5 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffffff;
  margin-bottom: 14px;
}

.footer-links-group ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-group a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-links-group a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.84rem;
  color: var(--text-muted);
}

/* ---------------- Responsive ---------------- */
@media (max-width: 768px) {
  .grid-2col {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
  .page-title {
    font-size: 2rem;
  }
  .content-card {
    padding: 24px;
  }
  .footer-top {
    flex-direction: column;
  }
}
