:root {
  --primary: #e53935;
  --primary-soft: #ff6b6b;
  --secondary: #ffcc33;
  --secondary-soft: #ffd766;

  --bg-very-dark: #050505;
  --bg-dark: #0d0d0e;
  --panel: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.06);

  --text: #f2f2f2;
  --muted: rgba(242, 242, 242, 0.58);

  --radius: 12px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.75);
  --surface: #111;
}
body[data-theme="light"] {
  --bg-very-dark: #f6f7f9;
  --bg-dark: #eceff1;
  --panel: rgba(0, 0, 0, 0.04);
  --glass-border: rgba(0, 0, 0, 0.08);
  --text: #0c0c0c;
  --muted: rgba(0, 0, 0, 0.55);
  --surface: #fff;
}
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  margin: 0;
  overflow-x: hidden;
  font-family: Inter, system-ui, sans-serif;
}
body {
  background:
    radial-gradient(900px at 10% 0%, rgba(255, 204, 51, 0.06), transparent),
    radial-gradient(600px at 100% 90%, rgba(229, 57, 53, 0.04), transparent),
    var(--bg-very-dark);
  color: var(--text);
  padding: 18px;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
.app {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.header--stacked {
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--secondary), var(--secondary-soft));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #000;
  flex-shrink: 0;
}
.app-title {
  font-weight: 700;
  color: var(--secondary);
  word-break: break-word;
}
.subtext {
  font-size: 0.85rem;
  color: var(--muted);
  word-break: break-word;
}
.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.btn {
  padding: 8px 12px;
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  cursor: pointer;
}
.btn-primary {
  background: linear-gradient(90deg, var(--primary), var(--primary-soft));
  color: #fff;
  font-weight: 700;
}
.input,
.search,
textarea,
select {
  min-height: 44px;
}
.search {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  width: 260px;
}
.category-filters {
  margin-left: auto;
  display: flex;
  gap: 8px;
  align-items: center;
}
.chip {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.01);
  cursor: pointer;
  color: var(--muted);
}
.chip.active {
  background: linear-gradient(90deg, var(--secondary), var(--secondary-soft));
  color: #000;
  border-color: transparent;
}
.search-wrap {
  display: flex;
  gap: 8px;
  margin-left: 12px;
}
.main-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 12px 0;
}
.view {
  display: none;
}
.view.active {
  display: block;
}
.post-deck-wrap {
  position: relative;
  min-height: 520px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 8px;
}
.post-deck {
  width: min(560px, 92%);
  height: 520px;
  position: relative;
  perspective: 1400px;
}
.deck-card {
  position: absolute;
  inset: 0;
  margin: 0 auto;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--glass-border);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.65);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 300ms ease, opacity 300ms ease;
  touch-action: none;
  user-select: none;
}
.deck-card[data-index="0"] { transform: translateY(0) scale(1); }
.deck-card[data-index="1"] { transform: translateY(10px) scale(.98); }
.deck-card[data-index="2"] { transform: translateY(18px) scale(.96); }
.deck-card[data-index="3"] { transform: translateY(26px) scale(.94); }
.deck-card[data-index="4"] { transform: translateY(34px) scale(.92); }

.deck-card .card-photo {
  width: 100%;
  height: 60%;
  object-fit: cover;
  background: #000;
}
.deck-card .card-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.deck-card .card-head {
  display: flex;
  gap: 10px;
  align-items: center;
}
.deck-card .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.04);
}
.deck-card .user {
  font-weight: 700;
  color: var(--secondary);
}
.deck-card .caption {
  color: var(--muted);
  font-size: 0.95rem;
  overflow: hidden;
}
.deck-badge {
  position: absolute;
  top: 18px;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 700;
  opacity: 0;
  transform: scale(.98);
  transition: opacity 120ms, transform 120ms;
  pointer-events: none;
}
.deck-badge.left {
  left: 18px;
  background: rgba(230, 57, 53, 0.95);
  color: #fff;
}
.deck-badge.right {
  right: 18px;
  background: rgba(0, 200, 120, 0.95);
  color: #001;
}
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 5000;
}
.modal[hidden],
.hidden {
  display: none !important;
}
.modal-content {
  background: var(--surface);
  color: var(--text);
  width: min(92vw, 560px);
  max-width: 420px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 20px;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.modal-actions {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 16px;
}
.fab-btn {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 56px;
  height: 56px;
  min-width: 56px;
  min-height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  z-index: 4000;
}
.feed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}
.post-card {
  background: var(--panel);
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.post-photo {
  width: 100%;
  height: 420px;
  object-fit: cover;
  background: #000;
}
.post-meta {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.post-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.post-head .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}
.post-head .user {
  font-weight: 700;
  color: var(--secondary);
}
.post-caption {
  color: var(--muted);
  font-size: 0.95rem;
}
.post-actions {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}
.profiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}
.profile-card {
  background: var(--panel);
  border-radius: 12px;
  padding: 12px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
  text-align: center;
}
.profile-card .photo {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 10px;
}
.profile-card h3 {
  margin: 0;
  color: var(--secondary);
}
.role,
.bio {
  color: var(--muted);
  font-size: 0.9rem;
}
.empty {
  padding: 18px;
  text-align: center;
  color: var(--muted);
}
.footer-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 10px 0;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.02);
}
#feedGrid {
  margin-top: 18px;
}
@media (max-width: 900px) {
  .search {
    width: 140px;
  }
  .post-photo {
    height: 320px;
  }
}
@media (max-width: 600px) {
  body {
    padding: 12px;
  }
  .logo {
    width: 40px;
    height: 40px;
  }
  .controls {
    width: 100%;
  }
  .feed-grid {
    grid-template-columns: 1fr;
  }
  .profiles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .search {
    width: 120px;
  }
  .footer-nav {
    padding-bottom: 1rem;
  }
}
.landing-main {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 1rem 1rem 3rem;
}
.hero-premium {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
  padding: 2rem 0 3rem;
}
.eyebrow {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f4c542;
}
.hero-copy h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.05;
}
.hero-text {
  max-width: 680px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.25rem;
}
.hero-preview {
  position: relative;
  min-height: 420px;
}
.preview-card {
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.035);
  box-shadow: 0 18px 50px rgba(0,0,0,0.28);
  overflow: hidden;
}
.preview-card-main {
  width: 100%;
  max-width: 520px;
}
.preview-card-side {
  position: absolute;
  right: -10px;
  bottom: -20px;
  width: 220px;
}
.preview-topbar {
  height: 54px;
  background: linear-gradient(90deg, #c8102e, #ff7a59);
}
.preview-screen,
.preview-panel {
  padding: 1rem;
}
.preview-block,
.preview-post,
.preview-avatar,
.preview-line,
.preview-btn {
  border-radius: 18px;
  background: rgba(255,255,255,0.08);
}
.preview-block-lg {
  height: 180px;
  margin-bottom: 1rem;
}
.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
.preview-post {
  aspect-ratio: 3 / 4;
}
.preview-avatar {
  width: 86px;
  height: 86px;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.preview-line {
  height: 14px;
  margin-bottom: 0.75rem;
}
.preview-line.short {
  width: 60%;
}
.preview-btn-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}
.preview-btn {
  height: 40px;
  flex: 1;
}
.value-strip,
.feature-grid,
.buyer-grid,
.tech-grid {
  display: grid;
  gap: 1rem;
}
.value-strip {
  grid-template-columns: repeat(3, 1fr);
  margin: 1rem 0 3rem;
}
.value-item,
.feature-card,
.buyer-card,
.tech-card,
.cta-card {
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  border-radius: 24px;
  padding: 1.25rem;
}
.value-number {
  font-size: 1.2rem;
  font-weight: 700;
  color: #f4c542;
  margin-bottom: 0.5rem;
}
.section-heading {
  margin: 0 0 1.25rem;
}
.section-heading h2 {
  margin: 0.25rem 0 0;
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
}
.feature-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 3rem;
}
.buyer-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 3rem;
}
.tech-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 3rem;
}
.cta-section {
  padding-bottom: 1rem;
}
.cta-card {
  text-align: center;
  padding: 2rem 1.25rem;
}
.cta-card p {
  max-width: 720px;
  margin: 0.75rem auto 0;
  color: rgba(255,255,255,0.82);
}
@media (max-width: 980px) {
  .hero-premium,
  .value-strip,
  .feature-grid,
  .buyer-grid,
  .tech-grid {
    grid-template-columns: 1fr;
  }
  .preview-card-side {
    position: static;
    width: 100%;
    margin-top: 1rem;
  }
  .hero-preview {
    min-height: auto;
  }
}
@media (max-width: 640px) {
  .landing-main {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  .hero-premium {
    padding-top: 1rem;
  }
  .hero-text {
    font-size: 1rem;
  }
}