/* KrisenKompass — Dark Finance Theme */

/* ── Reset & Base ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #111118;
  --bg-card: #16161f;
  --bg-card-hover: #1c1c28;
  --gold: #d4af37;
  --gold-light: #e8c95a;
  --gold-dark: #b8962e;
  --text-primary: #e8e6e1;
  --text-secondary: #9a9a9a;
  --text-muted: #6a6a6a;
  --border: #2a2a35;
  --font-serif: 'Georgia', 'Times New Roman', serif;
  --font-sans: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --max-width: 1200px;
  --max-width-article: 780px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--gold-light);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2rem; margin-bottom: 1rem; }
h3 { font-size: 1.4rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.15rem; }

p {
  margin-bottom: 1.2rem;
  color: var(--text-secondary);
}

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

.container--narrow {
  max-width: var(--max-width-article);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 5rem 0;
}

/* ── Header / Navigation ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.nav__logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.5px;
}

.nav__logo span {
  color: var(--text-primary);
}

.nav__links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav__links a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav__links a:hover {
  color: var(--gold);
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  margin: 5px 0;
  transition: 0.3s;
}

/* ── Hero ── */
.hero {
  padding: 8rem 0 6rem;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  border-bottom: 1px solid var(--border);
}

.hero__badge {
  display: inline-block;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  margin-bottom: 2rem;
}

.hero h1 {
  max-width: 800px;
  margin: 0 auto 1.5rem;
  font-size: 3.2rem;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  max-width: 600px;
  margin: 0 auto 2.5rem;
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  border: none;
  text-decoration: none;
}

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

.btn--primary:hover {
  background: var(--gold-light);
  color: var(--bg-primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
}

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

.btn--outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn--telegram {
  background: #0088cc;
  color: #fff;
}

.btn--telegram:hover {
  background: #009ee0;
  color: #fff;
  transform: translateY(-1px);
}

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

/* ── Section Headers ── */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header__label {
  display: inline-block;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.75rem;
}

.section-header p {
  max-width: 550px;
  margin: 0.75rem auto 0;
}

/* ── Features / About Preview ── */
.features {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2.5rem 2rem;
  transition: border-color 0.3s, transform 0.3s;
}

.feature-card:hover {
  border-color: var(--gold-dark);
  transform: translateY(-3px);
}

.feature-card__icon {
  font-size: 2rem;
  margin-bottom: 1.25rem;
}

.feature-card h3 {
  margin-bottom: 0.75rem;
}

.feature-card p {
  font-size: 0.95rem;
}

/* ── Blog Cards ── */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}

.post-card:hover {
  border-color: var(--gold-dark);
  transform: translateY(-3px);
}

.post-card__img {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-card-hover));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  border-bottom: 1px solid var(--border);
}

.post-card__body {
  padding: 1.5rem;
}

.post-card__date {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.post-card__title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.post-card__title a {
  color: var(--text-primary);
}

.post-card__title a:hover {
  color: var(--gold);
}

.post-card__excerpt {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.post-card__link {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ── Newsletter Section ── */
.newsletter {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.newsletter__box {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.newsletter__form {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.newsletter__form input[type="email"] {
  flex: 1;
  padding: 0.85rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: var(--font-sans);
}

.newsletter__form input[type="email"]::placeholder {
  color: var(--text-muted);
}

.newsletter__form input[type="email"]:focus {
  outline: none;
  border-color: var(--gold);
}

/* ── Telegram CTA ── */
.telegram-cta {
  text-align: center;
}

.telegram-cta__box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 3rem;
  max-width: 650px;
  margin: 0 auto;
}

/* ── Article / Post Styles ── */
.article-header {
  padding: 5rem 0 2rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.article-header__meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
}

.article-header h1 {
  font-size: 2.6rem;
  max-width: 750px;
  margin: 0 auto 1.5rem;
}

.article-header__lead {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

.article-body {
  padding: 3rem 0 4rem;
}

.article-body h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.article-body h2:first-child {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}

.article-body p {
  font-size: 1.05rem;
  line-height: 1.85;
  margin-bottom: 1.5rem;
}

.article-body ul, .article-body ol {
  margin: 1rem 0 1.5rem 1.5rem;
  color: var(--text-secondary);
}

.article-body li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.article-body blockquote {
  border-left: 3px solid var(--gold);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: var(--bg-card);
  border-radius: 0 8px 8px 0;
}

.article-body blockquote p {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--text-primary);
  margin-bottom: 0;
}

.article-body strong {
  color: var(--text-primary);
}

.article-cta {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2.5rem;
  margin-top: 3rem;
  text-align: center;
}

.article-cta h3 {
  margin-bottom: 1rem;
}

.article-cta p {
  margin-bottom: 1.5rem;
}

.article-cta .btn {
  margin: 0.5rem;
}

.affiliate-box {
  background: var(--bg-card);
  border: 1px solid var(--gold-dark);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
  text-align: center;
}

.affiliate-box__label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.affiliate-box__title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

/* ── Page Header (generic) ── */
.page-header {
  padding: 5rem 0 3rem;
  text-align: center;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-size: 2.6rem;
  margin-bottom: 1rem;
}

.page-header p {
  max-width: 550px;
  margin: 0 auto;
  font-size: 1.1rem;
}

.page-body {
  padding: 3rem 0 5rem;
}

.page-body h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.page-body p {
  margin-bottom: 1.2rem;
  line-height: 1.8;
}

/* ── Footer ── */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}

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

.footer__brand p {
  font-size: 0.9rem;
  margin-top: 1rem;
}

.footer__col h4 {
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1.25rem;
}

.footer__col ul {
  list-style: none;
}

.footer__col li {
  margin-bottom: 0.6rem;
}

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

.footer__col a:hover {
  color: var(--gold);
}

.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .features__grid,
  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  h1 { font-size: 2.2rem; }
  .hero h1 { font-size: 2.4rem; }
  .article-header h1 { font-size: 2rem; }
}

@media (max-width: 640px) {
  .nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
  }

  .nav__links.active {
    display: flex;
  }

  .nav__toggle {
    display: block;
  }

  .features__grid,
  .posts-grid {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero {
    padding: 5rem 0 4rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  .article-header h1 { font-size: 1.8rem; }

  section {
    padding: 3.5rem 0;
  }

  .newsletter__form {
    flex-direction: column;
  }

  .hero__cta {
    flex-direction: column;
    align-items: center;
  }
}
