/* ==========================================================================
   Kerala Lottery Today - Shared Modern Stylesheet (style.css)
   ========================================================================== */

:root {
  --theme-primary: #EC003F;
  --theme-primary-dark: #C20033;
  --theme-primary-light: #FF2B66;
  --theme-primary-subtle: #FFF0F4;
  --theme-accent: #2B2D42;
  --theme-dark: #12141A;
  --theme-surface: #FFFFFF;
  --theme-surface-subtle: #F8F9FC;
  --theme-border: #E8ECEF;
  --theme-text-primary: #12141A;
  --theme-text-secondary: #596273;
  --theme-text-muted: #8792A2;
  --theme-warning-bg: #FFF8E6;
  --theme-warning-border: #F7D070;
  --theme-warning-text: #8C5800;

  --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-width: 1240px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-family);
  color: var(--theme-text-primary);
  background-color: #FAFAFC;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  line-height: 1.6;
  background-color: #FAFAFC;
  overflow-x: hidden;
  color: var(--theme-text-primary);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(232, 236, 239, 0.8);
  transition: box-shadow 0.3s ease;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.app-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  width: 40px;
  height: 40px;
  display: block;
  border-radius: 0; /* strict requirement: no rounded corners */
  object-fit: contain;
  background: none;
  box-shadow: none;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--theme-dark);
}

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

.nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--theme-text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--theme-primary);
}

/* Hero Section */
.hero-section {
  padding: 72px 24px 56px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero-content {
  max-width: 780px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--theme-primary-subtle);
  color: var(--theme-primary);
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--theme-primary);
}

.hero-title {
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: var(--theme-dark);
  margin-bottom: 20px;
}

.hero-lead {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--theme-text-secondary);
  line-height: 1.6;
  max-width: 640px;
}

.feature-showcase {
  max-width: var(--max-width);
  margin: 0 auto 56px;
  padding: 0 24px;
}

.feature-showcase-wide {
  max-width: 1320px;
}
.feature-panel {
  background: var(--theme-surface);
  border: 1px solid var(--theme-border);
  border-radius: 20px;
  padding: 48px;
}

.feature-panel-stack {
  padding: 48px 36px 36px;
}

/* Screenshot 1 Block: Two Columns */
.feature-split-1 {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) 442px;
  gap: 56px;
  align-items: center;
}

/* Screenshot 2 Block: Two Columns (Reversed) */
.feature-split-2 {
  display: grid;
  grid-template-columns: 669px minmax(320px, 1fr);
  gap: 56px;
  align-items: center;
}

/* Screenshot 3 Block: Vertical Stack (Strict Requirement: 上下结构) */
.feature-vertical-stack {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.vertical-text-group {
  max-width: 860px;
}

.vertical-img-container {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 100%;
}

/* Image Presentation Requirements:
   - images/screenshot1.png, screenshot2.png, screenshot3.png:
   - Wide screens: exact intrinsic pixel dimensions (no stretching, no scaling, no compressing).
   - Narrow screens: max-width: 100%; height: auto; proportional scale-down.
   - Strictly NO background color, NO box-shadow!
*/
.shot-img {
  display: block;
  max-width: 100%;
  height: auto;
  background: none !important;
  box-shadow: none !important;
}

.shot-1 {
  width: 442px;
  max-width: 100%;
  height: auto;
}

.shot-2 {
  width: 669px;
  max-width: 100%;
  height: auto;
}

.shot-3 {
  width: 1220px;
  max-width: 100%;
  height: auto;
}

.shot-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  background: none;
}

/* Feature Copy Styles */
.feature-kicker {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--theme-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.feature-heading {
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: var(--theme-dark);
  margin-bottom: 16px;
}

.feature-summary {
  font-size: 1.05rem;
  color: var(--theme-text-secondary);
  line-height: 1.65;
  margin-bottom: 24px;
}

.feature-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-point-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.point-bullet {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--theme-primary);
  margin-top: 8px;
  flex-shrink: 0;
}

.point-text {
  font-size: 0.98rem;
  color: var(--theme-text-primary);
  line-height: 1.5;
}

.point-title {
  font-weight: 700;
  color: var(--theme-dark);
}

/* Analytical Grid for Section 3 */
.stats-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.stats-card {
  background: var(--theme-surface-subtle);
  border: 1px solid var(--theme-border);
  border-radius: 12px;
  padding: 20px;
}

.stats-card-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--theme-primary);
  background: var(--theme-primary-subtle);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 10px;
}

.stats-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--theme-dark);
  margin-bottom: 6px;
}

.stats-card-desc {
  font-size: 0.88rem;
  color: var(--theme-text-secondary);
  line-height: 1.5;
}

/* ==========================================================================
   Account Deletion Flow (`delete-account.html`)
   ========================================================================== */
.deletion-hero {
  padding: 56px 24px 32px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.deletion-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFF1F0;
  color: #D9363E;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.deletion-title {
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--theme-dark);
  margin-bottom: 16px;
}

.deletion-intro {
  font-size: 1.15rem;
  color: var(--theme-text-secondary);
  max-width: 680px;
}

/* Warning Callout - Prominent as requested */
.warning-box {
  background: var(--theme-warning-bg);
  border: 1px solid var(--theme-warning-border);
  border-left: 6px solid #D9822B;
  border-radius: 12px;
  padding: 20px 24px;
  margin: 32px 0;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.warning-icon {
  width: 24px;
  height: 24px;
  fill: #D9822B;
  flex-shrink: 0;
  margin-top: 2px;
}

.warning-text {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--theme-warning-text);
  line-height: 1.5;
}

.deletion-layout {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) 380px;
  gap: 56px;
  align-items: start;
  max-width: var(--max-width);
  margin: 0 auto 64px;
  padding: 0 24px;
}

.steps-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.step-card {
  background: var(--theme-surface);
  border: 1px solid var(--theme-border);
  border-radius: 16px;
  padding: 24px 28px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.step-card:hover {
  transform: translateY(-2px);
  border-color: var(--theme-primary-light);
}

.step-counter {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--theme-primary-subtle);
  color: var(--theme-primary);
  font-weight: 800;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-body {
  flex: 1;
}

.step-instruction {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--theme-dark);
  margin-bottom: 6px;
}

.step-note {
  font-size: 0.92rem;
  color: var(--theme-text-secondary);
  line-height: 1.5;
}

.deletion-visual-column {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.device-frame {
  background: #181920;
  padding: 12px;
  border-radius: 36px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.12);
  width: 100%;
  max-width: 360px;
}

.device-screen {
  border-radius: 26px;
  overflow: hidden;
  background: #000;
  display: flex;
  justify-content: center;
}

/* images/delete-account.jpg has intrinsic 1080 x 2280 px */
.delete-guide-img {
  width: 100%;
  height: auto;
  max-height: 640px;
  object-fit: contain;
  display: block;
}

.device-caption {
  font-size: 0.85rem;
  color: var(--theme-text-muted);
  text-align: center;
  margin-top: 14px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #12141A;
  color: #B5BDCB;
  padding: 56px 24px 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand-group {
  max-width: 440px;
}

.footer-brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 10px;
}

.footer-brand-desc {
  font-size: 0.92rem;
  color: #8C96A8;
  line-height: 1.6;
}

.footer-contact-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8C96A8;
}

.company-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #FFFFFF;
}

.contact-email-link {
  color: var(--theme-primary-light);
  font-size: 0.95rem;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.contact-email-link:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

.footer-bottom {
  padding-top: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 0.88rem;
  color: #8C96A8;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-link {
  color: #8C96A8;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: #FFFFFF;
}

/* ==========================================================================
   Scroll Animations
   ========================================================================== */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 1280px) {
  .shot-3 {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 1024px) {
  .feature-split-1,
  .feature-split-2,
  .deletion-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .feature-split-2 .shot-wrapper {
    order: -1;
  }

  .shot-1, .shot-2, .shot-3 {
    max-width: 100%;
    height: auto;
  }

  .deletion-visual-column {
    position: static;
  }
}

@media (max-width: 640px) {
  .feature-panel {
    padding: 28px 20px;
  }

  .hero-section {
    padding: 44px 20px 36px;
  }

  .deletion-hero {
    padding: 36px 20px 24px;
  }

  .feature-showcase,
  .deletion-layout {
    padding: 0 16px 40px;
  }

  .footer-top,
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
