/* =========================================================
   Battery Care — Sharma Tech Labs
   Sky blue + white landing page styles
   ========================================================= */

:root {
  --bg: #f4faff;
  --bg-elevated: #eaf6ff;
  --surface: #ffffff;
  --surface-light: #f7fbff;
  --surface-hover: #eef7ff;
  --primary: #1e9fff;
  --primary-dark: #0b7fe0;
  --primary-soft: rgba(30, 159, 255, 0.12);
  --primary-glow: rgba(30, 159, 255, 0.22);
  --text: #0f2744;
  --text-secondary: #5a6f86;
  --text-muted: #7d8fa3;
  --on-primary: #ffffff;
  --border: rgba(30, 90, 140, 0.1);
  --border-strong: rgba(30, 159, 255, 0.35);
  --shadow: 0 18px 50px rgba(30, 90, 140, 0.1);
  --header-h: 72px;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-full: 999px;
  --container: 1120px;
  --focus: 0 0 0 3px var(--bg), 0 0 0 5px var(--primary);
  --transition: 180ms ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

html:focus-within {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--primary-dark);
}

ul {
  list-style: none;
}

button,
input {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 1000;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 8px;
}

.skip-link:focus {
  top: 12px;
  color: var(--on-primary);
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

body.nav-open {
  overflow: hidden;
}

.section {
  padding: 88px 0;
}

.section-header {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-kicker {
  display: inline-block;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 700;
}

h1 {
  font-size: clamp(2rem, 4.4vw, 3.5rem);
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  margin-bottom: 12px;
}

h3 {
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.lead,
.section-intro {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* Focus */
:focus {
  outline: none;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

/* =========================================================
   Header
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.logo:hover {
  color: var(--text);
}

.logo img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

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

.nav-list a {
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 10px;
  display: inline-flex;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: var(--text);
  background: var(--primary-soft);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 12px;
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-backdrop {
  display: none;
}

/* =========================================================
   Buttons
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: 0 0 0 1px rgba(30, 159, 255, 0.18), 0 8px 24px rgba(14, 127, 224, 0.22);
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: var(--on-primary);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--border-strong);
  background: var(--primary-soft);
  color: var(--text);
}

.btn-lg {
  min-height: 54px;
  padding: 14px 26px;
}

/* =========================================================
   Hero
   ========================================================= */

.hero {
  position: relative;
  padding: 72px 0 40px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -80px auto auto 50%;
  width: 520px;
  height: 520px;
  transform: translateX(-20%);
  background: radial-gradient(circle, rgba(30, 159, 255, 0.18), transparent 68%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-strong);
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
}

.hero h1 {
  margin-bottom: 16px;
}

.hero .lead {
  max-width: 50ch;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-note {
  margin-top: 18px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
}

.hero-glow {
  position: absolute;
  width: 78%;
  height: 78%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--primary-glow), transparent 70%);
  filter: blur(8px);
  z-index: 0;
}

.hero-shot {
  position: relative;
  z-index: 1;
  width: min(100%, 430px);
  border-radius: 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow), 0 0 48px rgba(30, 159, 255, 0.16);
  background: var(--surface);
}

.hero-logo-float {
  position: absolute;
  left: 6%;
  bottom: 8%;
  z-index: 2;
  width: 84px;
  height: 84px;
  padding: 8px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  box-shadow: 0 12px 30px rgba(30, 90, 140, 0.12), 0 0 24px rgba(30, 159, 255, 0.2);
  animation: float-y 4.5s ease-in-out infinite;
}

.hero-logo-float img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
}

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

/* =========================================================
   Features
   ========================================================= */

.features {
  background: linear-gradient(180deg, transparent, rgba(234, 246, 255, 0.9), transparent);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  min-height: 100%;
  transition: border-color var(--transition), transform var(--transition), background var(--transition);
}

.feature-card:hover {
  border-color: var(--border-strong);
  background: var(--surface-light);
  transform: translateY(-3px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary);
  margin-bottom: 16px;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.94rem;
  margin-top: 8px;
}

/* =========================================================
   Screenshots
   ========================================================= */

.shot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.shot-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 12px 12px 16px;
  text-align: center;
  color: inherit;
  display: block;
  cursor: zoom-in;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.shot-card:hover,
.shot-card:focus-visible {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: 0 16px 40px rgba(30, 90, 140, 0.12), 0 0 28px rgba(30, 159, 255, 0.12);
  color: inherit;
}

.shot-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 1090 / 1635;
  object-fit: contain;
  border-radius: 14px;
  background: #eaf6ff;
}

.shot-card figcaption {
  margin-top: 12px;
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 600;
}

/* =========================================================
   How it works
   ========================================================= */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.step-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.step-num {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--on-primary);
  background: var(--primary);
  margin-bottom: 16px;
  box-shadow: 0 0 18px rgba(30, 159, 255, 0.28);
}

.step-card p {
  color: var(--text-secondary);
  margin-top: 8px;
}

/* =========================================================
   Why
   ========================================================= */

.why {
  background: var(--bg-elevated);
}

.why-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.why-copy p {
  color: var(--text-secondary);
  max-width: 58ch;
}

.why-points {
  display: grid;
  gap: 14px;
}

.why-point {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
}

.why-point strong {
  display: block;
  margin-bottom: 2px;
}

.why-point span {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.check {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--primary);
  margin-top: 2px;
}

/* =========================================================
   CTA
   ========================================================= */

.cta {
  padding-bottom: 96px;
}

.cta-banner {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(circle at 85% 20%, rgba(30, 159, 255, 0.18), transparent 40%),
    var(--surface);
  padding: 56px 40px;
  text-align: center;
}

.cta-banner p {
  color: var(--text-secondary);
  max-width: 52ch;
  margin: 12px auto 24px;
}

/* =========================================================
   Footer
   ========================================================= */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 28px;
  background: var(--bg-elevated);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
}

.footer-brand p {
  color: var(--text-secondary);
  margin-top: 8px;
  max-width: 36ch;
}

.footer-title {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a {
  color: var(--text-secondary);
}

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

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 18px;
  color: var(--text-muted);
  font-size: 0.88rem;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* =========================================================
   Legal pages
   ========================================================= */

.legal-hero {
  padding: 48px 0 12px;
}

.legal-hero p {
  color: var(--text-secondary);
  margin-top: 10px;
}

.legal-content {
  max-width: 800px;
  padding-bottom: 80px;
  overflow-wrap: break-word;
}

.legal-content h2 {
  font-size: 1.25rem;
  margin: 32px 0 10px;
}

.legal-content p,
.legal-content li {
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.legal-content ul {
  padding-left: 18px;
  list-style: disc;
}

.legal-content a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.updated {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* =========================================================
   Lightbox
   ========================================================= */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(8, 32, 58, 0.82);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  max-width: min(92vw, 720px);
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
}

.lightbox-caption {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--on-primary);
  background: rgba(14, 127, 224, 0.95);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  font-size: 0.9rem;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-grid,
  .why-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 36px;
  }

  .hero-shot {
    width: min(100%, 380px);
  }

  .hero-logo-float {
    width: 72px;
    height: 72px;
  }
}

@media (max-width: 920px) {
  .header-cta {
    display: none;
  }

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

  .primary-nav {
    position: fixed;
    top: calc(var(--header-h) + 8px);
    right: 16px;
    left: auto;
    width: min(280px, calc(100% - 32px));
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 12px;
    display: none;
    box-shadow: var(--shadow);
    z-index: 120;
  }

  .primary-nav.is-open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-list a {
    padding: 12px 14px;
    color: var(--text);
  }

  .nav-backdrop {
    display: none;
    position: fixed;
    inset: var(--header-h) 0 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 90;
  }

  .nav-backdrop.is-open {
    display: block;
  }

  .shot-grid,
  .steps,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

  .feature-grid,
  .shot-grid,
  .steps,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .cta-banner .btn {
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .cta-banner {
    padding: 36px 20px;
  }

  .hero-logo-float {
    display: none;
  }

  .container {
    width: min(100% - 24px, var(--container));
  }
}

@media (max-width: 375px) {
  h1 {
    font-size: 1.8rem;
  }

  .logo span {
    font-size: 0.95rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
