:root {
  /* --- SANCTUARY DESIGN SYSTEM (HSL) --- */
  --font-heading: "Outfit", sans-serif;
  --font-body: "Inter", sans-serif;

  --sanctuary-teal: 165 20% 40%; /* Muted Sage Teal */
  --sanctuary-linen: 30 20% 98%; /* Soft Linen Background */
  --sanctuary-slate: 210 20% 25%; /* Soft Charcoal Text */
  --sanctuary-gold: 35 30% 60%; /* Calming Gold Accents */

  /* --- NEW CALMING PASTEL PALETTE --- */
  --pastel-mint: 165 25% 94%;   /* Sanctuary Mint - Main Background Component */
  --pastel-rose: 350 20% 95%;   /* Soft Healing Rose */
  --pastel-blue: 210 20% 95%;   /* Misty Focus Blue */
  --pastel-clay: 30 20% 94%;    /* Earthy Grounding Clay */
  --pastel-sage: 145 15% 94%;   /* Quiet Sage Green */

  --background: hsl(var(--pastel-mint)); /* Calming Mint as base */
  --foreground: hsl(210, 25%, 20%);     /* Deep Slate for high contrast */

  --primary-color: #3d6b66; /* Deepened Sage for better grounding */
  --accent-color: #c59363;  /* Muted Clay Accent */
  --gold-color: #c5a059;
  --bg-light: #ffffff;
  --text-dark: #2c3e50;
  --text-muted: #64748b;

  --border: hsla(var(--sanctuary-teal) / 0.08);

  /* --- 8-POINT GRID SYSTEM --- */
  --space-1: 0.5rem; /* 8px */
  --space-2: 1rem; /* 16px */
  --space-3: 1.5rem; /* 24px */
  --space-4: 2rem; /* 32px (Inner Card Padding) */
  --space-6: 3rem; /* 48px */
  --space-8: 4rem; /* 64px (Gap inside Sections) */
  --space-15: 7.5rem; /* 120px (Gap between Sections) */

  /* --- TYPOGRAPHY TOKENS --- */
  /* Sizes */
  /* Responsive Typography with clamp() */
  --fs-h1: clamp(2.5rem, 10vw, 4.5rem); 
  --fs-h2: clamp(1.75rem, 6vw, 3rem);
  --fs-h3: clamp(1.5rem, 5vw, 2.25rem);
  --fs-p: clamp(1rem, 2vw, 1.125rem);

  /* Line Heights - Tighter for Sans Serif */
  --lh-heading: 1.05;
  --lh-body: 1.6;

  /* --- GLOBAL INTERACTION --- */
  --transition-speed: 0.3s;
  --transition-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-soft: 0 4px 30px -5px rgba(0, 0, 0, 0.03);
  --shadow-lift: 0 30px 60px -15px rgba(0, 0, 0, 0.08);
  --shadow-halo: 0 0 50px 0 rgba(212, 175, 55, 0.05);

  /* --- ORGANIC CURVES --- */
  --radius-organic: 3rem;
  --radius-vogue: 5rem;
}

@layer base {

/* --- PREMIUM REDESIGN UTILITIES --- */
@keyframes marquee-slow {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.animate-marquee-slow {
  animation: marquee-slow 60s linear infinite;
}

.shadow-premium {
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.05), 
              0 20px 40px -10px rgba(0, 0, 0, 0.02);
}

.shadow-lift-high {
  box-shadow: 0 50px 100px -20px rgba(2, 44, 34, 0.12), 
              0 30px 60px -15px rgba(0, 0, 0, 0.05);
}

.glass-council {
  background: rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
  html {
    scroll-behavior: smooth;
  }

  body {
    background-color: var(--background);
    color: var(--foreground);
    font-family: var(--font-body), sans-serif;
    font-size: var(--fs-p);
    line-height: var(--lh-body);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    font-family: var(--font-heading), sans-serif;
    color: var(
      --text-dark
    ); /* Changed from primary-color for better grounding on light */
    letter-spacing: -0.02em;
    line-height: var(--lh-heading);
    font-weight: 700;
    transition: color var(--transition-speed) var(--transition-ease);
    overflow: visible;
  }

  /* Universal Italic Safety: Absolute 100% Clipping Solution */
  em,
  i,
  .italic,
  span[class*="italic"] {
    display: inline-block;
    width: fit-content; /* Ensure bounding box wraps text */
    padding-right: 0.25em !important; /* Managed safe-area for slants */
    margin-right: -0.25em !important; /* Prevents layout drift */
    vertical-align: baseline;
    overflow: visible !important; /* Force glyph rendering */
  }

  h1 {
    font-size: var(--fs-h1);
    padding-left: 10px;
    padding-right: 15px; /* Italic fonts ke liye right padding zaroori hai */
  }
  h2 {
    font-size: var(--fs-h2);
  }

  p {
    font-size: var(--fs-p);
    line-height: var(--lh-body);
    letter-spacing: 0;
    color: var(--text-dark);
  }

  a,
  button,
  .tap-target {
    transition: all var(--transition-speed) var(--transition-ease);
    -webkit-tap-highlight-color: transparent;
  }

  /* Mobile Tap Feedback */
  @media (max-width: 768px) {
    a:active:not(.no-press),
    button:active:not(.no-press),
    .tap-target:active {
      transform: scale(0.96) !important;
      opacity: 0.8;
      transition: transform 0.1s ease;
    }
  }

  /* Label / Small Caps Rule (+10% tracking) */
  .label-premium {
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold-color);
  }
}

.text-brand-gradient {
  background: linear-gradient(
    135deg,
    var(--gold-color) 0%,
    var(--accent-color) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Premium Grain Overlay */
.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  content: "";
  opacity: 0.03;
  z-index: 9999;
  pointer-events: none;
  background-image: url("https://grainy-gradients.vercel.app/noise.svg");
}

/* Custom Selection */
::selection {
  background: var(--gold-color);
  color: white;
}

/* Privacy Blur Effect Refined */
.privacy-active header,
.privacy-active main,
.privacy-active footer {
  filter: blur(40px) brightness(0.9);
  transition: filter 1s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

/* Premium Scrollbar */
::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--gold-color);
  border-radius: 20px;
}

/* Utilities */
.text-balance {
  overflow-wrap: break-word;
}

@supports (text-wrap: balance) {
  .text-balance {
    text-wrap: balance;
  }
}

.glass-card {
  background: rgba(255, 255, 255, 0.4);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: var(--space-4); /* Internal Padding Rule: 32px */
  border-radius: 1rem; /* 16px */
  box-shadow: var(--shadow-soft);
  transition: all var(--transition-speed) var(--transition-ease);
}

.glass-card:hover {
  box-shadow: var(--shadow-lift);
}

.section-gap {
  margin-top: var(--space-15);
  margin-bottom: var(--space-15);
}

.inner-gap {
  gap: var(--space-8);
}

.text-gold-gradient {
  background: linear-gradient(135deg, #d4af37 0%, #f1d592 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0px);
  }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

/* Structural Design Utilities */
.section-spreader {
  padding-top: var(--section-py);
  padding-bottom: var(--section-py);
}

.z-pattern-reverse {
  flex-direction: row-reverse;
}

.focal-glow {
  position: relative;
}

.focal-glow::after {
  content: "";
  position: absolute;
  inset: -20%;
  background: radial-gradient(
    circle,
    var(--gold-color) / 0.05 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: -1;
}

/* Semantic Dividers */
.divider-clinical {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  width: 100%;
  margin: 4rem 0;
}

/* Hero Specific Patterns & Styles */
.bg-grid-clinical {
  background-image: radial-gradient(var(--primary-color) 1px, transparent 1px);
  background-size: 40px 40px;
}

.vertical-text {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

@keyframes spin-slow {
  from {
    transform: translateY(-50%) rotate(0deg);
  }
  to {
    transform: translateY(-50%) rotate(360deg);
  }
}

@keyframes float-slow {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

.animate-spin-slow {
  animation: spin-slow 30s linear infinite;
}

.animate-float-slow {
  animation: float-slow 8s ease-in-out infinite;
}

.mask-fade-in {
  -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
}

/* User Requested Refinements */
.heading-class {
  line-height: 1.2; /* Isse default se thoda zyada rakhein */
}

.container {
  overflow: visible !important;
}

/* Typography Clipping Fix: The "Safe Area" Pattern */
.italic-safe {
  display: inline-block !important;
  width: fit-content !important;
  padding-right: 0.3em !important; /* Extreme room for italic slant */
  margin-right: -0.3em !important; /* Corrects layout shift caused by padding */
  padding-left: 0.05em !important;
  margin-left: -0.05em !important;
  padding-bottom: 0.1em !important; /* Prevent descender chipping */
  margin-bottom: -0.1em !important;
  vertical-align: baseline;
  overflow: visible !important;
}

@layer components {
  /* --- PREMIUM COMPONENT SYSTEM --- */
  .heading-hero {
    font-size: 3rem;
    font-family: var(--font-heading), sans-serif;
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1;
    color: var(--foreground);
    text-align: center;
  }
  @media (min-width: 768px) {
    .heading-hero {
      font-size: 5rem;
    }
  }
  @media (min-width: 1024px) {
    .heading-hero {
      font-size: 6.5rem;
    }
  }

  .subheading-premium {
    color: #475569; /* Slate 600 */
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.125rem;
    font-weight: 400; /* Medium weight for light bg */
    line-height: 1.625;
    text-align: center;
  }
  @media (min-width: 768px) {
    .subheading-premium {
      font-size: 1.25rem;
    }
  }

  .badge-premium {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: 9999px;
    background-color: rgba(74, 124, 119, 0.08); /* Sage tint */
    border: 1px solid rgba(74, 124, 119, 0.15);
    margin-bottom: 2rem;
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
  }

  /* Forms & Inputs */
  .input-premium {
    width: 100%;
    padding: 1.2rem 2rem;
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 1.25rem;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
  }
  .input-premium:focus {
    border-color: var(--primary-color);
    box-shadow: 0 10px 15px -3px rgba(74, 124, 119, 0.1);
  }

  .input-premium-light {
    width: 100%;
    height: 3.5rem;
    border-radius: 1rem;
    background-color: #fcfdfd;
    border: 1px solid rgba(226, 232, 240, 0.8);
    padding: 0 1.5rem;
    font-weight: 700;
    color: #334155;
    transition: all 0.3s;
    outline: none;
  }
  .input-premium-light:focus {
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
    border-color: #0ea5e9;
  }

  .label-premium-v2 {
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #64748b; /* text-slate-500 for good AA contrast */
    margin-left: 1rem;
    margin-bottom: 0.5rem;
    display: block;
  }

  /* Buttons */
  .btn-premium-teal {
    padding: 1.5rem 3rem;
    border-radius: 1rem;
    background-color: #14b8a6;
    color: #000000;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.75rem;
    transition: all 0.3s;
    box-shadow: 0 25px 50px -12px rgba(20, 184, 166, 0.2);
    border: none;
    cursor: pointer;
  }
  .btn-premium-teal:hover {
    transform: scale(1.05);
    background-color: #2dd4bf;
  }
  .btn-premium-teal:active {
    transform: scale(0.95);
  }

  .btn-premium-emerald {
    padding: 1.5rem 3rem;
    border-radius: 1rem;
    background-color: #10b981;
    color: #000000;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.75rem;
    transition: all 0.3s;
    box-shadow: 0 25px 50px -12px rgba(16, 185, 129, 0.2);
    border: none;
    cursor: pointer;
  }
  .btn-premium-emerald:hover {
    transform: scale(1.05);
    background-color: #34d399;
  }
  .btn-premium-emerald:active {
    transform: scale(0.95);
  }

  .btn-premium-glass {
    padding: 1.5rem 3rem;
    border-radius: 1rem;
    border: 1px solid var(--primary-color);
    background-color: transparent;
    color: var(--primary-color);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.75rem;
    transition: all 0.4s;
    cursor: pointer;
  }
  .btn-premium-glass:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(74, 124, 119, 0.2);
  }

  /* Cards */
  .card-premium-glass {
    padding: 2rem;
    border-radius: 3rem;
    background-color: rgba(255, 255, 255, 0.65);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .card-premium-glass:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.06);
  }
  @media (min-width: 768px) {
    .card-premium-glass {
      padding: 3rem;
    }
  }

  .card-feature-premium {
    padding: 2.5rem;
    border-radius: 2.5rem;
    background-color: rgba(255, 255, 255, 0.5);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(74, 124, 119, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .card-feature-premium:hover {
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(74, 124, 119, 0.08);
    transform: translateY(-4px);
  }

  /* Ambient & Background */
  .watermark-absolute {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    -webkit-user-select: none;
    user-select: none;
    opacity: 0.02;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .glow-teal {
    position: absolute;
    top: 0;
    right: 0;
    width: 800px;
    height: 800px;
    background-color: rgba(20, 184, 166, 0.1);
    border-radius: 9999px;
    filter: blur(160px);
    pointer-events: none;
  }

  .glow-emerald {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 600px;
    height: 600px;
    background-color: rgba(16, 185, 129, 0.05);
    border-radius: 9999px;
    filter: blur(140px);
    pointer-events: none;
  }

  /* Utility Components */
  .card-upload-premium {
    position: relative;
    width: 100%;
    padding: 1px;
    border-radius: 1rem;
    background: linear-gradient(
      to right,
      rgba(74, 124, 119, 0.05),
      transparent
    );
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s;
  }
  .card-upload-premium:hover {
    background: linear-gradient(
      to right,
      rgba(74, 124, 119, 0.12),
      rgba(74, 124, 119, 0.03)
    );
    border-color: rgba(74, 124, 119, 0.2);
  }

  .card-upload-inner {
    background-color: #ffffff;
    padding: 1.5rem 2rem;
    border-radius: calc(1rem - 1px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  }

  .badge-pulse-teal {
    position: relative;
    width: 0.5rem;
    height: 0.5rem;
  }

  .badge-pulse-teal span:first-child {
    animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
    position: absolute;
    inset: 0;
    border-radius: 9999px;
    background-color: #2dd4bf;
    opacity: 0.75;
  }

  .badge-pulse-teal span:last-child {
    position: relative;
    display: inline-flex;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    background-color: #14b8a6;
  }

  /* --- FORM LAYOUT SYSTEM --- */
  .form-row-premium {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }
  @media (min-width: 768px) {
    .form-row-premium {
      flex-direction: row;
    }
  }

  .form-col-premium {
    flex: 1 1 0%;
    margin-bottom: 0.75rem; /* space-y-3 approx */
  }
  .form-col-premium > *:not(:first-child) {
    margin-top: 0.75rem;
  }
}
