/* ============================================
   LOCAL FONTS
   ============================================ */
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/SpaceGrotesk-VariableFont_wght.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/InstrumentSerif-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ============================================
   DESIGN TOKENS (Mobile-first)
   ============================================ */
:root {
  --bg: #f4ede3;
  --bg-strong: #ead9c6;
  --surface: rgba(255, 250, 242, 0.88);
  --surface-solid: #fffaf2;
  --surface-dark: #1f2530;
  --surface-dark-soft: #293241;
  --line: rgba(74, 52, 31, 0.16);
  --text: #201a17;
  --muted: #6a5f58;
  --accent: #b5512c;
  --accent-strong: #8c381c;
  --accent-soft: #f7d5bf;
  --success-soft: #dce9dd;

  /* Mobile pe halke shadows */
  --shadow: 0 10px 24px rgba(46, 28, 18, 0.08);
  --shadow-soft: 0 6px 16px rgba(46, 28, 18, 0.06);

  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;

  /* Mobile: chhota page width */
  --page-width: calc(100% - 1.25rem);
}

/* Larger screens pe page width badhao */
@media (min-width: 640px) {
  :root {
    --page-width: min(1160px, calc(100% - 2rem));
    --shadow: 0 24px 60px rgba(46, 28, 18, 0.12);
    --shadow-soft: 0 14px 34px rgba(46, 28, 18, 0.08);
  }

}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

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

button,
input,
summary {
  font: inherit;
}

/* ============================================
   KEYFRAMES
   ============================================ */
@keyframes heroCardMainFloat {
  0%, 100% { transform: rotate(-5deg) translateY(0); }
  50%      { transform: rotate(-6deg) translateY(-10px); }
}

@keyframes heroCardAccentFloat {
  0%, 100% { transform: rotate(8deg) translateY(0); }
  50%      { transform: rotate(6deg) translateY(-12px); }
}

@keyframes livePulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.18); opacity: 0.65; }
}

/* ============================================
   BODY (Mobile pe lightweight background)
   ============================================ */
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  /* Mobile: solid background â€” radial gradients bahut costly hain */
  background: var(--bg);
  /* Font rendering */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeSpeed;
  /* Overlay se bachne ke liye */
  overflow-x: hidden;
}

/* Body::before grid overlay â€” sirf bade screens pe */
@media (min-width: 820px) {
  body {
    background:
      radial-gradient(circle at top left, rgba(181, 81, 44, 0.18), transparent 28rem),
      radial-gradient(circle at right 15% top 8%, rgba(32, 88, 102, 0.12), transparent 24rem),
      linear-gradient(180deg, #fbf6ee 0%, var(--bg) 42%, #efe4d5 100%);
  }

  body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
      linear-gradient(rgba(255, 255, 255, 0.2) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255, 255, 255, 0.2) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(circle at center, black 30%, transparent 82%);
    -webkit-mask-image: radial-gradient(circle at center, black 30%, transparent 82%);
    opacity: 0.35;
    z-index: -1;
  }

}

/* ============================================
   LAYOUT SHELL
   ============================================ */
.page-shell {
  position: relative;
  isolation: isolate;
  overflow: hidden; /* clip ki jagah hidden â€” better support */
}

.site-header,
.hero-section,
.experience-section,
.content-section,
.cta-band,
.site-footer {
  width: var(--page-width);
  margin-inline: auto;
}

/* ============================================
   HEADER (Mobile-first)
   ============================================ */
.site-header {
  position: sticky;
  top: 0.5rem;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 24px;
  /* Mobile: solid bg â€” backdrop-filter costly hai */
  background: rgba(255, 248, 240, 0.96);
  box-shadow: var(--shadow-soft);
  transition: box-shadow 180ms ease, transform 180ms ease;
}

/* Backdrop blur sirf bade screens pe */
@media (min-width: 820px) {
  .site-header {
    top: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 999px;
    background: rgba(255, 248, 240, 0.72);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

}

/* ============================================
   BRAND
   ============================================ */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.8);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.brand-copy {
  display: grid;
  gap: 0.15rem;
}

.brand-copy strong {
  font-size: 0.92rem;
  letter-spacing: 0.14em;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.68rem;
  white-space: nowrap;
}

@media (min-width: 640px) {
  .brand {
    gap: 0.9rem;
  }

  .brand img {
    width: 58px;
    height: 58px;
    border-radius: 18px;
  }

  .brand-copy strong {
    font-size: 1.02rem;
    letter-spacing: 0.18em;
  }

}

@media (min-width: 1024px) {
  .brand:hover img,
.brand:focus-visible img {
    transform: rotate(-4deg) scale(1.04);
    box-shadow: 0 12px 24px rgba(46, 28, 18, 0.16);
  }

}

/* ============================================
   MOBILE MENU
   ============================================ */
.nav-toggle-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.mobile-nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 44px;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(181, 81, 44, 0.16);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.88);
  cursor: pointer;
}

.mobile-nav-label {
  font-weight: 700;
  font-size: 0.9rem;
}

.mobile-nav-bars {
  display: grid;
  gap: 4px;
}

.mobile-nav-bars span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle-input:checked + .mobile-nav-toggle .mobile-nav-bars span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle-input:checked + .mobile-nav-toggle .mobile-nav-bars span:nth-child(2) {
  opacity: 0;
}

.nav-toggle-input:checked + .mobile-nav-toggle .mobile-nav-bars span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-toggle-input:checked + .mobile-nav-toggle + .header-panel {
  max-height: 40rem;
  margin-top: 0.75rem;
  opacity: 1;
}

/* Header panel â€” mobile pe collapsed */
.header-panel {
  display: grid;
  grid-column: 1 / -1;
  gap: 0.65rem;
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 220ms ease, opacity 220ms ease, margin-top 220ms ease;
}

/* Desktop: header-panel visible inline */
@media (min-width: 1024px) {
  .mobile-nav-toggle {
    display: none;
  }

  .header-panel {
    display: contents;
    max-height: none;
    margin-top: 0;
    overflow: visible;
    opacity: 1;
  }

  .site-header {
    grid-template-columns: auto 1fr auto;
  }

}

/* ============================================
   NAV
   ============================================ */
.site-nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0.5rem;
}

@media (min-width: 1024px) {
  .site-nav {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
  }

}

.nav-link,
.nav-group summary,
.install-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  min-height: 44px;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background-color 180ms ease, border-color 180ms ease,
              color 180ms ease, transform 180ms ease;
}

.nav-link,
.nav-group summary {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.52);
}

.nav-link:hover,
.nav-group summary:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(181, 81, 44, 0.18);
  transform: translateY(-1px);
}

@media (max-width: 1023px) {
  .nav-link,
.nav-group,
.nav-group summary,
.header-panel .install-link {
    width: 100%;
  }

}

/* Nav group (details dropdown) */
.nav-group {
  position: relative;
}

.nav-group summary {
  cursor: pointer;
  list-style: none;
  gap: 0.55rem;
}

.nav-group summary::-webkit-details-marker {
  display: none;
}


.nav-group[open] summary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(181, 81, 44, 0.18);
  transform: translateY(-1px);
}

.nav-group[open] summary::after {
  transform: rotate(-135deg) translateY(-1px);
}


.nav-group summary::after {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 180ms ease;
}

/* Dropdown â€” mobile: inline */
.nav-menu {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.5rem;
  padding: 0.7rem;
  border: 1px solid rgba(181, 81, 44, 0.16);
  border-radius: 20px;
  background: rgba(255, 250, 243, 0.98);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  transition: opacity 180ms ease;
}

.nav-group[open] .nav-menu {
  opacity: 1;
}

/* Desktop: absolute dropdown */
@media (min-width: 1024px) {
  .nav-menu {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 50%;
    min-width: 220px;
    margin-top: 0;
    border-radius: 22px;
    transform: translateX(-50%) translateY(10px) scale(0.97);
    transform-origin: top center;
    transition: opacity 180ms ease, transform 180ms ease;
  }
  .nav-group[open] .nav-menu {
    transform: translateX(-50%) translateY(0) scale(1);
  }

}

.nav-menu a {
  padding: 0.75rem 0.9rem;
  border-radius: 14px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  color: var(--text);
  background: rgba(181, 81, 44, 0.1);
  outline: none;
}

/* Install CTA */
.install-link {
  color: #fff;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  box-shadow: 0 14px 30px rgba(181, 81, 44, 0.22);
}

.install-link:hover,
.install-link:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

/* ============================================
   MAIN
   ============================================ */
main {
  padding: 1.5rem 0 2rem;
}

@media (min-width: 820px) {
  main {
    padding: 3.5rem 0 2rem;
  }

}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  padding: 1.5rem 0 3rem;
}

@media (min-width: 820px) {
  .hero-section {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 2.5rem;
    padding: 3.5rem 0 4.5rem;
  }

}

.hero-copy h1,
.section-heading h2,
.steps-panel h3 {
  margin: 0;
  color: var(--text);
  line-height: 1.05;
}

.hero-copy h1 {
  max-width: 100%;
  font-family: "Instrument Serif", serif;
  font-size: clamp(2.5rem, 12vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.03em;
}

@media (min-width: 640px) {
  .hero-copy h1 {
    max-width: 11ch;
    font-size: clamp(3.4rem, 7vw, 6.7rem);
    letter-spacing: -0.04em;
    line-height: 0.98;
  }

}

.hero-copy p {
  max-width: 56ch;
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

@media (min-width: 640px) {
  .hero-copy p {
    font-size: 1.05rem;
    line-height: 1.85;
  }

}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* ============================================
   BUTTONS
   ============================================ */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  gap: 0.6rem;
  overflow: hidden;
  min-height: 48px;
  padding: 0.85rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  white-space: nowrap;
  transition: transform 180ms ease, box-shadow 180ms ease,
              background-color 180ms ease, border-color 180ms ease;
}

/* Shine effect â€” sirf desktop pe */
@media (min-width: 820px) {
  .button {
    min-height: 54px;
    padding: 0.95rem 1.4rem;
  }

  .button::after {
    content: "";
    position: absolute;
    inset: 0;
    left: -140%;
    width: 48%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: skewX(-18deg);
    transition: left 420ms ease;
  }

  .button:hover::after,
.button:focus-visible::after {
    left: 160%;
  }

}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.button-icon,
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.button-icon {
  width: 1.1rem;
  height: 1.1rem;
  transition: transform 180ms ease;
}

.button-icon svg,
.social-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  box-shadow: 0 12px 24px rgba(181, 81, 44, 0.2);
}

.button-premium {
  color: #2a170d;
  border-color: rgba(255, 255, 255, 0.48);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.06)),
    linear-gradient(135deg, #f5d996 0%, #e9ba6d 42%, #c56734 100%);
  box-shadow: 0 14px 28px rgba(181, 81, 44, 0.22);
}

.button-wide {
  width: 100%;
}

/* Mobile: full-width buttons */
@media (max-width: 639px) {
  .hero-actions .button {
    width: 100%;
  }

}

/* ============================================
   HERO VISUAL (Mobile pe simple, no float)
   ============================================ */
.hero-visual {
  position: relative;
  min-height: 300px;
}

@media (min-width: 640px) {
  .hero-visual {
    min-height: 360px;
  }

}

@media (min-width: 820px) {
  .hero-visual {
    min-height: 480px;
  }

}

@media (min-width: 1080px) {
  .hero-visual {
    min-height: 560px;
  }

}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 8% 10% 18% 2%;
  border-radius: 32px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.18)),
    linear-gradient(180deg, rgba(181, 81, 44, 0.16), rgba(32, 88, 102, 0.12));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

@media (min-width: 640px) {
  .hero-visual::before {
    border-radius: 42px;
  }

}

.hero-card {
  position: absolute;
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 20px;
  box-shadow: var(--shadow);
  background: rgba(255, 255, 255, 0.76);
  transition: box-shadow 220ms ease, transform 220ms ease;
}

@media (min-width: 640px) {
  .hero-card {
    border-radius: 30px;
  }

}

.hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-card-main {
  inset: 0 8% 6% 0;
  transform: rotate(-3deg);
}

/* Floating animations sirf bade screens pe */
@media (min-width: 820px) {
  .hero-card-main {
    transform: rotate(-5deg);
  }

}

.hero-card-accent {
  right: 0;
  bottom: 8%;
  width: 42%;
  aspect-ratio: 0.82;
  transform: rotate(5deg);
}

@media (min-width: 820px) {
  .hero-card-accent {
    width: min(42%, 240px);
    animation: heroCardAccentFloat 7s ease-in-out infinite;
    transform: rotate(8deg);
  }

}

.hero-visual:hover .hero-card {
  box-shadow: 0 30px 72px rgba(46, 28, 18, 0.18);
}

/* ============================================
   EXPERIENCE SECTION
   ============================================ */
.experience-section {
  padding: 0 0 3rem;
}

@media (min-width: 820px) {
  .experience-section {
    padding: 0 0 4.5rem;
  }

}

.experience-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 820px) {
  .experience-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.5rem;
  }

}

.control-panel,
.steps-panel,
.content-section,
.cta-band,
.site-footer {
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft);
}

.control-panel,
.steps-panel {
  padding: 1.25rem;
  border-radius: var(--radius-lg);
}

@media (min-width: 640px) {
  .control-panel,
.steps-panel {
    padding: 2rem;
    border-radius: var(--radius-xl);
  }

}

.control-panel {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.08), transparent 12rem),
    linear-gradient(180deg, var(--surface-dark) 0%, var(--surface-dark-soft) 100%);
  color: #fef8f1;
}

.control-panel h2 {
  margin: 0 0 1.25rem;
  font-family: "Instrument Serif", serif;
  font-size: clamp(1.9rem, 7vw, 3.25rem);
  font-weight: 400;
  line-height: 1.05;
}

/* Pro box */
.pro-box {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.07);
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

@media (min-width: 640px) {
  .pro-box {
    align-items: center;
    flex-direction: row;
    padding: 1.1rem 1.15rem;
  }

}

.pro-box:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.12);
}

.pro-copy h3 {
  margin: 0;
  font-size: 1.05rem;
}

.pro-copy p {
  margin: 0.35rem 0 0;
  color: rgba(254, 248, 241, 0.74);
  line-height: 1.6;
}

/* Phone field */
.phone-field {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.25rem;
  padding: 0.45rem 0.45rem 0.45rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

@media (min-width: 640px) {
  .phone-field {
    gap: 0.95rem;
    padding: 0.55rem 0.55rem 0.55rem 1rem;
    border-radius: 999px;
  }

}

.country-code {
  color: rgba(254, 248, 241, 0.84);
  font-weight: 700;
  font-size: 0.95rem;
}

.phone-field input {
  width: 100%;
  min-width: 0;
  padding: 0.8rem 1rem;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  font-size: 1rem;
}

.phone-field input::placeholder {
  color: rgba(254, 248, 241, 0.52);
}

.phone-field input:focus {
  outline: 2px solid rgba(255, 255, 255, 0.35);
  outline-offset: 0;
}

.control-panel .button-wide {
  margin-top: 1.25rem;
}

/* Warning box */
.warning-box {
  margin-top: 1.25rem;
  padding: 1.1rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.08);
}

.warning-box h4 {
  margin: 0 0 0.45rem;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.warning-box p {
  margin: 0;
  color: rgba(254, 248, 241, 0.78);
  line-height: 1.65;
}

/* Steps panel */
.steps-panel {
  background: var(--surface);
}

.steps-panel h3 {
  font-family: "Instrument Serif", serif;
  font-size: clamp(1.8rem, 6vw, 3rem);
  font-weight: 400;
  line-height: 1.05;
}

.steps-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}

.step-card {
  position: relative;
  padding: 1.25rem 1.25rem 1.25rem 1.4rem;
  border: 1px solid rgba(181, 81, 44, 0.14);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.74);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.step-card::before {
  content: "";
  position: absolute;
  inset: 1rem auto 1rem 0;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent), transparent);
}

.step-card h4 {
  margin: 0;
  font-size: 1.05rem;
}

.step-card p {
  margin: 0.6rem 0 0;
  color: var(--muted);
  line-height: 1.65;
}

@media (min-width: 640px) {
  .step-card p {
    line-height: 1.75;
  }

}

.step-card:hover {
  transform: translateY(-3px);
  border-color: rgba(181, 81, 44, 0.24);
  box-shadow: var(--shadow-soft);
}

/* ============================================
   CTA BAND
   ============================================ */
.cta-band {
  margin-bottom: 3rem;
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(181, 81, 44, 0.14), rgba(181, 81, 44, 0.02)),
    var(--surface-solid);
}

@media (min-width: 640px) {
  .cta-band {
    margin-bottom: 4.5rem;
    padding: 1.75rem 2rem;
    border-radius: var(--radius-xl);
  }

}

.cta-band-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
}

@media (min-width: 640px) {
  .cta-band-copy {
    align-items: center;
    flex-direction: row;
  }

}

.cta-band a {
  position: relative;
  font-family: "Instrument Serif", serif;
  font-size: clamp(1.7rem, 7vw, 3rem);
  line-height: 1.05;
}

.cta-band a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.18em;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  transform: scaleX(0.28);
  transform-origin: left center;
  transition: transform 220ms ease;
}

.cta-band a:hover::after,
.cta-band a:focus-visible::after {
  transform: scaleX(1);
}

.cta-band small {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ============================================
   CONTENT SECTION
   ============================================ */
.content-section {
  margin-bottom: 1.5rem;
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  /* Performance: off-screen content skip */
  content-visibility: auto;
  contain-intrinsic-size: auto 800px;
}

@media (min-width: 640px) {
  .content-section {
    margin-bottom: 2rem;
    padding: 2rem;
    border-radius: var(--radius-xl);
  }

}

.section-heading {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.section-heading h2 {
  font-family: "Instrument Serif", serif;
  font-size: clamp(1.9rem, 7vw, 3.7rem);
  font-weight: 400;
  line-height: 1.05;
}

.section-heading h2 span {
  color: var(--accent);
}

.section-heading p {
  max-width: 68ch;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

@media (min-width: 640px) {
  .section-heading p {
    line-height: 1.8;
  }

}

/* ============================================
   TOOL GRID
   ============================================ */
.tool-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (min-width: 1080px) {
  .tool-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

}

.tool-card {
  display: grid;
  align-content: start;
  position: relative;
  overflow: hidden;
  gap: 0.9rem;
  min-height: 100%;
  padding: 1.25rem;
  border: 1px solid rgba(181, 81, 44, 0.12);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.74);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.tool-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(181, 81, 44, 0.1), transparent 45%);
  opacity: 0;
  transition: opacity 180ms ease;
}

.tool-card:hover,
.tool-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(181, 81, 44, 0.28);
  box-shadow: var(--shadow-soft);
  outline: none;
}

.tool-card:hover::before,
.tool-card:focus-visible::before {
  opacity: 1;
}

.tool-card h4 {
  margin: 0;
  font-size: 1.1rem;
}

.tool-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.tool-card span {
  align-self: end;
  margin-top: 0.45rem;
  color: var(--accent);
  font-weight: 700;
}

.tool-card span::after {
  content: " ->";
  display: inline-block;
  margin-left: 0.1rem;
  transition: transform 180ms ease;
}

.tool-card:hover span::after,
.tool-card:focus-visible span::after {
  transform: translateX(4px);
}

.tool-card-accent {
  background:
    linear-gradient(180deg, rgba(181, 81, 44, 0.08), rgba(255, 255, 255, 0.8)),
    rgba(255, 255, 255, 0.74);
}

/* ============================================
   FAQ
   ============================================ */
.faq-list {
  display: grid;
  gap: 0.9rem;
}

.faq-item {
  overflow: hidden;
  border: 1px solid rgba(181, 81, 44, 0.12);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.78);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.faq-item:hover {
  transform: translateY(-2px);
  border-color: rgba(181, 81, 44, 0.22);
}

.faq-item[open] {
  border-color: rgba(181, 81, 44, 0.24);
  box-shadow: var(--shadow-soft);
}

.faq-item summary {
  position: relative;
  padding: 1.1rem 3.5rem 1.1rem 1.1rem;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::before,
.faq-item summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 1.1rem;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
  transform: translateY(-50%);
}

.faq-item summary::after {
  transform: translateY(-50%) rotate(90deg);
  transition: transform 180ms ease;
}

.faq-item[open] summary::after {
  transform: translateY(-50%) rotate(0deg);
}

.faq-item p {
  margin: 0;
  padding: 0 1.1rem 1.1rem;
  color: var(--muted);
  line-height: 1.65;
}

@media (min-width: 640px) {
  .faq-item p {
    line-height: 1.8;
  }

}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  margin-bottom: 1.25rem;
  padding: 1.25rem;
  border-radius: var(--radius-xl);
  color: rgba(254, 248, 241, 0.9);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.06), transparent 16rem),
    linear-gradient(180deg, #1e232d 0%, #141922 100%);
  /* Performance */
  content-visibility: auto;
  contain-intrinsic-size: auto 600px;
}

@media (min-width: 640px) {
  .site-footer {
    margin-bottom: 2rem;
    padding: 2rem;
    border-radius: calc(var(--radius-xl) + 4px);
  }

}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (min-width: 1080px) {
  .footer-grid {
    grid-template-columns: 1.2fr 0.8fr 0.8fr 1fr;
  }

}

.brand-footer {
  margin-bottom: 1rem;
}

.brand-footer .brand-copy span,
.footer-description,
.footer-column a,
.footer-meta,
.social-links a {
  color: rgba(254, 248, 241, 0.7);
  overflow-wrap: anywhere;
}

.footer-description {
  max-width: 28ch;
  margin: 0 0 1rem;
  line-height: 1.75;
}

.footer-telegram {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
}

.footer-column {
  display: grid;
  align-content: start;
  gap: 0.7rem;
}

.footer-column a:hover,
.footer-column a:focus-visible,
.social-links a:hover,
.social-links a:focus-visible {
  color: #fff;
  outline: none;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  min-width: 0;
  transition: transform 180ms ease, border-color 180ms ease,
              background-color 180ms ease, color 180ms ease;
}

.social-icon {
  width: 1rem;
  height: 1rem;
}

.social-links a:hover,
.social-links a:focus-visible,
.footer-telegram:hover,
.footer-telegram:focus-visible {
  transform: translateY(-2px);
}

.social-links a:hover,
.social-links a:focus-visible {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
}

.footer-meta {
  margin: 1.5rem 0 0;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

/* ============================================
   MODAL â€” Progress
   ============================================ */
body.bomber-modal-open {
  overflow: hidden;
}

.progress-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  align-items: end;
  place-items: center;
  padding: 0.75rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

@media (min-width: 640px) {
  .progress-modal {
    align-items: center;
    padding: 1rem;
  }
}

.progress-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.progress-modal[hidden] {
  display: none;
}

.progress-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 33, 0.68);
}

@media (min-width: 640px) {
  .progress-modal__backdrop {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
}

.progress-modal__dialog {
  position: relative;
  display: grid;
  gap: 1rem;
  width: 100%;
  max-height: calc(100dvh - 1.5rem);
  overflow-y: auto;
  padding: 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  color: #fef8f1;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.09), transparent 12rem),
    linear-gradient(180deg, var(--surface-dark) 0%, var(--surface-dark-soft) 100%);
  box-shadow: var(--shadow);
}

@media (min-width: 640px) {
  .progress-modal__dialog {
    width: min(100%, 34rem);
    padding: clamp(1.15rem, 4vw, 1.8rem);
    border-radius: var(--radius-xl);
  }
}

.progress-modal__media {
  display: grid;
  place-items: center;
  min-height: 7rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.07);
}

@media (min-width: 640px) {
  .progress-modal__media {
    min-height: 12rem;
  }
}

.progress-modal__media img {
  width: auto;
  height: 5rem;
  max-height: 14rem;
  object-fit: contain;
  object-position: center;
}

@media (min-width: 640px) {
  .progress-modal__media img {
    width: min(100%, 18rem);
    height: auto;
  }
}

.progress-modal__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.progress-modal__stat {
  display: grid;
  gap: 0.45rem;
  min-height: 7rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.08);
}

.progress-modal__label {
  color: rgba(254, 248, 241, 0.72);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.progress-modal__value {
  font-size: clamp(1.8rem, 7vw, 3rem);
  font-weight: 700;
  line-height: 1;
}

.progress-modal__close {
  width: 100%;
}

.progress-modal__encrypted {
  display: grid;
  gap: 0.55rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.08);
}

.progress-modal__encrypted code {
  display: block;
  width: 100%;
  padding: 0.85rem 0.9rem;
  overflow-wrap: anywhere;
  border-radius: var(--radius-sm);
  color: #fff8ef;
  background: rgba(0, 0, 0, 0.16);
}

.progress-modal__encrypted.is-error code {
  color: #ffe0d6;
}

.progress-modal__premium {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(245, 217, 150, 0.18), rgba(197, 103, 52, 0.08)),
    rgba(255, 255, 255, 0.07);
}

@media (min-width: 640px) {
  .progress-modal__premium {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

.progress-modal__premium h3 {
  margin: 0;
  font-size: 1.05rem;
}

.progress-modal__premium p {
  margin: 0.35rem 0 0;
  color: rgba(254, 248, 241, 0.74);
  line-height: 1.55;
}

.progress-modal__premium-button {
  min-height: 44px;
  padding-inline: 1.1rem;
  width: 100%;
}

@media (min-width: 640px) {
  .progress-modal__premium-button {
    width: auto;
  }
}

.progress-modal .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html[data-theme=dark] .progress-modal__backdrop {
  background: rgba(3, 8, 14, 0.78);
}

/* ============================================
   MODAL — FINAL VISIBILITY OVERRIDE
   ============================================ */

.progress-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 9999 !important;
  display: grid;
  place-items: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.progress-modal.is-open {
  display: grid !important;
  position: fixed !important;
  inset: 0 !important;
  z-index: 9999 !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.progress-modal[hidden] {
  display: none !important;
}

.progress-modal__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(17, 24, 33, 0.68);
}

.progress-modal__dialog {
  position: relative;
  z-index: 1;
}

@media (min-width: 640px) {
  .progress-modal {
    padding: 1rem;
  }
}
