:root {
  --autopost-bg: #09090b;
  --autopost-surface: #141418;
  --autopost-surface-soft: #18181e;
  --autopost-border: #2a2a33;
  --autopost-text: #f1f1f4;
  --autopost-muted: #b8b8c2;
  --autopost-subtle: #858590;
  --autopost-accent: #8b8bff;
  --autopost-accent-soft: rgba(139, 139, 255, 0.11);
  --autopost-green: #77d2a4;
  --autopost-orange: #e6ac73;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  background:
    radial-gradient(circle at 78% 0%, rgba(100, 100, 220, 0.16), transparent 31rem),
    radial-gradient(circle at 10% 38%, rgba(89, 173, 145, 0.06), transparent 26rem),
    var(--autopost-bg);
  color: var(--autopost-text);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--autopost-accent);
  outline-offset: 4px;
}

.header .container {
  gap: 22px;
  max-width: 1120px;
  min-height: 72px;
  padding: 14px 24px;
}

.logo {
  flex: none;
  margin: 0;
  font-size: 1.05rem;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-left: auto;
}

.nav a {
  margin-left: 0;
  font-size: 0.86rem;
  white-space: nowrap;
}

.lang-btn {
  flex: none;
  margin-left: 0;
}

.autopost-hero {
  padding: 108px 0 78px;
}

.autopost-hero .hero-content {
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 70px;
}

.project-status,
.section-kicker {
  color: var(--autopost-accent);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero-text .project-status {
  max-width: none;
  margin-top: 0;
  color: var(--autopost-orange);
}

.autopost-hero .hero-text h1 {
  margin-top: 10px;
  font-size: clamp(3.2rem, 7vw, 5.4rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.autopost-hero .hero-text h2 {
  margin-top: 20px;
  color: #d8d8ff;
  font-size: clamp(1.1rem, 2.3vw, 1.45rem);
  font-weight: 650;
  line-height: 1.4;
}

.autopost-hero .hero-text > p:not(.project-status) {
  max-width: 650px;
  margin-top: 18px;
  color: var(--autopost-muted);
}

.automation-visual {
  display: flex;
  width: 290px;
  min-height: 330px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px;
  border: 2px solid rgba(139, 139, 255, 0.65);
  border-radius: 26px;
  background:
    linear-gradient(rgba(139, 139, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 139, 255, 0.04) 1px, transparent 1px),
    linear-gradient(155deg, #17171d, #101014);
  background-size: 22px 22px, 22px 22px, auto;
  box-shadow: 0 0 60px rgba(124, 124, 255, 0.25);
}

.automation-node {
  display: grid;
  width: 150px;
  min-height: 48px;
  place-items: center;
  border: 1px solid rgba(139, 139, 255, 0.42);
  border-radius: 12px;
  background: rgba(14, 14, 18, 0.88);
  color: #dfdfff;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.07em;
}

.node-approval {
  border-color: rgba(230, 172, 115, 0.5);
  color: #f3c99f;
}

.node-publish {
  border-color: rgba(119, 210, 164, 0.5);
  color: #aee8ca;
}

.automation-link {
  width: 2px;
  height: 18px;
  background: linear-gradient(var(--autopost-accent), rgba(139, 139, 255, 0.25));
}

.section {
  padding: 84px 24px;
  scroll-margin-top: 80px;
}

.section-header {
  max-width: 760px;
  margin-bottom: 32px;
}

.section-header h2 {
  margin-top: 7px;
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.section-description {
  margin-top: 11px;
  color: var(--autopost-subtle);
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.overview-card {
  min-height: 220px;
  padding: 28px;
  border: 1px solid var(--autopost-border);
  border-radius: 18px;
  background: linear-gradient(155deg, var(--autopost-surface-soft), var(--autopost-surface));
}

.overview-card h3 {
  margin-bottom: 12px;
  color: #d7d7ff;
  font-size: 1.13rem;
}

.overview-card p {
  color: var(--autopost-muted);
  font-size: 0.94rem;
}

.problem-card {
  border-top: 2px solid rgba(230, 172, 115, 0.68);
}

.solution-card {
  border-top: 2px solid rgba(119, 210, 164, 0.68);
}

.flow-diagram {
  display: flex;
  align-items: stretch;
  padding: 24px;
  border: 1px solid var(--autopost-border);
  border-radius: 18px;
  background:
    linear-gradient(rgba(139, 139, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 139, 255, 0.035) 1px, transparent 1px),
    rgba(16, 16, 20, 0.72);
  background-size: 24px 24px;
}

.flow-step {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  padding: 18px 14px;
  border: 1px solid var(--autopost-border);
  border-radius: 13px;
  background: rgba(20, 20, 25, 0.94);
}

.flow-number {
  color: var(--autopost-accent);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.flow-step strong {
  margin-top: 4px;
  font-size: 0.86rem;
  line-height: 1.3;
}

.flow-step small {
  margin-top: 4px;
  color: var(--autopost-subtle);
  font-size: 0.7rem;
  line-height: 1.35;
}

.flow-decision {
  border-color: rgba(230, 172, 115, 0.42);
}

.flow-arrow {
  display: grid;
  flex: 0 0 28px;
  place-items: center;
  color: #67677d;
  font-size: 1.15rem;
}

.rejection-path {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
  padding: 13px 18px;
  border: 1px dashed rgba(230, 172, 115, 0.35);
  border-radius: 12px;
  color: #aaaab3;
  font-size: 0.79rem;
}

.rejection-label {
  color: #efbd8c;
  font-weight: 750;
}

.flow-details {
  margin-top: 28px;
}

.feature-card {
  position: relative;
  min-height: 230px;
  padding: 24px;
  border-color: var(--autopost-border);
  background: linear-gradient(155deg, var(--autopost-surface-soft), var(--autopost-surface));
}

.feature-card h3 {
  margin: 16px 0 8px;
  color: #d7d7ff;
  font-size: 1rem;
}

.feature-card p {
  color: var(--autopost-muted);
  font-size: 0.86rem;
}

.card-index {
  color: var(--autopost-accent);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.feature-card .inline-confirmed {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--autopost-border);
  color: #9fddbe;
  font-size: 0.76rem;
}

.architecture-callout {
  display: grid;
  grid-template-columns: minmax(210px, 0.35fr) minmax(0, 0.65fr);
  gap: 24px;
  margin-bottom: 20px;
  padding: 20px 22px;
  border: 1px solid rgba(139, 139, 255, 0.38);
  border-radius: 14px;
  background: rgba(139, 139, 255, 0.07);
}

.architecture-callout strong {
  color: #d9d9ff;
  font-size: 0.9rem;
}

.architecture-callout p {
  color: var(--autopost-muted);
  font-size: 0.84rem;
}

.security-architecture {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.security-lane {
  padding: 25px;
  border: 1px solid var(--autopost-border);
  border-radius: 18px;
  background: linear-gradient(155deg, var(--autopost-surface-soft), var(--autopost-surface));
}

.private-lane {
  border-top: 2px solid rgba(119, 210, 164, 0.7);
}

.public-lane {
  border-top: 2px solid rgba(139, 139, 255, 0.7);
}

.lane-header {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
}

.lane-header p {
  color: #d7d7df;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lane-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--autopost-green);
  box-shadow: 0 0 10px rgba(119, 210, 164, 0.55);
}

.public-lane .lane-status {
  background: var(--autopost-accent);
  box-shadow: 0 0 10px rgba(139, 139, 255, 0.55);
}

.lane-flow {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 15px;
  border: 1px solid var(--autopost-border);
  border-radius: 12px;
  background: rgba(8, 8, 11, 0.45);
}

.lane-flow span {
  flex: 1;
  color: #d0d0d7;
  font-size: 0.74rem;
  line-height: 1.35;
  text-align: center;
}

.lane-flow b {
  color: #5c5c69;
  font-weight: 500;
}

.security-lane > p {
  margin-top: 16px;
  color: var(--autopost-muted);
  font-size: 0.84rem;
}

.security-principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.security-principles article {
  display: flex;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--autopost-border);
  border-radius: 14px;
  background: rgba(18, 18, 22, 0.72);
}

.security-principles article > span {
  color: var(--autopost-accent);
  font-size: 0.7rem;
  font-weight: 800;
}

.security-principles h3 {
  font-size: 0.89rem;
}

.security-principles p {
  margin-top: 6px;
  color: var(--autopost-subtle);
  font-size: 0.78rem;
}

.stack-card {
  border-color: var(--autopost-border);
  background: linear-gradient(155deg, var(--autopost-surface-soft), var(--autopost-surface));
}

.stack-card h3 {
  margin-bottom: 12px;
  color: #d2d2ff;
  font-size: 1rem;
}

.status-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 44px;
  padding: 34px;
  border: 1px solid rgba(230, 172, 115, 0.36);
  border-radius: 20px;
  background:
    radial-gradient(circle at 100% 0%, rgba(230, 172, 115, 0.1), transparent 18rem),
    linear-gradient(155deg, #18171a, #121216);
}

.status-panel h2 {
  margin-top: 7px;
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.status-panel > div > p:last-child {
  margin-top: 12px;
  color: var(--autopost-muted);
  font-size: 0.9rem;
}

.production-panel {
  border-color: rgba(119, 210, 164, 0.38);
  background:
    radial-gradient(circle at 100% 0%, rgba(119, 210, 164, 0.11), transparent 18rem),
    linear-gradient(155deg, #17191a, #121216);
}

.production-list {
  display: grid;
  align-content: start;
  gap: 10px;
  list-style: none;
}

.production-list li {
  position: relative;
  padding: 12px 14px 12px 36px;
  border: 1px solid var(--autopost-border);
  border-radius: 10px;
  background: rgba(8, 8, 11, 0.35);
  color: #c9c9d1;
  font-size: 0.82rem;
}

.production-list li::before {
  position: absolute;
  left: 14px;
  color: var(--autopost-green);
  content: "✓";
}

@media (max-width: 1024px) {
  .header .container {
    flex-wrap: wrap;
    gap: 12px 20px;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .autopost-hero .hero-content {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 42px;
    text-align: left;
  }

  .autopost-hero .hero-text p {
    margin-left: 0;
    margin-right: 0;
  }

  .autopost-hero .hero-buttons {
    justify-content: flex-start;
  }

  .automation-visual {
    width: 260px;
  }

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

  .flow-step {
    width: min(100%, 360px);
  }

  .flow-arrow {
    min-height: 28px;
    transform: rotate(90deg);
  }

  .security-principles {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .section {
    padding: 62px 18px;
    scroll-margin-top: 112px;
  }

  .autopost-hero {
    padding: 72px 0 52px;
  }

  .autopost-hero .hero-content,
  .overview-grid,
  .architecture-callout,
  .security-architecture,
  .status-panel {
    grid-template-columns: 1fr;
  }

  .autopost-hero .hero-content {
    gap: 46px;
  }

  .autopost-hero .hero-text h1 {
    font-size: 3rem;
  }

  .autopost-hero .hero-text h2 {
    font-size: 1.08rem;
  }

  .autopost-hero .hero-buttons {
    flex-direction: column;
  }

  .autopost-hero .hero-image {
    display: flex;
    justify-content: flex-start;
  }

  .automation-visual {
    width: min(100%, 290px);
  }

  .rejection-path {
    align-items: flex-start;
    flex-direction: column;
  }

  .rejection-path > span[aria-hidden="true"] {
    transform: rotate(90deg);
  }

  .status-panel {
    gap: 28px;
    padding: 24px;
  }
}

@media (max-width: 480px) {
  .header .container {
    padding-inline: 18px;
  }

  .autopost-hero .hero-text h1 {
    font-size: 2.55rem;
  }

  .flow-diagram,
  .overview-card,
  .security-lane {
    padding: 20px;
  }

  .lane-flow {
    align-items: stretch;
    flex-direction: column;
  }

  .lane-flow b {
    text-align: center;
    transform: rotate(90deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
