/* ============================================================
   Bit Kapteyn — main.css
   Responsive styles for all screen sizes
   Breakpoints: xs <480, sm 480-639, md 640-767,
                lg 768-1023, xl 1024-1279, 2xl 1280+
   ============================================================ */

/* ── Base reset ─────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  overflow-x: hidden;
  min-width: 320px;
}

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

/* ── Scroll reveal ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Disable reveal on reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── Gradient text (cross-browser) ─────────────────────── */
.text-gradient-brand {
  background: linear-gradient(90deg, #a97eff, #e84393);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Mono font ──────────────────────────────────────────── */
.font-mono {
  font-family: "DM Mono", "Fira Code", "Cascadia Code", monospace;
}

/* ── Smooth anchor scroll offset for fixed nav ─────────── */
:target {
  scroll-margin-top: 80px;
}

/* ── Vault entry hover ──────────────────────────────────── */
.vault-entry {
  transition: background 0.15s ease;
}

/* ============================================================
   NAV
   ============================================================ */
#site-nav {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Hide nav links on mobile; show hamburger placeholder */
@media (max-width: 767px) {
  #site-nav .nav-links {
    display: none;
  }
  #site-nav {
    height: 56px !important;
  }
  :target {
    scroll-margin-top: 56px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  #site-nav {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (min-width: 1024px) {
  #site-nav {
    padding-left: 4rem;
    padding-right: 4rem;
  }
}

/* ============================================================
   HERO
   ============================================================ */
.hero-section {
  padding-top: 80px;
  padding-bottom: 60px;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Headline clamp */
.hero-section h1 {
  font-size: clamp(36px, 9vw, 96px);
  letter-spacing: clamp(-1px, -0.03em, -3px);
}

/* Sub text */
.hero-section .hero-sub {
  font-size: clamp(15px, 2.5vw, 18px);
  max-width: 100%;
}

/* Action buttons — stack on mobile */
.hero-actions {
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}
.hero-actions a {
  text-align: center;
  justify-content: center;
}

@media (min-width: 480px) {
  .hero-actions {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
  }
  .hero-actions a {
    text-align: left;
    justify-content: flex-start;
  }
}

/* Trust stats — wrap on small screens */
.hero-trust {
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  justify-content: center;
}
.hero-trust .trust-divider {
  display: none;
}

@media (min-width: 640px) {
  .hero-trust .trust-divider {
    display: block;
  }
}

/* Vault mockup */
.vault-mockup {
  margin-top: 3rem;
  border-radius: 12px;
}

@media (min-width: 480px) {
  .hero-section {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (min-width: 768px) {
  .hero-section {
    padding-top: 100px;
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

@media (min-width: 1024px) {
  .hero-section {
    padding-top: 120px;
    padding-left: 4rem;
    padding-right: 4rem;
  }
}

/* ============================================================
   SECTIONS — shared padding
   ============================================================ */
.section-pad {
  padding-top: 4rem;
  padding-bottom: 4rem;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

@media (min-width: 480px) {
  .section-pad {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (min-width: 768px) {
  .section-pad {
    padding-top: 5rem;
    padding-bottom: 5rem;
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

@media (min-width: 1024px) {
  .section-pad {
    padding-top: 7rem;
    padding-bottom: 7rem;
    padding-left: 4rem;
    padding-right: 4rem;
  }
}

/* Section headings */
.section-title {
  font-size: clamp(28px, 5vw, 56px);
  letter-spacing: clamp(-0.5px, -0.025em, -1.5px);
  line-height: 1.05;
}

/* Section sub */
.section-sub {
  font-size: clamp(15px, 2vw, 17px);
}

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

@media (min-width: 540px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.feature-card {
  padding: 1.75rem 1.5rem;
}

@media (min-width: 768px) {
  .feature-card {
    padding: 2.25rem 2rem;
  }
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .how-grid {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
  }
}

/* Visual panel — full width on mobile, constrained on desktop */
.how-visual {
  padding: 1.75rem;
  border-radius: 16px;
}

@media (min-width: 768px) {
  .how-visual {
    padding: 2.5rem;
  }
}

/* ============================================================
   SECURITY
   ============================================================ */
.security-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .security-grid {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
  }
}

.security-badges {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 480px) {
  .security-badges {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================================
   PRICING GRID
   ============================================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

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

@media (min-width: 1024px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.price-card {
  padding: 2rem 1.75rem;
}

@media (min-width: 768px) {
  .price-card {
    padding: 2.5rem 2.25rem;
  }
}

/* Price amount responsive */
.price-amount {
  font-size: clamp(36px, 6vw, 52px);
}

/* ============================================================
   TESTIMONIALS GRID
   ============================================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

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

@media (min-width: 1024px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  padding: 4rem 1.25rem;
  text-align: center;
}

.cta-band h2 {
  font-size: clamp(28px, 5vw, 60px);
  letter-spacing: clamp(-0.5px, -0.03em, -2px);
}

.cta-band p {
  font-size: clamp(15px, 2vw, 17px);
}

.cta-band-actions {
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}
.cta-band-actions a {
  text-align: center;
}

@media (min-width: 480px) {
  .cta-band {
    padding: 5rem 2rem;
  }
  .cta-band-actions {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
  }
  .cta-band-actions a {
    text-align: left;
  }
}

@media (min-width: 768px) {
  .cta-band {
    padding: 6rem 3rem;
  }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer-inner {
  padding: 3rem 1.25rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 480px) {
  .footer-inner {
    padding: 3.5rem 2rem;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .footer-inner {
    padding: 4rem 3rem;
  }
}

@media (min-width: 1024px) {
  .footer-inner {
    padding: 4rem;
  }
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3.5rem;
  }
}

.footer-bottom {
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* ============================================================
   TICKER
   ============================================================ */
.ticker-band {
  height: 36px;
}

@media (max-width: 479px) {
  .ticker-band {
    height: 30px;
  }
  .ticker-item {
    font-size: 10px;
    padding: 0 20px;
  }
}

/* ============================================================
   BLOBS — reduce on mobile for performance
   ============================================================ */
@media (max-width: 639px) {
  .hero-blob {
    filter: blur(50px) !important;
    opacity: 0.4 !important;
  }
  .hero-blob-1 {
    width: 280px !important;
    height: 280px !important;
  }
  .hero-blob-2 {
    width: 200px !important;
    height: 200px !important;
  }
  .hero-blob-3 {
    width: 180px !important;
    height: 180px !important;
  }
}

/* ============================================================
   UTILITIES
   ============================================================ */

/* Max-width containers */
.container-xl {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}
.container-lg {
  max-width: 1024px;
  margin-left: auto;
  margin-right: auto;
}
.container-md {
  max-width: 768px;
  margin-left: auto;
  margin-right: auto;
}

/* Hide custom cursor on touch devices */
@media (hover: none) and (pointer: coarse) {
  #cursor,
  #cursor-ring {
    display: none !important;
  }
  body {
    cursor: auto;
  }
}

/* Button tap targets — minimum 44px for accessibility */
a,
button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

nav a {
  min-height: unset;
  display: inline;
}

/* Prevent text overflow on small screens */
h1,
h2,
h3,
h4 {
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}
