/* ==========================================================================
   CARDLY DESIGN SYSTEM - WEB PORTAL
   Official Web Tokens & Styles for cardly.suntree.my.id
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Palette Tokens from DESAIN.md */
  --lime: #C8F45A;
  --lime-hover: #b8e647;
  --lime-glow: rgba(200, 244, 90, 0.2);
  --lime-glow-strong: rgba(200, 244, 90, 0.4);
  
  --ink: #0d0d0f;
  --ink-surface: #141417;
  --charcoal: #1d1d22;
  --charcoal-hover: #26262c;
  
  --border: rgba(255, 255, 255, 0.09);
  --border-active: rgba(200, 244, 90, 0.35);
  
  --text-primary: #FFFFFF;
  --text-secondary: #9E9EA7;
  --text-muted: #6B6B76;
  --text-dark: #121214;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  
  --shadow-card: 0 16px 36px -12px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px -10px var(--lime-glow);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--ink);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Background Ambient Lighting */
.ambient-glow {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 600px;
  background: radial-gradient(circle at 50% 0%, var(--lime-glow) 0%, rgba(13, 13, 15, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.ambient-glow-bottom {
  position: fixed;
  bottom: 0;
  right: 10%;
  width: 600px;
  height: 400px;
  background: radial-gradient(circle at 50% 100%, rgba(200, 244, 90, 0.08) 0%, rgba(13, 13, 15, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

/* Container */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Navigation Bar */
header.site-header {
  position: sticky;
  top: 16px;
  z-index: 100;
  margin-bottom: 40px;
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: rgba(20, 20, 23, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-icon {
  width: 36px;
  height: 36px;
  background: var(--lime);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 20px;
  color: var(--text-dark);
  box-shadow: 0 4px 12px var(--lime-glow);
}

.brand-logo-img {
  width: 36px;
  height: 36px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(200, 244, 90, 0.25));
}

.brand-name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  background: var(--lime);
  color: var(--text-dark);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px var(--lime-glow);
}

.nav-btn:hover {
  background: var(--lime-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--lime-glow-strong);
}

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

.nav-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  color: var(--text-primary);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--lime);
}

.nav-toggle .icon-close {
  display: none;
}

.nav-shell.menu-open .nav-toggle .icon-menu {
  display: none;
}

.nav-shell.menu-open .nav-toggle .icon-close {
  display: block;
}

/* Hero Section */
.hero-section {
  padding: 60px 0 80px;
  text-align: center;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(200, 244, 90, 0.1);
  border: 1px solid rgba(200, 244, 90, 0.25);
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--lime);
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-title {
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
  background: linear-gradient(180deg, #FFFFFF 0%, #A5A5AA 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 36px;
  font-weight: 400;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--lime);
  color: var(--text-dark);
  font-weight: 700;
  font-size: 15px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 8px 24px var(--lime-glow);
}

.btn-primary:hover {
  background: var(--lime-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px var(--lime-glow-strong);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  background: var(--charcoal);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: var(--charcoal-hover);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Floating Interactive Card Showcase */
.showcase-stage {
  max-width: 820px;
  margin: 0 auto 80px;
  perspective: 1200px;
}

.card-mockup-wrapper {
  background: linear-gradient(135deg, rgba(29, 29, 34, 0.7) 0%, rgba(20, 20, 23, 0.8) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-card), var(--shadow-glow);
  position: relative;
  overflow: hidden;
}

.card-visual-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.sample-card {
  padding: 24px;
  border-radius: 18px;
  position: relative;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 150px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sample-card:hover {
  transform: translateY(-4px) scale(1.02);
}

.card-lime {
  background: linear-gradient(135deg, #C8F45A 0%, #95C928 100%);
  color: var(--text-dark);
}

.card-ink {
  background: linear-gradient(135deg, #2A2A30 0%, #17171A 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-ocean {
  background: linear-gradient(135deg, #1E3A8A 0%, #0F172A 100%);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-issuer {
  font-weight: 700;
  font-size: 14px;
}

.card-chip {
  width: 28px;
  height: 20px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.card-lime .card-chip {
  background: rgba(0, 0, 0, 0.15);
  border-color: rgba(0, 0, 0, 0.2);
}

.card-number {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 2px;
  font-variant-numeric: tabular-nums;
  margin: 16px 0;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  opacity: 0.85;
  text-transform: uppercase;
  font-weight: 600;
}

/* Features Grid */
.section-heading-wrap {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 50px;
}

.section-tag {
  color: var(--lime);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  display: block;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.8px;
  margin-bottom: 16px;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 16px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 100px;
}

.feature-card {
  background: var(--ink-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-active);
  box-shadow: 0 16px 32px -10px rgba(0, 0, 0, 0.5), 0 0 20px -5px var(--lime-glow);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(200, 244, 90, 0.12);
  color: var(--lime);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 22px;
}

.feature-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.feature-desc {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Security Commitment Banner */
.security-banner {
  background: linear-gradient(135deg, rgba(30, 30, 36, 0.9) 0%, rgba(20, 20, 24, 0.95) 100%);
  border: 1px solid rgba(200, 244, 90, 0.25);
  border-radius: var(--radius-lg);
  padding: 44px;
  margin-bottom: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.security-content {
  flex: 1;
  min-width: 300px;
}

.security-badges {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.badge-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
}

.badge-item svg {
  color: var(--lime);
}

/* Legal Documents Container (Privacy & Terms) */
.legal-container {
  max-width: 840px;
  margin: 0 auto 80px;
  background: var(--ink-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 50px 40px;
}

.legal-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 24px;
  margin-bottom: 36px;
}

.legal-header h1 {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.8px;
  margin-bottom: 8px;
}

.legal-meta {
  color: var(--text-muted);
  font-size: 14px;
}

.legal-body h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 32px 0 14px;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

.legal-body h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 20px 0 10px;
  color: var(--lime);
}

.legal-body p {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 16px;
  line-height: 1.7;
}

.legal-body ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.legal-body ul li {
  margin-bottom: 8px;
  font-size: 14.5px;
}

.callout-box {
  background: rgba(200, 244, 90, 0.08);
  border-left: 4px solid var(--lime);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 18px 22px;
  margin: 24px 0;
}

.callout-box p {
  color: var(--text-primary);
  margin-bottom: 0;
  font-size: 14.5px;
}

/* Footer */
footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 36px;
  color: var(--text-muted);
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  color: var(--text-secondary);
  max-width: 320px;
  margin-top: 12px;
  font-size: 14px;
}

.footer-col h4 {
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-col ul a:hover {
  color: var(--lime);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 24px;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 16px;
}

/* Responsive Breakpoints - Mobile & Tablet */
@media (max-width: 768px) {
  .container {
    padding: 0 18px;
  }

  header.site-header {
    top: 10px;
    margin-bottom: 28px;
  }

  .nav-shell {
    padding: 10px 16px;
    position: relative;
  }

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

  .nav-links {
    display: none;
  }

  .nav-shell.menu-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    background: rgba(20, 20, 24, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 16px;
    gap: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
    z-index: 1000;
    animation: menu-slide 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  @keyframes menu-slide {
    from {
      opacity: 0;
      transform: translateY(-8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .nav-shell.menu-open .nav-links li {
    width: 100%;
  }

  .nav-shell.menu-open .nav-links a {
    display: block;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.2s ease;
  }

  .nav-shell.menu-open .nav-links a:hover {
    background: rgba(200, 244, 90, 0.1);
    color: var(--lime);
    border-color: rgba(200, 244, 90, 0.3);
  }

  /* Hero Section */
  .hero-section {
    padding: 30px 0 45px;
  }

  .badge-pill {
    font-size: 11px;
    padding: 6px 14px;
    max-width: 100%;
    white-space: normal;
    line-height: 1.4;
    text-align: center;
  }

  .hero-title {
    font-size: clamp(30px, 8vw, 44px);
    line-height: 1.18;
    margin-bottom: 14px;
    letter-spacing: -1px;
  }

  .hero-subtitle {
    font-size: 15px;
    margin-bottom: 24px;
    line-height: 1.6;
    padding: 0 4px;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 12px;
    margin-bottom: 40px;
  }

  .hero-cta-group .btn-primary,
  .hero-cta-group .btn-secondary {
    width: 100%;
    justify-content: center;
    padding: 15px 20px;
    font-size: 15px;
  }

  /* Showcase Stage */
  .showcase-stage {
    margin-bottom: 40px;
    perspective: none;
  }

  .card-mockup-wrapper {
    padding: 18px 16px;
    border-radius: 20px;
  }

  .card-visual-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .sample-card {
    padding: 18px 16px;
    min-height: 135px;
    border-radius: 14px;
  }

  .card-number {
    font-size: 15px;
    letter-spacing: 1.5px;
    margin: 12px 0;
  }

  /* Features Grid */
  .section-heading-wrap {
    margin-bottom: 32px;
  }

  .section-title {
    font-size: clamp(24px, 6vw, 32px);
  }

  .section-desc {
    font-size: 14.5px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 60px;
  }

  .feature-card {
    padding: 24px 20px;
    border-radius: 20px;
  }

  /* Security Banner */
  .security-banner {
    padding: 26px 20px;
    border-radius: 20px;
    margin-bottom: 50px;
    flex-direction: column;
    gap: 20px;
  }

  .security-content {
    min-width: unset;
    width: 100%;
  }

  .security-badges {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  .badge-item {
    width: 100%;
    font-size: 13px;
  }

  /* Steps Grid */
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 24px;
  }

  .step-card {
    padding: 22px 18px;
    border-radius: 18px;
  }

  .step-number {
    font-size: 26px;
    margin-bottom: 8px;
  }

  /* Legal Container */
  .legal-container {
    padding: 24px 18px;
    border-radius: 20px;
    margin-bottom: 40px;
  }

  .legal-header h1 {
    font-size: clamp(22px, 6vw, 28px);
  }

  /* Footer */
  footer.site-footer {
    padding: 40px 0 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }

  /* Download Page */
  .download-portal-hero {
    padding: 20px 0 32px;
  }

  .download-hero-title {
    font-size: clamp(24px, 7vw, 36px);
    margin: 12px 0 10px;
  }

  .download-hero-subtitle {
    font-size: 14.5px;
    margin-bottom: 20px;
    line-height: 1.55;
  }

  .device-detection-banner {
    width: 100%;
    justify-content: center;
    font-size: 12px;
    padding: 7px 14px;
    margin-bottom: 24px;
    text-align: center;
  }

  .download-card-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .download-action-card,
  .download-qr-card {
    padding: 22px 18px;
    border-radius: 20px;
  }

  .card-brand-header {
    margin-bottom: 16px;
  }

  .cardly-app-badge {
    gap: 12px;
  }

  .app-avatar-img {
    width: 50px;
    height: 50px;
    border-radius: 14px;
  }

  .app-title-main {
    font-size: 17px;
  }

  .app-package-sub {
    font-size: 12px;
  }

  .version-tag-pill {
    padding: 4px 10px;
    font-size: 12px;
  }

  .specs-pill-group {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 12px;
  }

  .spec-label {
    font-size: 10.5px;
  }

  .spec-val {
    font-size: 13.5px;
  }

  .btn-download-giant {
    padding: 15px 20px;
    font-size: 15px;
  }

  .download-safety-notice {
    font-size: 11.5px;
  }

  .qr-image {
    width: 160px;
    height: 160px;
  }

  .qr-code-frame {
    padding: 10px;
    border-radius: 16px;
  }
}

/* Extra Small Devices (Galaxy Fold, Narrow 360px & below) */
@media (max-width: 380px) {
  .container {
    padding: 0 12px;
  }

  .nav-shell {
    padding: 6px 10px;
  }

  .brand-lockup {
    gap: 6px;
  }

  .brand-name {
    font-size: 16px;
  }

  .brand-logo-img {
    width: 28px;
    height: 28px;
  }

  .nav-btn {
    padding: 6px 10px;
    font-size: 11.5px;
  }

  .nav-btn svg {
    display: none;
  }

  .nav-toggle {
    width: 34px;
    height: 34px;
  }

  .specs-pill-group {
    gap: 6px;
    padding: 10px;
  }

  .spec-val {
    font-size: 12.5px;
  }

  .btn-download-giant {
    padding: 13px 14px;
    font-size: 14px;
  }

  .hero-title {
    font-size: 26px;
  }
}

/* ==========================================================================
   DOWNLOAD PORTAL & REALTIME INTEGRATION STYLES
   ========================================================================== */

.download-portal-hero {
  padding: 40px 0 60px;
  text-align: center;
}

.download-hero-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -1.2px;
  line-height: 1.15;
  margin: 16px 0 14px;
  color: var(--text-primary);
}

.download-hero-subtitle {
  font-size: clamp(16px, 2vw, 18px);
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

.pulse-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--lime);
  margin-right: 6px;
  box-shadow: 0 0 10px var(--lime);
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.device-detection-banner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-bottom: 36px;
}

.device-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.device-dot.online {
  background-color: var(--lime);
  box-shadow: 0 0 8px var(--lime);
}
.device-dot.desktop {
  background-color: #60a5fa;
  box-shadow: 0 0 8px #60a5fa;
}

.download-card-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 28px;
  text-align: left;
  max-width: 1060px;
  margin: 0 auto;
}

.download-action-card,
.download-qr-card {
  background: var(--ink-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.download-action-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--lime), rgba(200, 244, 90, 0.2));
}

.card-brand-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.cardly-app-badge {
  display: flex;
  align-items: center;
  gap: 16px;
}

.app-avatar-img {
  border-radius: 16px;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4));
  display: block;
}

.badge-text-meta {
  display: flex;
  flex-direction: column;
}

.app-title-main {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.app-package-sub {
  font-size: 13px;
  color: var(--text-muted);
}

.version-tag-pill {
  background: rgba(200, 244, 90, 0.15);
  color: var(--lime);
  border: 1px solid rgba(200, 244, 90, 0.35);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
}

.specs-pill-group {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 28px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.spec-chip {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.spec-label {
  font-size: 11.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.spec-val {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.download-cta-block {
  margin-bottom: 28px;
}

.btn-download-giant {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 28px;
  font-size: 16px;
  font-weight: 700;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px -5px var(--lime-glow-strong);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-download-giant:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px -4px var(--lime-glow-strong);
}

.download-safety-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 10px;
}

.download-safety-notice svg {
  color: var(--lime);
}

.changelog-card-inner {
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.changelog-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.changelog-header-row h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.changelog-badge-new {
  font-size: 11px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

.changelog-bullet-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.changelog-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.changelog-icon {
  color: var(--lime);
  flex-shrink: 0;
  margin-top: 2px;
}

/* QR Code Card */
.download-qr-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.qr-box-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.qr-heading {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.qr-caption {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  max-width: 240px;
}

.qr-code-frame {
  background: var(--lime);
  padding: 14px;
  border-radius: 20px;
  box-shadow: 0 12px 32px -8px var(--lime-glow-strong);
  margin-bottom: 18px;
}

.qr-image {
  display: block;
  width: 190px;
  height: 190px;
  border-radius: 10px;
}

.qr-hint-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

/* Installation Guide Steps */
.install-guide-section {
  padding: 60px 0 20px;
}

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

.step-card {
  background: var(--ink-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.step-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-active);
}

.step-number {
  font-size: 32px;
  font-weight: 800;
  color: var(--lime);
  line-height: 1;
  margin-bottom: 14px;
  opacity: 0.85;
}

.step-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.step-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Toast Notification */
.cardly-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--charcoal);
  border: 1px solid var(--lime);
  color: var(--text-primary);
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
  font-size: 13.5px;
  font-weight: 500;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cardly-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

