/* ===== GLAVCHERDAK v4 — Clean Minimalism + Provocation ===== */

:root {
  --bg: #f7f7f7;
  --white: #fff;
  --black: #111;
  --text: #333;
  --muted: #999;
  --accent: #e04a00;
  --border: #e0e0e0;
  --font: -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Courier New", Courier, monospace;
  --max-w: 680px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(247, 247, 247, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 15px;
  font-weight: 700;
  color: var(--black);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

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

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

.nav-links .nav-cta {
  color: var(--accent);
  font-weight: 600;
}

.nav-links .nav-cta:hover {
  color: var(--black);
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 56px 1.5rem 0;
}

.hero-label {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.5px;
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--black);
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.65;
  max-width: 480px;
}

.hero-cta {
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-block;
  padding: 0.8rem 2rem;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font);
  color: var(--white);
  background: var(--black);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

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

.btn-big {
  padding: 1rem 2.5rem;
  font-size: 17px;
}

.btn-ghost {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* ===== SECTION SPACING ===== */
section {
  padding: 6rem 0;
}

section + section {
  border-top: 1px solid var(--border);
}

/* ===== TYPOGRAPHY ===== */
h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--black);
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

h2 em {
  color: var(--accent);
  font-style: italic;
}

h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 0.4rem;
}

.text {
  font-size: 17px;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.text:last-child {
  margin-bottom: 0;
}

.muted {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.quiet {
  color: var(--muted);
  font-style: italic;
}

/* ===== MANIFESTO ===== */
.manifesto {
  padding: 6rem 0;
}

/* ===== PROBLEMS ===== */
.problems {
  padding: 6rem 1.5rem;
  background: var(--black);
  color: var(--white);
  border: none !important;
}

.problems + section {
  border-top: none !important;
}

.problems h2 {
  color: var(--white);
}

.problems h2 em {
  color: var(--accent);
}

.pain-grid {
  display: grid;
  gap: 2.5rem;
  margin-top: 2rem;
}

.pain-item {
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.5s ease;
}

.pain-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.pain-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 1px;
}

.pain-item h3 {
  color: var(--white);
  margin: 0.3rem 0 0.5rem;
}

.pain-item p {
  font-size: 16px;
  color: rgba(255,255,255,0.6);
  line-height: 1.65;
}

/* ===== APPROACH ===== */
.approach-head {
  margin-bottom: 3rem;
}

.how-list {
  display: grid;
  gap: 2rem;
}

.how-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.how-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  flex-shrink: 0;
  padding-top: 0.15rem;
  letter-spacing: 1px;
}

.how-item strong {
  display: block;
  font-size: 16px;
  margin-bottom: 0.25rem;
  color: var(--black);
}

.how-item p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
}

/* ===== CHAT ===== */
.chat-desc {
  margin-bottom: 2rem;
}

.chat-window {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-width: 520px;
}

.msg {
  padding: 0.75rem 1.1rem;
  border-radius: 16px;
  font-size: 15px;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s ease;
}

.msg.visible {
  opacity: 1;
  transform: translateY(0);
}

.msg.them {
  align-self: flex-start;
  background: var(--black);
  color: var(--white);
  border-bottom-left-radius: 4px;
  max-width: 85%;
}

.msg.me {
  align-self: flex-end;
  background: var(--white);
  color: var(--text);
  border: 1px solid var(--border);
  border-bottom-right-radius: 4px;
  max-width: 85%;
}

.chat-note {
  margin-top: 1.5rem;
  font-size: 14px;
}

/* ===== DIRECTIONS ===== */
.directions h2 {
  margin-bottom: 0.5rem;
}

.directions > .container > .text {
  margin-bottom: 2.5rem;
}

.dir-cards {
  display: grid;
  gap: 1.5rem;
}

.dir-card {
  display: block;
  padding: 2rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.4s ease;
}

.dir-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.dir-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

a.dir-card {
  text-decoration: none;
  color: inherit;
}

a.dir-card h3 {
  color: var(--black);
}

a.dir-card p {
  color: var(--muted);
}

.dir-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 1px;
}

.dir-card h3 {
  margin: 0.4rem 0 0.5rem;
}

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

/* ===== FAQ ===== */
.faq h2 {
  margin-bottom: 0.5rem;
}

.faq > .container > .text {
  margin-bottom: 2rem;
}

.faq-list {
  display: grid;
  gap: 0;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-item summary {
  font-size: 16px;
  font-weight: 600;
  color: var(--black);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.faq-item summary::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--muted);
  flex-shrink: 0;
  margin-left: 1rem;
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  content: '−';
  color: var(--accent);
}

.faq-item p {
  margin-top: 0.75rem;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
}

/* ===== CTA ===== */
.cta-final {
  padding: 6rem 1.5rem;
  background: var(--black);
  text-align: center;
  border: none !important;
}

.cta-final + * {
  border-top: none !important;
}

.cta-pre {
  font-size: 14px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1.5rem;
  font-style: italic;
}

.cta-final h2 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 2rem;
}

.cta-final h2 em {
  color: var(--accent);
}

.cta-final .btn-primary {
  background: var(--white);
  color: var(--black);
}

.cta-final .btn-primary:hover {
  background: var(--accent);
  color: var(--white);
}

.cta-after {
  margin-top: 1.5rem;
  font-size: 13px;
  color: rgba(255,255,255,0.3);
}

/* ===== FOOTER ===== */
.footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
}

.footer .container {
  max-width: 960px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-size: 14px;
  font-weight: 700;
  color: var(--black);
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

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

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

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

.footer-links a:hover {
  color: var(--black);
}

.footer-copy {
  font-size: 12px;
  color: var(--muted);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  body { font-size: 16px; }

  .hero { padding: 56px 1.5rem 0; }

  section { padding: 4rem 0; }

  .nav-links a:not(.nav-cta) {
    display: none;
  }

  .hero-cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

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