/* Shared styles for the secondary pages (solutions, privacy, terms, careers, security) */

:root {
  --bg: #171533;
  --bg2: #221f45;
  --card: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.12);
  --text: #f3eefc;
  --muted: #b7aed0;
  --gold: #e0a43c;
  --orange: #ff6b35;
  --violet: #8b5cf6;
}

:root[data-theme="light"] {
  --bg: #fafafa;
  --bg2: #fff;
  --card: #fff;
  --border: rgba(0, 0, 0, 0.12);
  --text: #1a1730;
  --muted: #5b5575;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(139, 92, 246, 0.18), transparent),
    var(--bg);
  color: var(--text);
  line-height: 1.7;
}

a {
  color: var(--gold);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* India tricolour line */
.tri {
  height: 4px;
  background: linear-gradient(90deg, #ff9933 0 33.33%, #fff 33.33% 66.66%, #138808 66.66%);
}

/* Top bar */
.bar {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  z-index: 10;
}

.bar img {
  height: 44px;
}

.bar b {
  font-family: "Space Grotesk", Inter, sans-serif;
  letter-spacing: 0.08em;
}

.bar .sp {
  flex: 1;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  border-radius: 99px;
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--card);
  font-weight: 600;
  font-size: 0.9rem;
}

.btn.primary {
  background: linear-gradient(135deg, var(--orange), var(--violet));
  border: 0;
  color: #fff;
}

/* Page content */
main {
  max-width: 960px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

h1 {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(2rem, 1rem + 3vw, 3rem);
  line-height: 1.15;
  margin: 0.2rem 0 0.6rem;
}

h2 {
  font-family: "Space Grotesk", Inter, sans-serif;
  margin-top: 2rem;
}

.lead {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 62ch;
}

.note {
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  background: var(--card);
  padding: 0.8rem 1rem;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.92rem;
  margin: 1.2rem 0;
}

.tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
}

/* Filter chips (solutions page) */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0;
}

.chip {
  padding: 0.4rem 0.9rem;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}

.chip[aria-pressed="true"] {
  background: linear-gradient(135deg, var(--orange), var(--violet));
  border-color: transparent;
  color: #fff;
}

/* Cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1rem;
}

.card {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 16px;
  padding: 1.1rem 1.2rem;
}

.card h3 {
  margin: 0.1rem 0 0.4rem;
  font-family: "Space Grotesk", Inter, sans-serif;
}

.card ul {
  margin: 0.4rem 0 0.8rem;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.93rem;
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 1.25rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* ---- Polished look shared by all secondary pages ---- */
main { max-width: 1040px; position: relative; isolation: isolate; }
body.legal main { max-width: 820px; }
main::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -1rem;
  left: -12%;
  right: -12%;
  height: 520px;
  background:
    radial-gradient(closest-side at 50% 35%, rgba(139, 92, 246, 0.28), transparent),
    radial-gradient(closest-side at 22% 80%, rgba(255, 107, 53, 0.12), transparent);
  pointer-events: none;
}

/* hero block: tag, title, lead */
main > .tag {
  display: table;
  margin: 1.5rem auto 0;
  padding: 0.3rem 0.9rem;
  border: 1px solid rgba(224, 164, 60, 0.45);
  border-radius: 99px;
  background: rgba(224, 164, 60, 0.08);
}
main > h1 {
  max-width: 20ch;
  margin: 1rem auto 0.9rem;
  text-align: center;
  font-size: clamp(2.1rem, 1rem + 3.8vw, 3.5rem);
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #fff 0%, #ffd9a0 45%, #ff8a5c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
body.legal main > h1 { margin-top: 1.5rem; max-width: none; }
main > h1 + .lead,
main > .tag + h1 + .lead {
  margin: 0 auto 1.5rem;
  text-align: center;
}

/* section headings: accent bar underneath */
main > h2 { margin-top: 3rem; font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem); }
main > h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin-top: 0.6rem;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--orange), var(--violet));
}

/* cards, notes, chips */
.card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border-radius: 18px;
  padding: 1.3rem 1.3rem;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(224, 164, 60, 0.5);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}
.note {
  border-left-width: 1px;
  border-top: 3px solid var(--gold);
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
}
.chips { justify-content: center; margin: 2rem 0; }
.chip { padding: 0.5rem 1.1rem; transition: border-color 0.2s, transform 0.2s; }
.chip:hover { border-color: rgba(224, 164, 60, 0.6); transform: translateY(-1px); }
table { border: 1px solid var(--border); border-radius: 14px; border-collapse: separate; border-spacing: 0; overflow: hidden; }

/* top bar: compact language picker, one-line buttons */
.bar .btn { white-space: nowrap; }
.bar select.btn { flex: 0 0 auto; width: auto; min-width: 8.5rem; padding: 0.5rem 1rem; }
.btn.primary { box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3); }
.btn:hover { text-decoration: none; border-color: rgba(224, 164, 60, 0.5); }
.btn.primary:hover { box-shadow: 0 10px 28px rgba(255, 107, 53, 0.38); }

/* phones: the top bar of every secondary page fits (no sideways scroll) */
@media (max-width: 600px) {
  .bar { gap: 0.4rem; padding: 0.6rem 0.8rem; }
  .bar img { height: 36px; }
  .bar .btn { padding: 0.45rem 0.8rem; font-size: 0.82rem; white-space: nowrap; }
  footer { padding-bottom: 5rem; }
}

/* main site menu in the top bar of the simple pages */
.bar-nav { display: flex; align-items: center; gap: 0.1rem; margin-left: 0.6rem; }
.bar-nav a { padding: 0.45rem 0.75rem; border-radius: 99px; color: var(--muted); font-weight: 600; font-size: 0.92rem; white-space: nowrap; text-decoration: none; }
.bar-nav a:hover { color: var(--text); background: var(--card); text-decoration: none; }
.bar-nav a[aria-current="page"] { color: var(--text); box-shadow: inset 0 -2px 0 var(--orange); border-radius: 0; }
@media (max-width: 1150px) { .bar-nav { display: none; } }

/* Decorative glows must never create a sideways scrollbar. */
body { overflow-x: clip; }
main { overflow-x: clip; }

/* Lenis smooth scrolling */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
