@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --bg-color: #0b0d19;
  --panel-bg: rgba(22, 28, 45, 0.7);
  --panel-border: rgba(255, 255, 255, 0.08);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --accent-blue: #3b82f6;
  --accent-pink: #d946ef;
  --accent-orange: #f97316;
  --glow-pink: rgba(217, 70, 239, 0.4);
  --glow-blue: rgba(59, 130, 246, 0.4);
  --font-family: 'Outfit', sans-serif;
  --shadow-main: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --radius-main: 16px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
}

body {
  background: radial-gradient(circle at 50% 0%, #1e1b4b 0%, var(--bg-color) 70%);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow-x: hidden;
  padding: 2rem 1rem;
}

/* Glassmorphic Container */
.glass-panel {
  background: var(--panel-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-main);
  box-shadow: var(--shadow-main);
  padding: 2.5rem;
  width: 100%;
  max-width: 900px;
  margin-top: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  
  /* GPU Layer Promotion to prevent scroll crashes */
  transform: translateZ(0);
  will-change: transform, filter;
  backface-visibility: hidden;
}

/* Hero Section */
.hero {
  text-align: center;
  max-width: 600px;
  margin-top: 10vh;
}

h1 {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  background: linear-gradient(135deg, #60a5fa 0%, #e879f9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
  line-height: 1.1;
  text-shadow: 0 0 40px rgba(96, 165, 250, 0.2);
}

.subtitle {
  color: var(--text-secondary);
  font-size: 1.125rem;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

/* Custom Buttons with Glow */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-pink) 100%);
  color: #fff;
  box-shadow: 0 4px 15px var(--glow-blue);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--glow-pink);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--panel-border);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

/* Form Styles */
.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

input {
  width: 100%;
  padding: 0.75rem 1.25rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* Grid Layouts */
.grid-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .grid-container {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

/* Item List / Cards */
.items-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.item-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
}

.item-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateX(4px);
}

.item-info h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.item-info p {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 4px;
  text-transform: uppercase;
}

.badge-item {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}

/* Header */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--panel-border);
}

.header-user {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logout-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

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

/* Loading/Empty State */
.empty-state {
  text-align: center;
  padding: 3rem;
  color: var(--text-secondary);
}
.empty-state i {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: rgba(255,255,255,0.1);
}

/* Chromatic Aberration Tracked Highlight */
@keyframes chromaticPulse {
  0%, 100% { 
    box-shadow: -3px 0 10px rgba(255, 0, 85, 0.5), 3px 0 10px rgba(0, 255, 213, 0.5); 
    border-color: rgba(255, 255, 255, 0.3);
  }
  50% { 
    box-shadow: -1px 0 5px rgba(255, 0, 85, 0.3), 1px 0 5px rgba(0, 255, 213, 0.3); 
    border-color: rgba(255, 255, 255, 0.15);
  }
}

.item-card.tracked-highlight {
  animation: chromaticPulse 2s infinite ease-in-out;
  background: rgba(255, 255, 255, 0.05);
  position: relative;
}

/* ── Landing & Shared Site Styles ──────────────────────────────────────────── */

body.landing {
  display: block;
  padding: 0;
  background: radial-gradient(ellipse at 50% -10%, #2e1b6e 0%, #0b0d19 60%);
}

/* Nav */
.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 13, 25, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav-logo {
  font-size: 1.2rem;
  font-weight: 700;
  background: linear-gradient(135deg, #60a5fa 0%, #e879f9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
}

.nav-link {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-link:hover, .nav-link-active { color: var(--text-primary); }

/* Hero */
.hero-section {
  text-align: center;
  padding: 7rem 1.5rem 5rem;
  max-width: 720px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a78bfa;
  background: rgba(167, 139, 250, 0.1);
  border: 1px solid rgba(167, 139, 250, 0.25);
  border-radius: 9999px;
  padding: 0.35rem 1rem;
  margin-bottom: 1.75rem;
}

.hero-section h1 {
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  background: none;
  -webkit-text-fill-color: unset;
  margin-bottom: 1.25rem;
}

.gradient-text {
  background: linear-gradient(135deg, #60a5fa 0%, #e879f9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 540px;
  margin: 0 auto 2.5rem;
}

.hero-actions { margin-bottom: 1rem; }

.btn-store {
  gap: 0.6rem;
  padding: 0.9rem 2rem;
  font-size: 1rem;
}

.hero-footnote {
  font-size: 0.8rem;
  color: rgba(148, 163, 184, 0.6);
  margin-top: 0.5rem;
}

/* Features */
.features-section {
  padding: 2rem 1.5rem 6rem;
  max-width: 900px;
  margin: 0 auto;
}

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

@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
}

.feature-card {
  background: rgba(22, 28, 45, 0.6);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: 1.75rem;
  transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

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

/* Footer */
.site-footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.footer-quote {
  font-style: italic;
  color: var(--text-primary);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.footer-attr {
  color: #a78bfa;
  font-style: normal;
  font-size: 0.8rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text-primary); }
.footer-links span { color: rgba(255,255,255,0.2); }

.footer-legal {
  font-size: 0.75rem;
  color: rgba(148, 163, 184, 0.4);
}

/* Privacy Policy Page */
.policy-main {
  padding: 3rem 1.5rem 5rem;
}

.policy-container {
  max-width: 720px;
  margin: 0 auto;
}

.policy-title {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #60a5fa 0%, #e879f9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.policy-meta {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.policy-intro {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.policy-section {
  margin-bottom: 2.25rem;
}

.policy-section h2 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.policy-section p, .policy-section li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 0.5rem;
}

.policy-section ul {
  padding-left: 1.25rem;
  margin-top: 0.5rem;
}

.policy-section a {
  color: #60a5fa;
  text-decoration: none;
}
.policy-section a:hover { text-decoration: underline; }

.policy-section code {
  font-family: monospace;
  font-size: 0.85em;
  background: rgba(255,255,255,0.06);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  color: #e879f9;
}
