:root {
  --case-red: #ef2b1f;
  --case-ink: #171717;
  --case-muted: #686868;
  --case-paper: #fff;
  --case-soft: #f6f5f2;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--case-ink);
  background: var(--case-paper);
  font-family: Inter, Arial, sans-serif;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 8, 7, 0.97);
  color: #fff;
}

.header-inner {
  width: min(1240px, calc(100% - 48px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.logo {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
}

.logo img {
  width: 150px;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
}

.main-nav a {
  color: #f1eeee;
  font-size: 12px;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: #ff5a4d;
}

.main-nav .contact-link {
  padding: 11px 15px;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.menu-button {
  display: none;
  width: 38px;
  height: 36px;
  padding: 8px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #fff;
}

.case-detail {
  padding: 80px 24px 100px;
}

.detail-container {
  width: min(100%, 1080px);
  margin: 0 auto;
}

.detail-heading {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.detail-heading h1 {
  margin: 0;
  font-family: Manrope, Inter, sans-serif;
  font-size: clamp(36px, 5vw, 62px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.detail-heading p {
  max-width: 650px;
  margin: 20px auto 0;
  color: var(--case-muted);
  font-size: 16px;
  line-height: 1.8;
}

.case-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 42px 0 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e9e7e4;
}

.oracle-partner {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #555;
  font-size: 12px;
}

.oracle-logo {
  color: #c74634;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.partner-line {
  width: 1px;
  height: 22px;
  background: #d6d2cf;
}

.case-date {
  color: #777;
  font-size: 12px;
}

.case-main-image {
  height: clamp(260px, 45vw, 520px);
  overflow: hidden;
  background: var(--case-soft);
}

.case-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-content {
  width: min(100%, 850px);
  margin: 58px auto 0;
}

.case-content>p,
.solution-section p {
  color: #555;
  font-size: 16px;
  line-height: 1.9;
}

.highlight {
  color: var(--case-red);
  font-weight: 600;
}

.case-content h2 {
  margin: 52px 0 18px;
  font-family: Manrope, Inter, sans-serif;
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.case-content h2 span {
  color: var(--case-red);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.feature-card {
  min-height: 185px;
  padding: 25px;
  border: 1px solid #e8e6e3;
  background: #fff;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: #e9a29c;
}

.feature-number {
  color: var(--case-red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.feature-card h3 {
  margin: 18px 0 8px;
  font-family: Manrope, Inter, sans-serif;
  font-size: 19px;
}

.feature-card p {
  margin: 0;
  color: var(--case-muted);
  font-size: 16px;
  line-height: 1.75;
}

.solution-section,
.results-section {
  margin-top: 56px;
  padding: 34px;
  background: var(--case-soft);
}

.solution-section h2,
.results-section h2 {
  margin-top: 0;
}

.solution-section p {
  margin-bottom: 0;
}

.results-section {
  background: #120a08;
  color: #fff;
}

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

.results-grid>div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.results-grid strong {
  color: #ff5a4d;
  font-family: Manrope, Inter, sans-serif;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1;
}

.results-grid span {
  color: #ded8d6;
  font-size: 13px;
}

.back-button {
  margin-top: 44px;
  text-align: center;
}

.back-button a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  border: 1px solid var(--case-red);
  color: var(--case-red);
  font-size: 13px;
  transition: background 0.2s ease, color 0.2s ease;
}

.back-button a:hover {
  color: #fff;
  background: var(--case-red);
}

.footer {
  padding: 28px 24px;
  color: #fff;
  background: #090909;
}

.footer-inner {
  width: min(1240px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-logo {
  font-family: Manrope, Inter, sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.footer-inner p {
  margin: 4px 0 0;
  color: #aaa;
  font-size: 12px;
}

@media (max-width: 900px) {
  .header-inner {
    min-height: 68px;
  }

  .main-nav {
    display: none;
  }

  .menu-button {
    display: block;
  }
}

@media (max-width: 600px) {
  .header-inner {
    width: calc(100% - 32px);
  }

  .logo img {
    width: 130px;
  }

  .case-detail {
    padding: 54px 18px 70px;
  }

  .detail-heading h1 br {
    display: none;
  }

  .detail-heading p {
    font-size: 16px;
  }

  .case-meta {
    margin-top: 32px;
  }

  .case-content {
    margin-top: 38px;
  }

  .case-content>p,
  .solution-section p {
    font-size: 16px;
  }

  .feature-grid,
  .results-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: 0;
  }

  .solution-section,
  .results-section {
    padding: 24px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}