/**
 * CHITRASA — Landing Page v1.0.1
 * Location: /public_html/css/index.css
 *
 * OWASP A05  All styling externalized; zero inline styles
 * OWASP A03  No url() user-input vectors
 * NIST SC-18 No executable content in CSS
 *
 * Design: Editorial luxury — Cormorant Garamond + DM Sans
 */

:root {
  --clr-bg:         #F4F3EF;
  --clr-primary:    #3D5A3E;
  --clr-primary-dk: #2E4530;
  --clr-gold:       #C5A649;
  --clr-text:       #1C1C1A;
  --clr-text-mid:   #4A4A46;
  --clr-text-muted: #7A7A74;
  --clr-border:     rgba(60,60,50,0.12);

  --ff-display: 'Cormorant Garamond', Georgia, serif;
  --ff-body:    'DM Sans', -apple-system, sans-serif;
  --ease-out:   cubic-bezier(0.22, 1, 0.36, 1);
  --ease-circ:  cubic-bezier(0.77, 0, 0.175, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--ff-body);
  background-color: var(--clr-bg);
  color: var(--clr-text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}


/* ═══════════════════════════════════════════════════
   PILL HEADER
   ═══════════════════════════════════════════════════ */
.header {
  padding: 20px 32px;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 10;
  animation: fadeDown 0.7s var(--ease-out) 0.1s both;
}

.header-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 24px 6px 6px;
  border: 1px solid var(--clr-border);
  border-radius: 9999px;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.header-pill__logo {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.header-pill__wordmark {
  font-family: var(--ff-body);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  line-height: 1;
}

.wordmark-chitra { color: var(--clr-primary); }
.wordmark-sa     { color: var(--clr-gold); }


/* ═══════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════ */
.main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 32px 60px;
  position: relative;
}

.hero {
  max-width: 640px;
  width: 100%;
}

/* Eyebrow */
.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  animation: fadeUp 0.7s var(--ease-out) 0.25s both;
}

.eyebrow-line {
  flex: 1;
  height: 1px;
  background: var(--clr-border);
  max-width: 60px;
}

.eyebrow-text {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clr-gold);
}

/* Headline */
.hero__headline {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: clamp(3.2rem, 8vw, 6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--clr-text);
  margin-bottom: 28px;
  animation: fadeUp 0.8s var(--ease-out) 0.38s both;
}

.hero__headline em {
  font-style: italic;
  color: var(--clr-primary);
  font-weight: 400;
}

/* Body copy */
.hero__body {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--clr-text-mid);
  max-width: 440px;
  margin-bottom: 44px;
  animation: fadeUp 0.7s var(--ease-out) 0.52s both;
}

/* CTA */
.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 32px;
  background: var(--clr-primary);
  color: #FFFFFF;
  text-decoration: none;
  font-family: var(--ff-body);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  position: relative;
  overflow: hidden;
  animation: fadeUp 0.7s var(--ease-out) 0.65s both;
  transition: box-shadow 0.2s;
}

.hero__cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--clr-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-circ);
}

.hero__cta:hover::before { transform: scaleX(1); }
.hero__cta:hover { box-shadow: 0 8px 28px rgba(61,90,62,0.22); }
.hero__cta:active { transform: translateY(1px); }

.hero__cta span,
.hero__cta svg { position: relative; z-index: 1; }

.hero__cta svg {
  transition: transform 0.25s var(--ease-out);
  flex-shrink: 0;
}
.hero__cta:hover svg { transform: translateX(4px); }


/* ═══════════════════════════════════════════════════
   GRAIN TEXTURE
   ═══════════════════════════════════════════════════ */
.grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 5;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  animation: grainShift 0.8s steps(1) infinite;
}


/* ═══════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════ */
.footer {
  text-align: center;
  padding: 20px 32px;
  animation: fadeUp 0.7s var(--ease-out) 0.8s both;
}

.footer-text {
  font-size: 0.72rem;
  color: var(--clr-text-muted);
  letter-spacing: 0.03em;
}


/* ═══════════════════════════════════════════════════
   KEYFRAMES
   ═══════════════════════════════════════════════════ */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-14px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes grainShift {
  0%  { transform: translate(0, 0); }
  20% { transform: translate(-2%, 3%); }
  40% { transform: translate(3%, -1%); }
  60% { transform: translate(-1%, -3%); }
  80% { transform: translate(2%, 2%); }
}


/* ═══════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .header { padding: 16px 20px; }
  .main   { padding: 20px 20px 40px; align-items: flex-start; }
  .hero__cta { width: 100%; justify-content: center; }
  .eyebrow-line { max-width: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}