:root {
  --bg: #0C1014;
  --surface: #141A21;
  --surface-highlight: #1C242E;
  --border: #263342;
  --primary: #00E676;
  --primary-dim: rgba(0, 230, 118, 0.12);
  --text-heading: #FFFFFF;
  --text-subheading: #94A3B8;
  --text-muted: #64748B;
  --error: #FF5252;
  --error-dim: rgba(255, 82, 82, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text-subheading);
  line-height: 1.6;
  overflow-x: hidden;
  font-size: 16px;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: #69F0AE;
}

/* HEADER & NAVBAR */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(12, 16, 20, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-logo {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  color: var(--text-heading);
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.parent-tag {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

/* DESKTOP NAV LINKS */
.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-links > a {
  color: var(--text-subheading);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s;
}

.nav-links > a:hover,
.nav-links > a.active {
  color: var(--primary);
}

/* HAMBURGER TOGGLE */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
  z-index: 1001;
}

.mobile-nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-heading);
  transition: all 0.3s ease-in-out;
  border-radius: 2px;
}

.mobile-nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.mobile-nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* DROPDOWN MENU */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-subheading);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.25rem 0;
  transition: color 0.2s;
}

.dropdown-trigger:hover,
.dropdown:hover .dropdown-trigger {
  color: var(--primary);
}

.dropdown-trigger .caret {
  font-size: 0.65rem;
  transition: transform 0.2s;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.5rem;
  min-width: 220px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  margin-top: 0.5rem;
  z-index: 100;
}

.dropdown:hover .dropdown-menu,
.dropdown.active .dropdown-menu {
  display: flex;
  flex-direction: column;
}

.dropdown-menu a {
  padding: 0.65rem 0.85rem;
  font-size: 0.85rem;
  border-radius: 8px;
  color: var(--text-subheading);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.dropdown-menu a:hover {
  background: var(--surface-highlight);
  color: var(--primary);
}

.dropdown-menu hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0.35rem 0;
}

.danger-link {
  color: var(--error) !important;
}

.danger-link:hover {
  background: var(--error-dim) !important;
}

.corporate-link {
  border: 1px solid var(--border);
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  font-size: 0.8rem !important;
  color: var(--text-heading) !important;
  background: var(--surface-highlight);
  margin-left: 0.5rem;
}

.corporate-link:hover {
  border-color: var(--primary);
}

/* LAYOUT CONTAINER */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

/* HERO */
.hero {
  text-align: center;
  padding: 4.5rem 1rem 3rem;
}

.tagline-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.1rem;
  background: var(--primary-dim);
  border: 1px solid rgba(0, 230, 118, 0.3);
  border-radius: 999px;
  color: var(--primary);
  font-size: clamp(0.7rem, 2vw, 0.75rem);
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.hero h1 {
  color: var(--text-heading);
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 1.25rem;
}

.hero h1 span {
  color: var(--primary);
}

.hero p {
  max-width: 680px;
  margin: 0 auto 2.5rem;
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: var(--text-subheading);
}

.store-cta-group {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: var(--surface);
  color: var(--text-heading);
  border: 1px solid var(--border);
  padding: 0.85rem 1.75rem;
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
  max-width: 260px;
}

.store-btn.primary {
  background: var(--primary);
  color: var(--bg);
  border-color: var(--primary);
}

.store-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(0, 230, 118, 0.25);
}

/* MODULES GRID */
.section-title {
  color: var(--text-heading);
  font-size: clamp(1.75rem, 4vw, 2rem);
  font-weight: 900;
  letter-spacing: -0.5px;
  text-align: center;
  margin-bottom: 0.75rem;
}

.section-sub {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
  font-size: 0.95rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: clamp(1.5rem, 3vw, 2rem);
  transition: border-color 0.2s, transform 0.2s;
}

.card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary-dim);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.card h3 {
  color: var(--text-heading);
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.9rem;
  color: var(--text-subheading);
  line-height: 1.5;
}

/* DYNAMIC PAGE VIEWS */
.page-section {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: clamp(1.75rem, 4vw, 3rem) clamp(1.25rem, 3vw, 2.5rem);
  margin-top: 2rem;
}

.page-section.active {
  display: block;
}

/* LEGAL DOCUMENTS */
.legal-content h2 {
  color: var(--text-heading);
  font-size: clamp(1.6rem, 4vw, 2rem);
  font-weight: 900;
  margin-bottom: 0.4rem;
}

.legal-content .effective-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.legal-content h3 {
  color: var(--text-heading);
  font-size: 1.25rem;
  font-weight: 800;
  margin: 2rem 0 0.6rem;
  border-left: 3px solid var(--primary);
  padding-left: 0.75rem;
}

.legal-content p,
.legal-content ul {
  margin-bottom: 1.2rem;
  font-size: 0.95rem;
  color: var(--text-subheading);
  line-height: 1.7;
}

.legal-content ul {
  padding-left: 1.5rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
}

/* SUPPORT LAYOUT */
.support-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 2.5rem;
  margin-top: 1.5rem;
}

.support-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.support-contact-card {
  background: var(--surface-highlight);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
}

.support-contact-card h4 {
  color: var(--text-heading);
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.support-contact-card p {
  font-size: 0.88rem;
  color: var(--text-subheading);
  line-height: 1.6;
}

.contact-item {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.contact-item:last-child {
  margin-bottom: 0;
}

.contact-item .label {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.contact-item .val {
  font-size: 0.95rem;
  color: var(--text-heading);
  font-weight: 600;
  margin-top: 2px;
  word-break: break-all;
}

/* FORMS */
.styled-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  background: var(--surface-highlight);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: clamp(1.25rem, 3vw, 2rem);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-heading);
}

.styled-form input, 
.styled-form textarea, 
.styled-form select {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  color: var(--text-heading);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}

.styled-form input:focus, 
.styled-form textarea:focus, 
.styled-form select:focus {
  border-color: var(--primary);
}

.checkbox-label {
  font-size: 0.8rem;
  color: var(--text-subheading);
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--primary);
}

.submit-btn {
  background: var(--primary);
  color: var(--bg);
  border: none;
  padding: 0.95rem;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  transition: opacity 0.2s;
  width: 100%;
}

.submit-btn.danger {
  background: var(--error);
  color: #fff;
}

.submit-btn:hover {
  opacity: 0.9;
}

.alert-box {
  background: var(--error-dim);
  border: 1px solid rgba(255, 82, 82, 0.3);
  padding: 1.1rem 1.35rem;
  border-radius: 14px;
  margin-bottom: 1.5rem;
  font-size: 0.88rem;
  color: #FFA4A4;
  line-height: 1.5;
}

.deletion-wrapper {
  max-width: 650px;
  margin-top: 1.5rem;
}

.form-status {
  display: none;
  padding: 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  word-break: break-word;
}

.form-status.success {
  background: var(--primary-dim);
  color: var(--primary);
  border: 1px solid var(--primary);
}

/* FOOTER */
footer {
  border-top: 1px solid var(--border);
  padding: 4.5rem 1.5rem 2.5rem;
  background: #080B0E;
  margin-top: 5rem;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-brand p {
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 320px;
  line-height: 1.6;
}

.footer-col h5 {
  color: var(--text-heading);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-col ul li a {
  color: var(--text-subheading);
  font-size: 0.88rem;
  cursor: pointer;
}

.footer-col ul li a:hover {
  color: var(--primary);
}

.footer-contact-line {
  font-size: 0.85rem;
  color: var(--text-subheading);
  margin-bottom: 0.5rem;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* =========================================================
   RESPONSIVE MEDIA QUERIES (ALL-SCREEN ADAPTATION)
   ========================================================= */

/* Tablets & Small Laptops (Max 1024px) */
@media (max-width: 1024px) {
  .support-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

/* Tablets & Large Phones (Max 768px) */
@media (max-width: 768px) {
  .mobile-nav-toggle {
    display: flex;
  }

  /* Slide-down Mobile Navigation Drawer */
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    gap: 1.25rem;
    display: none;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.8);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links > a, 
  .dropdown-trigger {
    font-size: 1.05rem;
    width: 100%;
    padding: 0.5rem 0;
  }

  .dropdown {
    width: 100%;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    background: var(--surface-highlight);
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.75rem;
    display: none;
  }

  .dropdown.active .dropdown-menu {
    display: flex;
  }

  .corporate-link {
    margin-left: 0;
    width: 100%;
    text-align: center;
    padding: 0.6rem;
  }

  .parent-tag {
    display: none;
  }

  .hero {
    padding: 3rem 0.5rem 2rem;
  }

  .store-cta-group {
    flex-direction: column;
    align-items: center;
  }

  .store-btn {
    max-width: 100%;
  }
}

/* Small Phones (Max 480px) */
@media (max-width: 480px) {
  .container {
    padding: 2rem 1rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 1.25rem;
  }
}