/* Board Master - Promo Website Styles */
/* Design: Creative & Playful with Bulma + App Theme */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&display=swap');

:root {
  --color-primary: #0047AB;
  --color-primary-light: #1a5cbf;
  --color-secondary: #00AEEF;
  --color-accent: #FFD700;
  --color-bg: #F8FAFF;
  --color-bg-dark: #0047AB;
  --color-surface: #FFFFFF;
  --color-text-primary: #1A2A4A;
  --color-text-secondary: #6688AA;
  --color-text-muted: #94a3b8;
  --color-success: #28A745;
  --color-error: #DC3545;
  --border-radius: 12px;
  --border-radius-lg: 20px;
  --font-family: 'Nunito', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-family);
  color: var(--color-text-primary);
  background: var(--color-bg);
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

/* ---- NAVBAR ---- */
.navbar {
  background: rgba(255,255,255,0.92) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 16px rgba(0,71,171,0.06);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.5rem 0;
}
.navbar-brand .navbar-item {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--color-primary) !important;
  gap: 0.4rem;
}
.navbar-brand .navbar-item .dice-icon {
  font-size: 1.5rem;
}
.navbar-menu .navbar-item {
  font-weight: 600;
  color: var(--color-text-primary) !important;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
  margin: 0 2px;
}
.navbar-menu .navbar-item:hover {
  background: rgba(0,71,171,0.07) !important;
  color: var(--color-primary) !important;
}
.navbar-burger span {
  background-color: var(--color-primary) !important;
  height: 2px !important;
}

/* ---- HERO ---- */
.hero-section {
  background: linear-gradient(145deg, #0047AB 0%, #003080 60%, #001a4d 100%);
  padding: 5rem 1.5rem 4rem;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,174,239,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,215,0,0.1) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-content {
  position: relative;
  z-index: 2;
}
.hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 480px;
}
.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.25s;
  border: none;
  cursor: pointer;
  font-family: var(--font-family);
  text-align: center;
}
.btn-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.btn-cta-primary {
  background: var(--color-accent);
  color: var(--color-text-primary);
}
.btn-cta-secondary {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 2px solid rgba(255,255,255,0.3);
}
.btn-cta-secondary:hover {
  background: rgba(255,255,255,0.25);
  color: #fff;
}

/* Hero device mockup */
.hero-device {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.device-frame {
  position: relative;
  width: 260px;
  background: #1a1a2e;
  border-radius: 32px;
  padding: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35), 0 0 0 2px rgba(255,255,255,0.1);
}
.device-frame img {
  width: 100%;
  border-radius: 22px;
  display: block;
}
.device-frame::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 6px;
  background: #333;
  border-radius: 3px;
  z-index: 3;
}

/* ---- FEATURES ---- */
.features-section {
  padding: 5rem 1.5rem;
  background: var(--color-bg);
}
.section-title {
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
  color: var(--color-text-primary);
  margin-bottom: 0.5rem;
}
.section-subtitle {
  text-align: center;
  color: var(--color-text-secondary);
  font-size: 1.05rem;
  margin-bottom: 3rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.feature-card {
  background: var(--color-surface);
  border-radius: var(--border-radius);
  padding: 2rem 1.5rem;
  text-align: left;
  box-shadow: 0 4px 20px rgba(0,71,171,0.06);
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s;
  height: 100%;
  border: 1px solid rgba(0,71,171,0.06);
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,71,171,0.12);
}
.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
}
.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-text-primary);
}
.feature-card p {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ---- SCREENSHOTS CAROUSEL ---- */
.screenshots-section {
  padding: 4rem 1.5rem;
  background: linear-gradient(180deg, #f0f4ff 0%, var(--color-bg) 100%);
  max-height: 520px;
  overflow: hidden;
}
.carousel-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  position: relative;
  width: 100%;
  height: 100%;
}
.carousel-slide {
  display: none;
  align-items: center;
  justify-content: center;
  height: 100%;
}
.carousel-slide.active {
  display: flex;
}
.carousel-device {
  position: relative;
  width: 180px;
  background: #1a1a2e;
  border-radius: 24px;
  padding: 8px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}
.carousel-device img {
  width: 100%;
  border-radius: 18px;
  display: block;
  cursor: pointer;
  transition: filter 0.3s;
  filter: blur(0);
}
.carousel-device img.loading {
  filter: blur(5px);
}
.carousel-device::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 4px;
  background: #333;
  border-radius: 2px;
  z-index: 3;
}
.carousel-caption {
  text-align: center;
  margin-top: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-secondary);
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 2px solid var(--color-primary);
  box-shadow: 0 4px 16px rgba(0,71,171,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  transition: transform 0.2s, box-shadow 0.2s;
  z-index: 5;
}
.carousel-btn:hover {
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(0,71,171,0.4);
  background: var(--color-primary-light);
}
.carousel-btn.prev { left: 0; }
.carousel-btn.next { right: 0; }
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 1rem;
}
.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(0,71,171,0.15);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  padding: 0;
}
.carousel-dot.active {
  background: var(--color-primary);
  transform: scale(1.25);
}

/* ---- LIGHTBOX ---- */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.lightbox-overlay.show { display: flex; }
.lightbox-overlay img {
  max-height: 90vh;
  max-width: 90vw;
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- CTA BANNER ---- */
.cta-section {
  padding: 4rem 1.5rem;
  background: linear-gradient(145deg, var(--color-primary) 0%, #003080 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.75rem;
}
.cta-section p {
  color: rgba(255,255,255,0.8);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ---- FOOTER ---- */
.site-footer {
  background: #0a1a30;
  color: rgba(255,255,255,0.7);
  padding: 3rem 1.5rem 1.5rem;
}
.footer-brand {
  font-weight: 800;
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 0.5rem;
}
.footer-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 300px;
  color: rgba(255,255,255,0.5);
}
.footer-heading {
  font-weight: 700;
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li { margin-bottom: 0.4rem; }
.footer-links a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--color-accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 2rem;
  padding-top: 1.25rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.35);
}

/* ---- LEGAL PAGES ---- */
.legal-page {
  padding: 3rem 1.5rem 4rem;
  max-width: 800px;
  margin: 0 auto;
}
.legal-page h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-text-primary);
  margin-bottom: 0.25rem;
}
.legal-date {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  margin-bottom: 2rem;
}
.legal-page h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}
.legal-page h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
.legal-page p,
.legal-page li {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  text-align: left;
}
.legal-page ul {
  padding-left: 1.25rem;
}
.legal-page a {
  color: var(--color-primary);
  text-decoration: underline;
}

/* ---- CONTACT ---- */
.contact-card {
  background: var(--color-surface);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: 0 8px 32px rgba(0,71,171,0.08);
  max-width: 560px;
  margin: 0 auto;
}
.contact-card label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-text-primary);
  margin-bottom: 0.35rem;
  text-align: left;
}
.contact-card input,
.contact-card textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid rgba(0,71,171,0.1);
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: var(--font-family);
  color: var(--color-text-primary);
  background: var(--color-bg);
  transition: border-color 0.2s;
  margin-bottom: 1.25rem;
}
.contact-card input:focus,
.contact-card textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}
.contact-card textarea { min-height: 130px; resize: vertical; }
.contact-card input[type="file"] {
  padding: 0.6rem;
  background: var(--color-surface);
}
.contact-submit {
  width: 100%;
  padding: 0.9rem;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-family);
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.contact-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,71,171,0.3);
}
.form-success {
  display: none;
  text-align: center;
  padding: 2rem;
}
.form-success.show { display: block; }
.form-success .check-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(40,167,69,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 2rem;
}

/* ---- PRIVACY BUTTON ---- */
.privacy-accept-btn {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9998;
  padding: 1rem 1.5rem 1.5rem;
  background: linear-gradient(to top, var(--color-bg) 60%, transparent);
  display: flex;
  justify-content: center;
}
.privacy-accept-btn.hidden { display: none; }
.accept-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 400px;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--color-primary), #003080);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: var(--font-family);
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(0,71,171,0.35);
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1);
}
.accept-btn:hover {
  transform: translateY(-2px);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .hero-section {
    padding: 3rem 1.25rem 2rem;
    text-align: center;
  }
  .hero-title { font-size: 2rem; }
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-buttons { justify-content: center; }
  .hero-device { margin-top: 1.5rem; }
  .device-frame { width: 180px; }
  .features-section { padding-top: 3rem; }
  .section-title { font-size: 1.6rem; }
  .screenshots-section { max-height: 440px; }
  .carousel-container { height: 280px; }
  .carousel-device { width: 150px; }
  .carousel-btn { width: 36px; height: 36px; font-size: 1rem; }
  .legal-page { padding: 2rem 1rem 3rem; }
  .legal-page h1 { font-size: 1.6rem; }
  .contact-card { padding: 1.75rem 1.25rem; }
  .footer-cols { flex-direction: column; gap: 1.5rem; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.65rem; }
  .hero-subtitle { font-size: 1rem; }
  .btn-cta { padding: 0.75rem 1.25rem; font-size: 0.9rem; }
  .carousel-device { width: 130px; }
  .carousel-container { height: 240px; }
  .feature-card { padding: 1.5rem 1.25rem; }
}

/* Utility */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
