* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background: #0b0b0b;
  color: #f2f2f2;
}

a {
  color: inherit;
}

.top-bar {
  position: absolute;
  top: 16px;
  left: 32px;
  right: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 5;
  font-size: 12px;
}

.top-bar a {
  text-decoration: none;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.top-bar a:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.6);
}

.brand {
  font-family: "Poppins", "Segoe UI", Arial, sans-serif;
  font-size: clamp(20px, 3vw, 28px);
  letter-spacing: 0.02em;
  text-transform: lowercase;
}

.brand .light {
  font-weight: 300;
}

.brand .bold {
  font-weight: 600;
}

.split-layout {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

/* Hide the other panel on click */
.split-panel.is-hidden {
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Click transition: expand to full screen */
.split-panel.is-expanding {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%) !important;
  filter: grayscale(0);
  z-index: 50;
  transition: clip-path 0.5s cubic-bezier(0.4, 0, 0.2, 1), filter 0.3s ease;
}

/* Click transition: slide up and fade out */
.split-panel.is-exiting {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%) !important;
  filter: grayscale(0);
  z-index: 50;
  animation: slideUpFadeOut 0.45s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideUpFadeOut {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-100%);
  }
}

.split-panel {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background-size: cover;
  background-position: center;
  filter: grayscale(1);
  transition: filter 0.35s ease, transform 0.35s ease, clip-path 0.35s ease;
}

.split-panel:hover,
.split-panel:focus-visible {
  filter: grayscale(0);
  transform: scale(1.01);
  z-index: 2;
}

.panel-left {
  clip-path: polygon(0 0, 60% 0, 40% 100%, 0 100%);
  background-image: linear-gradient(135deg, rgba(12, 12, 12, 0.4), rgba(12, 12, 12, 0.6)), url("/assets/minesync_landing.jpg");
  background-blend-mode: multiply;
  justify-content: flex-start;
  padding-left: 8%;
}

.panel-left:hover,
.panel-left:focus-visible {
  clip-path: polygon(0 0, 70% 0, 55% 100%, 0 100%);
}

.panel-right {
  clip-path: polygon(60% 0, 100% 0, 100% 100%, 40% 100%);
  background-image: linear-gradient(135deg, rgba(12, 12, 12, 0.4), rgba(12, 12, 12, 0.6)), url("/assets/sprinklr_landing.png");
  background-blend-mode: multiply;
  justify-content: flex-end;
  padding-right: 8%;
}

.panel-right:hover,
.panel-right:focus-visible {
  clip-path: polygon(45% 0, 100% 0, 100% 100%, 30% 100%);
}

.panel-content {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.product-logo {
  max-width: clamp(220px, 28vw, 420px);
  height: auto;
}

.panel-content h1 {
  margin: 0;
  font-size: clamp(28px, 5vw, 56px);
  font-weight: 600;
}

.panel-content p {
  margin-top: 12px;
  font-size: 14px;
  opacity: 0.8;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px 60px;
  text-align: center;
  animation: pageIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes pageIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.page h1 {
  margin-bottom: 16px;
  font-size: clamp(32px, 6vw, 64px);
}

.page p {
  max-width: 640px;
  line-height: 1.6;
  opacity: 0.85;
}

.link-button {
  margin-top: 28px;
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.link-button:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.7);
}

.contact-form {
  width: min(520px, 100%);
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.contact-form label {
  display: grid;
  gap: 6px;
  text-align: left;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(10, 10, 10, 0.6);
  color: #f2f2f2;
  font-size: 15px;
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.required {
  color: #ff6b6b;
}

.error-message {
  display: block;
  min-height: 18px;
  font-size: 12px;
  color: #ff6b6b;
  text-transform: none;
  letter-spacing: normal;
  margin-top: 4px;
}

.contact-form input.invalid,
.contact-form textarea.invalid {
  border-color: #ff6b6b;
}

/* Toast notifications */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9999;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-radius: 12px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  font-size: 14px;
  pointer-events: auto;
  animation: toastIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  max-width: 380px;
}

.toast.toast-success {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #86efac;
}

.toast.toast-error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

.toast-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.toast-success .toast-icon {
  background: rgba(34, 197, 94, 0.3);
  color: #22c55e;
}

.toast-error .toast-icon {
  background: rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.toast-message {
  flex: 1;
  line-height: 1.4;
}

.toast.toast-exit {
  animation: toastOut 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes toastIn {
  0% {
    opacity: 0;
    transform: translateX(100%);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes toastOut {
  0% {
    opacity: 1;
    transform: translateX(0);
  }
  100% {
    opacity: 0;
    transform: translateX(100%);
  }
}

.contact-form button {
  padding: 12px 18px;
  border-radius: 999px;
  border: none;
  background: #ffffff;
  color: #0b0b0b;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

@media (max-width: 720px) {
  .split-panel {
    justify-content: center;
    align-items: center;
  }

  .panel-left {
    clip-path: polygon(0 0, 100% 0, 100% 40%, 0 60%);
    padding: 0;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 80px 24px 0;
  }

  .panel-left:hover,
  .panel-left:focus-visible {
    clip-path: polygon(0 0, 100% 0, 100% 55%, 0 75%);
  }

  .panel-right {
    clip-path: polygon(0 60%, 100% 40%, 100% 100%, 0 100%);
    padding: 0;
    justify-content: flex-end;
    align-items: flex-end;
    padding: 0 24px 60px;
  }

  .panel-right:hover,
  .panel-right:focus-visible {
    clip-path: polygon(0 45%, 100% 25%, 100% 100%, 0 100%);
  }

  .panel-left .panel-content,
  .panel-right .panel-content {
    transform: none;
  }

  .product-logo {
    max-width: clamp(140px, 40vw, 200px);
  }

  .top-bar {
    top: 12px;
    left: 16px;
    right: 16px;
  }

  .brand {
    font-size: clamp(16px, 5vw, 22px);
  }
}

