/* Base */
@font-face {
  font-family: "Myriad Pro";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src:
    local("Myriad Pro"),
    local("MyriadPro-Regular"),
    url("./fonts/MyriadPro-Regular.woff2") format("woff2"),
    url("./fonts/MyriadPro-Regular.otf") format("opentype");
}

@font-face {
  font-family: "Myriad Pro";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src:
    local("Myriad Pro Semibold"),
    local("MyriadPro-Semibold"),
    url("./fonts/MyriadPro-Semibold.woff2") format("woff2"),
    url("./fonts/MyriadPro-Semibold.otf") format("opentype");
}

:root {
  --bg: #f4f5f7;
  --text: #000000;
  --muted: #8b8f97;
  --card: #ffffff;
  --line: rgba(17, 18, 20, 0.1);
  --accent: #d9ff00;
  --accentText: #141500;
  --shadow: 0 22px 55px rgba(0, 0, 0, 0.2);
  --radius: 34px;

  /* Contact form (Console-aligned) */
  --color-primary: #DAFB22;
  --color-primary-soft: #F0FBC5;
  --color-primary-hover: #AEBB1B;
  --color-primary-disabled: #E8F8A0;
  --color-black: #000000;
  --color-white: #FFFFFF;
  --color-gray: #A2A2A2;
  --color-gray-light: #FAFAFA;
  --color-gray-light-2: #EDEDED;
  --color-gray-dark: #5E5E5E;
  --color-error: #CC3333;
  --color-error-bg: #FEEEEE;
  --color-error-border: #FFCCCC;
  --color-success: #168821;
  --font-family-brand: "Myriad Pro", sans-serif;
  --font-family-base: "Open Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-size-ssm: 14px;
  --font-size-smd: 16px;
  --font-size-md: 20px;
  --spacing-xs: 8px;
  --spacing-sm: 12px;
  --spacing-md: 16px;
  --radius-md: 8px;
  --radius-field: 15px;
  --transition-fast: 0.2s ease-in-out;
  --page-dot-size: 17px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font-family-base);
  color: var(--text);
  background-color: #fafafa;
  background-image:
    radial-gradient(circle, rgba(94, 94, 94, 0.16) 1px, transparent 1px);
  background-size: var(--page-dot-size) var(--page-dot-size);
  background-attachment: fixed;
  position: relative;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.2' numOctaves='1' stitchTiles='stitch' result='t'/%3E%3CfeColorMatrix in='t' type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
}

button,
input,
textarea {
  font-family: inherit;
}

/* Layout */
.landing {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  height: 100vh;
}

.landing__layout {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  border-radius: 10px;
}

/* Left */
.contact {
  position: relative;
  border-radius: 10px 0 0 10px;
  padding: 56px 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact__inner {
  width: 100%;
  max-width: 360px;
  text-align: center;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: -20px 0 72px;
}

.brand__logo {
  height: 67px;
  width: auto;
  display: block;
}

.contact__lead {
  margin: 0 0 var(--spacing-xs);
  font-weight: 600;
  font-size: var(--font-size-md);
  color: var(--color-black);
  line-height: 1.35;
}

.contact__sublead {
  margin: 0 0 30px;
  font-size: var(--font-size-ssm);
  color: var(--color-gray-dark);
  line-height: 1.5;
}

/* Contact form */
.contact__form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact__input {
  width: 100%;
  height: 47px;
  padding: 0 20px;
  border: 1px solid var(--color-gray-light-2);
  border-radius: var(--radius-field);
  background: var(--color-gray-light);
  color: var(--color-black);
  font-size: var(--font-size-ssm);
  font-weight: 400;
  line-height: 19px;
  outline: none;
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

.contact__input::placeholder {
  color: var(--color-black);
  opacity: 0.5;
}

.contact__input:hover:not(:disabled) {
  background: #f4f4f4;
  border-color: #e0e0e0;
}

.contact__input:focus {
  background: #f4f4f4;
  border-color: #d8d8d8;
}

.contact__submit {
  width: 100%;
  height: 60px;
  margin-top: 6px;
  padding: 0 20px;
  border: 1.2px solid var(--color-gray-light-2);
  border-radius: var(--radius-field);
  background: var(--color-primary);
  color: var(--color-black);
  font-size: var(--font-size-ssm);
  font-weight: 400;
  line-height: 19px;
  cursor: pointer;
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

.contact__submit:hover:not(:disabled) {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
}

.contact__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.contact__message {
  min-height: 18px;
  margin-top: var(--spacing-sm);
  font-size: var(--font-size-ssm);
  text-align: center;
  color: var(--muted);
}

.contact__message--success {
  color: var(--color-success);
}

.contact__message--error {
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-md);
  background: var(--color-error-bg);
  border: 1px solid var(--color-error-border);
  color: var(--color-error);
}

.contact__login {
  margin-top: var(--spacing-sm);
  font-size: var(--font-size-ssm);
  color: var(--muted);
}

.contact__login-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 400;
  transition: color var(--transition-fast);
}

.contact__login-link:hover {
  color: var(--color-gray-dark);
  text-decoration: none;
}

.contact__legal {
  margin-top: var(--spacing-sm);
  display: flex;
  gap: 16px;
  font-size: 12px;
}

.contact__legal a {
  color: var(--muted);
  text-decoration: none;
}

.contact__legal a:hover {
  color: var(--text);
}

/* Right / Slider */
.cases {
  border-radius: 0 10px 10px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cases__card {
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  isolation: isolate;
  background: #0e0f12;
  box-shadow: var(--shadow);
}

.cases__top {
  position: absolute;
  top: 18px;
  left: 18px;
  right: 18px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  pointer-events: none;
}

.cases__appmark {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cases__appmark img {
  width: 32px;
  height: 32px;
  display: block;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}

.cases__appname {
  display: flex;
  align-items: center;
  min-height: 32px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
  text-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
}

.cases__swiper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  contain: layout paint;
  transform: translateZ(0);
}

.swiper {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.swiper-wrapper {
  height: 100%;
  box-sizing: border-box;
}

.cases__swiper .swiper-slide {
  position: relative;
  flex-shrink: 0;
  height: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.cases__slide-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 115%;
  height: 115%;
  transform: translate(-50%, -50%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  will-change: transform;
}

.cases__slide-bg--video {
  object-fit: cover;
  object-position: center center;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 50%, #000000 100%);
}

.cases__slide-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 50%, #000000 100%);
}

.cases__slide-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px 26px 86px 26px;
  color: #fff;
}

.cases__tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.cases__tag {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.78);
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.cases__title {
  font-size: 64px;
  margin: 0 0 10px 0;
  font-weight: 300;
}

.cases__desc {
  margin: 0 0 16px 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  line-height: 1.5;
  max-width: 520px;
}

.cases__nav-progress {
  display: contents;
}

.cases__progress-segment {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  overflow: hidden;
  transition: background 0.35s ease;
  position: relative;
  pointer-events: auto;
  cursor: pointer;
}

.cases__progress-segment::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #DAFB22 0%, rgba(218, 251, 34, 0) 100%);
  transform-origin: left center;
  transform: scaleX(0);
}

.cases__progress-segment--past {
  background: #DAFB22;
}

.cases__progress-segment--past::after {
  transform: scaleX(1);
}

.cases__progress-segment--active::after {
  background: linear-gradient(90deg, #DAFB22 0%, rgba(218, 251, 34, 0) 100%);
}

.cases__progress-segment--active.cases__progress-segment--animating::after {
  animation: casesProgressFill var(--cases-progress-duration, 4500ms) linear forwards;
}

@keyframes casesProgressFill {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.cases__nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  padding: 14px 26px 18px 26px;
  pointer-events: auto;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  column-gap: 10px;
  row-gap: 10px;
}

.cases__nav-btn {
  font-size: 13px;
  appearance: none;
  border: none;
  padding: 0 0 0 1px;
  text-align: left;
  background-size: 100% 100%;
  background: transparent linear-gradient(90deg, #EDEDED 0%, #2F2F2F 100%) no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  cursor: pointer;
  position: relative;
  transition: filter 0.2s ease, opacity 0.2s ease;
  pointer-events: auto;
}

.cases__nav-btn:hover {
  filter: brightness(1.12);
}

.cases__nav-btn--active {
  background-image: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  color: rgba(255, 255, 255, 0.95);
  -webkit-text-fill-color: rgba(255, 255, 255, 0.95);
}

.swiper .swiper-pagination,
.swiper .swiper-button-prev,
.swiper .swiper-button-next {
  display: none;
}

/* Responsive */
@media (max-width: 980px) {
  .landing__layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .contact {
    border-radius: 10px 10px 0 0;
    padding: 44px 22px;
  }

  .cases {
    border-radius: 0 0 10px 10px;
    padding: 18px;
  }

  .cases__card {
    min-height: 540px;
    border-radius: 26px;
  }

  .cases__title {
    font-size: 36px;
  }
}

@media (max-width: 420px) {
  .brand__logo {
    height: 58px;
  }

  .brand {
    margin-top: -12px;
  }

  .cases__title {
    font-size: 30px;
    letter-spacing: 0.06em;
  }

  .cases__nav {
    gap: 10px;
    overflow-x: auto;
    justify-content: flex-start;
  }

  .cases__nav-btn {
    white-space: nowrap;
  }
}
