/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0c1310;
  --bg-card:   #111a15;
  --amber:     #c9763c;
  --amber-dim: #a05c2d;
  --bone:      #f0ece4;
  --muted:     #8a9b8e;
  --border:    rgba(201, 118, 60, 0.18);
  --font-display: 'Bebas Neue', 'Arial Narrow', sans-serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* === HERO === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg);
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(26, 52, 30, 0.6) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(201, 118, 60, 0.08) 0%, transparent 50%),
    linear-gradient(175deg, #0c1310 0%, #0e1812 50%, #111a15 100%);
}

/* atmospheric texture lines */
.hero-atmosphere::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 80px,
      rgba(201, 118, 60, 0.03) 80px,
      rgba(201, 118, 60, 0.03) 81px
    );
}

/* amber glow dot */
.hero-atmosphere::after {
  content: '';
  position: absolute;
  bottom: 15%;
  left: 8%;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 118, 60, 0.15) 0%, transparent 70%);
  filter: blur(40px);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 48px 100px;
  width: 100%;
}

.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 28px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 2px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(64px, 10vw, 120px);
  line-height: 0.92;
  letter-spacing: 0.01em;
  color: var(--bone);
  margin-bottom: 36px;
  text-shadow: 0 2px 40px rgba(0,0,0,0.5);
}

.hero-lede {
  font-size: clamp(16px, 1.5vw, 20px);
  color: var(--muted);
  max-width: 540px;
  margin-bottom: 60px;
  line-height: 1.7;
}

.hero-tagline-row {
  display: flex;
  align-items: center;
  gap: 0;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 36px;
}

.hero-stat:first-child { padding-left: 0; }

.hero-stat-num {
  font-family: var(--font-display);
  font-size: 36px;
  color: var(--amber);
  line-height: 1;
}

.hero-stat-label {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
}

/* === MANIFESTO === */
.manifesto {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 48px;
}

.manifesto-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.manifesto-text {
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.65;
  color: var(--bone);
}

.manifesto-text--action {
  color: var(--amber);
  font-weight: 500;
}

/* === FEATURES === */
.features {
  padding: 100px 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.features-header {
  margin-bottom: 64px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  color: var(--bone);
  letter-spacing: 0.02em;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2px;
  border: 1px solid var(--border);
}

.feature-card {
  background: var(--bg-card);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background 0.2s;
}

.feature-card:hover {
  background: #162019;
}

.feature-icon {
  color: var(--amber);
  width: 28px;
  height: 28px;
}

.feature-title {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.05em;
  color: var(--bone);
}

.feature-desc {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
}

/* === WHO IS FOR === */
.whoisfor {
  background: #0f1712;
  padding: 100px 48px;
  border-top: 1px solid var(--border);
}

.whoisfor-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.whoisfor-inner .section-title {
  margin-bottom: 56px;
}

.who-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2px;
}

.who-card {
  padding: 36px 32px;
  border: 1px solid var(--border);
  background: #0c1310;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.who-card-label {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.08em;
  color: var(--amber);
}

.who-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* === CLOSING === */
.closing {
  padding: 120px 48px;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}

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

.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.5vw, 64px);
  line-height: 1.05;
  color: var(--bone);
  margin-bottom: 28px;
  letter-spacing: 0.01em;
}

.closing-sub {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto;
}

/* === FOOTER === */
.site-footer {
  background: #09100d;
  border-top: 1px solid var(--border);
  padding: 36px 48px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.1em;
  color: var(--bone);
}

.footer-tagline {
  font-size: 13px;
  color: var(--muted);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .hero-content { padding: 60px 24px 80px; }
  .manifesto { padding: 60px 24px; }
  .features { padding: 60px 24px; }
  .whoisfor { padding: 60px 24px; }
  .closing { padding: 80px 24px; }
  .site-footer { padding: 28px 24px; }

  .hero-tagline-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .hero-stat { padding: 0; }
  .hero-divider { display: none; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 4px; }
}

@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr; }
  .who-cards { grid-template-columns: 1fr; }
}

/* === APP SHARED === */
.app-nav {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 0 48px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.app-nav-brand {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.08em;
  color: var(--bone);
  text-decoration: none;
}

.app-nav-brand:hover { color: var(--amber); }

.app-nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.app-nav-links a {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.app-nav-links a:hover { color: var(--bone); }

.btn-primary {
  background: var(--amber);
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s;
}

.btn-primary:hover { background: var(--amber-dim); }

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 10px 20px;
  font-family: var(--font-body);
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: color 0.2s, border-color 0.2s;
}

.btn-ghost:hover { color: var(--bone); border-color: rgba(201, 118, 60, 0.4); }

/* === APP LAYOUT === */
.app-page {
  max-width: 680px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.app-header {
  margin-bottom: 36px;
}

.app-header h1 {
  font-family: var(--font-display);
  font-size: 40px;
  letter-spacing: 0.04em;
  color: var(--bone);
  margin-bottom: 8px;
}

.app-header p {
  font-size: 15px;
  color: var(--muted);
}

/* === POST CARD === */
.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 28px;
  margin-bottom: 16px;
  transition: border-color 0.2s;
}

.post-card:hover { border-color: rgba(201, 118, 60, 0.35); }

.post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.post-avatar {
  width: 36px;
  height: 36px;
  background: var(--amber-dim);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  flex-shrink: 0;
}

.post-avatar-link:hover .post-avatar { background: var(--amber); }

.post-author-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--bone);
  text-decoration: none;
}

.post-author-name:hover { color: var(--amber); }

.post-time {
  font-size: 12px;
  color: var(--muted);
}

.post-content {
  font-size: 15px;
  color: var(--bone);
  line-height: 1.65;
  margin-bottom: 16px;
}

.gear-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201, 118, 60, 0.1);
  border: 1px solid rgba(201, 118, 60, 0.25);
  padding: 6px 12px;
  border-radius: 2px;
  font-size: 13px;
  color: var(--amber);
  text-decoration: none;
  transition: background 0.2s;
}

.gear-tag:hover { background: rgba(201, 118, 60, 0.18); }

.gear-tag-brand {
  color: var(--muted);
  font-size: 11px;
}

.gear-tag-rating {
  color: var(--amber);
  font-size: 11px;
  font-weight: 600;
}

/* === FORM === */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 16px;
  border-radius: 2px;
  outline: none;
  transition: border-color 0.2s;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: rgba(201, 118, 60, 0.5);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-select option { background: var(--bg-card); }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* === AUTH MODAL === */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
}

.modal-overlay.hidden { display: none; }

.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 40px;
  max-width: 440px;
  width: 100%;
}

.modal-box h2 {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--bone);
  margin-bottom: 8px;
}

.modal-box p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 28px;
}

.modal-close {
  float: right;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover { color: var(--bone); }

/* === PROFILE === */
.profile-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  margin-bottom: 24px;
}

.profile-avatar {
  width: 72px;
  height: 72px;
  background: var(--amber-dim);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 28px;
  color: #fff;
  flex-shrink: 0;
}

.profile-info { flex: 1; }

.profile-name {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0.04em;
  color: var(--bone);
  margin-bottom: 4px;
}

.profile-joined {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}

.profile-stats {
  display: flex;
  gap: 24px;
}

.profile-stat {
  display: flex;
  flex-direction: column;
}

.profile-stat-num {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--amber);
  line-height: 1;
}

.profile-stat-label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* === EMPTY STATE === */
.empty-state {
  text-align: center;
  padding: 60px 24px;
  color: var(--muted);
}

.empty-state h3 {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--bone);
  margin-bottom: 8px;
}

.empty-state p { font-size: 15px; margin-bottom: 24px; }

/* === 404 === */
.not-found-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.not-found-page h1 {
  font-family: var(--font-display);
  font-size: 120px;
  color: var(--amber);
  margin-bottom: 16px;
}

.not-found-page p {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 32px;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .app-nav { padding: 0 20px; }
  .app-page { padding: 24px 16px 60px; }
  .form-row { grid-template-columns: 1fr; }
  .profile-header { flex-direction: column; }
}