/* ═══════════════════════════════════════════════════════════
   DAVID LIFE GROUP — Design System
   Corporate + Tech Edge | Playfair Display + Outfit
   Navy / Electric Blue / Cyan / Warm White
   ═══════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&display=swap');

:root {
  --navy: #0B1D3A;
  --navy-light: #112240;
  --navy-deep: #071428;
  --blue: #2563EB;
  --blue-light: #3B82F6;
  --blue-pale: #DBEAFE;
  --cyan: #06B6D4;
  --cyan-pale: #CFFAFE;
  --gold: #D4A853;
  --bg: #FAFBFC;
  --white: #FFFFFF;
  --text: #1E293B;
  --text-light: #334155;
  --muted: #64748B;
  --dim: #94A3B8;
  --light: #F1F5F9;
  --lighter: #F8FAFC;
  --border: #E2E8F0;
  --border-light: #F1F5F9;
  --success: #10B981;
  --warning: #F59E0B;
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Outfit', 'Helvetica Neue', Arial, sans-serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.08);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.1);
  --shadow-blue: 0 4px 30px rgba(37,99,235,0.15);
  --shadow-blue-lg: 0 8px 60px rgba(37,99,235,0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: var(--font-body); color: var(--text); background: var(--bg); line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
::selection { background: rgba(37,99,235,0.15); color: var(--navy); }

/* ── Typography ── */
.font-display { font-family: var(--font-display); }
.font-body { font-family: var(--font-body); }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--navy); line-height: 1.15; }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 600; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 600; }
p { color: var(--muted); line-height: 1.75; }
.text-gradient { background: linear-gradient(135deg, var(--blue), var(--cyan)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.label { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--blue); font-family: var(--font-body); }

/* ── Layout ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
@media (min-width: 768px) { .container { padding: 0 40px; } }
@media (min-width: 1024px) { .container { padding: 0 48px; } }
.section { padding: 100px 0; }
@media (min-width: 768px) { .section { padding: 120px 0; } }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 48px; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 768px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: 1fr 1fr 1fr; } }
.grid-4 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: 1fr 1fr 1fr 1fr; } }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border-radius: var(--radius-sm); font-size: 0.875rem; font-weight: 600; transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); letter-spacing: 0.01em; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--blue); color: var(--white); box-shadow: var(--shadow-blue); }
.btn-primary:hover { box-shadow: 0 8px 40px rgba(37,99,235,0.25); background: var(--blue-light); }
.btn-secondary { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-pale); }
.btn-white { background: var(--white); color: var(--navy); }
.btn-white:hover { box-shadow: var(--shadow-lg); }
.btn-outline-white { border: 1px solid rgba(255,255,255,0.2); color: rgba(255,255,255,0.8); }
.btn-outline-white:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.4); color: var(--white); }
.btn-lg { padding: 18px 36px; font-size: 0.95rem; border-radius: var(--radius-md); }
.btn-sm { padding: 10px 20px; font-size: 0.8rem; }

/* ── Cards ── */
.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-dark { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); }
.card-featured { border: 2px solid var(--blue); }

/* ── Patterns & Textures ── */
.tech-grid { background-image: radial-gradient(circle at 1px 1px, rgba(37,99,235,0.06) 1px, transparent 0); background-size: 32px 32px; }
.hero-bg { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-light) 45%, #1a365d 100%); }
.hero-pattern { background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,0.035) 1px, transparent 0); background-size: 40px 40px; }
.line-accent { display: block; width: 60px; height: 3px; background: linear-gradient(90deg, var(--blue), var(--cyan)); border-radius: 2px; }
.line-accent-center { margin: 0 auto; }
.dot-pattern { background-image: radial-gradient(circle, rgba(37,99,235,0.08) 1px, transparent 1px); background-size: 20px 20px; }

/* ── Navigation ── */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; transition: all 0.3s ease; }
.nav.scrolled { background: rgba(255,255,255,0.94); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.nav-inner { height: 72px; }
@media (min-width: 1024px) { .nav-inner { height: 80px; } }
.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo-icon { width: 38px; height: 38px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 18px; transition: all 0.3s; }
.nav-logo-text h4 { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.05em; font-family: var(--font-body); transition: color 0.3s; }
.nav-logo-text span { font-size: 0.7rem; transition: color 0.3s; }
.nav-links { display: none; gap: 32px; align-items: center; }
@media (min-width: 1024px) { .nav-links { display: flex; } }
.nav-link { font-size: 0.875rem; font-weight: 500; transition: all 0.2s; position: relative; }
.nav-link::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--blue); transition: width 0.3s; }
.nav-link:hover::after { width: 100%; }
.nav-cta { padding: 10px 24px; border-radius: var(--radius-sm); font-size: 0.85rem; font-weight: 600; transition: all 0.3s; }
.mobile-toggle { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; }
@media (min-width: 1024px) { .mobile-toggle { display: none; } }
.mobile-menu { display: none; padding: 16px 24px 24px; background: var(--white); border-top: 1px solid var(--border); }
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: 12px 0; font-size: 0.95rem; font-weight: 500; color: var(--text); border-bottom: 1px solid var(--border-light); }

/* ── Hero ── */
.hero { position: relative; overflow: hidden; }
.hero-content { padding: 140px 0 100px; position: relative; z-index: 2; }
@media (min-width: 768px) { .hero-content { padding: 160px 0 120px; } }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; border-radius: 100px; background: rgba(37,99,235,0.12); border: 1px solid rgba(37,99,235,0.2); margin-bottom: 32px; }
.hero-badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.hero-badge span { font-size: 0.75rem; font-weight: 500; color: var(--cyan); }
.hero h1 { color: var(--white); margin-bottom: 24px; }
.hero h1 .light { color: rgba(255,255,255,0.65); }
.hero-desc { font-size: 1.1rem; color: rgba(255,255,255,0.5); max-width: 580px; margin-bottom: 40px; line-height: 1.8; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 16px; }
.hero-visual { position: absolute; right: 40px; top: 160px; width: 340px; display: none; }
@media (min-width: 1280px) { .hero-visual { display: block; } }
.hero-visual-card { border-radius: var(--radius-lg); padding: 28px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); backdrop-filter: blur(12px); box-shadow: var(--shadow-blue-lg); animation: heroFloat 6s ease-in-out infinite; }
@keyframes heroFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.hero-bar { flex: 1; border-radius: 3px 3px 0 0; transition: height 0.8s ease; }
.hero-visual-tag { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: var(--radius-md); background: rgba(6,182,212,0.1); border: 1px solid rgba(6,182,212,0.2); margin-top: 16px; margin-left: 48px; animation: heroFloat 6s ease-in-out 2s infinite; }
.hero-curve { position: absolute; bottom: 0; left: 0; right: 0; }
.hero-curve svg { display: block; width: 100%; }

/* ── Stats ── */
.stats { padding: 80px 0; background: var(--white); }
.stat-item { text-align: center; }
.stat-value { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; color: var(--navy); }
.stat-label { font-size: 0.85rem; color: var(--muted); margin-top: 4px; }

/* ── Section Headers ── */
.section-header { text-align: center; margin-bottom: 64px; }
.section-header .line-accent { margin: 16px auto 0; }
.section-header p { max-width: 560px; margin: 16px auto 0; }

/* ── Services ── */
.service-card { cursor: pointer; position: relative; }
.service-card.featured { border: 2px solid var(--blue); }
.service-icon { margin-bottom: 20px; }
.service-card h3 { margin-bottom: 12px; font-family: var(--font-body); font-weight: 700; }
.service-card p { font-size: 0.9rem; line-height: 1.7; margin-bottom: 16px; }
.service-deliverables { padding-top: 16px; border-top: 1px solid var(--border); display: none; }
.service-card.expanded .service-deliverables { display: block; }
.service-deliverable { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.service-deliverable-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); flex-shrink: 0; }
.service-deliverable span { font-size: 0.85rem; color: var(--text); }
.service-toggle { font-size: 0.85rem; font-weight: 600; color: var(--blue); background: none; border: none; cursor: pointer; padding: 0; }
.service-featured-badge { position: absolute; top: 16px; right: 16px; padding: 4px 12px; border-radius: 100px; background: rgba(37,99,235,0.08); font-size: 0.7rem; font-weight: 600; color: var(--blue); }

/* ── Process ── */
.process-section { background: var(--navy); }
.process-section .section-header .label { color: var(--cyan); }
.process-section .section-header h2 { color: var(--white); }
.process-card { padding: 28px; border-radius: var(--radius-lg); background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); position: relative; }
.process-num { font-family: var(--font-display); font-size: 3rem; font-weight: 700; color: rgba(37,99,235,0.2); line-height: 1; margin-bottom: 16px; }
.process-card h3 { color: var(--white); font-family: var(--font-body); margin-bottom: 8px; }
.process-card p { color: rgba(255,255,255,0.45); font-size: 0.9rem; }
.process-arrow { display: none; position: absolute; right: -16px; top: 50%; transform: translateY(-50%); color: rgba(37,99,235,0.3); font-size: 1.2rem; z-index: 2; }
@media (min-width: 1024px) { .process-arrow { display: block; } }

/* ── Industries ── */
.industry-tag { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 100px; background: var(--white); border: 1px solid var(--border); font-size: 0.85rem; font-weight: 500; color: var(--text); transition: all 0.3s; }
.industry-tag:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-pale); transform: translateY(-2px); box-shadow: var(--shadow-sm); }

/* ── Testimonials ── */
.testimonial-card { padding: 32px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--border); }
.testimonial-stars { display: flex; gap: 2px; margin-bottom: 16px; }
.testimonial-star { color: var(--gold); font-size: 1rem; }
.testimonial-quote { font-size: 0.95rem; color: var(--text-light); line-height: 1.8; font-style: italic; margin-bottom: 20px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--cyan)); display: flex; align-items: center; justify-content: center; color: var(--white); font-weight: 700; font-size: 0.9rem; }
.testimonial-name { font-weight: 600; font-size: 0.9rem; color: var(--navy); }
.testimonial-role { font-size: 0.8rem; color: var(--muted); }

/* ── About ── */
.about-approach { border-radius: var(--radius-xl); padding: 36px; background: var(--light); border: 1px solid var(--border); box-shadow: var(--shadow-blue-lg); position: relative; }
.about-approach-item { display: flex; gap: 16px; }
.about-approach-num { width: 44px; height: 44px; border-radius: var(--radius-md); background: rgba(37,99,235,0.08); display: flex; align-items: center; justify-content: center; font-size: 0.85rem; font-weight: 700; color: var(--blue); flex-shrink: 0; }
.credential { display: flex; align-items: flex-start; gap: 12px; }
.credential-check { width: 22px; height: 22px; border-radius: 50%; background: rgba(37,99,235,0.08); display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }

/* ── Nexus Product ── */
.nexus-section { border-radius: var(--radius-xl); overflow: hidden; background: var(--navy); box-shadow: var(--shadow-blue-lg); }
.nexus-output { border-radius: var(--radius-md); padding: 24px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); }
.nexus-output-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; }
.nexus-output-label { font-size: 0.8rem; color: rgba(255,255,255,0.4); }
.nexus-output-value { font-size: 0.9rem; font-weight: 700; font-family: monospace; }
.nexus-feature { display: flex; align-items: center; gap: 8px; }
.nexus-feature-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); }
.nexus-feature span { font-size: 0.85rem; color: rgba(255,255,255,0.7); }

/* ── Contact ── */
.contact-form { border-radius: var(--radius-xl); padding: 36px; background: var(--light); border: 1px solid var(--border); }
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.form-input, .form-select, .form-textarea { width: 100%; padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--white); font-size: 0.9rem; font-family: var(--font-body); color: var(--text); outline: none; transition: all 0.2s; }
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,0.08); }
.form-textarea { resize: none; min-height: 120px; }
.form-select { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748B' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.contact-info-item { display: flex; align-items: center; gap: 16px; }
.contact-info-icon { font-size: 1.4rem; }
.contact-info-label { font-size: 0.75rem; color: var(--muted); }
.contact-info-value { font-size: 0.9rem; font-weight: 500; color: var(--navy); }

/* ── Footer ── */
.footer { background: var(--navy); padding: 48px 0; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 24px; }
@media (min-width: 768px) { .footer-inner { flex-direction: row; justify-content: space-between; } }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 0.8rem; color: rgba(255,255,255,0.3); transition: color 0.2s; }
.footer-links a:hover { color: rgba(255,255,255,0.6); }
.footer-copy { font-size: 0.8rem; color: rgba(255,255,255,0.25); }

/* ── Animations ── */
.reveal { opacity: 0; transform: translateY(28px); transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ── Utility ── */
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-6 { margin-bottom: 48px; }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.text-center { text-align: center; }
.text-sm { font-size: 0.85rem; }
.text-xs { font-size: 0.75rem; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.hidden { display: none; }
@media (min-width: 1024px) { .lg-show { display: block !important; } }
