/* ==========================================================================
   AI Office — landing page styles
   Собрано вручную по мотивам экспорта Claude Design (landing/reference/).
   ========================================================================== */

/* Атрибут hidden должен побеждать любой display у класса.
   Без этой строки .form-card { display: flex } перекрывает [hidden]
   из браузерного стиля, и блок «Заявка отправлена» виден всегда. */
[hidden] {
  display: none !important;
}

:root {
  --color-bg: #f6f5f2;
  --color-bg-header: #f4efe5;
  --color-bg-alt: #efede8;
  --color-card-alt: #e9e3d5;
  --color-border: #e3e0da;
  --color-border-soft: #eeebe5;
  --color-border-header: #e5dfd1;

  --color-text: #14243d;
  --color-text-soft: #4a5567;
  --color-text-muted: #5a6577;
  --color-accent: #8c5a2b;
  --color-accent-on-dark: #d9a35d;
  --color-list-dash: #b6b0a6;

  --color-dark-bg: #14243d;
  --color-dark-bg-hover: #0b1728;
  --color-dark-text: #f4f2ee;
  --color-dark-text-muted: #c3cbd8;
  --color-dark-text-soft: #98a3b6;
  --color-dark-border: #2e4467;
  --color-dark-input-border: #35507a;

  --font-sans: "Golos Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", "Courier New", Courier, monospace;

  --radius-sm: 3px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --max-width: 1200px;
}

/* ---------- reset / base ---------- */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--color-text);
  text-decoration: none;
}

a:hover {
  color: var(--color-accent);
}

button,
input {
  font-family: inherit;
}

input::placeholder {
  color: #9aa2ae;
}

.dark input::placeholder {
  color: #7c8aa3;
}

/* visible focus for keyboard users on every interactive element */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.icon {
  flex-shrink: 0;
  stroke: currentColor;
}

/* ---------- layout helpers ---------- */

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.section {
  padding: 112px 32px;
  background: #fff;
}

.section-alt {
  background: var(--color-bg-alt);
}

/* second dark block for page rhythm — see docs/tasks/landing_accents.md */
.section-dark {
  background: var(--color-dark-bg);
  color: var(--color-dark-text);
}

.section-dark .eyebrow {
  color: var(--color-accent-on-dark);
}

.section-dark .section-head h2 {
  color: var(--color-dark-text);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0 auto 56px;
  max-width: var(--max-width);
}

.section-head h2 {
  margin: 0;
  max-width: 640px;
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.13;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-size: 16px;
  font-weight: 500;
  padding: 16px 32px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

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

.btn-primary:hover {
  background: var(--color-dark-bg-hover);
  color: var(--color-dark-text);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border-color: #c9bfa8;
}

.btn-secondary:hover {
  border-color: var(--color-text);
  color: var(--color-text);
}

.btn-light {
  background: var(--color-dark-text);
  color: var(--color-dark-bg);
  border: 0;
}

.btn-light:hover {
  background: #fff;
  color: var(--color-dark-bg);
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--color-bg-header);
  border-bottom: 1px solid var(--color-border-header);
}

.site-header .wrap {
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

.logo:hover {
  color: var(--color-text);
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-link {
  font-size: 14px;
  color: var(--color-text-muted);
}

.nav-cta {
  font-size: 14px;
  padding: 11px 22px;
}

@media (max-width: 720px) {
  .nav-link {
    display: none;
  }
}

/* ---------- hero ---------- */

.hero {
  background: var(--color-bg-header);
  padding: 104px 32px 200px;
}

.hero-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 28px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(38px, 5.6vw, 68px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 600;
}

.hero p {
  margin: 0;
  max-width: 600px;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.55;
  color: var(--color-text-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}

/* ---------- demo card ---------- */

.demo-card-wrap {
  max-width: 1000px;
  margin: -152px auto 0;
  padding: 0 32px;
  position: relative;
  z-index: 5;
}

.demo-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(20, 36, 61, 0.14);
  overflow: hidden;
}

.demo-card__task {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--color-border-soft);
}

.demo-card__task-text {
  font-size: 15px;
  color: var(--color-text-soft);
}

.demo-card__rows {
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.demo-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
}

/* flags the row a user's eye lands on first — see docs/tasks/landing_accents.md */
.demo-row--flag {
  border-left: 3px solid var(--color-accent);
  margin-left: -17px;
  padding-left: 14px;
}

.tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  padding: 4px 10px;
  white-space: nowrap;
}

.demo-row-text {
  font-size: 15px;
  color: var(--color-text);
}

.demo-row-text--muted {
  color: var(--color-text-soft);
}

.demo-card__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  background: #faf9f6;
  border-top: 1px solid var(--color-border-soft);
}

.demo-card__footer-text {
  font-size: 14px;
  color: var(--color-text-muted);
}

.demo-card__actions {
  display: flex;
  gap: 10px;
}

.btn-ghost-sm {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  border: 1px solid #d6d2ca;
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  background: transparent;
  cursor: pointer;
  transition: border-color 0.18s ease;
}

.btn-ghost-sm:hover {
  border-color: var(--color-text);
}

.btn-dark-sm {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-dark-text);
  background: var(--color-dark-bg);
  border-radius: var(--radius-sm);
  padding: 10px 20px;
  border: 0;
  cursor: pointer;
  transition: background-color 0.18s ease;
}

.btn-dark-sm:hover {
  background: var(--color-dark-bg-hover);
}

/* the demo card overlaps the hero, so the section right after it
   needs extra top padding to compensate for the negative margin */
#roles {
  padding-top: 112px;
}

/* ---------- roles grid ---------- */

.roles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.role-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.role-card--highlight {
  background: var(--color-card-alt);
  border-color: transparent;
}

.role-icon {
  color: var(--color-accent);
}

.role-card h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}

.role-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--color-text-soft);
}

/* ---------- changes grid ---------- */

.changes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 56px 48px;
}

.change-item {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.change-icon {
  color: var(--color-accent);
  margin-bottom: 4px;
}

.change-item h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.change-item p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-soft);
}

/* ---------- how it works ---------- */

.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.how-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-dark-border);
  border-radius: var(--radius-md);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.how-index {
  font-family: var(--font-mono);
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  color: var(--color-accent-on-dark);
}

.how-card h3 {
  margin: 0;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--color-dark-text);
}

.how-card p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-dark-text-muted);
}

/* ---------- cases ---------- */

.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.case-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(20, 36, 61, 0.12);
  border-color: var(--color-accent);
}

.case-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.case-card h3 {
  margin: 0;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.case-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--color-text-soft);
}

.case-list li {
  display: flex;
  gap: 10px;
}

.case-list li::before {
  content: "\2014";
  color: var(--color-list-dash);
}

.case-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--color-border-soft);
  font-size: 14px;
  color: var(--color-text-muted);
}

/* ---------- demo request / form section ---------- */

.cta-section {
  background: var(--color-dark-bg);
  color: var(--color-dark-text);
}

.cta-grid {
  padding: 112px 32px 120px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 64px 80px;
  align-items: start;
}

.cta-copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cta-copy .eyebrow {
  color: #9fb4d4;
}

.cta-copy h2 {
  margin: 0;
  font-size: clamp(30px, 3.4vw, 46px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.cta-copy p {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--color-dark-text-muted);
  max-width: 420px;
}

.form-card {
  border: 1px solid var(--color-dark-border);
  border-radius: var(--radius-md);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-card h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.form-card p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-dark-text-muted);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 440px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field span {
  font-size: 14px;
  color: var(--color-dark-text-muted);
}

.form-field input,
.form-field textarea {
  background: transparent;
  color: var(--color-dark-text);
  border: 0;
  border-bottom: 1px solid var(--color-dark-input-border);
  padding: 12px 2px;
  font-size: 17px;
  font-family: inherit;
  outline: none;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  border-bottom-color: var(--color-dark-text);
}

.form-field--honeypot {
  position: absolute;
  left: -9999px;
  top: -9999px;
}

.form-note {
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-dark-text-soft);
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--color-bg);
  border-top: 1px solid var(--color-border-soft);
}

.footer-grid {
  padding: 40px 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--color-text-muted);
  max-width: 360px;
}

.footer-brand strong {
  color: var(--color-text);
  font-size: 14px;
  font-weight: 600;
}

.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  color: var(--color-text-muted);
}

.footer-contacts a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text-muted);
}

.footer-contacts a:hover {
  color: var(--color-accent);
}

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

/* ---------- responsive tweaks ---------- */

@media (max-width: 768px) {
  .section {
    padding: 72px 20px;
  }

  .hero {
    padding: 72px 20px 140px;
  }

  .demo-card-wrap {
    margin-top: -104px;
    padding: 0 20px;
  }

  #roles {
    padding-top: 72px;
  }

  .cta-grid {
    padding: 72px 20px 80px;
  }

  .site-header .wrap {
    padding: 14px 20px;
  }

  .footer-grid {
    padding: 32px 20px;
  }
}

@media (max-width: 480px) {
  .demo-card__footer {
    flex-direction: column;
    align-items: stretch;
  }

  .demo-card__actions {
    justify-content: flex-end;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .btn-ghost-sm,
  .btn-dark-sm,
  .case-card {
    transition: none;
  }

  .case-card:hover {
    transform: none;
  }
}
