/* ==========================================================================
   DARA — NFC CARD 3D Premium
   Design tokens: near-black base, electric-blue signal accent,
   warm gold echo from the brand mark, Sora display / Inter body.
   Signature element: the "tap pulse" — concentric rings that fire on
   hover/focus across cards, buttons and the hero, echoing an NFC tap.
   ========================================================================== */

:root {
  --black: #0b0c0f;
  --panel: #131519;
  --panel-2: #191c22;
  --line: #262a33;
  --white: #f4f5f7;
  --gray: #8b909c;
  --gray-dim: #5b606b;
  --blue: #2f6bff;
  --blue-bright: #5b8cff;
  --gold: #d4af6a;

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 9px;

  --font-display: "Sora", sans-serif;
  --font-body: "Inter", sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; color: var(--gray); }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: 16px;
}
/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--blue-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--blue);
  color: #fff;
  padding: 10px 16px;
  z-index: 200;
}
.skip-link:focus { left: 16px; top: 16px; }

/* ---------- Tap-pulse signature ---------- */
@keyframes tap-pulse {
  0% { transform: scale(0.6); opacity: 0.55; }
  100% { transform: scale(2.6); opacity: 0; }
}
.tap-signal {
  position: relative;
  display: inline-flex;
}
.tap-signal::before,
.tap-signal::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--blue-bright);
  opacity: 0;
  pointer-events: none;
}
.tap-signal:hover::before, .tap-signal:focus-visible::before {
  animation: tap-pulse 1s var(--ease);
}
.tap-signal:hover::after, .tap-signal:focus-visible::after {
  animation: tap-pulse 1s var(--ease) 0.18s;
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(11, 12, 15, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.02em;
}
.brand img { height: 34px; width: 34px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  font-size: 14px;
  color: var(--gray);
  transition: color 0.2s var(--ease);
  position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; bottom: -20px;
  width: 100%; height: 2px;
  background: var(--blue-bright);
}
.nav-cta {
  background: var(--blue);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.nav-cta:hover { background: var(--blue-bright); transform: translateY(-1px); }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle {
    display: block;
    background: none; border: 1px solid var(--line);
    color: var(--white); border-radius: 8px;
    width: 40px; height: 40px; font-size: 18px;
  }
  .nav-links.open {
    display: flex;
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--black);
    flex-direction: column;
    padding: 24px;
    border-bottom: 1px solid var(--line);
    gap: 20px;
  }
  .nav-links a.active::after { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-bright); transform: translateY(-2px); }
.btn-secondary { background: transparent; color: var(--white); border: 1px solid var(--line); }
.btn-secondary:hover { border-color: var(--blue-bright); color: var(--blue-bright); }
.btn-lg { padding: 18px 36px; font-size: 16px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; }

/* ---------- Hero ---------- */
.hero {
  padding: 172px 0 100px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(600px 400px at 85% 0%, rgba(47,107,255,0.16), transparent 60%),
    var(--black);
}
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(40px, 5.4vw, 68px);
  margin-bottom: 22px;
}
.hero h1 .accent { color: var(--blue-bright); }
.hero .lead { font-size: 18px; max-width: 480px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-trust { display: flex; gap: 28px; flex-wrap: wrap; }
.hero-trust div { font-family: var(--font-display); font-size: 22px; color: var(--white); }
.hero-trust span { display: block; font-family: var(--font-body); font-size: 12px; color: var(--gray-dim); margin-top: 2px; }

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-card-frame {
  position: relative;
  width: 100%;
  max-width: 380px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.7);
  animation: float 6s ease-in-out infinite;
}
.hero-card-frame img { width: 100%; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
.hero-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--line);
  inset: -40px;
  z-index: -1;
}

/* ---------- Sections ---------- */
section { padding: 100px 0; }
.section-head { max-width: 620px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); }
.section-alt { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Quick product preview on homepage */
.quick-product {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
}
.quick-product-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
}
.feature-list { list-style: none; margin: 24px 0 32px; padding: 0; display: grid; gap: 12px; }
.feature-list li { display: flex; gap: 10px; color: var(--white); font-size: 15px; }
.feature-list li::before { content: "→"; color: var(--blue-bright); }

/* ---------- Benefit cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 30px;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.card:hover { border-color: var(--blue); transform: translateY(-4px); }
.card .icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: rgba(47,107,255,0.12);
  color: var(--blue-bright);
  margin-bottom: 18px;
  font-size: 20px;
}
.card h3 { font-size: 17px; color: var(--white); margin-bottom: 8px; }
.card p { font-size: 14px; margin-bottom: 0; }

/* ---------- Gallery ---------- */
.masonry {
  columns: 3 220px;
  column-gap: 20px;
}
.masonry figure {
  break-inside: avoid;
  margin: 0 0 20px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
}
.masonry img { width: 100%; display: block; transition: transform 0.4s var(--ease); }
.masonry figure:hover img { transform: scale(1.05); }

/* ---------- Product page ---------- */
.product-hero {
  padding: 150px 0 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: flex-start;
}
.product-gallery-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  margin-bottom: 16px;
  position: relative;
  background: var(--panel);
  touch-action: pan-y;
}
.product-image-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}
.product-image-open img {
  width: 100%;
  height: auto;
}
.gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0 0 4px;
  border: 1px solid rgba(244,245,247,0.2);
  border-radius: 50%;
  background: rgba(11,12,15,0.72);
  color: var(--white);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}
.gallery-arrow:hover { background: var(--blue); }
.gallery-previous { left: 14px; }
.gallery-next { right: 14px; }
.gallery-hint {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--gray-dim);
}
.badge {
  position: absolute;
  top: 16px; left: 16px;
  background: var(--gold);
  color: #17140d;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 7px 14px;
  border-radius: 999px;
  z-index: 2;
}
.thumb-row { display: flex; gap: 12px; }
.thumb-row button {
  width: 76px; height: 76px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  padding: 0;
  background: var(--panel);
  cursor: pointer;
}
.thumb-row button.active { border-color: var(--blue-bright); }
.thumb-row img { width: 100%; height: 100%; object-fit: cover; }
.image-lightbox {
  position: fixed;
  width: min(96vw, 1200px);
  height: min(94dvh, 1000px);
  max-width: none;
  max-height: none;
  padding: 58px 72px 64px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--black);
  color: var(--white);
}
.image-lightbox::backdrop { background: rgba(0,0,0,0.92); }
.image-lightbox > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
}
.lightbox-close {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 4;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel-2);
  color: var(--white);
  font-size: 28px;
  cursor: pointer;
}
.lightbox-count {
  position: absolute;
  bottom: 12px;
  left: 0;
  width: 100%;
  margin: 0;
  text-align: center;
  color: var(--gray);
  font-size: 14px;
}
.image-lightbox .gallery-previous { left: 12px; }
.image-lightbox .gallery-next { right: 12px; }

.product-info h1 { font-size: clamp(30px, 4vw, 42px); }
.price-tag {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--white);
  display: flex;
  align-items: flex-end;
  gap: 4px;
  margin: 10px 0 24px;
}
.price-tag .whole { font-size: 52px; line-height: 1; }
.price-tag .fraction { font-size: 22px; line-height: 1.4; color: var(--blue-bright); }
.price-tag .currency { font-size: 18px; color: var(--gray); margin-left: 6px; }

.qty-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 28px 0;
}
.qty-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.qty-control button {
  width: 42px; height: 42px;
  background: none; border: none;
  color: var(--white); font-size: 18px; cursor: pointer;
}
.qty-control button:hover { color: var(--blue-bright); }
.qty-control span { min-width: 34px; text-align: center; font-family: var(--font-display); }

.product-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }

.trust-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.trust-row div { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--gray); }
.trust-row .dot { color: var(--blue-bright); flex-shrink: 0; }

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.faq-item summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--white);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--blue-bright); font-size: 22px; transition: transform 0.2s var(--ease); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin-top: 12px; font-size: 14.5px; }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 18px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { display: block; font-size: 13px; color: var(--gray); margin-bottom: 8px; }
input, textarea, select {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color 0.2s var(--ease);
}
input:focus, textarea:focus, select:focus { border-color: var(--blue-bright); outline: none; }
textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 13px; color: var(--gray-dim); margin-top: 10px; }

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
}
.contact-info-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.contact-info-card a { color: var(--blue-bright); }
.contact-line { display: flex; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-line:last-child { border-bottom: none; }

/* ---------- CTA band ---------- */
.cta-band {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel), var(--black));
  text-align: center;
}
.cta-band h2 { font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 14px; }
.cta-band p { max-width: 460px; margin: 0 auto 30px; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 28px;
  background: var(--black);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.7fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { font-size: 13.5px; max-width: 260px; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gray-dim); margin-bottom: 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { font-size: 14px; color: var(--gray); }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--gray-dim);
  letter-spacing: 0.06em;
}

/* ---------- Utility / status pages ---------- */
.status-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}
.status-page .thank-you-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 10vw, 76px);
  line-height: 1;
  margin-bottom: 20px;
  color: var(--blue-bright);
}
.status-icon {
  width: 68px; height: 68px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  margin: 0 auto 24px;
}
.status-icon.success { background: rgba(47,107,255,0.14); color: var(--blue-bright); }
.status-icon.cancel { background: rgba(139,144,156,0.14); color: var(--gray); }

/* ---------- Reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero .container, .quick-product, .product-hero, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .masonry { columns: 2 200px; }
}
@media (max-width: 620px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .form-row-2 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .masonry { columns: 1; }
  .trust-row { grid-template-columns: 1fr; }
  section { padding: 72px 0; }
  .hero { padding-top: 140px; }
  .image-lightbox {
    width: 100vw;
    height: 100dvh;
    padding: 58px 50px 60px;
    border: 0;
    border-radius: 0;
  }
}
