:root {
  /* Colors */
  --bg-primary: #030712;
  --bg-secondary: #111827;
  --bg-accent: #1e293b;
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-dim: #64748b;
  
  --accent-primary: #6366f1;
  --accent-secondary: #a855f7;
  --accent-glow: rgba(99, 102, 241, 0.15);
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);
  
  --glass-bg: rgba(17, 24, 39, 0.7);
  --glass-border: rgba(255, 255, 255, 0.05);

  /* Spacing */
  --section-padding: 6rem 2rem;
  --container-max-width: 1200px;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@font-face {
  font-family: 'Inter';
  src: url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

ul {
  list-style: none;
}

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

/* Navigation */
nav {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 3rem);
  max-width: 800px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  padding: 0.75rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.nav-brand {
  font-weight: 800;
  font-size: 1.25rem;
  background: linear-gradient(to right, #fff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-cta {
  background: var(--text-primary);
  color: var(--bg-primary);
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Hero Section */
.hero {
  padding: 12rem 1.5rem 6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 600px;
  background: radial-gradient(circle at center, var(--accent-glow) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 100px;
  color: var(--accent-primary);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 2rem;
  animation: fadeIn 0.8s ease-out;
}

.hero h1 {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  margin-bottom: 1.5rem;
  background: linear-gradient(to bottom, #fff 40%, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: slideUp 0.8s ease-out;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 3rem;
  animation: slideUp 0.8s ease-out 0.1s both;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  animation: slideUp 0.8s ease-out 0.2s both;
}

.btn {
  padding: 0.8rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: white;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: white;
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-hover);
}

/* Bento Grid (Featured) */
.featured {
  padding: var(--section-padding);
}

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

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-secondary);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 300px);
  gap: 1.5rem;
}

.bento-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.bento-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(4, 4, 8, 0.84);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.bento-item:hover {
  border-color: var(--border-hover);
  transform: translateY(-5px);
  box-shadow: 0 28px 56px rgba(0, 0, 0, 0.55);
}

.bento-item:hover::before {
  opacity: 1;
}

.bento-item-1 {
  grid-column: 1;
  grid-row: 1 / 3;
  background-image: url('assets/trezio-thumbnail.PNG');
  background-size: cover;
  background-position: center top;
}

.bento-item-2 {
  grid-column: 2;
  grid-row: 1;
  background-image: url('assets/revaluatr thumbnail.PNG');
  background-size: cover;
  background-position: center top;
}

.bento-item-3 {
  grid-column: 2;
  grid-row: 2;
  background-image: url('assets/finnance thumbnail.PNG');
  background-size: cover;
  background-position: center top;
}

.bento-content {
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: auto;
}

.bento-item:hover .bento-content {
  opacity: 1;
  transform: translateY(0);
}

.bento-tag {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-primary);
  font-weight: 700;
  margin-bottom: 1rem;
  display: block;
}

.bento-item h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

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

.bento-link {
  display: inline-block;
  margin-top: 1.25rem;
  color: var(--accent-primary);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.bento-link:hover {
  color: white;
}

.bento-image {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 60%;
  object-fit: cover;
  opacity: 0.4;
  mask-image: linear-gradient(to top, black, transparent);
  transition: var(--transition-smooth);
}

.bento-item:hover .bento-image {
  opacity: 0.6;
  transform: scale(1.05);
}

/* App Filter and Grid */
.apps-section {
  padding: var(--section-padding);
  background: radial-gradient(circle at 10% 90%, rgba(99, 102, 241, 0.03) 0%, transparent 50%);
}

.apps-section .section-header {
  text-align: left;
  margin-bottom: 2.5rem;
}

.filter-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
  gap: 2rem;
}

.search-wrapper {
  flex: 1;
  position: relative;
}

#search {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0.8rem 1rem 0.8rem 3rem;
  color: white;
  font-size: 1rem;
  outline: none;
  transition: var(--transition-fast);
}

#search:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 4px var(--accent-glow);
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
}

.tags-filter {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 5px;
}

.tag-chip {
  padding: 0.5rem 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-fast);
}

.tag-chip:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--text-primary);
}

.tag-chip.active {
  background: white;
  color: var(--bg-primary);
  border-color: white;
  font-weight: 600;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.app-card {
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  height: 220px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.35s ease;
}

.app-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 28px 56px rgba(0, 0, 0, 0.55);
  border-color: rgba(255, 255, 255, 0.14);
}

.app-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 4, 8, 0.84);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.6rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.app-card:hover .app-card-overlay {
  opacity: 1;
  transform: translateY(0);
}

.app-card-tag {
  font-size: 0.68rem;
  color: var(--accent-primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.35rem;
  display: block;
}

.app-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
  color: var(--text-primary);
}

.app-card p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 0.85rem;
}

.app-link {
  color: var(--accent-primary);
  font-size: 0.82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* Changelog / News */
.news-section {
  padding: var(--section-padding);
  border-top: 1px solid var(--border-color);
}

.news-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 2.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.news-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 2rem;
}

.news-date {
  color: var(--text-dim);
  font-size: 0.9rem;
}

.news-content h4 {
  margin-bottom: 0.5rem;
}

.news-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Footer */
footer {
  padding: 6rem 1.5rem 3rem;
  border-top: 1px solid var(--border-color);
  background: var(--bg-primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-brand p {
  color: var(--text-secondary);
  max-width: 300px;
}

.footer-col h3 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}

.footer-col ul li {
  margin-bottom: 0.75rem;
}

.footer-col ul li a {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.footer-col ul li a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
  .bento-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .bento-item-1 { grid-column: 1; grid-row: auto; height: 360px; }
  .bento-item-2 { grid-column: 1; grid-row: auto; }
  .bento-item-3 { grid-column: 1; grid-row: auto; }
}

@media (max-width: 768px) {
  .hero h1 { font-size: 3rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .nav-links { display: none; }
  .filter-container { flex-direction: column; align-items: stretch; }
  .news-item { grid-template-columns: 1fr; gap: 0.5rem; }
}
