/* ==========================================================================
   ROXY PORTFOLIO - SARVAM AI PREMIUM DESIGN SYSTEM
   Fonts: Matter VF, Season Mix VF, Matter Mono, Matter Semi Mono
   Target: Cloudflare Pages (Fast Static Delivery)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. FONT DEFINITIONS
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Matter';
  src: url('fonts/MatterUprights-VF.woff2') format('woff2'),
       url('fonts/MatterUprights-VF.woff') format('woff');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Season Mix';
  src: url('fonts/SeasonMixVFUprights.woff2') format('woff2'),
       url('fonts/SeasonMixVFUprights.woff') format('woff');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Matter Mono';
  src: url('fonts/MatterMono-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Matter Mono';
  src: url('fonts/MatterMono-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Matter Semi Mono';
  src: url('fonts/MatterSemiMonoRegular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   2. CSS VARIABLES & THEME TOKENS
   -------------------------------------------------------------------------- */
:root {
  --font-matter: "Matter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-season-mix: "Season Mix", Georgia, serif;
  --font-matter-mono: "Matter Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-matter-semi-mono: "Matter Semi Mono", ui-monospace, monospace;

  /* Surfaces */
  --color-sf: #fcfcfc;
  --color-sf-secondary: #f5f5f5;
  --color-sf-tertiary: #f0f0f0;
  --color-sf-quaternary: #e6e6e6;
  --color-white: #ffffff;
  --color-black: #141414;

  /* Strokes & Borders */
  --color-st: #e6e6e6;
  --color-st-secondary: #f0f0f0;

  /* Typography Colors */
  --color-tx: #1f1f1f;
  --color-tx-secondary: #3d3d3d;
  --color-tx-tertiary: #666666;
  --color-tx-muted: #888888;
  --color-tx-inverse: #faf8f5;

  /* Sarvam Royal Indigo Palette */
  --color-sr-indigo-50: #fafcff;
  --color-sr-indigo-100: #e8effc;
  --color-sr-indigo-200: #d2dff9;
  --color-sr-indigo-300: #a7c0f1;
  --color-sr-indigo-400: #81a0e9;
  --color-sr-indigo-500: #6a88e2;
  --color-sr-indigo-600: #556adc;
  --color-sr-indigo-700: #4250d5;
  --color-sr-indigo-800: #3333cc;
  --color-sr-indigo-900: #212191;
  --color-sr-indigo-950: #11115b;

  /* Signal Accents */
  --color-sr-green-50: #f2f8eb;
  --color-sr-green-100: #e3f1d8;
  --color-sr-green-200: #c8e4b0;
  --color-sr-green-400: #90c85b;
  --color-sr-green-600: #6ea335;
  --color-sr-green-700: #496d21;
  --color-sr-green-800: #385418;

  --color-sr-orange-50: #fffbfa;
  --color-sr-orange-100: #feede6;
  --color-sr-orange-400: #f59970;
  --color-sr-orange-700: #e96c2f;
  --color-sr-orange-800: #e6651b;

  /* Shadows */
  --shadow-ambient-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-ambient-md: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-ambient-lg: 0 12px 40px -8px rgba(0, 0, 0, 0.12);
  --shadow-card: 0px 0px 40px 0px rgba(0, 0, 0, 0.06);
  --shadow-card-hover: 0px 8px 40px -4px rgba(0, 0, 0, 0.12);
  --shadow-inset-subtle: inset 0 -1px 0px rgba(0, 0, 0, 0.05);

  /* Dimensions */
  --max-w-content: 1320px;
  --nav-height: 64px;
  --ticker-height: 38px;
  --radius-card: 20px;
  --radius-btn: 9999px;
  --radius-badge: 9999px;
}

/* --------------------------------------------------------------------------
   3. RESET & BASE STYLES
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-matter);
  color: var(--color-tx);
  background-color: var(--color-sf);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: clip;
  display: flex;
  flex-direction: column;
  background-color: var(--color-sf);
  background-image: url('assets/misc/noise.webp');
  background-repeat: repeat;
  background-size: 200px 200px;
  background-blend-mode: soft-light;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

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

pre, code {
  font-family: var(--font-matter-mono);
}

/* --------------------------------------------------------------------------
   4. LAYOUT UTILITIES
   -------------------------------------------------------------------------- */
.container {
  width: 90%;
  max-width: var(--max-w-content);
  margin-left: auto;
  margin-right: auto;
}

.section-spacing {
  padding-top: 100px;
  padding-bottom: 100px;
  position: relative;
}

@media (max-width: 768px) {
  .section-spacing {
    padding-top: 60px;
    padding-bottom: 60px;
  }
}

/* --------------------------------------------------------------------------
   5. ANNOUNCEMENT TICKER (TOP BAR)
   -------------------------------------------------------------------------- */
.top-ticker {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--ticker-height);
  z-index: 10001;
  border-bottom: 1px solid var(--color-st-secondary);
  background: linear-gradient(180deg, #ffffff 0%, var(--color-sr-indigo-50) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), inset 0 -1px 4px color-mix(in srgb, var(--color-sr-indigo-400) 45%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0 1rem;
}

.ticker-content {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--color-tx);
  white-space: nowrap;
}

.ticker-badge {
  background: #ffffff;
  border: 1px solid var(--color-st);
  color: var(--color-sr-indigo-900);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 9px;
  border-radius: var(--radius-badge);
  letter-spacing: 0.5px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.ticker-link {
  color: var(--color-sr-indigo-900);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
  transition: color 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.ticker-link:hover {
  color: var(--color-sr-indigo-950);
}

.star-sparkle {
  color: var(--color-sr-indigo-700);
  opacity: 0.7;
  transform: scale(0.85);
  animation: pulse-star 3s ease-in-out infinite;
}

@keyframes pulse-star {
  0%, 100% { opacity: 0.4; transform: scale(0.75); }
  50% { opacity: 0.9; transform: scale(0.95); }
}

/* --------------------------------------------------------------------------
   6. HEADER & NAVIGATION
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: var(--ticker-height);
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 10000;
  transition: background-color 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header.scrolled {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-st-secondary);
}

.nav-container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-matter);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.5px;
  color: var(--color-tx);
}

.brand-dot {
  width: 7px;
  height: 7px;
  background-color: var(--color-sr-indigo-600);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 10px var(--color-sr-indigo-400);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--color-tx-secondary);
  transition: color 0.15s ease;
  padding: 8px 4px;
}
.nav-link:hover {
  color: var(--color-tx);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* --------------------------------------------------------------------------
   7. BUTTONS (SARVAM AUTHENTIC BLUR BUTTONS)
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-matter);
  font-size: 14.5px;
  font-weight: 500;
  border-radius: var(--radius-btn);
  padding: 9px 20px;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.25s ease, background-color 0.25s ease;
  text-decoration: none;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: linear-gradient(to bottom, #3a3f5c 0%, #1e2033 100%);
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 2px 8px rgba(30, 32, 51, 0.18);
}
.btn-primary:hover {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 6px 20px rgba(30, 32, 51, 0.24);
}

.btn-secondary {
  background: linear-gradient(to bottom, #ffffff 0%, #f5f5f7 100%);
  color: var(--color-tx);
  border: 1px solid var(--color-st);
  box-shadow: inset 0 1px 0 #ffffff, 0 1px 2px rgba(0, 0, 0, 0.04);
}
.btn-secondary:hover {
  background: #ffffff;
  border-color: #d0d0d0;
  box-shadow: inset 0 1px 0 #ffffff, 0 4px 12px rgba(0, 0, 0, 0.08);
}

.btn-indigo {
  background: linear-gradient(to bottom, var(--color-sr-indigo-600) 0%, var(--color-sr-indigo-800) 100%);
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 4px 16px rgba(66, 80, 213, 0.25);
}
.btn-indigo:hover {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 6px 24px rgba(66, 80, 213, 0.35);
}

.btn-lg {
  padding: 13px 28px;
  font-size: 16px;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 13px;
}

/* --------------------------------------------------------------------------
   8. HERO SECTION
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  padding-top: calc(var(--ticker-height) + var(--nav-height) + 60px);
  padding-bottom: 90px;
  text-align: center;
  overflow: hidden;
}

.hero-arc-bg {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 1400px;
  max-width: 180vw;
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
}

.hero-glow-orb {
  position: absolute;
  top: 38%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 650px;
  height: 380px;
  background: radial-gradient(ellipse, #A5BBFC 0%, #D5E2FF 40%, transparent 70%);
  opacity: 0.45;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-motif {
  height: 28px;
  width: auto;
  opacity: 0.85;
  margin-bottom: 20px;
}

.hero-eyebrow-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.hero-eyebrow-line {
  width: 100%;
  height: 1px;
  background: radial-gradient(circle, var(--color-sr-indigo-500) 0%, transparent 100%);
}

.hero-eyebrow-text {
  font-family: var(--font-matter);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--color-sr-indigo-900);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 0 16px;
}

.hero-headline {
  font-family: var(--font-season-mix);
  font-size: 64px;
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: var(--color-tx);
  margin-bottom: 20px;
  font-weight: 500;
  text-wrap: balance;
}

@media (max-width: 768px) {
  .hero-headline {
    font-size: 40px;
    line-height: 1.12;
  }
}

.hero-subtitle {
  font-family: var(--font-matter);
  font-size: 19px;
  line-height: 1.65;
  color: var(--color-tx-secondary);
  max-width: 760px;
  margin-bottom: 36px;
  text-wrap: pretty;
}

@media (max-width: 768px) {
  .hero-subtitle {
    font-size: 16px;
  }
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 36px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid var(--color-st);
  padding: 6px 16px;
  border-radius: var(--radius-badge);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-tx-secondary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

/* --------------------------------------------------------------------------
   9. MARQUEE CAROUSEL
   -------------------------------------------------------------------------- */
.marquee-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 24px 0;
  mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
}

.marquee-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: marquee-scroll 32s linear infinite;
}

.marquee-container:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-matter);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--color-tx-tertiary);
  white-space: nowrap;
  background: #ffffff;
  padding: 10px 20px;
  border-radius: var(--radius-badge);
  border: 1px solid var(--color-st-secondary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  transition: all 0.2s ease;
}

.marquee-item:hover {
  color: var(--color-tx);
  border-color: var(--color-sr-indigo-200);
  box-shadow: 0 4px 14px rgba(66, 80, 213, 0.08);
}

.marquee-item svg {
  width: 20px;
  height: 20px;
}

/* --------------------------------------------------------------------------
   10. SECTION HEADINGS (SARVAM STYLE)
   -------------------------------------------------------------------------- */
.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 56px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.section-label {
  font-family: var(--font-matter);
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-tx-tertiary);
}

.section-title {
  font-family: var(--font-season-mix);
  font-size: 38px;
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--color-tx);
  text-wrap: balance;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 28px;
  }
}

.section-desc {
  font-family: var(--font-matter);
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-tx-tertiary);
}

/* --------------------------------------------------------------------------
   11. INTERACTIVE PLAYGROUND SHOWCASE (SARVAM COWORK / VOICE TAB STYLE)
   -------------------------------------------------------------------------- */
.playground-shell {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(250, 252, 255, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 16px 64px -12px rgba(66, 80, 213, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.06);
  border-radius: 24px;
  padding: 8px;
  position: relative;
  overflow: hidden;
}

.playground-tabs {
  display: flex;
  background: var(--color-sf-tertiary);
  border-radius: 16px 16px 4px 4px;
  overflow-x: auto;
  border-bottom: 1px solid var(--color-st);
}

.playground-tab {
  flex: 1;
  min-width: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 18px;
  font-family: var(--font-matter);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-tx-tertiary);
  background: transparent;
  transition: all 0.2s ease;
  border-right: 1px solid var(--color-st-secondary);
}

.playground-tab:last-child {
  border-right: none;
}

.playground-tab:hover {
  color: var(--color-tx);
  background: rgba(255, 255, 255, 0.5);
}

.playground-tab.active {
  background: #ffffff;
  color: var(--color-sr-indigo-900);
  font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--color-sr-indigo-600), 0 1px 4px rgba(0, 0, 0, 0.04);
}

.playground-tab svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.playground-body {
  background: #ffffff;
  border-radius: 4px 4px 18px 18px;
  padding: 36px;
  min-height: 480px;
  position: relative;
}

@media (max-width: 768px) {
  .playground-body {
    padding: 20px 16px;
    min-height: auto;
  }
}

.playground-pane {
  display: none;
}
.playground-pane.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

/* Telegram Bot Simulator */
.tg-sim-container {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 900px) {
  .tg-sim-container {
    grid-template-columns: 1fr;
  }
}

.tg-controls-panel {
  background: var(--color-sf-secondary);
  border: 1px solid var(--color-st);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tg-cmd-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #ffffff;
  border: 1px solid var(--color-st-secondary);
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--color-tx);
  transition: all 0.15s ease;
  text-align: left;
}

.tg-cmd-btn:hover {
  border-color: var(--color-sr-indigo-400);
  background: var(--color-sr-indigo-50);
  color: var(--color-sr-indigo-900);
  transform: translateX(3px);
}

.tg-cmd-tag {
  font-family: var(--font-matter-mono);
  font-size: 11px;
  background: var(--color-sr-indigo-100);
  color: var(--color-sr-indigo-900);
  padding: 2px 6px;
  border-radius: 6px;
}

.tg-chat-window {
  background: #eef2f8;
  background-image: radial-gradient(#d5dff0 1px, transparent 1px);
  background-size: 18px 18px;
  border: 1px solid var(--color-st);
  border-radius: 18px;
  height: 440px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.04);
}

.tg-chat-header {
  background: #ffffff;
  border-bottom: 1px solid var(--color-st);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.tg-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4250d5, #212191);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
}

.tg-chat-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tg-msg {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.5;
  position: relative;
  word-break: break-word;
}

.tg-msg.user {
  align-self: flex-end;
  background: var(--color-sr-indigo-700);
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

.tg-msg.bot {
  align-self: flex-start;
  background: #ffffff;
  color: var(--color-tx);
  border: 1px solid var(--color-st);
  border-bottom-left-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.tg-msg-time {
  font-size: 10px;
  opacity: 0.6;
  text-align: right;
  margin-top: 4px;
}

.tg-chat-input-bar {
  background: #ffffff;
  border-top: 1px solid var(--color-st);
  padding: 10px 14px;
  display: flex;
  gap: 10px;
}

.tg-input {
  flex: 1;
  border: 1px solid var(--color-st);
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 13.5px;
  outline: none;
}
.tg-input:focus {
  border-color: var(--color-sr-indigo-500);
}

/* Stylish Text Generator Tab */
.styler-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 20px;
}

@media (max-width: 768px) {
  .styler-grid {
    grid-template-columns: 1fr;
  }
}

.styler-card {
  background: var(--color-sf-secondary);
  border: 1px solid var(--color-st);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: all 0.2s ease;
}

.styler-card:hover {
  background: #ffffff;
  border-color: var(--color-sr-indigo-300);
  box-shadow: 0 4px 14px rgba(66, 80, 213, 0.08);
}

.styler-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-tx-tertiary);
  margin-bottom: 4px;
}

.styler-output {
  font-size: 16px;
  color: var(--color-tx);
  word-break: break-all;
}

.copy-pill-btn {
  background: #ffffff;
  border: 1px solid var(--color-st);
  padding: 6px 12px;
  border-radius: var(--radius-badge);
  font-size: 12px;
  font-weight: 600;
  color: var(--color-tx-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
  flex-shrink: 0;
}
.copy-pill-btn:hover {
  background: var(--color-sr-indigo-700);
  color: #ffffff;
  border-color: var(--color-sr-indigo-700);
}

/* Edge Benchmark Tab */
.benchmark-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}

@media (max-width: 768px) {
  .benchmark-row {
    grid-template-columns: 1fr;
  }
}

.benchmark-card {
  background: #ffffff;
  border: 1px solid var(--color-st);
  border-radius: 16px;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.benchmark-card.highlight {
  border-color: var(--color-sr-indigo-300);
  box-shadow: 0 8px 32px -8px rgba(66, 80, 213, 0.15);
  background: linear-gradient(180deg, #ffffff 0%, var(--color-sr-indigo-50) 100%);
}

.benchmark-metric {
  font-family: var(--font-season-mix);
  font-size: 44px;
  font-weight: 500;
  color: var(--color-sr-indigo-800);
  margin: 12px 0 6px 0;
}

/* --------------------------------------------------------------------------
   12. FEATURED PROJECTS ACCORDION / SHOWCASE (SARVAM STYLE)
   -------------------------------------------------------------------------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

.project-card {
  background: #ffffff;
  border: 1px solid var(--color-st-secondary);
  border-radius: var(--radius-card);
  padding: 36px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 380px;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--color-sr-indigo-200);
}

.project-motif-corner {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 110px;
  height: 110px;
  pointer-events: none;
  opacity: 0.18;
  transition: opacity 0.3s ease, transform 0.4s ease;
}

.project-card:hover .project-motif-corner {
  opacity: 0.45;
  transform: rotate(15deg) scale(1.1);
}

.project-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.badge {
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: var(--radius-badge);
}

.badge-indigo {
  background: var(--color-sr-indigo-100);
  color: var(--color-sr-indigo-900);
  border: 1px solid var(--color-sr-indigo-200);
}

.badge-green {
  background: var(--color-sr-green-100);
  color: var(--color-sr-green-800);
  border: 1px solid var(--color-sr-green-200);
}

.badge-orange {
  background: var(--color-sr-orange-100);
  color: var(--color-sr-orange-800);
  border: 1px solid var(--color-sr-orange-200);
}

.project-title {
  font-family: var(--font-matter);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.5px;
  color: var(--color-tx);
  margin-bottom: 12px;
}

.project-desc {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--color-tx-tertiary);
  margin-bottom: 24px;
}

.project-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 28px;
}

.project-features-list li {
  font-size: 14px;
  color: var(--color-tx-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.project-features-list li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-sr-indigo-600);
}

.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid var(--color-st-secondary);
}

/* --------------------------------------------------------------------------
   13. DEVELOPER SECTION & CODE SNIPPET (SARVAM DEVELOPER STYLE)
   -------------------------------------------------------------------------- */
.dev-split-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  background: #ffffff;
  border: 1px solid var(--color-st);
  border-radius: var(--radius-card);
  padding: 40px;
  box-shadow: var(--shadow-card);
}

@media (max-width: 960px) {
  .dev-split-container {
    grid-template-columns: 1fr;
    padding: 24px;
  }
}

.code-window {
  background: #ffffff;
  border: 1px solid var(--color-st);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.code-tabs-bar {
  display: flex;
  align-items: center;
  background: var(--color-sf-secondary);
  border-bottom: 1px solid var(--color-st);
  padding: 0 8px;
}

.code-tab {
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-tx-tertiary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.15s ease;
}

.code-tab.active {
  color: var(--color-tx);
  background: #ffffff;
  border-bottom-color: var(--color-sr-indigo-600);
}

.code-copy-btn {
  margin-left: auto;
  font-size: 12px;
  color: var(--color-tx-tertiary);
  padding: 6px 12px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.code-copy-btn:hover {
  color: var(--color-tx);
  background: var(--color-sf-tertiary);
}

.code-content-block {
  padding: 20px;
  font-family: var(--font-matter-mono);
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--color-tx);
  overflow-x: auto;
  white-space: pre;
  background: #ffffff;
  min-height: 280px;
}

.dev-feature-chips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 24px;
}

@media (max-width: 600px) {
  .dev-feature-chips {
    grid-template-columns: 1fr;
  }
}

.dev-chip {
  background: var(--color-sf-secondary);
  border: 1px solid var(--color-st-secondary);
  padding: 14px;
  border-radius: 12px;
  text-align: left;
}

.dev-chip-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-tx);
  margin-bottom: 4px;
}

.dev-chip-desc {
  font-size: 12.5px;
  color: var(--color-tx-tertiary);
}

/* --------------------------------------------------------------------------
   14. METRICS / STATS SECTION
   -------------------------------------------------------------------------- */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .metrics-grid {
    grid-template-columns: 1fr;
  }
}

.metric-card {
  background: #ffffff;
  border: 1px solid var(--color-st-secondary);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow-ambient-sm);
  transition: transform 0.2s ease;
}

.metric-card:hover {
  transform: translateY(-2px);
  border-color: var(--color-sr-indigo-200);
}

.metric-value {
  font-family: var(--font-season-mix);
  font-size: 48px;
  font-weight: 500;
  line-height: 1;
  color: var(--color-sr-indigo-900);
  margin-bottom: 8px;
}

.metric-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-tx-secondary);
}

/* --------------------------------------------------------------------------
   15. FINAL CALL TO ACTION (CTA)
   -------------------------------------------------------------------------- */
.cta-banner {
  background: linear-gradient(180deg, #1e2033 0%, #11115b 100%);
  color: #ffffff;
  border-radius: 28px;
  padding: 72px 36px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 64px -16px rgba(17, 17, 91, 0.4);
}

.cta-glow-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 350px;
  background: radial-gradient(ellipse, rgba(106, 136, 226, 0.4) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 10;
  max-width: 680px;
  margin: 0 auto;
}

.cta-title {
  font-family: var(--font-season-mix);
  font-size: 44px;
  line-height: 1.15;
  margin-bottom: 18px;
  color: #ffffff;
}

@media (max-width: 768px) {
  .cta-title {
    font-size: 30px;
  }
}

.cta-desc {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 32px;
}

/* --------------------------------------------------------------------------
   16. THE ACCENT FOOTER WITH "ROXY" (SARVAM EXACT SPECIFICATION)
   -------------------------------------------------------------------------- */
.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--color-st);
  padding-top: 80px;
  padding-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.footer-nav-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

@media (max-width: 960px) {
  .footer-nav-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 540px) {
  .footer-nav-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-brand-desc {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--color-tx-tertiary);
  max-width: 280px;
}

.footer-col-title {
  font-family: var(--font-matter-semi-mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-tx);
  margin-bottom: 16px;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  font-size: 14.5px;
  color: var(--color-tx-tertiary);
  transition: color 0.15s ease;
}
.footer-link:hover {
  color: var(--color-sr-indigo-800);
}

/* GIGANTIC ROXY FOOTER VIDEO MASK */
.roxy-accent-footer-mask {
  position: relative;
  width: 100%;
  margin: 30px auto 10px auto;
  pointer-events: none;
  user-select: none;
}

.roxy-mask-desktop {
  display: block;
}

.roxy-mask-mobile {
  display: none;
}

@media (max-width: 768px) {
  .roxy-mask-desktop {
    display: none;
  }
  .roxy-mask-mobile {
    display: block;
  }
}

.roxy-video-masked {
  width: 100%;
  aspect-ratio: 5 / 1;
  max-width: 1400px;
  margin: 0 auto;
  object-cover: cover;
  -webkit-mask-image: url('assets/brand/roxy-footer-mask.svg');
  mask-image: url('assets/brand/roxy-footer-mask.svg');
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  background: linear-gradient(135deg, #1e2033 0%, #393cc1 25%, #4cd964 50%, #f9730c 75%, #4250d5 100%);
  background-size: 300% 300%;
  animation: shimmer-gradient 12s ease infinite;
}

.roxy-video-masked-mobile {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 340px;
  margin: 0 auto;
  object-cover: cover;
  -webkit-mask-image: url('assets/brand/roxy-footer-mask-mobile.svg');
  mask-image: url('assets/brand/roxy-footer-mask-mobile.svg');
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  background: linear-gradient(135deg, #1e2033 0%, #393cc1 25%, #4cd964 50%, #f9730c 75%, #4250d5 100%);
  background-size: 300% 300%;
  animation: shimmer-gradient 12s ease infinite;
}

@keyframes shimmer-gradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.footer-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--color-st-secondary);
  font-size: 13px;
  color: var(--color-tx-tertiary);
}

@media (max-width: 768px) {
  .footer-bottom-bar {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* --------------------------------------------------------------------------
   17. MOBILE MENU DRAWER
   -------------------------------------------------------------------------- */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--color-sf-secondary);
}

@media (max-width: 900px) {
  .nav-links, .nav-actions .btn {
    display: none;
  }
  .mobile-menu-btn {
    display: flex;
  }
}

.mobile-menu-btn span {
  display: block;
  width: 18px;
  height: 1.8px;
  background: var(--color-tx);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  z-index: 10002;
  display: flex;
  flex-direction: column;
  padding: 80px 24px 40px 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.mobile-drawer.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  font-size: 24px;
  color: var(--color-tx);
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}

.mobile-nav-list a {
  font-family: var(--font-matter);
  font-size: 20px;
  font-weight: 600;
  color: var(--color-tx);
}

/* --------------------------------------------------------------------------
   18. TOAST NOTIFICATION
   -------------------------------------------------------------------------- */
.toast-msg {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #1e2033;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  font-size: 13.5px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 99999;
  transform: translateY(80px);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.toast-msg.show {
  transform: translateY(0);
  opacity: 1;
}

/* --------------------------------------------------------------------------
   19. SCROLL REVEAL ANIMATIONS
   -------------------------------------------------------------------------- */
[data-section-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

[data-section-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-section-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
