:root {
  --ink: #172033;
  --muted: #665842;
  --paper: #ffffff;
  --paper-edge: #f3f5f8;
  --teal: #0f766e;
  --green: #a7f3d0;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  font-family: Manrope, "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 0, rgba(15, 118, 110, 0.08), transparent 28%),
    radial-gradient(circle at 84% 12%, rgba(15, 23, 42, 0.06), transparent 24%),
    linear-gradient(135deg, #eef2f6, #dfe5ec);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.library {
  display: grid;
  place-items: center;
  width: 100vw;
  height: 100dvh;
  padding: clamp(8px, 2vw, 24px);
}

.reader,
.book-wrap {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
}

.flip-book {
  width: 100%;
  height: 100%;
  max-width: 1120px;
  max-height: 680px;
  filter: drop-shadow(0 28px 62px rgba(15, 23, 42, 0.22));
  background: #ffffff;
}

.page {
  position: relative;
  overflow: hidden;
  color: var(--ink);
  border: 1px solid rgba(15, 23, 42, 0.12);
  background-color: #ffffff;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.035), transparent 12%, transparent 88%, rgba(15, 23, 42, 0.03)),
    linear-gradient(135deg, var(--paper), #ffffff 58%, var(--paper-edge));
}

.stf__parent,
.stf__wrapper,
.stf__block,
.stf__item {
  background-color: transparent;
}

.page::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 8px;
  pointer-events: none;
}

.page-hard {
  color: #fff;
  border-color: rgba(15, 23, 42, 0.22);
  background-color: #0f766e;
  background:
    radial-gradient(circle at 74% 18%, rgba(255, 255, 255, 0.16), transparent 28%),
    linear-gradient(135deg, #0b3b39, #0f766e 58%, #12333f);
}

.page-hard::before {
  border-color: rgba(255, 255, 255, 0.18);
}

.page-hard::after {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: 34%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08));
  pointer-events: none;
}

.page-back {
  background-color: #12333f;
  background:
    radial-gradient(circle at 26% 18%, rgba(255, 255, 255, 0.12), transparent 28%),
    linear-gradient(135deg, #12333f, #0f766e 54%, #0b3b39);
}

.page-inner,
.cover-inner,
.back-inner {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: start;
  gap: 12px;
  width: 100%;
  height: 100%;
  padding: clamp(26px, 4.2vw, 56px);
}

.cover-inner,
.back-inner {
  align-content: center;
}

.cover-inner img,
.back-inner img {
  width: 54px;
  height: 54px;
}

.eyebrow {
  width: fit-content;
  margin: 0;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--teal);
  background: rgba(15, 118, 110, 0.08);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-hard .eyebrow {
  color: var(--green);
  border-color: rgba(167, 243, 208, 0.3);
  background: rgba(255, 255, 255, 0.08);
}

h1,
h2 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  color: #fff;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  font-weight: 800;
}

h2 {
  color: #2a1f12;
  font-size: clamp(1.05rem, 1.55vw, 1.5rem);
  font-weight: 700;
}

.page-hard h2 {
  color: #fff;
}

p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.7rem, 0.78vw, 0.8rem);
  line-height: 1.48;
}

.page-hard p {
  color: rgba(255, 255, 255, 0.82);
}

.page-no {
  position: absolute;
  top: 28px;
  right: 34px;
  color: rgba(42, 31, 18, 0.42);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.note-box {
  width: fit-content;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  padding: 12px 14px;
  background: #f8fafc;
  color: #2a1f12;
  font-size: 0.74rem;
  font-weight: 800;
}

.intro-grid {
  display: grid;
  gap: 8px;
}

.intro-grid div {
  border-left: 3px solid rgba(15, 118, 110, 0.55);
  border-radius: 0 8px 8px 0;
  padding: 9px 10px;
  background: #f8fafc;
}

.intro-grid strong,
.intro-grid span {
  display: block;
}

.intro-grid strong {
  color: #12333f;
  font-size: 0.72rem;
  font-weight: 800;
}

.intro-grid span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.62rem;
  line-height: 1.35;
}

.cover-callout {
  width: fit-content;
  padding: 0;
  color: rgba(236, 253, 245, 0.95);
  background: transparent;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.index-list,
.cards,
.process-list,
.stack-grid,
.aws-grid,
.devops-grid,
.iot-grid,
.page-list {
  display: grid;
  gap: 8px;
}

.index-list,
.cards.two,
.process-list,
.stack-grid,
.aws-grid,
.devops-grid,
.iot-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.index-list button,
.cards div,
.process-list div,
.stack-grid div,
.aws-grid div,
.devops-grid div,
.iot-grid div,
.page-list li {
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  padding: 10px;
  color: #2a1f12;
  background: #f8fafc;
  font-size: 0.72rem;
  font-weight: 700;
}

.index-list button {
  display: flex;
  gap: 10px;
  text-align: left;
}

.index-list span {
  color: var(--teal);
  font-size: 0.66rem;
}

.delivered-showcase {
  display: grid;
  gap: 10px;
}

.featured-system {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 8px;
  padding: 14px;
  color: #ffffff;
  background:
    radial-gradient(circle at 92% 10%, rgba(167, 243, 208, 0.32), transparent 25%),
    linear-gradient(135deg, #12333f, #0f766e);
}

.featured-system span,
.system-list span {
  color: #a7f3d0;
  font-size: 0.66rem;
  font-weight: 800;
}

.featured-system strong,
.featured-system p {
  display: block;
}

.featured-system strong {
  margin-top: 6px;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.2;
}

.featured-system p {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.66rem;
}

.system-list {
  display: grid;
  gap: 8px;
}

.system-list div {
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  padding: 9px 10px;
  background: #f8fafc;
}

.system-list span {
  color: var(--teal);
}

.system-list strong,
.system-list small {
  display: block;
}

.system-list strong {
  margin-top: 4px;
  color: #12333f;
  font-size: 0.72rem;
  font-weight: 800;
}

.system-list small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.58rem;
  line-height: 1.32;
}

.cards span,
.process-list p,
.stack-grid span,
.aws-grid span,
.devops-grid span,
.iot-grid span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 500;
}

.stack-grid div,
.aws-grid div,
.devops-grid div,
.iot-grid div {
  padding: 8px 9px;
}

.stack-grid strong,
.aws-grid strong,
.devops-grid strong,
.iot-grid strong {
  color: #12333f;
  font-size: 0.7rem;
  font-weight: 800;
}

.stack-grid span,
.aws-grid span,
.devops-grid span,
.iot-grid span {
  font-size: 0.58rem;
  line-height: 1.32;
}

.iot-grid div:first-child {
  grid-column: 1 / -1;
}

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

.devops-stack span {
  display: block;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 8px;
  padding: 7px 8px;
  color: var(--muted);
  background: rgba(15, 118, 110, 0.06);
  font-size: 0.54rem;
  font-weight: 700;
  line-height: 1.25;
}

.devops-stack strong {
  display: block;
  color: #0f766e;
  font-size: 0.62rem;
  font-weight: 800;
}

.page-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-list li {
  line-height: 1.36;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-row span {
  border: 1px solid rgba(15, 118, 110, 0.2);
  border-radius: 999px;
  padding: 6px 9px;
  color: #164e47;
  background: rgba(15, 118, 110, 0.08);
  font-size: 0.64rem;
  font-weight: 700;
}

.roadmap-svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 520px;
}

.svg-box rect,
.svg-data,
.svg-cloud {
  fill: #ffffff;
  stroke: rgba(15, 23, 42, 0.7);
  stroke-width: 1.5;
}

.svg-pill {
  fill: #b3135a;
  stroke: #8f1248;
  stroke-width: 1.5;
}

.svg-data {
  fill: #fbfdff;
  stroke: #38a9df;
}

.svg-cloud {
  fill: #ffffff;
  stroke-dasharray: 6 4;
}

.svg-text {
  fill: #111827;
  font-family: Manrope, "Segoe UI", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 800;
  text-anchor: middle;
}

.svg-text .pill-text {
  fill: #ffffff;
  font-size: 14px;
}

.svg-text .data-text {
  fill: #0f766e;
  font-size: 13px;
}

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

.contact-form input,
.contact-form textarea,
.appointment-form input,
.appointment-form select,
.appointment-form textarea {
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  padding: 10px 11px;
  color: var(--ink);
  background: #ffffff;
  font-size: 0.7rem;
  font-weight: 600;
}

.contact-form input:focus,
.contact-form textarea:focus,
.appointment-form input:focus,
.appointment-form select:focus,
.appointment-form textarea:focus {
  border-color: rgba(15, 118, 110, 0.55);
  outline: 3px solid rgba(15, 118, 110, 0.1);
}

.contact-form textarea,
.appointment-form textarea,
.send-button {
  grid-column: 1 / -1;
}

.send-button {
  width: 100%;
  border: 0;
  border-radius: 8px;
  padding: 11px 16px;
  color: #ffffff;
  background: linear-gradient(135deg, #0f766e, #12333f);
  font-size: 0.78rem;
  font-weight: 800;
}

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

.contact-panel div {
  border: 1px solid rgba(15, 118, 110, 0.14);
  border-radius: 8px;
  padding: 10px;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.08), rgba(248, 250, 252, 0.95));
}

.contact-panel strong,
.contact-panel span {
  display: block;
}

.contact-panel strong {
  color: #12333f;
  font-size: 0.72rem;
  font-weight: 800;
}

.contact-panel span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.62rem;
  line-height: 1.35;
}

.contact-direct {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 8px;
  padding: 10px 12px;
  background: #f8fafc;
}

.contact-direct span {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-direct strong {
  color: #0f766e;
  font-size: 0.78rem;
  font-weight: 800;
}

.fallback-message {
  max-width: 520px;
  border-radius: 12px;
  padding: 24px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 900px) {
  .library {
    padding: 8px;
  }

  .flip-book {
    max-width: 100%;
    max-height: 100%;
  }

  .page-inner,
  .cover-inner,
  .back-inner {
    gap: 10px;
    padding: 20px;
  }

  h1 {
    font-size: clamp(1.35rem, 6.8vw, 2.05rem);
  }

  h2 {
    font-size: clamp(0.98rem, 4.8vw, 1.35rem);
  }

  p {
    font-size: 0.68rem;
  }

  .cards,
  .cards.two,
  .process-list,
  .stack-grid,
  .aws-grid,
  .devops-grid,
  .iot-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .devops-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .roadmap-svg {
    max-height: 430px;
  }

  .index-list {
    gap: 8px;
  }

  .index-list button,
  .cards div,
  .process-list div,
  .stack-grid div,
  .aws-grid div,
  .devops-grid div,
  .iot-grid div,
  .page-list li,
  .contact-panel div,
  .intro-grid div,
  .featured-system,
  .system-list div {
    padding: 9px;
    font-size: 0.62rem;
  }

  .contact-panel,
  .contact-form,
  .appointment-form {
    grid-template-columns: 1fr;
  }

  .contact-direct {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}

@media (max-width: 420px) {
  .library {
    padding: 6px;
  }

  .page::before {
    inset: 10px;
  }

  .page-inner,
  .cover-inner,
  .back-inner {
    padding: 16px;
  }

  h1 {
    font-size: clamp(1.18rem, 6.2vw, 1.65rem);
  }

  h2 {
    font-size: clamp(0.9rem, 4.8vw, 1.18rem);
  }

  p {
    font-size: 0.62rem;
    line-height: 1.42;
  }

  .eyebrow {
    padding: 5px 8px;
    font-size: 0.48rem;
  }

  .index-list button,
  .cards div,
  .process-list div,
  .stack-grid div,
  .aws-grid div,
  .devops-grid div,
  .iot-grid div,
  .page-list li,
  .contact-panel div,
  .intro-grid div,
  .featured-system,
  .system-list div {
    padding: 7px;
    font-size: 0.56rem;
  }

  .roadmap-svg {
    max-height: 360px;
  }

  .cards span,
  .process-list p {
    font-size: 0.54rem;
  }

  .tag-row span {
    padding: 6px 8px;
    font-size: 0.68rem;
  }
}
