/* =================== GLOBAL =================== */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

:root {
  --accent: #00e6b8;
  --muted: #9fbcd4;
  --glass: rgba(20,20,30,.88);
  --card: rgba(255,255,255,.06);
}

body {
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  background: linear-gradient(135deg, #050505, #0b0f19, #121826);
  color: #eef6f5;
  padding-top: 120px;
  transition: background .5s ease;
}

/* =================== TICKER =================== */
.top-ticker {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 36px;
  background: linear-gradient(90deg,#0f2027,#203a43,#2c5364);
  overflow: hidden;
  z-index: 1001;
}
.ticker-track {
  display: flex;
  gap: 40px;
  white-space: nowrap;
  animation: ticker 25s linear infinite;
  align-items: center;
  height: 100%;
}
@keyframes ticker { from { transform: translateX(100%); } to { transform: translateX(-100%); } }

/* =================== NAVBAR =================== */
.navbar {
  position: fixed;
  top: 42px; left: 50%;
  transform: translateX(-50%);
  width: 92%; max-width: 1200px;
  height: 72px;
  background: var(--glass);
  backdrop-filter: blur(16px);
  border-radius: 999px;
  box-shadow: 0 15px 40px rgba(0,0,0,.6);
  transition: box-shadow 0.3s ease, filter 0.3s ease;
  z-index: 1000;
}
.navbar:hover { 
  box-shadow: 0 20px 50px rgba(0,230,184,0.6);
  filter: brightness(1.05);
}
.nav-container { height: 100%; display: flex; align-items: center; justify-content: space-between; padding: 0 28px; }
.nav-left { 
  display: flex; 
  align-items: center; 
  gap: 14px; 
}

/* =================== BRAND LINK RESET =================== */
.nav-left a {
  text-decoration: none;
  color: inherit;
}
.nav-left a:hover { text-decoration: none; }

.logo-circle {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg,#00e6b8,#00bfa5);
  color: #022;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; letter-spacing: 1px;
  box-shadow: 0 0 15px rgba(0,230,184,.6);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.logo-circle:hover { transform: scale(1.1); box-shadow: 0 0 25px rgba(0,230,184,0.8); }
.brand { font-weight: 800; color: var(--accent); }

.nav-menu { list-style: none; display: flex; align-items: center; gap: 26px; margin: 0; padding: 0; }
.nav-menu a { color: #e6fffa; text-decoration: none; font-weight: 700; padding: 6px 4px; }
.active { border-bottom: 2px solid var(--accent); }

/* =================== SIGNUP / BUY BUTTON =================== */
.btn-nav {
  display: flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg,#00e6b8,#00bfa5);
  color: #022 !important;
  padding: 12px 36px;
  border-radius: 999px; font-weight: 900; font-size: 1rem;
  box-shadow: 0 0 25px rgba(0,230,184,.6);
  transition: all 0.3s ease;
  position: relative;
}
.btn-nav::before { content: "🛒"; font-size: 1.1rem; }
.btn-nav:hover { 
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(0,230,184,0.8), 0 0 60px rgba(0,230,184,0.4);
}

/* =================== DROPDOWN =================== */
.dropdown { position: relative; }

.dropdown-menu {
  position: absolute;
  top: 46px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #0b1220;
  border-radius: 14px;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transition: .3s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,.6);
  padding: 6px 0;
  z-index: 1000;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu li { list-style: none; }

.dropdown-menu a {
  display: block;
  padding: 12px 18px;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.dropdown-menu a:hover {
  background: rgba(0,230,184,.15);
}


/* =================== SUBMENU LEVEL 2 =================== */

.submenu { 
  position: relative; 
}

.submenu > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Arrow indicator */
.submenu > a::after {
  content: "▸";
  font-size: 0.8rem;
  opacity: .8;
}

/* Submenu panel */
.submenu-menu {
  position: absolute;
  top: 0;
  left: 100%;
  margin-left: 8px;
  background: #0b1220;
  border-radius: 14px;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(10px);
  transition: .25s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,.6);
  padding: 6px 0;
  z-index: 1100;
}

/* Show submenu */
.submenu:hover .submenu-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.submenu-menu li { 
  list-style: none; 
}

.submenu-menu a {
  display: block;
  padding: 12px 18px;
  white-space: nowrap;
  font-weight: 700;
  transition: background 0.2s ease;
}

.submenu-menu a:hover {
  background: rgba(0,230,184,.15);
}


/* =================== SMALL SUBMENU (PYTHON MAILER ONLY) =================== */

.submenu-menu.small-submenu {
  min-width: 220px;          /* compact width */
  padding: 4px 0;            /* tighter spacing */
}

.submenu-menu.small-submenu a {
  padding: 8px 14px;         /* smaller padding */
  font-size: 14px;           /* slightly smaller text */
  font-weight: 600;          /* lighter than default submenu */
}

.submenu-menu.small-submenu a:hover {
  background: rgba(0,230,184,.12);
}

/* =================== HERO BANNER =================== */
.hero-banner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  max-width: 1150px; margin: 40px auto 20px; padding: 40px 20px;
  background: linear-gradient(135deg,#0b1220,#121826); border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0,0,0,.5);
  transition: box-shadow 0.3s ease, filter 0.3s ease;
  animation: glowPulse 6s ease-in-out infinite alternate;
}
.hero-banner:hover { box-shadow: 0 20px 50px rgba(0,230,184,0.6); filter: brightness(1.05); }
.hero-banner .hero-content { flex: 1 1 400px; padding-right: 20px; }
.hero-banner h1 { font-size: 2.2rem; color: var(--accent); margin-bottom: 15px; }
.hero-banner p { font-size: 1rem; color: var(--muted); line-height: 1.6; margin-bottom: 20px; }
.btn-hero { padding: 14px 28px; font-size: 1rem; }
.hero-banner .hero-graphic { flex: 1 1 300px; display: flex; align-items: center; justify-content: center; margin-top: 20px; }
.hero-svg .svg-card { transition: all 0.3s ease, transform 0.4s ease; cursor: pointer; }
.hero-svg .svg-card:hover { transform: translateY(-8px) scale(1.05); filter: brightness(1.2); }

/* =================== HERO SVG FLOAT & HOVER =================== */
/* Floating animation for cards and text */
.platform-card {
  animation: float 4s ease-in-out infinite;
}
.platform-card:nth-child(1) { animation-delay: 0s; }
.platform-card:nth-child(2) { animation-delay: 0.5s; }
.platform-card:nth-child(3) { animation-delay: 1s; }
.platform-card:nth-child(4) { animation-delay: 1.5s; }
.platform-card:nth-child(5) { animation-delay: 2s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Hover effect for cards and their text */
.svg-card:hover, .svg-card:hover + .svg-text {
  transform: translateY(-8px) scale(1.05);
  filter: brightness(1.2);
}

/* =================== SECTIONS & DYNAMIC CARDS =================== */
.section-title {
  text-align: center;
  margin: 30px 0 20px;
  color: #63e6be;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}
.section-title:hover { 
  text-shadow: 0 0 12px rgba(0,230,184,0.6), 0 0 20px rgba(0,230,184,0.4); 
  transform: scale(1.05); 
}

.wrapper {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  padding: 20px;
}

.card {
  background: var(--card, #111);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 240px;
  border: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 12px 35px rgba(0,0,0,.55);
  opacity: 0;
  transform: translateY(30px);
  transition: transform 0.4s ease, box-shadow 0.4s ease, filter 0.4s ease, opacity 0.5s ease;
}

.card.show { 
  opacity: 1; 
  transform: translateY(0); 
}

.card:hover { 
  transform: translateY(-8px) scale(1.03); 
  box-shadow: 0 20px 50px rgba(0,230,184,0.4), 0 0 25px rgba(0,230,184,0.3); 
  filter: brightness(1.1); 
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  color: var(--accent, #63e6be);
}

.card p {
  color: var(--muted, #aaa);
  font-size: 0.95rem;
  line-height: 1.5;
}

.meta {
  font-size: 0.85rem;
  color: #8fa;
  margin-top: auto;
}

.version {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.latest-badge {
  background: linear-gradient(135deg,#00e6b8,#00bfa5);
  color: #022;
}

.archive-badge {
  background: #777;
  color: #fff;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px; /* smaller gap for side-by-side buttons */
  margin-top: 14px;
}

/* =================== BUTTON BASE & GROUP FIX =================== */
.btn, .btn-group a {
  padding: 6px 12px;    /* smaller padding */
  font-size: 0.85rem;   /* smaller text */
  min-width: 80px;      /* fixed width */
  text-align: center;
  flex: 1;              /* side-by-side layout */
  border-radius: 14px;
  font-weight: 800;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.primary {
  background: linear-gradient(135deg,#00e6b8,#00bfa5);
  color: #022;
}

.primary:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(0,230,184,0.7), 0 0 50px rgba(0,230,184,0.3);
}

.secondary {
  background: #1a73e8;
  color: #fff;
}

.winrar {
  background: linear-gradient(135deg,#ff5722,#ff7043);
  color: #fff;
}

.winrar:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(255,87,34,0.7), 0 0 50px rgba(255,87,34,0.3);
}

/* =================== RESPONSIVE FIX =================== */
@media (max-width: 1024px) {
  .wrapper {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .wrapper {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
    padding: 16px;
  }
}

/* =================== CONTACT & DEMO =================== */
.contact-wrapper { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; margin: 40px auto; max-width: 1150px; padding: 20px; }
.contact-card {
  background: var(--card);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 10px 30px rgba(0,0,0,.55);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.contact-card:hover { transform: translateY(-8px); box-shadow: 0 18px 45px rgba(0,230,184,.4); }
.contact-card h3 { margin-bottom: 20px; color: var(--accent); }
.contact-card p { color: var(--muted); margin-bottom: 18px; line-height: 1.5; }

.contact-option {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(145deg, rgba(0,230,184,0.2), rgba(0,191,165,0.15));
  border-radius: 50px;
  padding: 14px 20px;
  margin: 12px 0;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid rgba(0,230,184,0.3);
  box-shadow: 0 4px 20px rgba(0,230,184,0.2);
  width: 100%;
  justify-content: flex-start;
}
.contact-option:hover { background: linear-gradient(145deg, rgba(0,230,184,0.35), rgba(0,191,165,0.25)); transform: translateY(-6px); box-shadow: 0 10px 30px rgba(0,230,184,0.4); }
.contact-icon {
  font-size: 1.6rem;
  background: linear-gradient(135deg,#00e6b8,#00bfa5);
  color: #022;
  padding: 12px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 15px rgba(0,230,184,0.4);
  flex-shrink: 0;
}
.contact-text { display: flex; flex-direction: column; text-align: left; color: #eef6f5; width: calc(100% - 56px); }
.contact-text strong { font-size: 1rem; color: var(--accent); }
.contact-text span { font-size: .85rem; color: var(--muted); line-height: 1.4; }

/* =================== DEMO FORM =================== */
.demo-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.demo-form input {
  padding: 14px 16px;
  border-radius: 50px;
  background: rgba(20,20,30,.95);
  border: 1px solid rgba(255,255,255,.15);
  color: #fff;
  transition: .3s;
}

.demo-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(0,230,184,.3);
}

.demo-form button {
  background: linear-gradient(135deg,#00e6b8,#00bfa5);
  color: #022;
  border: none;
  padding: 14px;
  border-radius: 50px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .25s ease;
}

.demo-form button:hover {
  transform: scale(1.05);
}

#formMessage {
  text-align: center;
  font-weight: 700;
  margin-top: 6px;
  font-size: .95rem;
}

/* ================= CUSTOM SELECT (JS-COMPATIBLE FINAL) ================= */

.custom-select-wrapper {
  position: relative;
  width: 100%;
  margin-bottom: 12px;
}

.custom-select {
  position: relative;
  cursor: pointer;
  user-select: none;
}

/* Trigger */
.custom-select-trigger {
  padding: 14px 16px;
  border-radius: 50px;
  background: rgba(20,20,30,0.95);
  border: 1px solid rgba(255,255,255,0.15);
  color: #eef6f5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.custom-select-trigger::after {
  content: "▾";
  font-size: 0.9rem;
  margin-left: 10px;
  transition: transform 0.3s ease;
}

/* Open state */
.custom-select.open .custom-select-trigger {
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(0,230,184,0.35);
}

.custom-select.open .custom-select-trigger::after {
  transform: rotate(180deg);
}

/* Dropdown */
.custom-options {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  background: rgba(20,20,30,0.97);
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(0,0,0,0.65);
  z-index: 9999;

  /* hidden by default */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.25s ease;

  max-height: 260px;
  overflow-y: auto;
}

/* Show dropdown */
.custom-select.open .custom-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Option */
.custom-option {
  padding: 14px 18px;
  margin: 6px;
  border-radius: 50px;
  background: linear-gradient(
    145deg,
    rgba(0,230,184,0.15),
    rgba(0,191,165,0.12)
  );
  color: #eef6f5;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.custom-option:hover {
  background: linear-gradient(
    145deg,
    rgba(0,230,184,0.35),
    rgba(0,191,165,0.25)
  );
  color: #ffffff;
}

/* Selected */
.custom-option.selected {
  background: linear-gradient(135deg,#00e6b8,#00bfa5);
  color: #022;
  font-weight: 700;
}

/* Scrollbar (nice touch) */
.custom-options::-webkit-scrollbar {
  width: 6px;
}

.custom-options::-webkit-scrollbar-thumb {
  background: rgba(0,230,184,0.4);
  border-radius: 10px;
}

/* =================== FOOTER BRAND LINK RESET =================== */
.footer-left a {
  text-decoration: none;
  color: inherit;
}
.footer-left a:hover {
  text-decoration: none;
}

/* LOGO */
.footer-logo-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg,#00e6b8,#00bfa5);
  color: #022;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  letter-spacing: 1px;
  font-size: 1rem;
  box-shadow: 0 0 15px rgba(0,230,184,.6);
  transition: all 0.3s ease;
}
.footer-logo-circle:hover {
  transform: scale(1.08);
  box-shadow:
    0 0 25px rgba(0,230,184,.9),
    0 0 50px rgba(0,230,184,.4);
}

.footer-left .company {
  color: var(--accent);
  font-weight: 800;
}
.footer-left .slogan {
  font-size: .85rem;
  color: var(--muted);
}
.footer-right {
  font-size: .85rem;
  color: var(--muted);
  white-space: nowrap;
}

/* =================== CYLINDER FOOTER =================== */
.site-footer {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 60px;
  padding: 0 20px;
  background: transparent;
}

.footer-inner {
  max-width: 1150px;
  width: 100%;

  /* 🔥 CYLINDER LOOK */
  background: linear-gradient(
    135deg,
    rgba(20,20,30,.95),
    rgba(35,35,55,.95)
  );
  border-radius: 999px; /* pill / tube */
  padding: 22px 36px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  border: 1px solid rgba(0,230,184,.35);

  /* 3D DEPTH */
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 10px 30px rgba(0,0,0,.65),
    0 0 28px rgba(0,230,184,.25);
}

/* LEFT */
.footer-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* RIGHT */
.footer-right {
  text-align: right;
}

/* =================== MOBILE FIX =================== */
@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    border-radius: 24px; /* better on small screens */
    padding: 24px;
    text-align: center;
  }

  .footer-right {
    text-align: center;
    white-space: normal;
  }
}

/* =================== END =================== */
