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

:root {
  --bg: #0a0b0f;
  --bg-card: #12141c;
  --bg-elevated: #1a1d28;
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8eaef;
  --text-muted: #8b92a8;
  --accent: #00e5a0;
  --accent-dim: rgba(0, 229, 160, 0.15);
  --accent-glow: rgba(0, 229, 160, 0.4);
  --orange: #ff6b35;
  --orange-dim: rgba(255, 107, 53, 0.15);
  --font: 'DM Sans', system-ui, sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --radius: 12px;
  --radius-lg: 20px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 1000;
}

.glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}

.glow-1 {
  width: 600px;
  height: 600px;
  background: var(--accent-glow);
  top: -200px;
  right: -100px;
  opacity: 0.25;
}

.glow-2 {
  width: 500px;
  height: 500px;
  background: rgba(255, 107, 53, 0.3);
  bottom: 20%;
  left: -150px;
  opacity: 0.15;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(10, 11, 15, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.25rem;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: var(--accent);
  color: var(--bg);
  border-radius: 8px;
  font-family: var(--mono);
  font-weight: 600;
}

.logo-text {
  font-family: var(--mono);
  color: var(--accent);
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

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

.header-cta {
  display: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}

.btn-primary:hover {
  box-shadow: 0 0 30px var(--accent-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn-full {
  width: 100%;
}

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem 4rem;
}

.hero-profile {
  margin-bottom: 1.5rem;
}

.hero-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
  box-shadow: 0 0 30px var(--accent-glow);
}

.hero-avatar--fallback {
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: var(--bg-card);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: var(--accent-dim);
  border: 1px solid rgba(0, 229, 160, 0.3);
  border-radius: 100px;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 2rem;
}

.pulse {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero-title .line {
  display: block;
}

.hero-title .accent {
  background: linear-gradient(135deg, var(--accent), #00c4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  max-width: 560px;
  color: var(--text-muted);
  font-size: 1.15rem;
  margin-bottom: 3rem;
}

.counter-block {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3rem;
  padding: 1.5rem 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.counter-ring {
  position: relative;
  width: 120px;
  height: 120px;
}

.counter-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.counter-track {
  fill: none;
  stroke: var(--bg-elevated);
  stroke-width: 6;
}

.counter-fill {
  fill: none;
  stroke: var(--accent);
  stroke-width: 6;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s ease-out;
}

.counter-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.counter-value {
  font-family: var(--mono);
  font-size: 2rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
}

.counter-total {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.counter-meta {
  text-align: left;
}

.counter-label {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.counter-streak {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Sections */
section {
  position: relative;
  z-index: 1;
  padding: 6rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 3rem;
}

.section-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-desc {
  color: var(--text-muted);
  margin-top: 0.5rem;
  font-size: 1.05rem;
}

/* Mission */
.mission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.mission-card {
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s, transform 0.2s;
}

.mission-card:hover {
  border-color: rgba(0, 229, 160, 0.3);
  transform: translateY(-2px);
}

.mission-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.mission-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.mission-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.mission-quote {
  padding: 2rem 2.5rem;
  border-left: 3px solid var(--accent);
  background: var(--accent-dim);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.mission-quote p {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.7;
}

/* Reflections */
.reflections {
  max-width: 780px;
}

.reflections-timeline {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
}

.reflections-timeline::before {
  content: '';
  position: absolute;
  left: 1.1rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--border));
}

.reflection-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  position: relative;
}

.reflection-marker {
  position: relative;
  z-index: 1;
  padding-top: 0.25rem;
}

.reflection-month {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--accent);
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}

.reflection-card--upcoming .reflection-month {
  border-color: var(--border);
  color: var(--text-muted);
  box-shadow: none;
}

.reflection-body {
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.reflection-card--published .reflection-body {
  border-color: rgba(0, 229, 160, 0.2);
}

.reflection-card--upcoming .reflection-body {
  opacity: 0.7;
}

.reflection-label {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.reflection-card--upcoming .reflection-label {
  color: var(--text-muted);
}

.reflection-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  line-height: 1.3;
}

.reflection-intro {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.reflection-intro:first-of-type {
  color: var(--text);
  font-size: 1.1rem;
}

.reflection-section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.reflection-section h4 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.reflection-section p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.reflection-section p:last-child {
  margin-bottom: 0;
}

.reflection-closing {
  border-top-color: rgba(0, 229, 160, 0.3);
  background: var(--accent-dim);
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  border-top: none;
}

.reflection-closing h4 {
  color: var(--accent);
}

.reflection-teaser {
  color: var(--text-muted);
  font-style: italic;
}

/* Apps */
.filters-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.apps-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-btn {
  padding: 0.5rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn--tech:hover,
.filter-btn--tech.active {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
}

.filter-btn--market:hover,
.filter-btn--market.active {
  background: var(--orange-dim);
  border-color: var(--orange);
  color: var(--orange);
}

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

.apps-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  padding: 3rem;
}

.app-card {
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.app-card:hover {
  border-color: rgba(0, 229, 160, 0.25);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.app-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.app-day {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
}

.app-status {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
}

.app-status--live {
  background: var(--accent-dim);
  color: var(--accent);
}

.app-status--wip {
  background: var(--orange-dim);
  color: var(--orange);
}

.app-title {
  font-size: 1.25rem;
  font-weight: 600;
}

.app-problem {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.app-problem strong {
  color: var(--text);
}

.app-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.app-details {
  font-size: 0.85rem;
}

.app-details summary {
  color: var(--accent);
  cursor: pointer;
  font-weight: 500;
  list-style: none;
  user-select: none;
}

.app-details summary::-webkit-details-marker {
  display: none;
}

.app-details summary::before {
  content: '→ ';
  display: inline-block;
  transition: transform 0.2s;
}

.app-details[open] summary::before {
  transform: rotate(90deg);
}

.app-long {
  color: var(--text-muted);
  margin-top: 0.5rem;
  line-height: 1.6;
}

.app-classifications {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.app-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.app-tag {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-weight: 500;
}

.app-tag--tech {
  background: var(--accent-dim);
  color: var(--accent);
}

.app-tag--market {
  background: var(--orange-dim);
  color: var(--orange);
}

.app-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.app-tech-item {
  font-family: var(--mono);
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  background: var(--bg-elevated);
  color: var(--text-muted);
  border-radius: 4px;
}

.app-links {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.app-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.app-link:hover {
  text-decoration: underline;
}

.app-link--download {
  color: var(--orange);
}

.app-link--download:hover {
  color: #ff8c5a;
}

/* Submit */
.submit {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

.submit-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.submit-content h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.submit-content p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.submit-highlight {
  color: var(--text) !important;
  font-size: 1.05rem;
}

.submit-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.submit-form label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.submit-form label:first-child {
  margin-top: 0;
}

.submit-form textarea,
.submit-form input {
  padding: 0.75rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  resize: vertical;
  transition: border-color 0.2s;
}

.submit-form textarea:focus,
.submit-form input:focus {
  outline: none;
  border-color: var(--accent);
}

.form-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.25rem;
}

/* Support */
.support-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 3rem;
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(0, 229, 160, 0.05) 100%);
  border: 1px solid rgba(0, 229, 160, 0.2);
  border-radius: var(--radius-lg);
}

.support-content h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.support-content p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.support-perks {
  list-style: none;
  margin-top: 1.5rem;
}

.support-perks li {
  padding: 0.5rem 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.support-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.support-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding: 1rem;
  background: #fff;
  border-radius: var(--radius);
}

.support-qr img {
  display: block;
  border-radius: 4px;
}

.support-qr-label {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--bg);
  font-weight: 500;
}

/* Footer */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
  margin-top: 2rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

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

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.footer-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.footer-tags span {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: 0.3rem 0.7rem;
  background: var(--bg-card);
  border-radius: 4px;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
  .header {
    padding: 1rem;
  }

  .nav {
    display: none;
  }

  .header-cta {
    display: inline-flex;
  }

  .counter-block {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
  }

  .counter-meta {
    text-align: center;
  }

  .reflection-card {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .reflections-timeline::before {
    display: none;
  }

  .reflection-marker {
    padding-top: 0;
  }

  .reflection-body {
    padding: 1.5rem;
  }

  .submit-inner,
  .support-card {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 1.5rem;
  }

  .apps-grid {
    grid-template-columns: 1fr;
  }
}
