/* features.css — DigitalXCards Features Page */
:root {
  --bg-dark: #0d0d2b;
  --bg-dark2: #0f0f35;
  --bg-light: #f4f5f7;
  --blue: #2563eb;
  --blue-hover: #1d4ed8;
  --blue-light: rgba(37, 99, 235, 0.1);
  --purple: #6d28d9;
  --gradient: linear-gradient(135deg, #1a1a4e 0%, #2d1b6e 50%, #1e3a8a 100%);
  --gradient2: linear-gradient(135deg, #6d28d9 0%, #2563eb 100%);
  --text-dark: #1e1b4b;
  --text-gray: #6b7280;
  --border-dark: rgba(255, 255, 255, 0.08);
  --border-light: #e5e7eb;
  --radius: 14px;
  --radius-sm: 8px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  background: var(--bg-light);
  color: var(--text-dark);
  overflow-x: hidden;
}

/* ── HERO ───────────────────────────────────────────────────────────────── */
.hero {
  background: var(--gradient);
  padding: 80px 48px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 70% at 75% 20%, rgba(109, 40, 217, 0.45) 0%, transparent 60%),
    radial-gradient(ellipse 45% 55% at 25% 80%, rgba(37, 99, 235, 0.3) 0%, transparent 55%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #93c5fd;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  color: white;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.hero h1 span {
  color: #93c5fd;
}

.hero p {
  color: rgba(255, 255, 255, 0.68);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto 34px;
  position: relative;
  z-index: 1;
}

.hero-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.btn-blue {
  background: var(--blue);
  color: white;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 12px 26px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: none;
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
}

.btn-blue:hover {
  background: var(--blue-hover);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 1.5px solid rgba(255, 255, 255, 0.38);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 12px 26px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
  display: inline-block;
}

.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.05);
}

/* ── STATS ───────────────────────────────────────────────────────────────── */
.stats-bar {
  background: var(--bg-dark2);
  border-bottom: 1px solid var(--border-dark);
}

.stats-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat {
  padding: 26px 28px;
  text-align: center;
  border-right: 1px solid var(--border-dark);
}

.stat:last-child {
  border-right: none;
}

.stat-val {
  font-size: 1.6rem;
  font-weight: 800;
  color: white;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}

.stat-val b {
  color: #60a5fa;
}

.stat-lbl {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
}

/* ── SECTIONS ─────────────────────────────────────────────────────────────── */
.sec-light {
  background: var(--bg-light);
  padding: 80px 48px;
}

.sec-white {
  background: white;
  padding: 80px 48px;
}

.sec-dark {
  background: var(--gradient);
  padding: 80px 48px;
  position: relative;
  overflow: hidden;
}

.sec-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 65% 60% at 70% 30%, rgba(109, 40, 217, 0.38) 0%, transparent 55%);
  pointer-events: none;
}

.sec-url {
  background: #f0f4ff;
  padding: 72px 48px;
  border-top: 1px solid #dbeafe;
  border-bottom: 1px solid #dbeafe;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.sec-head {
  text-align: center;
  margin-bottom: 52px;
}

.eyebrow {
  display: inline-block;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.eyebrow-lt {
  color: #93c5fd;
}

.sec-title {
  font-size: clamp(1.65rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.5px;
  line-height: 1.15;
}

.sec-title-wh {
  font-size: clamp(1.65rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: white;
  letter-spacing: -0.5px;
  line-height: 1.15;
}

.sec-sub {
  color: var(--text-gray);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-top: 10px;
}

.sec-sub-lt {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-top: 10px;
}

/* ── FEATURE GRID ────────────────────────────────────────────────────────── */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.fc {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: box-shadow 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;
}

.fc:hover {
  box-shadow: 0 6px 28px rgba(37, 99, 235, 0.1);
  transform: translateY(-2px);
}

.fc::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient2);
  opacity: 0;
  transition: opacity 0.2s;
}

.fc:hover::before {
  opacity: 1;
}

.fc-wide {
  grid-column: span 2;
}

.fc-num {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 0.65rem;
  font-weight: 700;
  color: #d1d5db;
  letter-spacing: 1px;
}

.fc-ico {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 18px;
}

.fc h3 {
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 9px;
}

.fc p {
  font-size: 0.85rem;
  color: var(--text-gray);
  line-height: 1.65;
}

.fc-tag {
  display: inline-block;
  margin-top: 14px;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 11px;
  border-radius: 100px;
}

.ib {
  background: rgba(37, 99, 235, 0.09);
}

.ip {
  background: rgba(109, 40, 217, 0.09);
}

.ig {
  background: rgba(16, 185, 129, 0.09);
}

.io {
  background: rgba(245, 158, 11, 0.09);
}

.ir {
  background: rgba(239, 68, 68, 0.09);
}

.it {
  background: rgba(20, 184, 166, 0.09);
}

.ii {
  background: rgba(99, 102, 241, 0.09);
}

/* ── DEMO SECTION ────────────────────────────────────────────────────────── */
.demo-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 60px;
  align-items: center;
}

.demo-text h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  color: white;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 14px;
}

.demo-text p {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.9rem;
  line-height: 1.7;
}

.chklist {
  list-style: none;
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.chklist li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 0.86rem;
}

.chk {
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.18);
  border: 1px solid rgba(96, 165, 250, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #60a5fa;
  font-size: 0.58rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.chklist li strong {
  color: white;
  font-weight: 600;
  display: block;
  font-size: 0.86rem;
}

.chklist li span {
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.78rem;
}

/* ── PHONE MOCKUP ─────────────────────────────────────────────────────────── */
.phone-wrap {
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.phone {
  width: 260px;
  background: #0f1035;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.55);
}

.ph-head {
  background: linear-gradient(150deg, #1e1b6e 0%, #2563eb 100%);
  padding: 26px 18px 18px;
  text-align: center;
}

.ph-ava {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.38);
  margin: 0 auto 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
}

.ph-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: white;
}

.ph-role {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.62);
  margin-top: 2px;
}

.ph-tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 9px;
}

.ph-tag {
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.6rem;
  padding: 2px 8px;
  border-radius: 100px;
}

.ph-body {
  padding: 14px;
}

.ph-acts {
  display: flex;
  gap: 7px;
  margin-bottom: 9px;
}

.pa {
  flex: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 9px;
  padding: 9px 5px;
  text-align: center;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.82);
}

.pa-i {
  font-size: 0.95rem;
  display: block;
  margin-bottom: 2px;
}

.ph-row {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 9px;
  padding: 9px 11px;
  margin-bottom: 7px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.pr-i {
  font-size: 0.88rem;
}

.pr-t {
  flex: 1;
}

.pr-title {
  font-size: 0.74rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
}

.pr-sub {
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.4);
}

.pr-arr {
  color: rgba(255, 255, 255, 0.28);
  font-size: 0.75rem;
}

.ph-save {
  width: 100%;
  padding: 10px;
  background: var(--blue);
  border: none;
  border-radius: 9px;
  color: white;
  font-weight: 700;
  font-size: 0.78rem;
  margin-top: 3px;
  cursor: pointer;
}

/* ── HOW IT WORKS ─────────────────────────────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.step-card {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 34px 26px;
  text-align: center;
  transition: box-shadow 0.2s;
}

.step-card:hover {
  box-shadow: 0 6px 28px rgba(37, 99, 235, 0.1);
}

.step-badge {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gradient2);
  color: white;
  font-size: 0.82rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.step-emo {
  font-size: 1.9rem;
  margin-bottom: 14px;
}

.step-card h3 {
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 9px;
}

.step-card p {
  font-size: 0.83rem;
  color: var(--text-gray);
  line-height: 1.65;
}

.step-pill {
  display: inline-block;
  margin-top: 14px;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 13px;
  border-radius: 100px;
}

/* ── URL SECTION ──────────────────────────────────────────────────────────── */
.url-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 44px;
}

.url-card {
  background: white;
  border: 1.5px solid #dbeafe;
  border-radius: var(--radius);
  padding: 20px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.url-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.08);
}

.url-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.url-b {
  color: var(--blue);
  font-weight: 700;
  font-size: 0.88rem;
}

.url-s {
  color: var(--text-gray);
  font-size: 0.88rem;
}

.url-lbl {
  font-size: 0.68rem;
  color: #9ca3af;
  margin-top: 2px;
}

/* ── CTA ──────────────────────────────────────────────────────────────────── */
.cta-sec {
  background: var(--gradient);
  text-align: center;
  padding: 90px 48px;
  position: relative;
  overflow: hidden;
}

.cta-sec::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 75% at 50% 50%, rgba(109, 40, 217, 0.4) 0%, transparent 60%);
  pointer-events: none;
}

.cta-sec h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: white;
  letter-spacing: -0.5px;
  line-height: 1.15;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.cta-sec p {
  color: rgba(255, 255, 255, 0.62);
  max-width: 420px;
  margin: 0 auto 32px;
  font-size: 0.93rem;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.cta-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* ── FOOTER ──────────────────────────────────────────────────────────────── */
footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--border-dark);
  padding: 26px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

footer p {
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.78rem;
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.78rem;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: rgba(255, 255, 255, 0.75);
}

/* ── SCROLL ANIMATIONS ────────────────────────────────────────────────────── */
.fu {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fu.vis {
  opacity: 1;
  transform: translateY(0);
}

.d1 {
  transition-delay: 0.1s;
}

.d2 {
  transition-delay: 0.2s;
}

.d3 {
  transition-delay: 0.3s;
}

/* ── RESPONSIVE ───────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  nav {
    padding: 0 18px;
  }

  .nav-links {
    gap: 14px;
  }

  .hero,
  .sec-light,
  .sec-white,
  .sec-dark,
  .sec-url,
  .cta-sec {
    padding-left: 18px;
    padding-right: 18px;
  }

  .feat-grid,
  .steps-grid,
  .url-grid {
    grid-template-columns: 1fr;
  }

  .stats-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .fc-wide {
    grid-column: span 1;
  }

  .demo-layout {
    grid-template-columns: 1fr;
  }

  .phone-wrap {
    margin-top: 32px;
  }

  footer {
    flex-direction: column;
    text-align: center;
    padding: 20px 18px;
  }

  .stat {
    border-right: none;
    border-bottom: 1px solid var(--border-dark);
  }
}

@media (max-width: 480px) {
  .stats-inner {
    grid-template-columns: 1fr 1fr;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  nav .nav-links {
    display: none;
  }
}