:root {
  --brand: #ea580c;
  --brand-dark: #c2410c;
  --ink: #0f172a;
  --ink-soft: #334155;
  --paper: #ffffff;
  --muted: #64748b;
  --line: #e2e8f0;
  --surface: #f8fafc;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
  --shadow-sm: 0 4px 20px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; height: auto; display: block; }

.container {
  width: min(1140px, 92vw);
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.brand img {
  height: 40px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

.nav .btn-nav {
  background: var(--brand);
  color: #fff !important;
  white-space: nowrap;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 999px;
  line-height: 1.2;
  flex-shrink: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 8px 14px;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}

.nav a:hover {
  background: var(--surface);
  color: var(--ink);
}

.nav .btn-nav:hover {
  background: var(--brand-dark);
}

/* Hero */
.hero {
  padding: 56px 0 72px;
  background:
    radial-gradient(ellipse 80% 60% at 90% 10%, rgba(234, 88, 12, 0.14), transparent),
    radial-gradient(ellipse 60% 50% at 0% 80%, rgba(15, 23, 42, 0.06), transparent),
    linear-gradient(180deg, #fff 0%, var(--surface) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-dark);
  background: rgba(234, 88, 12, 0.1);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero h1 {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(2.1rem, 4.5vw, 3.25rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
  color: var(--ink);
}

.hero-lead {
  font-size: 1.12rem;
  color: var(--ink-soft);
  margin: 0 0 28px;
  max-width: 32rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 26px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(234, 88, 12, 0.35);
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  background: var(--brand-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(234, 88, 12, 0.4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--ink);
  padding: 14px 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  transition: border-color 0.2s, background 0.2s;
}

.btn-secondary:hover {
  border-color: var(--brand);
  background: var(--surface);
}

/* Phone mock — matches Salem News app (Inshorts-style card) */
.phone-wrap {
  display: flex;
  justify-content: center;
  perspective: 900px;
}

.phone {
  width: min(252px, 64vw);
  background: #111;
  border-radius: 30px;
  padding: 8px;
  box-shadow: var(--shadow);
  transform: rotateY(-8deg) rotateX(4deg);
}

.phone-screen--app {
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: 100%;
  aspect-ratio: 9 / 19.5;
  max-height: 400px;
  font-family: "Noto Sans Tamil", Roboto, "Plus Jakarta Sans", system-ui, sans-serif;
}

.phone-appbar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px 6px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.phone-appbar-logo {
  height: 18px;
  width: auto;
  max-width: 72px;
  object-fit: contain;
}

.phone-appbar-fill { flex: 1; }

.phone-ico {
  display: block;
  flex-shrink: 0;
  background: var(--ink-soft);
  opacity: 0.55;
}

.phone-ico-menu {
  width: 14px;
  height: 10px;
  border-radius: 1px;
  background: linear-gradient(
    to bottom,
    var(--ink) 0 2px,
    transparent 2px 4px,
    var(--ink) 4px 6px,
    transparent 6px 8px,
    var(--ink) 8px 10px
  );
  opacity: 1;
}

.phone-ico-search {
  width: 14px;
  height: 14px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: transparent;
  opacity: 0.7;
  position: relative;
}

.phone-ico-search::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 2px;
  background: var(--ink);
  right: -4px;
  bottom: -1px;
  transform: rotate(45deg);
}

.phone-ico-user {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brand);
  opacity: 1;
}

.phone-feed {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 4px 8px 0;
}

.phone-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #fff;
  overflow: hidden;
}

.phone-card--peek {
  opacity: 0.72;
  transform: scale(0.97);
  transform-origin: top center;
}

.phone-card--peek .phone-card-img {
  min-height: 48px;
  max-height: 56px;
}

.phone-card-img--local {
  background: linear-gradient(135deg, #fed7aa 0%, #fdba74 45%, #64748b 100%);
}

.phone-card-img--sports {
  background: linear-gradient(135deg, #bfdbfe 0%, #60a5fa 50%, #334155 100%);
}

.phone-card-img {
  flex-shrink: 0;
  width: 100%;
  height: 30%;
  min-height: 72px;
  max-height: 108px;
  border-radius: 14px;
  background: linear-gradient(135deg, #fed7aa, #94a3b8);
  background-size: cover;
  background-position: center;
  margin-top: 2px;
}

.phone-card-toolbar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 5px 4px 3px;
}

.phone-cat-pill {
  display: inline-block;
  max-width: 58%;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 0.58rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.phone-card-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.phone-ico-round {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
}

.phone-card-title {
  flex-shrink: 0;
  margin: 0;
  padding: 0 4px;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
  text-align: left;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.phone-card-desc {
  flex: 1;
  min-height: 0;
  margin: 4px 0 0;
  padding: 0 4px;
  font-size: 0.58rem;
  line-height: 1.48;
  color: var(--ink-soft);
  text-align: left;
  overflow: hidden;
}

.phone-card-meta {
  flex-shrink: 0;
  margin-top: auto;
  padding: 5px 4px 4px;
  font-size: 0.56rem;
  color: var(--muted);
  text-align: left;
}

.phone-card-meta strong {
  color: var(--brand-dark);
  font-weight: 600;
}

.phone-swipe-hint {
  flex-shrink: 0;
  height: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.04));
}

.phone-swipe-hint span {
  width: 28%;
  height: 3px;
  border-radius: 999px;
  background: var(--ink);
  opacity: 0.15;
}

.card-preview {
  padding: 14px;
}

.news-card {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  margin-bottom: 12px;
  background: #fff;
}

.news-card-img {
  height: 120px;
  background: linear-gradient(135deg, #fed7aa 0%, #fdba74 40%, #94a3b8 100%);
}

.news-card-body { padding: 12px 14px 14px; }

.news-card-cat {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.news-card-title {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1rem;
  font-weight: 700;
  margin: 6px 0 8px;
  line-height: 1.3;
}

.news-card-meta {
  font-size: 0.75rem;
  color: var(--muted);
}

.news-card-meta strong {
  color: var(--brand-dark);
  font-weight: 600;
}

/* Sections */
.section {
  padding: 72px 0;
}

.section-alt { background: var(--surface); }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-head h2 {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(234, 88, 12, 0.12);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.feature-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

/* CTA band */
.cta-band {
  background: var(--ink);
  color: #fff;
  border-radius: 20px;
  padding: 48px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-band h2 {
  font-family: "Source Serif 4", Georgia, serif;
  margin: 0 0 8px;
  font-size: 1.85rem;
}

.cta-band p {
  margin: 0;
  color: #94a3b8;
  max-width: 420px;
}

.cta-band .btn-primary {
  background: var(--brand);
  flex-shrink: 0;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: #cbd5e1;
  padding: 48px 0 28px;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}

.footer-brand img {
  height: 40px;
  margin-bottom: 14px;
  object-fit: contain;
}

.footer-brand p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.65;
  max-width: 280px;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 16px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li { margin-bottom: 10px; }

.footer-col a {
  color: #94a3b8;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.footer-col a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
  color: #64748b;
}

.footer-bottom a { color: #94a3b8; }

/* Download popup */
body.popup-open { overflow: hidden; }

.app-popup {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.app-popup[hidden] { display: none; }

.app-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
}

.app-popup-card {
  position: relative;
  width: min(340px, 92vw);
  background: #fff;
  border-radius: 20px;
  padding: 28px 22px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  font-family: "Noto Sans Tamil", "Plus Jakarta Sans", system-ui, sans-serif;
  animation: popup-in 0.35s ease;
}

@keyframes popup-in {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.app-popup-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 4px 8px;
}

.app-popup-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  margin: 0 auto 12px;
}

.app-popup-title {
  margin: 0 0 8px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
}

.app-popup-text {
  margin: 0 0 6px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--brand-dark);
  line-height: 1.5;
}

.app-popup-sub {
  margin: 0 0 18px;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}

.app-popup-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--brand);
  color: #fff !important;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 22px;
  border-radius: 12px;
  width: 100%;
  box-shadow: 0 8px 22px rgba(234, 88, 12, 0.35);
  transition: background 0.2s;
}

.app-popup-btn:hover { background: var(--brand-dark); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero { padding: 24px 0 36px; }
  .phone-wrap { order: -1; margin-bottom: 0; }
  .phone {
    transform: none;
    width: min(200px, 52vw);
    padding: 6px;
    border-radius: 26px;
  }
  .phone-screen--app {
    border-radius: 18px;
    max-height: 340px;
  }
  .phone-card-img { min-height: 64px; max-height: 90px; }
  .phone-card-title { font-size: 0.66rem; }
  .phone-card-desc { font-size: 0.55rem; line-height: 1.45; }
  .header-inner { padding: 10px 0; }
  .brand img { height: 34px; }
  .nav .btn-nav { font-size: 0.78rem; padding: 8px 12px; }
  .features { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav a:not(.btn-nav) { display: none; }
  .cta-band { text-align: center; justify-content: center; }
}

@media (max-width: 600px) {
  .hero { padding: 20px 0 32px; }
  .section { padding: 40px 0; }
  .brand img { height: 32px; }
}
