:root {
  --bg: #f5efe2;
  --bg-strong: #efe4d0;
  --surface: rgba(255, 250, 240, 0.7);
  --surface-strong: rgba(18, 28, 33, 0.92);
  --card: rgba(255, 250, 243, 0.84);
  --card-strong: rgba(12, 25, 31, 0.88);
  --text: #152126;
  --text-soft: rgba(21, 33, 38, 0.72);
  --text-inverse: #f6efe5;
  --line: rgba(21, 33, 38, 0.12);
  --line-strong: rgba(255, 244, 230, 0.15);
  --accent: #b44f2d;
  --accent-soft: #f0c7a3;
  --accent-deep: #6b2514;
  --teal: #254d52;
  --gold: #c29048;
  --shadow: 0 24px 70px rgba(79, 50, 17, 0.12);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(194, 144, 72, 0.2), transparent 28%),
    radial-gradient(circle at 80% 15%, rgba(180, 79, 45, 0.14), transparent 22%),
    linear-gradient(180deg, #fbf7f0 0%, #f4ebdc 100%);
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(21, 33, 38, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 33, 38, 0.035) 1px, transparent 1px);
  background-size: 52px 52px;
  content: "";
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.75), transparent 88%);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.page-shell {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 24px 0 64px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 8px 0 30px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  color: var(--text-inverse);
  background: linear-gradient(135deg, var(--teal), #10282b);
  box-shadow: inset 0 0 0 1px rgba(255, 244, 230, 0.16);
}

.brand-text {
  font-size: 1.1rem;
}

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.site-nav a {
  position: relative;
}

.site-nav a::after {
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
  content: "";
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 46px;
  align-items: center;
  padding: 40px 0 24px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2 {
  margin: 0;
  font-family: "Newsreader", Georgia, serif;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.hero h1 {
  max-width: 11ch;
  font-size: clamp(3rem, 7vw, 5.7rem);
}

.hero h1 span {
  display: block;
  color: var(--teal);
}

.hero-text {
  max-width: 54ch;
  margin: 22px 0 0;
  color: var(--text-soft);
  font-size: 1.06rem;
  line-height: 1.82;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  color: var(--text-inverse);
  background: linear-gradient(135deg, var(--accent), #7a3018);
  box-shadow: 0 18px 36px rgba(122, 48, 24, 0.18);
}

.button-secondary {
  border-color: rgba(37, 77, 82, 0.16);
  background: rgba(255, 248, 239, 0.66);
  color: var(--teal);
}

.hero-notes {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 30px 0 0;
  list-style: none;
  color: var(--text-soft);
}

.hero-notes li {
  position: relative;
  padding-left: 22px;
}

.hero-notes li::before {
  position: absolute;
  top: 0.3rem;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--accent));
  content: "";
}

.hero-stage {
  position: relative;
  min-height: 610px;
}

.stage-panel {
  position: absolute;
  width: min(100%, 530px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.stage-brief {
  top: 0;
  left: 0;
  padding: 24px;
  background: rgba(255, 248, 238, 0.82);
}

.stage-output {
  right: 0;
  bottom: 12px;
  padding: 22px;
  background: linear-gradient(180deg, rgba(15, 30, 35, 0.95), rgba(18, 24, 32, 0.92));
  color: var(--text-inverse);
  border-color: var(--line-strong);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.panel-label {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.panel-meta,
.panel-status {
  color: rgba(246, 239, 229, 0.72);
  font-size: 0.82rem;
}

.stage-brief .panel-meta {
  color: var(--text-soft);
}

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

.brief-grid div {
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(21, 33, 38, 0.07);
}

.brief-grid p {
  margin: 0 0 7px;
  color: var(--text-soft);
  font-size: 0.82rem;
}

.brief-grid strong {
  display: block;
  line-height: 1.5;
}

.option-list {
  display: grid;
  gap: 14px;
}

.option-card {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.option-card.active {
  background: linear-gradient(180deg, rgba(180, 79, 45, 0.18), rgba(37, 77, 82, 0.22));
  border-color: rgba(240, 199, 163, 0.25);
}

.option-topline {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
  color: rgba(246, 239, 229, 0.66);
  font-size: 0.8rem;
}

.option-card h2 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.35;
}

.option-card p {
  margin: 10px 0 0;
  color: rgba(246, 239, 229, 0.78);
  font-size: 0.92rem;
  line-height: 1.6;
}

.section {
  padding: 92px 0 0;
}

.problem-section {
  padding-top: 120px;
}

.section-heading {
  display: grid;
  gap: 16px;
  max-width: 720px;
  margin-bottom: 38px;
}

.problem-section .section-heading {
  max-width: 920px;
  margin: 0 auto 44px;
  text-align: center;
  justify-items: center;
}

.problem-section .section-heading h2 {
  max-width: none;
}

.heading-line {
  display: block;
  white-space: nowrap;
}

.section-heading h2 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.06;
}

.problem-grid,
.workflow-grid,
.advantage-grid {
  display: grid;
  gap: 24px;
}

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

.friction-map {
  position: relative;
  min-height: 620px;
  margin-top: 8px;
}

.friction-canvas {
  --flow-input: rgba(76, 118, 220, 0.9);
  --flow-design: rgba(133, 92, 214, 0.86);
  --flow-design-soft: rgba(133, 92, 214, 0.56);
  --flow-design-deep: rgba(105, 67, 176, 0.72);
  --flow-output: rgba(46, 154, 121, 0.9);
  --flow-output-soft: rgba(46, 154, 121, 0.58);
  --flow-review: rgba(194, 144, 72, 0.9);
  --flow-rework: rgba(189, 78, 68, 0.88);
  --flow-cross: rgba(66, 87, 170, 0.32);
  --flow-faint: rgba(76, 118, 220, 0.22);
  position: relative;
  width: min(960px, 100%);
  height: 640px;
  margin: 0 auto;
  transform: translateX(26px);
}

.friction-connections {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.friction-connections path {
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
  opacity: 0.58;
}

.friction-connections path.active {
  stroke-width: 3;
  opacity: 0.9;
}

.friction-connections path.flow {
  stroke-dasharray: 8 6;
  animation: flow-dash 1.8s linear infinite;
}

@keyframes flow-dash {
  to {
    stroke-dashoffset: -28;
  }
}

.friction-item {
  position: absolute;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transform: translate(-50%, -50%);
}

.friction-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  border: 1px solid rgba(21, 33, 38, 0.08);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 36px rgba(87, 58, 24, 0.08);
  backdrop-filter: blur(10px);
  font-size: 24px;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.friction-item:hover .friction-icon {
  transform: scale(1.05);
  box-shadow: 0 22px 40px rgba(87, 58, 24, 0.12);
}

.friction-label {
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}

.friction-hub .friction-icon {
  width: 84px;
  height: 84px;
  border-radius: 24px;
  font-size: 30px;
  background: linear-gradient(135deg, rgba(51, 65, 85, 0.1), rgba(86, 100, 120, 0.18));
  border-width: 1.5px;
  box-shadow: 0 22px 44px rgba(66, 87, 170, 0.1);
}

.friction-hub .friction-label {
  color: var(--text);
  font-size: 1.08rem;
  font-weight: 800;
}

.friction-group-input .friction-icon {
  background: linear-gradient(135deg, rgba(76, 118, 220, 0.12), rgba(76, 118, 220, 0.2));
}

.friction-group-design .friction-icon {
  background: linear-gradient(135deg, rgba(133, 92, 214, 0.12), rgba(133, 92, 214, 0.2));
}

.friction-group-output .friction-icon {
  background: linear-gradient(135deg, rgba(46, 154, 121, 0.12), rgba(46, 154, 121, 0.2));
}

.friction-group-review .friction-icon {
  background: linear-gradient(135deg, rgba(194, 144, 72, 0.14), rgba(194, 144, 72, 0.22));
}

.friction-badge {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ce6c49, #b74d37);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transform: translate(-50%, -50%);
  box-shadow: 0 10px 22px rgba(189, 78, 68, 0.18);
  animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%,
  100% {
    opacity: 0.88;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.04);
  }
}

.friction-legend {
  position: absolute;
  left: 50%;
  bottom: 10px;
  z-index: 4;
  display: flex;
  gap: 22px;
  align-items: center;
  transform: translateX(-50%);
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.72);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px rgba(87, 58, 24, 0.08);
}

.friction-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-soft);
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.friction-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.legend-input {
  background: var(--flow-input);
}

.legend-design {
  background: var(--flow-design);
}

.legend-deliverables {
  background: var(--flow-output);
}

.legend-review {
  background: var(--flow-review);
}

.legend-rework {
  background: var(--flow-rework);
}

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

.problem-card,
.advantage-card,
.panel-card,
.draft-card,
.sap-card,
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: 0 14px 30px rgba(88, 61, 32, 0.06);
}

.problem-card,
.advantage-card {
  padding: 28px;
}

.problem-card h3,
.advantage-card h3,
.panel-card h3,
.draft-card h3,
.sap-card h3 {
  margin: 0 0 12px;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.problem-card p,
.advantage-card p,
.panel-card p,
.draft-card p,
.sap-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.82;
}

.problem-card p,
.advantage-card p {
  max-width: 34ch;
}

.workflow-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 52px;
  align-items: start;
  padding-top: 18px;
}

.workflow-line {
  position: absolute;
  top: 58px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, rgba(194, 144, 72, 0.14), rgba(107, 37, 20, 0.22));
  z-index: 0;
}

.workflow-node {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  text-align: center;
}

.workflow-orb {
  position: relative;
  display: grid;
  place-items: center;
  width: 94px;
  height: 94px;
  margin-bottom: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 24%, #fbf5eb 0%, #f1e3cf 58%, #e5cfab 100%);
  box-shadow:
    inset 0 0 0 4px rgba(88, 61, 32, 0.12),
    0 0 0 8px rgba(194, 144, 72, 0.06),
    0 18px 34px rgba(88, 61, 32, 0.12);
}

.workflow-glyph {
  color: var(--accent-deep);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.workflow-node h3 {
  margin: 0 0 14px;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.workflow-node p {
  max-width: 26ch;
  margin: 0;
  color: var(--text-soft);
  line-height: 1.8;
}

.step-index,
.mini-label {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: rgba(37, 77, 82, 0.08);
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.output-console {
  border: 1px solid rgba(15, 30, 35, 0.12);
  border-radius: 30px;
  padding: 20px 22px 22px;
  background: linear-gradient(180deg, rgba(255, 250, 243, 0.84), rgba(243, 234, 219, 0.72));
  box-shadow: var(--shadow);
}

.output-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 20px;
}

.output-tab {
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(21, 33, 38, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  color: var(--text-soft);
  cursor: pointer;
}

.output-tab.active {
  color: var(--text-inverse);
  background: linear-gradient(135deg, var(--teal), #13292d);
}

.output-panels {
  min-height: 248px;
}

.output-panel {
  display: none;
}

.output-panel.active {
  display: block;
}

.flat-grid {
  display: grid;
  gap: 18px;
  align-items: stretch;
}

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

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

.flat-block {
  padding: 8px 4px 8px 0;
}

.flat-block-accent {
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(180, 79, 45, 0.94), rgba(135, 55, 29, 0.96));
  box-shadow: 0 18px 34px rgba(122, 48, 24, 0.16);
}

.flat-block-accent h3 {
  color: var(--text-inverse);
}

.flat-block-accent p {
  color: rgba(246, 239, 229, 0.88);
}

.flat-block-accent .mini-label {
  background: rgba(255, 255, 255, 0.14);
  color: var(--text-inverse);
}

.flat-block h3 {
  margin: 0 0 12px;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.flat-block p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.78;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: end;
  padding: 18px 0 4px;
  border-top: 1px solid rgba(21, 33, 38, 0.1);
}

.footer-copy {
  display: grid;
  gap: 14px;
  max-width: 720px;
}

.footer-copy h2 {
  margin: 0;
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.footer-copy p:last-child {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.8;
}

.footer-meta {
  display: grid;
  justify-items: end;
  gap: 16px;
}

.footer-email {
  color: var(--accent-deep);
  font-weight: 700;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
  color: var(--text-soft);
  font-size: 0.94rem;
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    min-height: auto;
    display: grid;
    gap: 20px;
  }

  .stage-panel {
    position: static;
    width: 100%;
  }

  .friction-map {
    display: grid;
    min-height: auto;
    gap: 20px;
    padding-top: 8px;
  }

  .friction-canvas {
    width: 100%;
    height: auto;
    display: grid;
    gap: 18px;
    transform: none;
  }

  .friction-connections,
  .friction-badge,
  .friction-legend {
    display: none;
  }

  .friction-item {
    position: static;
    justify-items: start;
    transform: none;
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 14px;
    align-items: center;
  }

  .friction-hub .friction-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    font-size: 24px;
  }

  .friction-label,
  .friction-hub .friction-label {
    text-align: left;
    font-size: 0.94rem;
  }

  .problem-grid,
  .panel-grid,
  .sap-layout,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .flat-grid-two,
  .flat-grid-three {
    grid-template-columns: 1fr;
  }

  .footer-meta {
    justify-items: start;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .workflow-timeline {
    grid-template-columns: 1fr;
    gap: 26px;
    padding-top: 0;
  }

  .workflow-line {
    left: 39px;
    right: auto;
    top: 58px;
    bottom: 58px;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, rgba(194, 144, 72, 0.14), rgba(107, 37, 20, 0.22));
  }

  .workflow-node {
    grid-template-columns: 82px 1fr;
    gap: 18px;
    align-items: center;
    justify-items: start;
    text-align: left;
  }

  .workflow-orb {
    width: 82px;
    height: 82px;
    margin-bottom: 0;
  }

  .workflow-glyph {
    font-size: 1.45rem;
  }

  .workflow-number {
    width: 30px;
    height: 30px;
    font-size: 1rem;
  }

  .workflow-node p {
    max-width: none;
  }

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

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 24px, 1220px);
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    flex-wrap: wrap;
    gap: 14px 18px;
  }

  .hero h1 {
    max-width: none;
  }

  .brief-grid,
  .advantage-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding-top: 72px;
  }

  .heading-line {
    white-space: normal;
  }

  .output-console {
    padding: 16px;
  }

  .site-footer {
    padding-top: 12px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .stage-panel,
  .problem-card,
  .workflow-card,
  .advantage-card,
  .output-console,
  .site-footer {
    animation: rise-in 700ms ease both;
  }

  .problem-card:nth-child(2),
  .workflow-card:nth-child(2),
  .advantage-card:nth-child(2) {
    animation-delay: 80ms;
  }

  .problem-card:nth-child(3),
  .workflow-card:nth-child(3),
  .advantage-card:nth-child(3) {
    animation-delay: 160ms;
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
