/* ==========================================================================
   KSL India - Homepage
   Design tokens sourced from Figma variables (KSL Landing Page file).
   Colors/values with no matching Figma variable are called out inline.
   ========================================================================== */

:root {
  /* Color tokens - from Figma variable definitions */
  --grey-off-black: #1d1d1d;
  --primary-blue: #00599a;
  --grey-dark-charcoal: #121212;
  --grey-pure-white: #ffffff;
  --grey-pure-black: #000000;
  --grey-light-grey: #cccccc;
  --grey-dark-grey: #4d4d4d;
  --grey-off-white: #f5f5f5;
  --white-200: #f8f8f8;
  --secondary-red: #df242d;
  --grey-medium-light-grey: #a0a0a0;
  --accent-yellow: #ffcc00;
  --grey-lightest-grey: #eeeeee;
  --grey-medium-dark-grey: #4b5563;
  --grey-darkest-grey: #333333;
  --neutral-600: #6f6c8f;
  --neutral-300: #f1f2f9;
  --black-100: #020201;

  /* Shadows - from Figma variable definitions */
  --shadow-neutral-4: 0px 5px 15px 0px rgba(25, 33, 61, 0.06);

  /* Values used in the design with no backing Figma variable (kept as literals) */
  --nav-bg: rgba(255, 255, 255, 0.74);
  --nav-shadow: 0px 4px 16px 0px rgba(0, 0, 0, 0.12);
  --dropdown-shadow: 0px 12px 24px 0px rgba(0, 0, 0, 0.08);
  --blue-tint-04: rgba(0, 89, 154, 0.04);
  --card-shadow: 0px 5px 15px 0px rgba(25, 33, 61, 0.06);

  /* Layout */
  --container-max: 1280px;
  --container-pad: 80px;

  /* Type */
  --font-base: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--grey-off-black);
  background: var(--grey-pure-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

.container {
  max-width: calc(var(--container-max) + var(--container-pad) * 2);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.section-title {
  font-weight: 700;
  font-size: 40px;
  line-height: 1.25;
  color: var(--grey-off-black);
}

.section-subtitle {
  font-size: 18px;
  line-height: 1.35;
  color: var(--grey-dark-grey);
  margin-top: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-family: var(--font-base);
  font-size: 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  padding: 11px 24px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease, background 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(1px);
  filter: brightness(0.94);
  box-shadow: none;
}

.btn:focus-visible {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--secondary-red);
  border-color: var(--secondary-red);
  color: var(--grey-pure-white);
  font-weight: 500;
}

.btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 8px 20px rgba(223, 36, 45, 0.28);
}

.btn-outline {
  background: var(--blue-tint-04);
  border-color: var(--primary-blue);
  color: var(--primary-blue);
  border-radius: 10px;
  padding: 10px 16px;
}

.btn-outline:hover {
  background: var(--primary-blue);
  color: var(--grey-pure-white);
  box-shadow: 0 8px 20px rgba(0, 89, 154, 0.24);
}

.btn-outline:active {
  filter: brightness(0.9);
}

.link-caret {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--primary-blue);
  font-weight: 500;
  font-size: 16px;
  transition: gap 0.15s ease, opacity 0.15s ease;
}

.link-caret:hover {
  gap: 7px;
}

.link-caret:active {
  opacity: 0.7;
}

@media (max-width: 1023px) {
  :root {
    --container-pad: 40px;
  }
}

@media (max-width: 639px) {
  :root {
    --container-pad: 20px;
  }

  .section-title {
    font-size: 30px;
  }
}

/* =========================
   INVESTOR ALERT MARQUEE
========================= */

.alert-marquee {
  width: 100%;
  overflow: hidden;

  padding: 14px 0;
}

.alert-marquee__track {
  display: flex;
  width: max-content;
  align-items: center;

  animation: alert-scroll 90s linear infinite;
  will-change: transform;
}

.alert-marquee__track:hover {
  animation-play-state: paused;
}

.alert-marquee__text {
  white-space: nowrap;
  padding-right: 120px;

  font-size: 14px;
  line-height: 1.6;
  color: #ffffff;
}

@keyframes alert-scroll {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}

.alert-marquee__text {
  animation: marquee 60s linear infinite;
}

@media (max-width:768px) {
  .alert-marquee__track {
    animation-duration: 60s;
  }

  .alert-marquee__text {
    font-size: 13px;
    padding-right: 50px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .alert-marquee__track {
    animation: none;
  }

  .alert-marquee {
    overflow-x: auto;
  }
}

@keyframes alert-scroll {
  from {
    transform: translate3d(-50%, 0, 0);
  }

  to {
    transform: translate3d(0, 0, 0);
  }
}

.grid-empty-state {
  width: 100%;
  text-align: center;
  padding: 48px 24px;
  color: var(--grey-medium-dark-grey);
  font-size: 16px;
  border: 1px dashed #d1d5db;
  border-radius: 16px;
}