/*
Theme Name: DesiMatka999 Obsidian
Theme URI: https://example.com/desimatka999-obsidian
Author: OpenAI
Author URI: https://openai.com
Description: Dark premium WordPress theme with improved homepage UX, mobile-friendly layout, editable theme panel, and better content visibility.
Version: 4.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: desimatka999-obsidian
Tags: dark, custom-logo, featured-images, custom-menu, responsive-layout, blog
*/

:root {
  --bg: #070b14;
  --bg-2: #0b1220;
  --surface: rgba(15, 22, 38, 0.92);
  --surface-2: rgba(20, 28, 46, 0.96);
  --card-line: rgba(255,255,255,0.08);
  --text: #f3f7ff;
  --muted: #a8b6cc;
  --soft: #d5deed;
  --accent: #14f1c4;
  --accent-2: #7c9cff;
  --danger: #ff6b8a;
  --radius: 22px;
  --radius-sm: 16px;
  --shadow: 0 28px 80px rgba(0,0,0,0.42);
  --shadow-soft: 0 16px 38px rgba(0,0,0,0.28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(20,241,196,0.12), transparent 22%),
    radial-gradient(circle at top right, rgba(124,156,255,0.12), transparent 24%),
    linear-gradient(180deg, #060910 0%, #0a1120 35%, #070b14 100%);
  color: var(--text);
  line-height: 1.65;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
p { margin: 0 0 1rem; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.narrow-container { width: min(860px, calc(100% - 32px)); margin: 0 auto; }
.site-main { min-height: 60vh; }
.section { padding: 88px 0; position: relative; }
.slim-section { padding-top: 0; }
.two-col { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 24px; }
.three-up { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.two-up { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feature-grid { display: grid; gap: 20px; }
.centered { text-align: center; }
.content-with-sidebar { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
.sidebar-wrap { display: grid; gap: 20px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 11, 20, 0.78);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.header-inner {
  min-height: 78px;
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.brand-mark {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #041212;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 12px 30px rgba(20,241,196,0.28);
}
.brand-logo img { max-height: 52px; width: auto; }
.brand-text { display: grid; gap: 2px; }
.site-title { font-size: 1.08rem; font-weight: 800; letter-spacing: -0.02em; }
.site-tagline { font-size: 0.9rem; color: var(--muted); }
.site-nav { display: flex; align-items: center; gap: 18px; }
.menu { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; }
.menu a { color: var(--soft); font-weight: 700; font-size: 0.95rem; }
.menu a:hover { color: var(--text); }
.nav-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.nav-cta,
.btn-primary {
  color: #031513;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 14px 34px rgba(20,241,196,0.24);
}
.btn-secondary {
  color: var(--text);
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.1);
}
.nav-cta:hover,
.btn:hover { transform: translateY(-1px); }
.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  border-radius: 14px;
  padding: 0;
}
.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  margin: 5px auto;
  border-radius: 99px;
}

.top-ticker {
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(11, 18, 32, 0.85);
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: dm999-ticker 28s linear infinite;
}
.ticker-group {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  color: var(--soft);
  font-size: 0.92rem;
  white-space: nowrap;
}
.ticker-item::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(20,241,196,0.12);
}
@keyframes dm999-ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.hero-section { padding: 74px 0 42px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 24px;
  align-items: stretch;
}
.hero-copy h1 {
  margin: 10px 0 16px;
  font-size: clamp(2.6rem, 6vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  max-width: 11ch;
}
.section-kicker {
  margin: 0 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent-2);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.8rem;
}
.section-kicker::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.hero-desc,
.prose,
.muted-copy,
.post-excerpt { color: var(--muted); }
.bright-prose,
.bright-prose p,
.hero-desc p { color: var(--soft); }
.badge-row,
.hero-actions,
.chip-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.badge-row { margin-top: 24px; }
.badge-pill,
.soft-chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text);
  font-size: 0.92rem;
}
.hero-actions { margin-top: 28px; }
.surface-card,
.hero-panel,
.widget-card {
  border-radius: var(--radius);
  border: 1px solid var(--card-line);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015)),
    var(--surface);
  box-shadow: var(--shadow-soft);
}
.hero-panel,
.surface-card,
.widget-card { padding: 28px; }
.hero-panel {
  background:
    radial-gradient(circle at top right, rgba(20,241,196,0.12), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015)),
    var(--surface-2);
}
.panel-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.82rem;
  font-weight: 800;
  color: #031513;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.hero-panel h2 { margin: 18px 0 10px; font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.04; }
.metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.metric-card {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
}
.metric-card span { display: block; font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 8px; }
.metric-card strong { font-size: 1.2rem; line-height: 1; }

.section-head { margin-bottom: 26px; }
.section-head h1,
.section-head h2,
.article-card h1,
.article-card h2,
.article-card h3,
.feature-card h3,
.shot-copy h3,
.post-title,
.widget-title {
  margin: 0 0 12px;
  line-height: 1.05;
  letter-spacing: -0.035em;
}
.section-head h2,
.section-head h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
.compact-head h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.feature-card h3,
.shot-copy h3,
.post-title { font-size: 1.32rem; }
.about-layout,
.rates-layout,
.app-layout,
.faq-layout { align-items: start; }
.narrow-block { max-width: 460px; }

.feature-card {
  min-height: 100%;
  background:
    radial-gradient(circle at top right, rgba(124,156,255,0.1), transparent 36%),
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015)),
    var(--surface);
}
.feature-card p { margin-bottom: 0; }

.rate-panel { padding: 10px; }
.rate-table-wrap { overflow-x: auto; }
.rate-table { width: 100%; border-collapse: collapse; min-width: 420px; }
.rate-table th,
.rate-table td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.rate-table thead th {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.rate-table tbody tr:hover { background: rgba(255,255,255,0.03); }
.rate-table tbody tr:last-child td { border-bottom: 0; }

.screenshot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.screenshot-card { overflow: hidden; padding: 0; }
.shot-media {
  aspect-ratio: 4 / 3;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.shot-media img { width: 100%; height: 100%; object-fit: cover; }
.shot-media.is-placeholder { display: grid; place-items: center; }
.placeholder-box {
  width: calc(100% - 24px);
  height: calc(100% - 24px);
  border: 1px dashed rgba(255,255,255,0.18);
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: var(--muted);
}
.shot-copy { padding: 22px; }
.shot-copy p { margin: 0; }

.app-side-card { display: grid; gap: 14px; }
.stack-line {
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.stack-line:last-child { border-bottom: 0; }
.stack-line span { color: var(--muted); font-size: 0.92rem; }
.stack-line strong { font-size: 1rem; }

.article-card hr.content-divider {
  border: 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin: 28px 0;
}
.article-card ul,
.article-card ol,
.prose ul,
.prose ol { padding-left: 20px; }
.wp-page-content > *:first-child { margin-top: 0; }

.faq-list { display: grid; gap: 14px; }
.faq-item { padding: 0; overflow: hidden; }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  font-weight: 800;
  padding: 22px 26px;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 24px;
  top: 18px;
  font-size: 1.5rem;
  color: var(--accent);
}
.faq-item[open] summary::after { content: "-"; }
.faq-item .prose { padding: 0 26px 24px; }

.support-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
}
.notice-card { text-align: center; }

.post-card { overflow: hidden; }
.post-thumb img { width: 100%; height: 240px; object-fit: cover; border-radius: calc(var(--radius) - 4px) calc(var(--radius) - 4px) 0 0; }
.post-body { padding: 22px; }
.post-meta { color: var(--muted); font-size: 0.88rem; margin-bottom: 10px; }
.post-title a:hover { color: var(--accent); }
.pagination-wrap { margin-top: 26px; }

.widget-card { padding: 22px; }
.widget-title { font-size: 1.16rem; }
.site-footer {
  padding: 28px 0 100px;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: rgba(5,8,15,0.7);
}
.footer-inner { text-align: center; color: var(--muted); }
.mobile-sticky-cta {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 98;
  display: none;
}
.mobile-sticky-cta a {
  min-height: 54px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #041212;
  font-weight: 900;
  box-shadow: 0 14px 34px rgba(20,241,196,0.26);
}
.reveal-up { opacity: 1; transform: none; }

.screen-reader-text {
  position: absolute;
  clip: rect(1px, 1px, 1px, 1px);
  padding: 0;
  border: 0;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

@media (max-width: 1100px) {
  .hero-grid,
  .two-col,
  .content-with-sidebar,
  .support-banner {
    grid-template-columns: 1fr;
  }
  .three-up,
  .screenshot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 991px) {
  .menu-toggle { display: inline-block; }
  .site-nav {
    position: fixed;
    top: 79px;
    left: 12px;
    right: 12px;
    border-radius: 22px;
    padding: 18px;
    background: rgba(11,18,32,0.98);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    align-items: stretch;
  }
  .site-nav.is-open { display: flex; }
  .menu { flex-direction: column; align-items: stretch; gap: 8px; }
  .menu a {
    display: block;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255,255,255,0.03);
  }
  .nav-cta { width: 100%; }
  .hero-copy h1 { max-width: 100%; }
}

@media (max-width: 767px) {
  .section { padding: 68px 0; }
  .container,
  .narrow-container { width: min(100% - 20px, 1180px); }
  .hero-panel,
  .surface-card,
  .widget-card { padding: 20px; border-radius: 18px; }
  .three-up,
  .two-up,
  .screenshot-grid,
  .feature-grid { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .support-banner { gap: 18px; }
  .rate-table {
    min-width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
  }
  .rate-table thead { display: none; }
  .rate-table tbody,
  .rate-table tr,
  .rate-table td { display: block; width: 100%; }
  .rate-table tr {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px;
    overflow: hidden;
  }
  .rate-table td {
    border: 0;
    padding: 12px 14px;
  }
  .rate-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
    font-weight: 800;
  }
  .post-thumb img { height: 200px; }
  .mobile-sticky-cta { display: block; }
  .site-footer { padding-bottom: 88px; }
}

@media (max-width: 520px) {
  .header-inner { min-height: 72px; }
  .site-title { font-size: 1rem; }
  .site-tagline { font-size: 0.82rem; }
  .hero-copy h1 { font-size: clamp(2rem, 12vw, 3rem); }
  .metric-grid { grid-template-columns: 1fr; }
  .badge-row,
  .hero-actions,
  .chip-grid { gap: 10px; }
  .btn,
  .nav-cta { width: 100%; }
}
