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

:root {
  /* Colors from the logo */
  --color-lime: #39ff14;
  --color-sky: #7dd3fc;
  --color-orange: #f59e0b;
  --color-red: #ef4444;
  --color-navy-dark: #050811;
  --color-navy-light: #0d1627;
  --color-slate-900: #0f172a;
  --color-slate-800: #1e293b;
  --color-slate-700: #334155;
  --color-slate-100: #f1f5f9;
  --color-slate-400: #94a3b8;
  
  /* Theme mapping */
  --bg-primary: var(--color-navy-dark);
  --bg-secondary: var(--color-navy-light);
  --text-primary: #f8fafc;
  --text-secondary: var(--color-slate-400);
  --card-bg: rgba(15, 23, 42, 0.65);
  --card-border: rgba(30, 41, 59, 0.8);
  
  /* Fonts */
  --font-display: 'Share Tech Mono', 'Courier New', monospace;
  --font-body: 'Outfit', sans-serif;
  
  /* Container sizes */
  --max-width: 1200px;
}

/* Base resets & Scrollbar styling */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(13, 22, 39, 0.8) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(9, 15, 28, 0.9) 0%, transparent 40%),
    linear-gradient(to bottom, var(--color-navy-dark), var(--color-navy-light));
  background-attachment: fixed;
  overflow-x: hidden;
}

/* Retro Grid Backdrop */
.grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(18, 30, 54, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 30, 54, 0.07) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: -1;
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Layout container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header & Navigation */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(5, 8, 17, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(30, 41, 59, 0.5);
  transition: all 0.3s ease;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: bold;
  text-transform: uppercase;
  color: var(--color-sky);
  letter-spacing: 1px;
}

.brand-logo-wrapper {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-slate-900);
  border: 1px solid var(--color-slate-800);
  border-radius: 8px;
  padding: 2px;
}

.brand span {
  background: linear-gradient(90deg, var(--color-sky) 0%, var(--color-lime) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  font-family: var(--font-display);
}

.nav-link {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  transition: color 0.2s ease, text-shadow 0.2s ease;
  position: relative;
  padding: 0.25rem 0;
}

.nav-link:hover {
  color: var(--color-lime);
  text-shadow: 0 0 8px rgba(57, 255, 20, 0.4);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-lime);
  box-shadow: 0 0 8px var(--color-lime);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  padding: 5rem 0 3.5rem;
  text-align: center;
  position: relative;
}

.hero-jellyfish {
  width: 180px;
  height: 180px;
  margin: 0 auto 2rem;
  animation: float 4s ease-in-out infinite;
  filter: drop-shadow(0 0 15px rgba(125, 211, 252, 0.25));
}

.hero-subtitle {
  font-family: var(--font-display);
  color: var(--color-lime);
  text-transform: uppercase;
  font-size: 1.1rem;
  letter-spacing: 4px;
  margin-bottom: 1rem;
  text-shadow: 0 0 10px rgba(57, 255, 20, 0.3);
}

.hero-title {
  font-family: var(--font-body);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

.hero-title span {
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--color-sky) 70%, var(--color-lime) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  max-width: 600px;
  margin: 0 auto;
  color: var(--text-secondary);
  font-size: 1.15rem;
  line-height: 1.6;
}

/* App Showcase Section */
.showcase {
  padding: 4rem 0 6rem;
}

.section-header {
  margin-bottom: 3.5rem;
  text-align: center;
}

.section-tag {
  font-family: var(--font-display);
  color: var(--color-orange);
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
  display: inline-block;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

/* App Card Layout */
.app-card {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.app-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  transition: all 0.4s ease;
}

/* Themes per app */
.app-card.theme-lime::before { background: var(--color-lime); }
.app-card.theme-sky::before { background: var(--color-sky); }
.app-card.theme-orange::before { background: var(--color-orange); }

.app-card:hover {
  transform: translateY(-8px);
  background-color: rgba(21, 32, 59, 0.75);
}

.app-card.theme-lime:hover {
  border-color: rgba(57, 255, 20, 0.4);
  box-shadow: 0 12px 30px rgba(57, 255, 20, 0.15);
}

.app-card.theme-sky:hover {
  border-color: rgba(125, 211, 252, 0.4);
  box-shadow: 0 12px 30px rgba(125, 211, 252, 0.15);
}

.app-card.theme-orange:hover {
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.15);
}

.app-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.app-icon {
  width: 68px;
  height: 68px;
  border-radius: 16px;
  background-color: var(--color-slate-900);
  border: 1px solid var(--color-slate-800);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-card:hover .app-icon {
  transform: scale(1.05) rotate(2deg);
}

.app-meta {
  flex: 1;
}

.app-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.app-genre {
  font-family: var(--font-display);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.app-card.theme-lime .app-genre { color: var(--color-lime); }
.app-card.theme-sky .app-genre { color: var(--color-sky); }
.app-card.theme-orange .app-genre { color: var(--color-orange); }

.app-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  flex-grow: 1;
}

/* Badge Buttons Container */
.app-badges {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Custom CSS Store Badges */
.badge-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background-color: #000000;
  color: var(--text-primary);
  border: 1px solid var(--color-slate-800);
  border-radius: 8px;
  padding: 0.5rem 1rem;
  transition: all 0.2s ease;
  cursor: pointer;
}

.badge-btn:hover {
  background-color: var(--color-slate-900);
  border-color: var(--color-slate-700);
  transform: scale(1.02);
}

.app-card.theme-lime .badge-btn:hover { border-color: var(--color-lime); }
.app-card.theme-sky .badge-btn:hover { border-color: var(--color-sky); }
.app-card.theme-orange .badge-btn:hover { border-color: var(--color-orange); }

.badge-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.badge-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.1;
}

.badge-sub {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--color-slate-400);
  letter-spacing: 0.5px;
}

.badge-main {
  font-size: 0.9rem;
  font-weight: 600;
}

/* Footer Section */
footer {
  margin-top: auto;
  background-color: var(--color-navy-dark);
  border-top: 1px solid rgba(30, 41, 59, 0.6);
  padding: 3rem 0;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-primary);
}

.footer-brand span {
  color: var(--color-sky);
}

.footer-email {
  font-size: 0.95rem;
  color: var(--color-lime);
  border: 1px dashed rgba(57, 255, 20, 0.3);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  background-color: rgba(57, 255, 20, 0.02);
  transition: all 0.2s ease;
  font-family: var(--font-display);
  cursor: pointer;
}

.footer-email:hover {
  background-color: rgba(57, 255, 20, 0.08);
  border-color: var(--color-lime);
  box-shadow: 0 0 10px rgba(57, 255, 20, 0.15);
}

.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  font-family: var(--font-display);
  font-size: 0.9rem;
}

.footer-link {
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

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

.footer-copyright {
  font-size: 0.8rem;
  color: var(--color-slate-700);
  margin-top: 0.5rem;
}

/* Compliance Legal Page Layout */
.legal-page {
  padding: 4rem 0 6rem;
  max-width: 800px;
  margin: 0 auto;
}

.legal-header {
  margin-bottom: 3.5rem;
  border-bottom: 1px solid var(--color-slate-800);
  padding-bottom: 2rem;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--color-lime);
  margin-bottom: 1.5rem;
  transition: transform 0.2s ease, text-shadow 0.2s ease;
}

.btn-back:hover {
  transform: translateX(-4px);
  text-shadow: 0 0 8px rgba(57, 255, 20, 0.4);
}

.legal-meta {
  font-family: var(--font-display);
  color: var(--color-orange);
  font-size: 0.9rem;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.legal-title {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

/* Typography elements for reading layout */
.legal-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #e2e8f0;
}

.legal-content section {
  margin-bottom: 2.5rem;
}

.legal-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  margin-top: 2rem;
  font-family: var(--font-display);
  border-left: 3px solid var(--color-sky);
  padding-left: 0.75rem;
}

.legal-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-sky);
  margin-bottom: 0.75rem;
  margin-top: 1.5rem;
}

.legal-content p {
  margin-bottom: 1.25rem;
}

.legal-content ul, .legal-content ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
}

.legal-content strong {
  color: var(--text-primary);
}

.legal-content a {
  color: var(--color-lime);
  text-decoration: underline;
  transition: text-shadow 0.2s ease;
}

.legal-content a:hover {
  text-shadow: 0 0 8px rgba(57, 255, 20, 0.4);
}

/* Interactive email copy notification popup */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: var(--color-slate-900);
  border: 1px solid var(--color-lime);
  box-shadow: 0 4px 15px rgba(57, 255, 20, 0.2);
  color: var(--text-primary);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 1000;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Animations declarations */
@keyframes float {
  0% { transform: translateY(0px) rotate(22deg); }
  50% { transform: translateY(-12px) rotate(20deg); }
  100% { transform: translateY(0px) rotate(22deg); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-jellyfish {
    width: 140px;
    height: 140px;
  }
  .app-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .legal-title {
    font-size: 2rem;
  }
}
