@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&family=JetBrains+Mono:wght@400;500&display=swap');

@font-face {
  font-family: 'SofiaSansCondensed-Italic';
  src: url('/assets/fonts/SofiaSansCondensed-Italic-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  /* THEME: Abstract Algorithmic Void */
  --bg-void: #030304;
  --bg-panel: #0A0A0C;
  --bg-surface: #121214;
  
  --line-subtle: rgba(255, 255, 255, 0.06);
  --line-active: rgba(255, 255, 255, 0.15);
  
  /* ACCENTS: Data-driven Neon */
  --accent-primary: #3B82F6; /* Electric Blue */
  --accent-secondary: #10B981; /* Signal Green */
  --accent-tertiary: #8B5CF6; /* Deep Violet */
  --text-primary: #F1F5F9;
  --text-secondary: #94A3B8;
  --text-dim: #475569;
  
  /* SPACING & GRID */
  --nav-height: 70px;
  --max-width: 1400px; /* Wider for dashboard feel */
  --radius-sm: 4px;
  --radius-md: 12px;
  --radius-lg: 24px;
  
  /* FONTS */
  --font-sans: 'Roboto', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* --- RESET & BASE --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  background-color: var(--bg-void);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3 {
  font-weight: 400; /* Lighter, cleaner */
  letter-spacing: -0.03em;
  line-height: 1.1;
}

h1 {
  font-size: clamp(3.5rem, 8vw, 6rem);
  font-weight: 300; /* Elegant thin */
}

h1 strong {
  font-weight: 500;
  color: var(--text-primary);
}

h2 {
  font-size: clamp(2rem, 5vw, 3rem);
}

p {
  color: var(--text-secondary);
  font-size: 1.125rem;
  max-width: 60ch;
  font-weight: 300;
}

.mono {
  font-family: var(--font-mono);
  letter-spacing: -0.02em;
}

.label-sm {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
}

.gradient-text {
  background: linear-gradient(to right, #fff, #94A3B8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --- GRID BACKGROUND --- */
.grid-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    linear-gradient(var(--line-subtle) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-subtle) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: -1;
  pointer-events: none;
  mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
}

/* --- COMPONENTS --- */
.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  background: var(--text-primary);
  color: var(--bg-void);
  text-decoration: none;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--line-active);
  color: var(--text-primary);
}

.btn-outline:hover {
  border-color: var(--text-primary);
  background: rgba(255,255,255,0.02);
}

.app-badge {
  display: inline-block;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.store-img {
  height: 54px !important;
  width: auto !important;
  max-width: 100%;
  display: block;
}

.app-badge:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.app-badge.disabled {
  cursor: not-allowed;
  pointer-events: none;
}

.app-badge.disabled .store-img {
  opacity: 0.4;
  filter: grayscale(100%);
}

/* --- BENTO GRID LAYOUT --- */
.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 80px 0;
}

@media (min-width: 768px) {
  .bento-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, minmax(300px, auto));
  }
  
  .span-2 { grid-column: span 2; }
  .row-2 { grid-row: span 2; }
}

.bento-card {
  background: var(--bg-panel);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-md);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bento-card:hover {
  border-color: var(--line-active);
}

.bento-visual {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 24px;
  min-height: 150px;
}

/* --- ABSTRACT VISUALS --- */
.orb {
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%);
  filter: blur(40px);
  opacity: 0.2;
  position: absolute;
}

.chart-line {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: drawLine 3s ease-out forwards;
}

@keyframes drawLine {
  to { stroke-dashoffset: 0; }
}

/* --- HEADER --- */
header {
  height: var(--nav-height);
  border-bottom: 1px solid var(--line-subtle);
  display: flex;
  align-items: center;
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(3, 3, 4, 0.8);
  backdrop-filter: blur(12px);
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'SofiaSansCondensed-Italic', var(--font-sans);
  font-weight: 600;
  font-size: 2rem; /* Increased size for condensed font */
  color: #FFFFFF;
  text-decoration: none;
  /* letter-spacing: 0.05em; Removed to match brand feel better, or keep slightly? React Native had includeFontPadding false */
  display: flex;
  align-items: center;
  gap: 12px;
  text-transform: uppercase;
  font-style: italic;
}

.logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  /* No shadow as requested */
}

/* --- SECTIONS --- */
.section {
  padding: 120px 0;
  border-bottom: 1px solid var(--line-subtle);
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--nav-height);
}

.hero-logo {
  width: 120px;
  height: 120px;
  margin-bottom: 24px;
}

/* --- ANIMATIONS --- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- LEGACY SUPPORT --- */
.content-container {
  max-width: 800px;
  margin: 120px auto;
  padding: 0 24px;
}

.content-container h1 { font-size: 2.5rem; margin-bottom: 32px; }
.content-container p { margin-bottom: 16px; font-size: 1rem; color: var(--text-secondary); }
.content-container ul { margin-left: 20px; margin-bottom: 16px; color: var(--text-secondary); }

/* --- FOOTER --- */
footer {
  padding: 80px 0;
  text-align: center;
}

.footer-links a {
  color: var(--text-dim);
  margin: 0 15px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--text-primary); }
