/* ================================================================
   DSLink.me - Modern SaaS & Mobile Deep Link Design System
================================================================ */

:root {
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --bg-body: #070913;
  --bg-surface: rgba(15, 23, 42, 0.75);
  --bg-card: rgba(30, 41, 59, 0.5);
  --bg-card-hover: rgba(30, 41, 59, 0.8);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(59, 130, 246, 0.4);
  
  --primary: #3B82F6;
  --primary-glow: rgba(59, 130, 246, 0.35);
  --primary-gradient: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 100%);
  --accent-cyan: #06B6D4;
  
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --shadow-glow: 0 0 50px rgba(59, 130, 246, 0.18);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
  background-color: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

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

/* Container */
.ds-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Gradient Background Mesh */
.bg-mesh {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 900px;
  background: 
    radial-gradient(circle at 50% 10%, rgba(59, 130, 246, 0.18) 0%, transparent 60%),
    radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 20% 30%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* Header */
.ds-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(7, 9, 19, 0.8);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 0;
}

.ds-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ds-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #fff;
}

.ds-logo-badge {
  background: var(--primary-gradient);
  color: #fff;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
}

.ds-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.ds-nav a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
}

.ds-nav a:hover {
  color: #fff;
}

/* Buttons */
.ds-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
}

.ds-btn-primary {
  background: var(--primary-gradient);
  color: #fff;
  box-shadow: 0 4px 20px var(--primary-glow);
}

.ds-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--primary-glow);
  color: #fff;
}

.ds-btn-white {
  background: #ffffff;
  color: #070913;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
}

.ds-btn-white:hover {
  transform: translateY(-2px);
  background: #f1f5f9;
  color: #070913;
}

.ds-btn-outline {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-color);
  color: #fff;
}

.ds-btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* Hero Section */
.ds-hero {
  position: relative;
  padding: 80px 0 60px;
  z-index: 1;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: #93C5FD;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 56px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -1.5px;
  margin: 0 0 20px;
}

.gradient-text {
  background: linear-gradient(135deg, #60A5FA 0%, #C084FC 50%, #F472B6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 0 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}

.hero-stats {
  display: flex;
  gap: 24px;
  color: var(--text-muted);
  font-size: 13px;
}

.hero-stats span {
  color: #fff;
  font-weight: 600;
}

/* Hero Mockup Showcase */
.hero-mockup-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mockup-glow {
  position: absolute;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.4) 0%, transparent 70%);
  filter: blur(50px);
  z-index: 0;
}

.mockup-phone {
  position: relative;
  z-index: 2;
  width: 290px;
  border-radius: 40px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.15);
  transform: perspective(1000px) rotateY(-8deg) rotateX(4deg);
  transition: transform 0.5s ease;
}

.mockup-phone:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.02);
}

.mockup-card-float {
  position: absolute;
  bottom: 30px;
  left: -40px;
  z-index: 3;
  width: 240px;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 40px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.1);
  animation: floatCard 4s ease-in-out infinite alternate;
}

@keyframes floatCard {
  0% { transform: translateY(0); }
  100% { transform: translateY(-10px); }
}

/* Supported Apps Pills */
.ds-apps-bar {
  padding: 40px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background: rgba(15, 23, 42, 0.4);
}

.apps-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.app-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.app-chip:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.5);
  color: #fff;
  transform: translateY(-2px);
}

.app-chip.featured {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.3);
  color: #93C5FD;
}

/* Features Section (Bento Grid) */
.ds-section {
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 60px;
}

.section-tag {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-title {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -1px;
  margin: 0 0 16px;
  line-height: 1.2;
}

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

/* Bento Grid Cards */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.3s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
}

.bento-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.bento-card.span-2 {
  grid-column: span 2;
}

.bento-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--primary);
  margin-bottom: 20px;
}

.bento-icon.purple {
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(139, 92, 246, 0.3);
  color: #A78BFA;
}

.bento-icon.cyan {
  background: rgba(6, 182, 212, 0.12);
  border-color: rgba(6, 182, 212, 0.3);
  color: #22D3EE;
}

.bento-icon.emerald {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.3);
  color: #34D399;
}

.bento-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 12px;
  color: #fff;
}

.bento-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* Screenshots Gallery Carousel */
.screenshots-wrap {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 20px 0 40px;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) transparent;
}

.screenshots-wrap::-webkit-scrollbar {
  height: 6px;
}

.screenshots-wrap::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
}

.screen-item {
  flex: 0 0 240px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease;
}

.screen-item:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
}

/* Comparison Section */
.comparison-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.comparison-col {
  padding: 40px;
}

.comparison-col.bad {
  background: rgba(239, 68, 68, 0.04);
  border-right: 1px solid var(--border-color);
}

.comparison-col.good {
  background: rgba(16, 185, 129, 0.04);
}

.comp-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.comp-badge.bad { background: rgba(239, 68, 68, 0.15); color: #FCA5A5; }
.comp-badge.good { background: rgba(16, 185, 129, 0.15); color: #6EE7B7; }

.comp-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.comp-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--text-secondary);
}

/* FAQ Accordion */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.faq-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: all 0.2s ease;
}

.faq-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.faq-q {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 10px;
  color: #fff;
}

.faq-a {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
  border: 1px solid rgba(59, 130, 246, 0.4);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

/* Footer */
.ds-footer {
  background: #04060d;
  border-top: 1px solid var(--border-color);
  padding: 60px 0 40px;
  font-size: 14px;
  color: var(--text-muted);
}

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

.footer-col h5 {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 16px;
}

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

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

.footer-col ul li a {
  color: var(--text-secondary);
}

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

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

/* Link Tester & Live Demo Sandbox */
.link-tester-section {
  position: relative;
  z-index: 10;
  margin-top: -20px;
  margin-bottom: 60px;
}

.link-tester-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(59, 130, 246, 0.25);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 30px rgba(59, 130, 246, 0.12);
  transition: all 0.3s ease;
}

.link-tester-card:hover {
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 45px rgba(59, 130, 246, 0.2);
}

.tester-input-group {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.tester-input {
  flex: 1;
  background: rgba(2, 6, 23, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  outline: none;
  transition: all 0.2s ease;
}

.tester-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
  background: rgba(2, 6, 23, 0.95);
}

.tester-quick-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.tester-tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.15s ease;
}

.tester-tag:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.4);
  color: #fff;
}

.tester-result-box {
  background: rgba(2, 6, 23, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 20px;
  display: none;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.result-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
}

.result-code-row {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  padding: 10px 14px;
  font-family: monospace;
  font-size: 13px;
  color: #38bdf8;
  word-break: break-all;
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.result-cta-banner {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

/* Mobile Navigation Toggle Button */
.ds-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
  z-index: 101;
}

.ds-nav-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(59, 130, 246, 0.4);
}

.ds-nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  position: relative;
  transition: all 0.25s ease;
}

.ds-nav-toggle span::before,
.ds-nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: all 0.25s ease;
}

.ds-nav-toggle span::before {
  top: -6px;
}

.ds-nav-toggle span::after {
  bottom: -6px;
}

.ds-nav-toggle.active span {
  background: transparent;
}

.ds-nav-toggle.active span::before {
  top: 0;
  transform: rotate(45deg);
}

.ds-nav-toggle.active span::after {
  bottom: 0;
  transform: rotate(-45deg);
}

/* Mobile Drawer Backdrop */
.ds-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 13, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.ds-drawer-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

/* Mobile Navigation Drawer */
.ds-mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(340px, 86vw);
  height: 100vh;
  height: 100dvh;
  background: rgba(11, 16, 32, 0.96);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: -15px 0 50px rgba(0, 0, 0, 0.7);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  padding: 24px;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.ds-mobile-drawer.active {
  transform: translateX(0);
}

body.drawer-open {
  overflow: hidden;
}

.ds-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 20px;
}

.ds-drawer-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 22px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ds-drawer-close:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.3);
}

.ds-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: auto;
}

.ds-drawer-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 600;
  background: transparent;
  transition: all 0.2s ease;
}

.ds-drawer-links a:hover,
.ds-drawer-links a:active {
  background: rgba(59, 130, 246, 0.12);
  color: #ffffff;
  transform: translateX(4px);
}

.ds-drawer-footer {
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.ds-drawer-footer .ds-btn {
  width: 100%;
  justify-content: center;
}

/* Simulator Polish & Quick Copy Button */
.code-copy-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.code-copy-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: scale(1.04);
}

.code-copy-btn.copied {
  background: #10b981 !important;
  border-color: #10b981 !important;
  color: #ffffff !important;
}

/* Tablet & Responsive Media Queries */
@media (max-width: 1140px) {
  .ds-nav {
    gap: 18px;
  }
  .ds-nav a {
    font-size: 13px;
  }
}

@media (max-width: 991px) {
  .hero-title {
    font-size: clamp(2.2rem, 1.4rem + 3.5vw, 3.2rem);
  }
  .ds-nav {
    display: none;
  }
  .ds-nav-toggle {
    display: inline-flex;
  }
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento-card.span-2 {
    grid-column: span 2;
  }
  .comparison-box {
    grid-template-columns: 1fr;
  }
  .comparison-col.bad {
    border-right: 0;
    border-bottom: 1px solid var(--border-color);
  }
  .faq-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  .hero-mockup-wrapper {
    margin-top: 50px;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: clamp(2rem, 1.2rem + 3.2vw, 2.7rem);
  }
  .hero-subtitle {
    font-size: 16px;
  }
  .ds-container {
    padding: 0 18px;
  }
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-card.span-2 {
    grid-column: span 1;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 14px;
    text-align: center;
  }
  .mockup-phone {
    max-width: min(280px, 82vw);
  }
  .mockup-card-float {
    left: 0;
    bottom: -15px;
    width: min(210px, 62vw);
  }
  .tester-input-group {
    flex-direction: column;
  }
  .result-header {
    flex-wrap: wrap;
    gap: 8px;
  }
  .result-code-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .result-code-row > div:last-child {
    align-self: flex-end;
  }
  .result-cta-banner {
    flex-direction: column;
    text-align: center;
  }
  .result-cta-banner .ds-btn {
    width: 100%;
  }
}

@media (max-width: 540px) {
  .hero-actions {
    flex-direction: column;
  }
  .hero-actions .ds-btn {
    width: 100%;
    justify-content: center;
  }
  .hero-stats {
    flex-wrap: wrap;
    gap: 8px;
  }
  .hero-stats > div {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
  }
  .ds-header .ds-header-inner .d-flex.align-items-center .ds-btn-outline {
    display: none;
  }
}

/* Smart App Banner for Mobile */
.smart-app-banner {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  max-width: 460px;
  margin: 0 auto;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(59, 130, 246, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 18px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 9999;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(59, 130, 246, 0.25);
  animation: slideUpBanner 0.4s ease forwards;
}

@keyframes slideUpBanner {
  from { transform: translateY(100px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.smart-banner-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, #3b82f6, #ec4899);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.smart-banner-info {
  flex-grow: 1;
  min-width: 0;
}

.smart-banner-title {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.smart-banner-sub {
  font-size: 11px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.smart-banner-close {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color 0.15s;
}

.smart-banner-close:hover {
  color: #cbd5e1;
}

.smart-banner-btn {
  background: #3B82F6;
  color: #ffffff !important;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  transition: transform 0.15s;
}

.smart-banner-btn:hover {
  transform: scale(1.05);
}

/* Global Floating Toast */
.ds-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(59, 130, 246, 0.5);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(59, 130, 246, 0.3);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #ffffff;
  padding: 12px 22px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 99999;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.ds-toast.show {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 576px) {
  .ds-toast {
    left: 20px;
    right: 20px;
    bottom: 20px;
    justify-content: center;
    border-radius: 16px;
  }
}


/* Related generators block (internal linking hub) */
.related-links { padding-top: 40px; padding-bottom: 40px; }
.related-group { margin-top: 20px; }
.related-label { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 10px; }
.related-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.related-chips a { display: inline-block; padding: 7px 14px; border-radius: var(--radius-full); background: var(--bg-card); border: 1px solid var(--border-color); color: var(--text-secondary); font-size: 14px; text-decoration: none; transition: border-color .15s, color .15s; }
.related-chips a:hover, .related-chips a:focus-visible { border-color: var(--border-hover); color: var(--text-primary); }

/* Long-form guide section on generator pages */
.seo-guide { max-width: 820px; margin-left: auto; margin-right: auto; color: var(--text-secondary); font-size: 16px; line-height: 1.7; }
.seo-guide .section-title { text-align: left; margin-bottom: 16px; }
.seo-guide h3 { color: var(--text-primary); font-size: 20px; font-weight: 700; margin: 28px 0 10px; }
.seo-guide ol, .seo-guide ul { padding-left: 22px; margin-bottom: 16px; }
.seo-guide li { margin-bottom: 8px; }
.seo-guide strong { color: var(--text-primary); }
.seo-guide a { color: var(--primary); }

/* =========================================================
   Blog article template (/blog/*.html)
   ========================================================= */
.article-wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }
.article-crumbs { font-size: 13px; color: var(--text-muted); margin: 28px 0 18px; }
.article-crumbs a { color: var(--text-secondary); text-decoration: none; }
.article-crumbs a:hover { color: var(--text-primary); }
.article-crumbs span[aria-hidden] { margin: 0 6px; }
.article-head .hero-pill { margin-bottom: 14px; }
.article-title { font-size: clamp(30px, 5vw, 44px); line-height: 1.15; font-weight: 800; color: var(--text-primary); text-wrap: balance; margin: 0 0 14px; }
.article-dek { font-size: 19px; line-height: 1.55; color: var(--text-secondary); margin: 0 0 18px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--text-muted); padding-bottom: 22px; border-bottom: 1px solid var(--border-color); }
.article-meta strong { color: var(--text-secondary); font-weight: 600; }

.article-takeaways { margin: 28px 0; padding: 20px 22px; border-radius: var(--radius-md); background: rgba(59,130,246,.08); border: 1px solid rgba(59,130,246,.25); }
.article-takeaways h2 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #93c5fd; margin: 0 0 10px; }
.article-takeaways ul { margin: 0; padding-left: 20px; }
.article-takeaways li { color: var(--text-primary); margin-bottom: 6px; line-height: 1.55; }

.article-toc { margin: 0 0 32px; padding: 18px 22px; border-radius: var(--radius-md); background: var(--bg-card); border: 1px solid var(--border-color); }
.article-toc h2 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); margin: 0 0 10px; }
.article-toc ol { margin: 0; padding-left: 20px; }
.article-toc li { margin-bottom: 5px; }
.article-toc a { color: var(--text-secondary); text-decoration: none; }
.article-toc a:hover { color: var(--text-primary); text-decoration: underline; }

.article-body { color: var(--text-secondary); font-size: 17px; line-height: 1.75; }
.article-body h2 { color: var(--text-primary); font-size: 28px; line-height: 1.25; font-weight: 800; margin: 44px 0 14px; scroll-margin-top: 90px; text-wrap: balance; }
.article-body h3 { color: var(--text-primary); font-size: 21px; font-weight: 700; margin: 30px 0 10px; scroll-margin-top: 90px; }
.article-body p { margin: 0 0 18px; }
.article-body a { color: #60a5fa; text-underline-offset: 3px; }
.article-body strong { color: var(--text-primary); }
.article-body ul, .article-body ol { padding-left: 24px; margin: 0 0 20px; }
.article-body li { margin-bottom: 8px; }
.article-body code { font-size: .88em; padding: 2px 6px; border-radius: 6px; background: rgba(255,255,255,.07); color: #e2e8f0; overflow-wrap: anywhere; }
.article-body pre { margin: 0 0 22px; padding: 16px 18px; border-radius: var(--radius-md); background: #0b1020; border: 1px solid var(--border-color); overflow-x: auto; }
.article-body pre code { padding: 0; background: none; font-size: 14px; line-height: 1.6; }
.article-body figure { margin: 26px 0; }
.article-body figure img { width: 100%; height: auto; border-radius: var(--radius-md); border: 1px solid var(--border-color); }
.article-body figcaption { font-size: 13px; color: var(--text-muted); margin-top: 8px; text-align: center; }
.article-body blockquote { margin: 0 0 22px; padding: 4px 0 4px 18px; border-left: 3px solid var(--primary); color: var(--text-primary); font-style: italic; }

.article-steps { counter-reset: step; list-style: none; padding-left: 0 !important; }
.article-steps > li { counter-increment: step; position: relative; padding-left: 46px; margin-bottom: 16px; }
.article-steps > li::before { content: counter(step); position: absolute; left: 0; top: 1px; width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; }

.article-callout { margin: 0 0 22px; padding: 14px 18px; border-radius: var(--radius-md); border: 1px solid; font-size: 16px; }
.article-callout p:last-child { margin-bottom: 0; }
.article-callout .callout-label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; }
.article-callout.tip { background: rgba(16,185,129,.08); border-color: rgba(16,185,129,.3); }
.article-callout.tip .callout-label { color: #6ee7b7; }
.article-callout.warning { background: rgba(245,158,11,.08); border-color: rgba(245,158,11,.3); }
.article-callout.warning .callout-label { color: #fcd34d; }
.article-callout.note { background: rgba(148,163,184,.08); border-color: rgba(148,163,184,.25); }
.article-callout.note .callout-label { color: var(--text-secondary); }

.article-table-wrap { margin: 0 0 24px; overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--border-color); }
.article-table-wrap table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
.article-table-wrap th, .article-table-wrap td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border-color); vertical-align: top; }
.article-table-wrap th { color: var(--text-primary); background: rgba(255,255,255,.03); font-weight: 700; }
.article-table-wrap tr:last-child td { border-bottom: 0; }

.article-cta { margin: 34px 0; padding: 24px; border-radius: var(--radius-lg); background: linear-gradient(135deg, rgba(59,130,246,.16), rgba(168,85,247,.14)); border: 1px solid rgba(255,255,255,.12); }
.article-cta h2, .article-cta .article-cta-title { color: var(--text-primary); font-size: 22px; font-weight: 800; margin: 0 0 8px; }
.article-cta p { color: var(--text-secondary); margin: 0 0 16px; }
.article-cta .ds-btn { margin: 0 8px 8px 0; }

.article-faq { margin-top: 44px; }
.article-faq details { border-bottom: 1px solid var(--border-color); padding: 16px 0; }
.article-faq summary { cursor: pointer; color: var(--text-primary); font-weight: 700; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.article-faq summary::-webkit-details-marker { display: none; }
.article-faq summary::after { content: "+"; color: var(--text-muted); font-weight: 400; }
.article-faq details[open] summary::after { content: "–"; }
.article-faq summary:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; border-radius: 4px; }
.article-faq details p { margin: 10px 0 0; }

.article-author { display: flex; gap: 14px; align-items: flex-start; margin: 40px 0 0; padding: 20px; border-radius: var(--radius-md); background: var(--bg-card); border: 1px solid var(--border-color); font-size: 15px; }
.article-author .ds-logo-badge { flex-shrink: 0; }
.article-author p { margin: 4px 0 0; color: var(--text-secondary); }

.article-related { margin: 40px 0 0; }
.article-related h2 { font-size: 20px; color: var(--text-primary); margin: 0 0 14px; }
.article-related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.article-related-grid a { display: block; padding: 14px 16px; border-radius: var(--radius-md); background: var(--bg-card); border: 1px solid var(--border-color); color: var(--text-primary); text-decoration: none; font-weight: 600; font-size: 15px; line-height: 1.4; }
.article-related-grid a span { display: block; font-size: 12px; font-weight: 500; color: var(--text-muted); margin-bottom: 4px; text-transform: uppercase; letter-spacing: .06em; }
.article-related-grid a:hover, .article-related-grid a:focus-visible { border-color: var(--border-hover); }

@media (max-width: 576px) {
  .article-body { font-size: 16px; }
  .article-body h2 { font-size: 24px; }
  .article-dek { font-size: 17px; }
}
.article-body .ds-btn { text-decoration: none; }
.article-body .ds-btn-primary, .article-body .ds-btn-primary:hover { color: #fff; }
.article-body .ds-btn-outline { color: var(--text-primary); }

/* =========================================================
   Blog index (blog.html)
   ========================================================= */
.blog-hero { padding: 56px 0 28px; }
.blog-hero .hero-title { font-size: clamp(34px, 6vw, 52px); }
.blog-search { max-width: 560px; margin: 26px auto 0; }
.blog-search input { width: 100%; padding: 14px 18px; border-radius: var(--radius-full); border: 1px solid var(--border-color); background: var(--bg-card); color: var(--text-primary); font-size: 16px; }
.blog-search input::placeholder { color: var(--text-muted); }
.blog-search input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(59,130,246,.25); }
.blog-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.blog-chip { padding: 8px 15px; border-radius: var(--radius-full); border: 1px solid var(--border-color); background: transparent; color: var(--text-secondary); font-size: 14px; font-weight: 600; cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
.blog-chip:hover { color: var(--text-primary); border-color: var(--border-hover); }
.blog-chip.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.blog-chip:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.blog-main { padding-bottom: 72px; }
.blog-section { margin-top: 44px; }
.blog-section[hidden] { display: none; }
.blog-section-head { margin-bottom: 16px; }
.blog-section-head h2 { font-size: 24px; font-weight: 800; color: var(--text-primary); margin: 0 0 4px; display: flex; align-items: center; gap: 10px; }
.blog-section-head p { color: var(--text-secondary); margin: 0; font-size: 15px; }
.blog-count { font-size: 13px; font-weight: 700; color: var(--text-muted); background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-full); padding: 2px 10px; }

.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.blog-grid-featured { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.blog-card { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px; border-radius: var(--radius-md); background: var(--bg-card); border: 1px solid var(--border-color); text-decoration: none !important; transition: border-color .15s, transform .15s; }
.blog-card[hidden] { display: none; }
.blog-card:hover, .blog-card:focus-visible { border-color: var(--border-hover); transform: translateY(-2px); }
.blog-card:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.blog-card-featured { padding: 24px; background: linear-gradient(135deg, rgba(59,130,246,.14), rgba(168,85,247,.10)); border-color: rgba(255,255,255,.12); }
.blog-card-meta { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--text-muted); }
.blog-card-cat { text-transform: uppercase; letter-spacing: .06em; font-weight: 700; color: #93c5fd; }
.blog-card-title { color: var(--text-primary); font-weight: 700; font-size: 17px; line-height: 1.35; text-wrap: balance; }
.blog-card-featured .blog-card-title { font-size: 20px; }
.blog-card-desc { color: var(--text-secondary); font-size: 14px; line-height: 1.55; }
.blog-empty { margin-top: 40px; text-align: center; color: var(--text-secondary); }
@media (prefers-reduced-motion: reduce) { .blog-card { transition: none; } .blog-card:hover { transform: none; } }
