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

:root {
  --primary: #7c3aed;
  --primary-dark: #5b21b6;
  --primary-light: #a78bfa;
  --accent: #06b6d4;
  --accent-light: #67e8f9;
  --dark: #0f172a;
  --dark-2: #1e293b;
  --gray: #64748b;
  --light: #f8fafc;
  --white: #ffffff;
  --gradient: linear-gradient(135deg, #7c3aed 0%, #06b6d4 100%);
  --gradient-dark: linear-gradient(135deg, #1e1b4b 0%, #0f172a 50%, #0c4a6e 100%);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
  background: var(--white);
}

/* ========== NAVBAR ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0.75rem 2rem;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: white;
  font-weight: 800;
  font-size: 1.25rem;
}

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

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

.nav-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: white; }

.nav-cta {
  padding: 0.6rem 1.5rem !important;
  background: var(--gradient) !important;
  color: white !important;
  border-radius: 8px;
  font-weight: 600 !important;
  transition: transform 0.2s, box-shadow 0.2s !important;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ========== PAGE HERO ========== */
.page-hero {
  padding: 8rem 2rem 4rem;
  background: var(--gradient-dark);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.15) 0%, transparent 70%);
}

.page-hero h1 {
  font-size: 2.75rem;
  font-weight: 900;
  color: white;
  position: relative;
  z-index: 1;
  margin-bottom: 1rem;
}

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

.page-hero p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ========== CONTENT ========== */
.page-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.page-content h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--dark);
  margin: 3rem 0 1rem;
}

.page-content h2:first-child {
  margin-top: 0;
}

.page-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark-2);
  margin: 2rem 0 0.75rem;
}

.page-content p {
  font-size: 1rem;
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.page-content ul, .page-content ol {
  margin: 1rem 0 1.5rem 1.5rem;
  color: var(--gray);
}

.page-content li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.page-content a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.page-content a:hover {
  text-decoration: underline;
}

.page-content strong {
  color: var(--dark);
  font-weight: 600;
}

/* ========== CARDS GRID ========== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 2rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.75rem;
}

.card p {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.6;
}

/* ========== INFO BOX ========== */
.info-box {
  background: linear-gradient(135deg, #f5f3ff, #ede9fe);
  border: 1px solid #ddd6fe;
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.info-box p {
  color: var(--dark-2);
  margin: 0;
}

/* ========== CTA SECTION ========== */
.cta-section {
  padding: 5rem 2rem;
  background: var(--gradient-dark);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.2) 0%, transparent 70%);
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 650px;
  margin: 0 auto;
}

.cta-section h2 {
  font-size: 2.25rem;
  font-weight: 800;
  color: white;
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2rem;
}

.btn-primary {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--gradient);
  color: white;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.4);
}

/* ========== FOOTER ========== */
.footer {
  padding: 4rem 2rem 2rem;
  background: var(--dark);
  color: rgba(255, 255, 255, 0.6);
}

.footer-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.footer-brand h3 span {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-col h4 {
  color: white;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; }

.footer-col li { margin-bottom: 0.6rem; }

.footer-col a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-col a:hover { color: white; }

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

/* ========== MODAL ========== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: white;
  border-radius: 16px;
  padding: 2.5rem;
  max-width: 480px;
  width: 100%;
  position: relative;
  box-shadow: 0 25px 50px rgba(0,0,0,0.15);
  animation: modalIn 0.3s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  font-size: 1.75rem;
  color: #94a3b8;
  cursor: pointer;
  line-height: 1;
}
.modal-close:hover { color: #334155; }
.modal-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.5rem;
}
.modal-subtitle {
  font-size: 0.875rem;
  color: #64748b;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.375rem;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 0.9rem;
  color: #334155;
  background: #f8fafc;
  transition: border-color 0.2s;
  font-family: inherit;
  box-sizing: border-box;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
}
.btn-submit {
  display: block;
  width: 100%;
  padding: 0.9rem;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  background: var(--gradient);
  color: white;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
  margin-top: 0.5rem;
}
.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.4);
}
.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ========== PLATFORM SHOWCASE (blog articles) ========== */
.platform-showcase {
  margin: 3rem 0;
  padding: 2.5rem 2rem;
  background: linear-gradient(135deg, #f5f3ff, #ede9fe);
  border: 2px solid #ddd6fe;
  border-radius: 20px;
}

.platform-showcase h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--dark);
  text-align: center;
  margin-bottom: 0.5rem;
}

.platform-showcase > p {
  text-align: center;
  font-size: 0.9rem;
  color: var(--gray);
  margin-bottom: 1.5rem;
}

.showcase-grid-blog {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.showcase-grid-blog .sc-item {
  background: white;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  transition: all 0.3s;
  cursor: pointer;
}

.showcase-grid-blog .sc-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-light);
}

.showcase-grid-blog .sc-item img {
  width: 100%;
  display: block;
  border-bottom: 1px solid #f1f5f9;
}

.showcase-grid-blog .sc-item .sc-label {
  padding: 0.6rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--dark);
}

.showcase-grid-blog .sc-item .sc-label span {
  font-weight: 400;
  color: var(--gray);
  font-size: 0.75rem;
}

/* Blog lightbox */
.blog-lightbox {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  cursor: pointer;
}

.blog-lightbox.show {
  display: flex;
}

.blog-lightbox img {
  max-width: 95%;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}

.blog-lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  background: rgba(255,255,255,0.15);
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.blog-lightbox-close:hover {
  background: rgba(255,255,255,0.3);
}

/* ========== SCROLL TO TOP ========== */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: white;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
  z-index: 999;
}
.scroll-top.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.scroll-top:hover {
  background: linear-gradient(135deg, #6d28d9, #9333ea);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.5);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  /* Mobile Navigation */
  .nav-links { display: none; }
  .nav-links.show {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(20px);
    padding: 1.5rem 2rem;
    gap: 0.25rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  }
  .nav-links.show li { width: 100%; }
  .nav-links.show a {
    display: block;
    padding: 0.75rem 0;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
  .nav-links.show .nav-cta {
    display: block;
    text-align: center;
    margin-top: 0.5rem;
    padding: 0.75rem 1.5rem !important;
    border-bottom: none;
  }
  .mobile-menu-btn { display: block; }

  /* Page Hero */
  .page-hero { padding: 6.5rem 1.25rem 2.5rem; }
  .page-hero h1 { font-size: 1.75rem; }
  .page-hero p { font-size: 1rem; }

  /* Content */
  .page-content { padding: 2.5rem 1.25rem; }
  .page-content h2 { font-size: 1.4rem; margin: 2rem 0 0.75rem; }
  .page-content h3 { font-size: 1.1rem; }

  /* Cards Grid */
  .cards-grid { grid-template-columns: 1fr; gap: 1rem; }
  .card { padding: 1.5rem; }

  /* Info Box */
  .info-box { padding: 1.25rem; }

  /* Platform Showcase */
  .platform-showcase { padding: 1.5rem 1.25rem; margin: 2rem 0; }
  .showcase-grid-blog { grid-template-columns: 1fr; }

  /* CTA Section */
  .cta-section { padding: 3.5rem 1.25rem; }
  .cta-section h2 { font-size: 1.5rem; }
  .cta-section p { font-size: 0.95rem; }
  .btn-primary { padding: 0.9rem 2rem; font-size: 1rem; }

  /* Footer */
  .footer { padding: 3rem 1.25rem 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }

  /* Modal */
  .modal-box { padding: 1.75rem; margin: 0.5rem; }
  .modal-title { font-size: 1.25rem; }
}

@media (max-width: 480px) {
  .page-hero h1 { font-size: 1.5rem; }
  .page-hero { padding: 6rem 1rem 2rem; }
  .page-content { padding: 2rem 1rem; }
  .page-content h2 { font-size: 1.25rem; }
  .card { padding: 1.25rem; }
  .cta-section h2 { font-size: 1.35rem; }
  .footer-grid { gap: 1.5rem; }
}
