/* ==============================================================================
   CYBERTECTION LEARNING AGENT AI — OFFICIAL WEB PORTAL & DOWNLOAD CENTER
   Design: Neon Cyberpunk (Deep Space Black, Cyan, Purple, Magenta)
   ============================================================================== */

:root {
  --bg: #070714;
  --bg-card: #0e0e24;
  --bg-card-hover: #141436;
  --bg-surface: #131333;
  --border-card: rgba(0, 212, 255, 0.22);
  --border-glow: rgba(168, 85, 247, 0.4);
  --primary: #00d4ff;
  --primary-dim: #0891b2;
  --accent: #a855f7;
  --accent-bright: #d946ef;
  --green: #22c55e;
  --amber: #f59e0b;
  --red: #ef4444;
  --text: #f0f0ff;
  --text-dim: #9494b8;
  --text-faint: #5e5e80;
  --terminal-bg: #04040a;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Menlo, monospace;
}

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

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(0, 212, 255, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 25%, rgba(168, 85, 247, 0.09) 0%, transparent 45%),
    radial-gradient(circle at 50% 80%, rgba(217, 70, 239, 0.06) 0%, transparent 50%);
  background-attachment: fixed;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Glassmorphism utility */
.glass {
  background: rgba(14, 14, 36, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-card);
}

/* Glowing Border Wrap */
.glow-card {
  position: relative;
  border-radius: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.glow-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px -10px rgba(0, 212, 255, 0.35);
}

/* Navigation */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 14px 0;
  border-bottom: 1px solid rgba(0, 212, 255, 0.15);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: nowrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 0;
  flex-shrink: 1;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--primary);
  box-shadow: 0 0 16px rgba(0, 212, 255, 0.4);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0.8px;
  color: var(--text);
  background: linear-gradient(90deg, #fff, var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}

.brand-subtitle {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  white-space: nowrap;
}

#nav-user-section {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--primary);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: 0 4px 18px rgba(0, 212, 255, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #2ae0ff, #be73ff);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 212, 255, 0.5);
}

.btn-outline {
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: rgba(0, 212, 255, 0.2);
  color: #fff;
  transform: translateY(-2px);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-bright));
  color: #fff;
}

.btn-accent:hover {
  opacity: 0.92;
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  padding: 70px 0 50px;
  text-align: center;
  position: relative;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 30px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.3);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.5px;
  margin-bottom: 24px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.4); opacity: 0.3; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 50%, var(--accent-bright) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: 1.25rem;
  color: var(--text-dim);
  max-width: 780px;
  margin: 0 auto 36px;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

/* Platform tags list */
.platform-tags {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.tag-item {
  font-size: 0.78rem;
  color: var(--text-faint);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px 12px;
  border-radius: 20px;
}

/* Showcase Screenshot Carousel */
.showcase {
  margin: 40px auto 60px;
  text-align: center;
}

.showcase-slider {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 20px 10px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) transparent;
}

.showcase-item {
  flex: 0 0 280px;
  scroll-snap-align: center;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-card);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s;
}

.showcase-item:hover {
  transform: scale(1.03);
  border-color: var(--primary);
}

.showcase-item img {
  width: 100%;
  height: auto;
  display: block;
}

/* Downloads Section */
.section-title-wrap {
  text-align: center;
  margin-bottom: 46px;
}

.section-badge {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: 12px;
}

.section-desc {
  color: var(--text-dim);
  max-width: 650px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.download-card {
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.dl-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.dl-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.3);
}

.dl-platform {
  font-size: 1.25rem;
  font-weight: 800;
}

.dl-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  text-transform: uppercase;
}

.badge-live {
  background: rgba(34, 197, 94, 0.15);
  color: var(--green);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.badge-soon {
  background: rgba(245, 158, 11, 0.15);
  color: var(--amber);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.dl-desc {
  font-size: 0.92rem;
  color: var(--text-dim);
  margin-bottom: 20px;
  line-height: 1.5;
}

.dl-supported {
  font-size: 0.78rem;
  color: var(--text-faint);
  margin-bottom: 24px;
}

/* App Stores Grid */
.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 60px;
}

.store-card {
  padding: 18px;
  text-align: center;
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.store-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  background: var(--bg-card-hover);
}

.store-icon {
  font-size: 28px;
}

.store-name {
  font-size: 0.9rem;
  font-weight: 700;
}

.store-status {
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 20px;
  font-weight: 700;
}

/* Features Section */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 26px;
  margin-bottom: 70px;
}

.feature-card {
  padding: 30px;
}

.feature-icon-box {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(168, 85, 247, 0.15));
  border: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.feature-desc {
  font-size: 0.92rem;
  color: var(--text-dim);
  line-height: 1.6;
}

/* Student Portal & Auth Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 4, 10, 0.85);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.auth-modal {
  width: 100%;
  max-width: 480px;
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: 20px;
  padding: 34px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.8);
  position: relative;
  animation: modal-pop 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modal-pop {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: transparent;
  border: none;
  color: var(--text-faint);
  font-size: 22px;
  cursor: pointer;
  transition: color 0.2s;
}

.modal-close:hover {
  color: #fff;
}

.auth-tabs {
  display: flex;
  background: var(--bg-surface);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 24px;
}

.auth-tab {
  flex: 1;
  text-align: center;
  padding: 8px 0;
  border-radius: 9px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.2s;
}

.auth-tab.active {
  background: rgba(0, 212, 255, 0.15);
  color: var(--primary);
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border-card);
  border-radius: 10px;
  padding: 12px 14px;
  color: #fff;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.form-input:focus {
  border-color: var(--primary);
}

.auth-status-msg {
  font-size: 0.85rem;
  margin-top: 14px;
  text-align: center;
  min-height: 20px;
}

/* Student Dashboard View */
.portal-card {
  padding: 30px;
  margin-top: 20px;
}

.portal-user-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 24px;
}

.license-box {
  background: var(--terminal-bg);
  border: 1px dashed var(--primary);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.license-key {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 1px;
}

/* Footer */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 50px 0 30px;
  margin-top: 60px;
  text-align: center;
  color: var(--text-faint);
  font-size: 0.88rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 20px;
}

.footer-link {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--primary);
}

/* Responsive Navigation & Layout */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.1rem;
  }
  .hero-sub {
    font-size: 0.98rem;
  }
  .nav-links {
    display: none;
  }
  .navbar {
    padding: 10px 0;
  }
  .container {
    padding: 0 14px;
  }
  .nav-wrap {
    gap: 8px;
    flex-wrap: nowrap;
  }
  .brand {
    gap: 8px;
    min-width: 0;
    flex-shrink: 1;
    overflow: hidden;
  }
  .brand-logo {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    flex-shrink: 0;
  }
  .brand-title {
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .brand-subtitle {
    font-size: 0.62rem;
    letter-spacing: 0.5px;
    white-space: nowrap;
  }
  #open-auth-btn {
    padding: 7px 12px;
    font-size: 0.78rem;
    gap: 5px;
    white-space: nowrap;
    flex-shrink: 0;
  }
  #open-auth-btn svg {
    width: 14px;
    height: 14px;
  }
  .showcase-item {
    width: 280px;
    height: 480px;
  }
}

@media (max-width: 440px) {
  .container {
    padding: 0 10px;
  }
  .brand {
    gap: 6px;
  }
  .brand-logo {
    width: 30px;
    height: 30px;
  }
  .brand-title {
    font-size: 0.88rem;
  }
  .brand-subtitle {
    display: none;
  }
  #open-auth-btn {
    padding: 6px 10px;
    font-size: 0.74rem;
  }
  #open-auth-btn svg {
    display: none;
  }
}

