:root {
  --red: #C8102E;
  --red-dark: #A90E27;
  --black: #111318;
  --ink: #1C2027;
  --muted: #303640;
  --soft: #F7F7F5;
  --line: #D9D9D6;
  --container: 1130px;
  --ribbon-width: 30px;
  --ribbon-offset: -13px;
  --font-body: "Manrope", Arial, sans-serif;
  --font-display: "Sora", "Manrope", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 92% 72%, rgba(200, 16, 46, 0.08) 0 1px, transparent 1.5px) 0 0 / 16px 16px,
    linear-gradient(102deg, transparent 0 64%, rgba(242, 242, 239, 0.95) 64% 77%, transparent 77%),
    #FFFFFF;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

.site-header {
  width: min(var(--container), calc(100% - 48px));
  margin: 26px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  animation: fadeDown 640ms var(--ease) both;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo {
  width: clamp(180px, 18vw, 248px);
  height: auto;
  transition: transform 260ms var(--ease), filter 260ms ease;
}

.demo-link,
.cta {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 66px;
  padding: 0 44px;
  border: 0;
  background: var(--red);
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 18px 38px rgba(200, 16, 46, 0.18);
  overflow: hidden;
  transition: transform 220ms var(--ease), background-color 220ms ease, box-shadow 220ms ease;
}

.demo-link::before,
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 0 30%, rgba(255,255,255,0.24) 48%, transparent 66%);
  transform: translateX(-120%);
  transition: transform 600ms var(--ease);
}

.demo-link:hover,
.demo-link:focus-visible,
.cta:hover,
.cta:focus-visible {
  transform: translateY(-2px);
  background: var(--red-dark);
  box-shadow: 0 22px 42px rgba(200, 16, 46, 0.25);
}

.brand:hover .logo,
.brand:focus-visible .logo {
  transform: translateY(-2px) scale(1.02);
  filter: drop-shadow(0 12px 18px rgba(20, 24, 30, 0.10));
}

.demo-link:hover::before,
.demo-link:focus-visible::before,
.cta:hover::before,
.cta:focus-visible::before {
  transform: translateX(120%);
}

.landing {
  width: min(var(--container), calc(100% - 48px));
  margin: 34px auto 0;
  padding-bottom: 62px;
}

.hero-panel,
.split-panel {
  display: grid;
  grid-template-columns: 0.86fr 1.34fr;
  align-items: center;
}

.hero-panel {
  gap: clamp(34px, 6vw, 78px);
  animation: fadeUp 760ms var(--ease) 80ms both;
}

.hero-copy {
  max-width: 480px;
  padding-top: 22px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: #050608;
  font-family: var(--font-display);
  font-size: clamp(48px, 5.2vw, 68px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 0.98;
}

h1 span {
  display: block;
  color: var(--red);
}

p {
  margin: 0;
}

.hero-copy p:not(.eyebrow),
.detail-copy p {
  color: #111318;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.42;
}

.accent-rule {
  display: block;
  width: 74px;
  height: 4px;
  margin: 28px 0 30px;
  background: var(--red);
}

.angled-image {
  position: relative;
  margin: 0;
  overflow: visible;
  filter: drop-shadow(0 22px 22px rgba(20, 24, 30, 0.12));
}

.angled-image::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(5, 6, 8, 0.54));
  opacity: 0;
  z-index: 1;
  pointer-events: none;
  transition: opacity 320ms ease;
}

.angled-image::after {
  content: "";
  position: absolute;
  inset: 0;
  width: auto;
  background: rgba(200, 16, 46, 0.92);
  clip-path: polygon(95% 0, 100% 0, 88% 100%, 83% 100%);
  transform: none;
  z-index: 2;
  pointer-events: none;
}

.angled-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease), filter 700ms ease;
}

.hero-image {
  height: clamp(410px, 42vw, 580px);
  clip-path: polygon(13% 0, 100% 0, 88% 100%, 0 100%);
}

.hero-image img {
  object-position: 54% center;
}

.split-panel {
  grid-template-columns: 1.18fr 0.82fr;
  gap: clamp(34px, 5vw, 68px);
  margin-top: 42px;
  animation: fadeUp 760ms var(--ease) 180ms both;
}

.detail-image {
  height: clamp(390px, 39vw, 510px);
  clip-path: polygon(8% 0, 100% 0, 88% 100%, 0 100%);
}

.detail-image img {
  object-position: 48% center;
}

.detail-copy {
  max-width: 420px;
  align-self: center;
  padding-top: 22px;
}

.detail-copy .accent-rule {
  margin-top: 0;
  margin-bottom: 28px;
}

.action-panel {
  margin-top: 36px;
  text-align: center;
  animation: fadeUp 760ms var(--ease) 260ms both;
}

.action-panel p {
  color: #050608;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 800;
  line-height: 1.2;
}

.cta {
  min-width: min(100%, 470px);
  margin-top: 28px;
  padding-inline: 48px;
}

.feature-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 2px solid var(--red);
  animation: fadeUp 760ms var(--ease) 340ms both;
}

.feature-row article {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-height: 112px;
  padding: 0 28px;
  transition: transform 240ms var(--ease), background-color 240ms ease;
}

.feature-row article + article {
  border-left: 1px solid var(--line);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 66px;
  height: 66px;
  color: var(--red);
}

.feature-icon img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(15%) sepia(99%) saturate(4920%) hue-rotate(343deg) brightness(86%) contrast(99%);
}

.footer {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
  padding: 0 0 34px;
  color: rgba(17, 19, 24, 0.58);
  font-size: 13px;
  text-align: center;
}

@media (hover: hover) {
  .angled-image:hover img {
    transform: scale(1.035);
    filter: saturate(1.04) contrast(1.02);
  }

  .angled-image:hover::before {
    opacity: 1;
  }

  .feature-row article:hover {
    transform: translateY(-4px);
    background: rgba(200, 16, 46, 0.035);
  }

  .feature-row article:hover .feature-icon {
    transform: rotate(-3deg) scale(1.05);
  }
}

.feature-icon {
  transition: transform 260ms var(--ease);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feature-row strong {
  display: block;
  color: #050608;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.15;
}

.feature-row p {
  margin-top: 10px;
  color: #17191D;
  font-size: 17px;
  line-height: 1.45;
}

@media (max-width: 980px) {
  .site-header,
  .landing {
    width: min(720px, calc(100% - 34px));
  }

  .site-header {
    align-items: center;
  }

  .demo-link {
    min-height: 54px;
    padding: 0 24px;
    font-size: 13px;
  }

  .hero-panel,
  .split-panel,
  .feature-row {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .detail-copy {
    max-width: 100%;
  }

  .hero-panel {
    gap: 28px;
  }

  .hero-image,
  .detail-image {
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .hero-image {
    order: -1;
    clip-path: polygon(4% 0, 100% 0, 92% 100%, 0 96%);
  }

  .detail-image {
    clip-path: polygon(4% 0, 100% 0, 92% 100%, 0 96%);
  }

  .angled-image::after {
   inset: 0;
  width: auto;
  clip-path: polygon(95% 0, 100% 0, 92% 100%, 87% 100%);
}
  }

  .angled-image::before {
    opacity: 1;
  }

  .split-panel {
    margin-top: 34px;
  }

  .feature-row article {
    padding: 24px 0;
  }

  .feature-row article + article {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 560px) {
  body {
    background:
      radial-gradient(circle at 92% 72%, rgba(200, 16, 46, 0.08) 0 1px, transparent 1.5px) 0 0 / 14px 14px,
      #FFFFFF;
  }

  .site-header {
    margin-top: 18px;
    gap: 16px;
  }

  .logo {
    width: 132px;
  }

  .demo-link {
    min-height: 36px;
    max-width: 112px;
    padding: 0 10px;
    font-size: 9.5px;
    white-space: nowrap;
  }

  .landing {
    margin-top: 26px;
  }

  h1 {
    font-size: clamp(39px, 12vw, 54px);
    line-height: 1;
  }

  .hero-copy p:not(.eyebrow),
  .detail-copy p {
    font-size: 17px;
    line-height: 1.5;
  }

  .cta {
    min-height: 52px;
    min-width: 0;
    width: 100%;
    padding-inline: 16px;
    font-size: 11.5px;
  }

  .feature-row {
    margin-top: 42px;
    padding-top: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

@media (max-width: 560px) {
  .demo-link {
    min-height: 32px;
    max-width: 96px;
    padding: 0 8px;
    font-size: 8.5px;
    line-height: 1;
  }
}

.feature-icon {
  background-color: var(--red);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.feature-icon img {
  opacity: 0;
}

.feature-row article:nth-child(1) .feature-icon {
  -webkit-mask: url("table.svg") center / contain no-repeat;
  mask: url("table.svg") center / contain no-repeat;
}

.feature-row article:nth-child(2) .feature-icon {
  -webkit-mask: url("premium.svg") center / contain no-repeat;
  mask: url("premium.svg") center / contain no-repeat;
}

.feature-row article:nth-child(3) .feature-icon {
  -webkit-mask: url("settings.svg") center / contain no-repeat;
  mask: url("settings.svg") center / contain no-repeat;
}

@media (max-width: 560px) {
  .site-header {
    width: calc(100% - 30px);
    gap: 10px;
  }

  .logo {
    width: 112px;
  }

  .demo-link {
    min-height: 30px;
    max-width: 88px;
    padding: 0 7px;
    font-size: 8px;
  }
}

.feature-icon {
  background-color: transparent !important;
  -webkit-mask: none !important;
  mask: none !important;
}

.feature-icon img {
  opacity: 1 !important;
  filter: brightness(0) saturate(100%) invert(16%) sepia(86%) saturate(4241%) hue-rotate(339deg) brightness(91%) contrast(101%) !important;
}
/* Desktop only feature-card borders */
@media (min-width: 981px) {
  .feature-row article {
    border-top: 0.8px solid var(--line);
  }

  .feature-row article + article {
    border-left: 0px solid var(--line);
  }
}

/* Mobile reset so layout does not crash */
@media (max-width: 980px) {
  .feature-row article {
    border-top: 0 !important;
  }

  .feature-row article + article {
    border-left: 0 !important;
    border-top: 1px solid var(--line) !important;
  }
}