/* Altera — брендовая тема для Reveal.js, повторяет токены лендинга
   (marketing/landings/main/site/src/styles/global.css) */

@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  --bg: #f6f9fc;
  --bg-soft: #eef4f8;
  --surface: #ffffff;
  --surface-2: #f2f7fb;
  --text: #102033;
  --muted: #5b6b7e;
  --line: #d4dfeb;
  --cyan: #11c5d9;
  --cyan-soft: #7de8f2;
  --amber: #ffb84d;
  --amber-deep: #ff8a3d;
  --success: #2ecc71;
  --ai: #7a5af8;
  --shadow: 0 22px 54px rgba(16, 32, 51, 0.1);
  --shadow-soft: 0 12px 28px rgba(16, 32, 51, 0.08);
  --radius: 24px;
  --radius-sm: 16px;
}

* {
  box-sizing: border-box;
}

.reveal {
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
}

.reveal h1,
.reveal h2,
.reveal h3,
.reveal h4,
.reveal p,
.reveal ul,
.reveal li,
.reveal table {
  text-transform: none;
  text-shadow: none;
  font-family: inherit;
  margin: 0;
  padding: 0;
  line-height: inherit;
}

.reveal ul {
  list-style: none;
}

.reveal button {
  font-family: inherit;
  cursor: default;
}

.reveal table {
  border: none;
}

.reveal table td,
.reveal table th {
  border: none;
}

.reveal .slides section {
  text-align: left;
  height: 100%;
  padding: 62px 84px 58px;
  background:
    radial-gradient(560px 320px at 92% -8%, rgba(17, 197, 217, 0.14), transparent 60%),
    radial-gradient(480px 300px at -6% 108%, rgba(255, 184, 77, 0.16), transparent 60%),
    var(--bg);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.reveal .slides section > .slide-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 22px;
}

/* ---------- Typography ---------- */

.eyebrow {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
}

.slide-title {
  margin: 4px 0 0;
  font-size: 2.15rem;
  font-weight: 800;
  line-height: 1.16;
  color: var(--text);
  max-width: 22ch;
}

.slide-title.slide-title-lg {
  font-size: 2.6rem;
  max-width: 18ch;
}

.reveal p.slide-subtitle {
  margin: 22px 0 0;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 62ch;
}

.slide-header {
  flex: none;
}

.slide-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ---------- Slide chrome (logo + page number) ---------- */

.slide-chrome {
  position: absolute;
  left: 84px;
  right: 84px;
  bottom: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.slide-chrome-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--text);
}

.slide-chrome-brand img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* ---------- Grids & cards ---------- */

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

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

.deck-card {
  border: 1px solid rgba(16, 32, 51, 0.07);
  background: rgba(255, 255, 255, 0.94);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  padding: 20px 22px;
}

.deck-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.deck-card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--muted);
}

.bullet-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(16, 32, 51, 0.07);
  background: rgba(255, 255, 255, 0.94);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
}

.bullet-number {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.82rem;
  color: #071018;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-soft));
}

.bullet-card p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.5;
  color: var(--text);
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  background: rgba(255, 184, 77, 0.2);
  color: #9b6200;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

/* ---------- Numbered process flow ---------- */

.process-flow {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.process-step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
}

.process-step-marker {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.process-step-num {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--ai));
  flex: none;
}

.process-step-line {
  flex: 1;
  width: 2px;
  min-height: 18px;
  margin: 4px 0;
  background-image: linear-gradient(var(--line) 50%, transparent 0%);
  background-size: 2px 8px;
  background-repeat: repeat-y;
}

.process-step-content {
  padding-bottom: 18px;
}

.process-step-content h3 {
  margin: 2px 0 4px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.process-step-content p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--muted);
}

/* ---------- Cover slide ---------- */

.cover-slide {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 26px;
}

.cover-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cover-logo img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.cover-logo span {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
}

.cover-title {
  font-size: 3.1rem;
  font-weight: 800;
  line-height: 1.12;
  max-width: 18ch;
  margin: 0;
  color: var(--text);
}

.cover-subtitle {
  font-size: 1.18rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 52ch;
  margin: 0;
}

.cover-trust {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.cover-trust span {
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(16, 32, 51, 0.08);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}

/* ---------- Stakeholder cards ---------- */

.stakeholder-card {
  border: 1px solid rgba(16, 32, 51, 0.07);
  background: rgba(255, 255, 255, 0.94);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stakeholder-card h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.stakeholder-card p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--muted);
  flex: 1;
}

/* ---------- Module list ---------- */

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

.module-list-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(16, 32, 51, 0.07);
  background: rgba(255, 255, 255, 0.94);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
}

.module-list-item .bullet-number {
  background: linear-gradient(135deg, var(--ai), var(--cyan-soft));
}

.module-list-item strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 2px;
}

.module-list-item span {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.4;
}

/* ---------- Closing / CTA ---------- */

.cta-slide {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 22px;
}

.cta-panel {
  border: 1px solid rgba(16, 32, 51, 0.07);
  background: rgba(255, 255, 255, 0.96);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px 46px;
  max-width: 640px;
}

.cta-panel h2 {
  margin: 0 0 10px;
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--text);
}

.cta-panel p {
  margin: 0 0 22px;
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.55;
}

.cta-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
}

.button-primary {
  color: #071018;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-soft));
  box-shadow: 0 12px 28px rgba(17, 197, 217, 0.28);
}

.button-secondary {
  color: var(--text);
  background: #ffffff;
  border: 1px solid rgba(16, 32, 51, 0.14);
}

.cta-contact {
  font-size: 0.9rem;
  color: var(--muted);
}

.cta-contact strong {
  color: var(--text);
}

/* ---------- AI-assistant chat mockups ----------
   Same visual language as the real Altera.AI chat on the marketing site
   (marketing/landings/main/site — .ai-chat/.ai-msg), resized to fit three
   chats side by side on one slide. */

.ai-chat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.ai-chat {
  border-radius: 16px;
  border: 1px solid rgba(16, 32, 51, 0.08);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.ai-chat-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(16, 32, 51, 0.07);
  background: rgba(255, 255, 255, 0.92);
}

.ai-chat-avatar {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--ai), var(--cyan));
  color: #ffffff;
  font-weight: 800;
  font-size: 0.6rem;
}

.ai-chat-title {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text);
}

.ai-chat-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  background: var(--surface-2);
  min-height: 168px;
}

.ai-msg {
  max-width: 94%;
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 0.7rem;
  line-height: 1.42;
}

.ai-msg-user {
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-soft));
  color: #08131c;
}

.ai-msg-bot {
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  background: #ffffff;
  border: 1px solid rgba(16, 32, 51, 0.08);
  color: var(--text);
}

.ai-msg-bot strong {
  display: block;
  margin-bottom: 3px;
}

.ai-msg-bot-detail {
  display: block;
  color: var(--muted);
  font-size: 0.66rem;
  line-height: 1.5;
}

.ai-file-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  padding: 3px 8px;
  border-radius: 8px;
  background: rgba(7, 23, 37, 0.1);
  font-size: 0.62rem;
  font-weight: 700;
}

.ai-stat-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 4px;
  font-size: 0.66rem;
}

.ai-stat-table td {
  padding: 3px 0;
  border-bottom: 1px dashed rgba(16, 32, 51, 0.1);
}

.ai-stat-table td:last-child {
  text-align: right;
  font-weight: 700;
}

.ai-stat-table tr:last-child td {
  border-bottom: none;
}

.ai-msg-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  color: #0b91a6;
  font-weight: 700;
  font-size: 0.66rem;
}

.ai-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 5px 11px;
  border-radius: 999px;
  background: #1c7a44;
  color: #ffffff;
  font-size: 0.64rem;
  font-weight: 700;
}

.ai-download-btn svg {
  flex: none;
  width: 11px;
  height: 11px;
}

.ai-chat-input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid rgba(16, 32, 51, 0.07);
  background: var(--surface);
}

.ai-chat-attach {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--muted);
}

.ai-chat-attach svg {
  width: 11px;
  height: 11px;
}

.ai-chat-input-field {
  flex: 1;
  min-width: 0;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.66rem;
}

.ai-chat-send {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--ai), var(--cyan));
  color: #ffffff;
}

.ai-chat-send svg {
  width: 11px;
  height: 11px;
}

/* ---------- PDF-export mode ----------
   Box-shadows render as hard-edged gray rectangles in PDF viewers
   (Preview/Chrome/Adobe). In export mode we drop shadows and use solid
   card backgrounds + slightly firmer borders so cards still read as
   elevated, and the PDF matches the on-screen HTML. */

.pdf-export .deck-card,
.pdf-export .bullet-card,
.pdf-export .stakeholder-card,
.pdf-export .module-list-item,
.pdf-export .cta-panel,
.pdf-export .ai-chat {
  box-shadow: none;
  background: #ffffff;
  border-color: rgba(16, 32, 51, 0.12);
}

.pdf-export .button-primary {
  box-shadow: none;
}
