/* ============================================
   ORIGEN DATA - ASTRO DATA SCIENCE PREMIUM THEME
   ============================================ */

:root {
  /* Core Data Science Palette */
  --bg-deep:          #060A12;
  --bg-surface:       #0B1220;
  --bg-glass:         rgba(15, 23, 42, 0.65);
  --bg-glass-hover:   rgba(30, 41, 59, 0.8);

  --border-light:     rgba(255, 255, 255, 0.08);
  --border-glow:      rgba(0, 240, 255, 0.25);
  --border-emerald:   rgba(0, 255, 157, 0.3);

  --cyan:             #00F0FF;
  --emerald:          #00FF9D;
  --violet:           #7000FF;
  --blue-accent:      #3B82F6;

  --text-main:        #F8FAFC;
  --text-muted:       #94A3B8;
  --text-dim:         #64748B;

  --font-sans:        "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono:        "JetBrains Mono", "IBM Plex Mono", monospace;

  --wrap-width:       1200px;
  --radius-lg:        16px;
  --radius-md:        10px;
  --radius-sm:        6px;
}

/* Reset & Canvas */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  background-color: var(--bg-deep);
  color: var(--text-main);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

.wrap {
  max-width: var(--wrap-width);
  margin: 0 auto;
  padding: 0 28px;
}

/* Typography & Headings */
h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 5.5vw, 4.2rem);
  font-weight: 800;
  background: linear-gradient(135deg, #FFFFFF 30%, var(--cyan) 80%, var(--emerald) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  background: linear-gradient(135deg, #FFFFFF 40%, #CBD5E1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

h3 {
  font-size: 1.35rem;
}

p {
  margin: 0 0 1.2em;
  color: var(--text-muted);
  font-size: 1rem;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin-bottom: 1em;
  font-weight: 600;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--cyan);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--cyan);
}

.eyebrow.emerald {
  color: var(--emerald);
}
.eyebrow.emerald::before {
  background: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
}

/* Gradient Text Highlight */
.text-gradient {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--emerald) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 0.85em 1.8em;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan) 0%, #00B4D8 100%);
  color: #030712;
  font-weight: 700;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.6);
  background: linear-gradient(135deg, var(--emerald) 0%, var(--cyan) 100%);
}

.btn-outline {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-glow);
  color: var(--cyan);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  background: rgba(0, 240, 255, 0.12);
  border-color: var(--cyan);
  color: #FFFFFF;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.25);
  transform: translateY(-2px);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #FCA5A5;
}
.btn-danger:hover {
  background: #EF4444;
  color: #FFFFFF;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
}

.btn-small {
  padding: 0.55em 1.1em;
  font-size: 0.85rem;
}

/* Header & Glass Nav */
.switcher-bar, .site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  padding: 0 28px;
  background: rgba(6, 10, 18, 0.75);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-logo-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon-svg {
  height: 36px;
  width: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 0 10px rgba(255, 122, 0, 0.45));
  transition: transform 0.25s ease, filter 0.25s ease;
}

.site-logo-brand:hover .logo-icon-svg {
  transform: scale(1.08);
  filter: drop-shadow(0 0 16px rgba(255, 122, 0, 0.8));
}

.logo-text-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.logo-title {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.logo-title .logo-accent {
  color: var(--cyan);
  font-weight: 800;
}

.logo-tagline {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  margin-top: 2px;
  font-weight: 400;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2em;
}

.main-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.4em 0;
  position: relative;
  transition: color 0.2s ease;
}

.main-nav a:hover, .main-nav a.active {
  color: var(--cyan);
}

.main-nav a.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--cyan);
  border-radius: 2px;
  box-shadow: 0 0 10px var(--cyan);
}

.header-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-btn a {
  padding: 0.55em 1.2em;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid var(--border-light);
  background: rgba(15, 23, 42, 0.5);
  transition: all 0.2s ease;
}

.header-btn a:hover {
  color: var(--text-main);
  border-color: var(--border-glow);
  background: rgba(30, 41, 59, 0.8);
}

.purchase-btn a {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--emerald) 100%);
  color: #030712;
  border: none;
  box-shadow: 0 0 15px rgba(0, 255, 157, 0.3);
}
.purchase-btn a:hover {
  box-shadow: 0 0 25px rgba(0, 255, 157, 0.5);
  transform: translateY(-1px);
}

/* Status Chip */
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(0, 255, 157, 0.1);
  border: 1px solid var(--border-emerald);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--emerald);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* Layout & Grid */
section {
  padding: 90px 0;
  position: relative;
}

.section-dark {
  background: rgba(11, 18, 32, 0.6);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.section-dim {
  background: rgba(6, 10, 18, 0.4);
}

.section-head {
  max-width: 680px;
  margin-bottom: 3.5em;
}
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

@media (max-width: 900px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* Glass Cards */
.card, .auth-card, .admin-form-card {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 34px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  box-shadow: 0 15px 40px rgba(0, 240, 255, 0.12);
  background: var(--bg-glass-hover);
}

.card .tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cyan);
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid var(--border-glow);
  border-radius: 20px;
  padding: 4px 12px;
  display: inline-block;
  margin-bottom: 1.2em;
}

.card.teal .tag {
  color: var(--emerald);
  background: rgba(0, 255, 157, 0.1);
  border-color: var(--border-emerald);
}

/* Hero Section */
.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 0;
  position: relative;
}

.hero-inner {
  max-width: 820px;
  margin: 0 auto;
}

.hero-title {
  margin-bottom: 0.6em;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--text-muted);
  max-width: 60ch;
  margin: 0 auto 2.2em;
}

/* Data Science Product Grid */
.products-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}

.product {
  background: var(--bg-glass);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.product:hover {
  transform: translateY(-5px);
  border-color: var(--border-glow);
  box-shadow: 0 15px 35px rgba(0, 240, 255, 0.15);
}

.product img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  background: rgba(15, 23, 42, 0.8);
  padding: 24px;
  transition: transform 0.3s ease;
}

.product:hover img {
  transform: scale(1.05);
}

.product .title {
  display: block;
  background: rgba(11, 18, 32, 0.95);
  color: var(--text-main);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 16px 18px;
  text-align: center;
  border-top: 1px solid var(--border-light);
}

.product .badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, var(--cyan) 0%, var(--emerald) 100%);
  color: #030712;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  box-shadow: 0 0 10px rgba(0, 255, 157, 0.4);
}

.product .favorite-btn {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 34px;
  height: 34px;
  background: rgba(6, 10, 18, 0.7);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border-light);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.product .favorite-btn .heart-icon {
  width: 18px;
  height: 18px;
  fill: var(--text-dim);
  transition: fill 0.2s ease;
}

.product .favorite-btn:hover {
  border-color: #EF4444;
  background: rgba(239, 68, 68, 0.2);
}

.product .favorite-btn:hover .heart-icon,
.product .favorite-btn.favorited .heart-icon {
  fill: #EF4444;
}

/* Forms */
label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.5em;
  color: var(--text-muted);
}

input, select, textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  padding: 0.85em 1em;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.7);
  color: var(--text-main);
  outline: none;
  transition: all 0.2s ease;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
  background: rgba(15, 23, 42, 0.9);
}

.alert {
  padding: 1em 1.2em;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  margin-bottom: 1.5em;
  border: 1px solid transparent;
}
.alert-error {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #FCA5A5;
}
.alert-ok {
  background: rgba(0, 255, 157, 0.15);
  border-color: var(--border-emerald);
  color: var(--emerald);
}

/* Lists */
.check-list {
  list-style: none;
  margin: 0 0 1.8em;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9em;
}

.check-list li {
  display: flex;
  gap: 0.8em;
  align-items: flex-start;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.check-list li::before {
  content: "✦";
  color: var(--cyan);
  font-size: 0.9rem;
  flex-shrink: 0;
  text-shadow: 0 0 8px var(--cyan);
}

/* Footer */
.site-footer {
  background: rgba(4, 7, 13, 0.9);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-light);
  padding: 70px 0 30px;
  color: var(--text-muted);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid var(--border-light);
}

.footer-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cyan);
  margin-bottom: 1.2em;
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 0.7em;
}

.footer-col a:hover {
  color: var(--emerald);
  transform: translateX(3px);
}

.footer-bottom {
  padding-top: 30px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-dim);
}
