/*==========================================================
  Kuyil FM - Modern site stylesheet
  No Bootstrap / no jQuery / no animate.css dependency.
  Design tokens + layout + components for index.html.
==========================================================*/

:root {
  --brand: #be1aab;
  --brand-2: #61009d;
  --brand-3: #cb107a;
  --brand-soft: rgba(190, 26, 171, 0.10);
  --ink: #1c1424;
  --muted: #5b5568;
  --bg: #ffffff;
  --bg-soft: #fdf6fc;
  --border: rgba(28, 20, 36, 0.08);
  --shadow-sm: 0 2px 10px rgba(30, 10, 40, 0.06);
  --shadow-md: 0 14px 34px rgba(97, 0, 157, 0.12);
  --shadow-lg: 0 25px 60px rgba(97, 0, 157, 0.18);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --container: 1200px;
  --header-h: 78px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans Tamil",
    "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

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

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

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

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

button {
  font: inherit;
  cursor: pointer;
}

::selection {
  background: var(--brand);
  color: #fff;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/*----- Layout helpers -----*/
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

@media (max-width: 767px) {
  .section {
    padding: 64px 0;
  }
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.section-head {
  max-width: 620px;
  margin: 0 0 48px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-head p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 17px;
}

.lang-ta {
  font-weight: 600;
}

/*----- Reveal on scroll -----*/
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

/*----- Buttons -----*/
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  border: 2px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(120deg, var(--brand) 0%, var(--brand-2) 100%);
  color: #fff;
  box-shadow: 0 12px 26px rgba(190, 26, 171, 0.32);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(190, 26, 171, 0.4);
}

.btn-ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
}

#header-sentinel {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 24px;
  pointer-events: none;
}

/*----- Header -----*/
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-color: var(--border);
  box-shadow: 0 4px 24px rgba(97, 0, 157, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
}

.brand img {
  height: 42px;
  width: auto;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  display: block;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--brand-soft);
  color: var(--brand);
}

.nav-cta {
  margin-left: 8px;
  padding: 11px 22px;
  font-size: 14px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--ink);
}

@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    inset: var(--header-h) 16px auto 16px;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 10px;
    gap: 2px;
    transform-origin: top center;
    transform: scale(0.98) translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }

  .nav-links a {
    padding: 14px 16px;
  }

  .nav.is-open .nav-links {
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateY(0);
  }

  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }
}

.nav-toggle .icon-close {
  display: none;
}

.nav.is-open .nav-toggle .icon-menu {
  display: none;
}

.nav.is-open .nav-toggle .icon-close {
  display: block;
}

/*----- Hero -----*/
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 40px;
  background:
    radial-gradient(circle at 12% 15%, rgba(190, 26, 171, 0.12) 0%, rgba(190, 26, 171, 0) 45%),
    radial-gradient(circle at 88% 70%, rgba(97, 0, 157, 0.12) 0%, rgba(97, 0, 157, 0) 50%),
    linear-gradient(180deg, #fdf3fb 0%, #f6f8ff 60%, #ffffff 100%);
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.55;
  animation: float 9s ease-in-out infinite;
  pointer-events: none;
}

.hero-blob.b1 { width: 90px; height: 90px; left: 6%; top: 18%; background: linear-gradient(135deg, #fe8464, #fe6e9a); }
.hero-blob.b2 { width: 46px; height: 46px; left: 14%; bottom: 14%; background: linear-gradient(135deg, #33c8c1, #119bd2); animation-delay: 1.5s; }
.hero-blob.b3 { width: 26px; height: 26px; left: 42%; top: 10%; background: linear-gradient(135deg, #361cc1, #2e82ef); animation-delay: 3s; }
.hero-blob.b4 { width: 30px; height: 30px; right: 10%; top: 30%; background: #e29e19; animation-delay: 2s; }

@media (max-width: 767px) {
  .hero-blob { display: none; }
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-22px) scale(1.05); }
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.hero-title {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.hero-title .accent {
  display: inline-block;
  background: linear-gradient(120deg, var(--brand) 0%, var(--brand-2) 55%, var(--brand-3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--brand);
}

.hero-subtitle {
  margin-top: 20px;
  font-size: 19px;
  font-weight: 600;
  color: #4a3a4a;
  max-width: 520px;
}

@media (max-width: 900px) {
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
}

.hero-cta {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .hero-cta {
    justify-content: center;
  }
}

.hero-trust {
  margin-top: 28px;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

@media (max-width: 900px) {
  .hero-trust {
    justify-content: center;
  }
}

.hero-trust strong {
  color: var(--ink);
  font-size: 20px;
  display: block;
  font-weight: 800;
}

.hero-media {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-frame {
  position: relative;
  width: min(300px, 78vw);
  border-radius: 40px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 6px solid #14101a;
  background: #14101a;
}

.phone-frame img {
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: cover;
  object-position: top center;
}

/*----- Feature strip (redesigned) -----*/
.features {
  background: var(--bg);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
}

.feature-card {
  position: relative;
  padding: 32px 26px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  background: var(--card-accent, var(--brand));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card-accent-soft, var(--brand-soft));
  background: color-mix(in srgb, var(--card-accent, var(--brand)) 14%, white);
  margin-bottom: 22px;
}

.feature-icon img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.feature-card h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--muted);
  font-size: 15px;
}

/*----- Showcase (alternating app tour) -----*/
.showcase-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 56px;
}

.showcase-item + .showcase-item {
  margin-top: 88px;
}

.showcase-item.reverse .showcase-media {
  order: 2;
}

@media (max-width: 900px) {
  .showcase-item,
  .showcase-item.reverse .showcase-media {
    grid-template-columns: 1fr;
    order: 0;
  }

  .showcase-item + .showcase-item {
    margin-top: 56px;
  }
}

.showcase-media {
  position: relative;
  display: flex;
  justify-content: center;
}

.showcase-blob {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: linear-gradient(160deg, #f9c3ea, #e4eefb);
  z-index: 0;
}

.showcase-media img {
  position: relative;
  z-index: 1;
  width: min(240px, 70vw);
  border-radius: 32px;
  box-shadow: -18px 16px 40px rgba(0, 0, 0, 0.22);
  transition: transform 0.4s var(--ease);
}

.showcase-media:hover img {
  transform: translateY(-6px) scale(1.02);
}

.showcase-copy h3 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.showcase-copy p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 16px;
  max-width: 460px;
}

.showcase-copy .btn {
  margin-top: 28px;
}

/*----- Download banner -----*/
.download {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin: 0 24px;
  padding: 72px 48px;
  background: linear-gradient(120deg, var(--brand) 0%, var(--brand-2) 100%);
  color: #fff;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 32px;
}

@media (max-width: 767px) {
  .download {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 48px 28px;
    margin: 0 16px;
  }
}

.download h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 800;
}

.download p {
  margin-top: 12px;
  opacity: 0.9;
  max-width: 460px;
  font-size: 16px;
}

.download-store img {
  height: 58px;
  width: auto;
  border-radius: 10px;
}

@media (max-width: 767px) {
  .download-store {
    display: flex;
    justify-content: center;
  }
}

/*----- Footer -----*/
.footer {
  padding: 80px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}

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

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

.footer-brand img {
  height: 40px;
}

.footer-brand p {
  margin-top: 18px;
  color: var(--muted);
  max-width: 300px;
  font-size: 15px;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.footer-social a:hover {
  background: var(--brand);
  color: #fff;
  transform: translateY(-3px);
}

.footer h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 18px;
}

.footer-links li + li {
  margin-top: 12px;
}

.footer-links a {
  color: var(--muted);
  font-size: 15px;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--brand);
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 15px;
}

.footer-contact li + li {
  margin-top: 12px;
}

.footer-contact svg {
  flex: none;
  color: var(--brand);
}

.footer-bottom {
  margin-top: 64px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}

.footer-bottom a {
  color: var(--brand);
  font-weight: 600;
}

/*----- Back to top -----*/
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 24px rgba(190, 26, 171, 0.35);
  border: none;
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s, background 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--brand-2);
}
