/* TILLMAN DIGITAL — Dark theme */
:root {
    --color-bg: #0a0f1f;
    --color-bg-alt: #0e1428;
    --color-surface: #141b30;
    --color-surface-2: #19203a;
    --color-text: #e9edf7;
    --color-text-muted: #9aa5be;
    --color-text-dim: #6b7690;
    --color-accent: #6366f1;
    --color-accent-light: #8b5cf6;
    --color-accent-bg: rgba(99,102,241,0.12);
    --color-green: #34d399;
    --color-amber: #fbbf24;
    --color-border: rgba(255,255,255,0.08);
    --color-border-hover: rgba(129,140,248,0.55);
    --gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --max-width: 1080px;
    --nav-height: 64px;
    --radius: 14px;
    --shadow-hover: 0 8px 30px rgba(99,102,241,0.18);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--font); font-weight: 300; color: var(--color-text); background: var(--color-bg); line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: var(--color-accent-light); text-decoration: none; transition: color 0.2s; }
a:hover { color: #a5b4fc; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }

/* Nav */
.nav { position: fixed; top: 0; left: 0; right: 0; height: var(--nav-height); background: rgba(10,15,31,0.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--color-border); z-index: 1000; display: flex; align-items: center; }
.nav .container { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.nav-brand { font-size: 1.125rem; font-weight: 700; color: var(--color-text); letter-spacing: -0.02em; }
.nav-brand span { background: var(--gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.nav-links { display: flex; gap: 28px; list-style: none; align-items: center; }
.nav-links a { color: var(--color-text-muted); font-size: 0.875rem; font-weight: 450; }
.nav-links a:hover { color: var(--color-text); }
.nav-cta { padding: 9px 20px; font-size: 0.8125rem; font-weight: 500; color: #fff; background: var(--gradient); border-radius: 8px; transition: opacity 0.2s, transform 0.1s; }
.nav-cta:hover { opacity: 0.9; color: #fff; transform: translateY(-1px); }
.nav-toggle { display: none; background: none; border: none; color: var(--color-text); font-size: 1.5rem; cursor: pointer; }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a::after { content: " \25BE"; font-size: 0.7em; }
.nav-dropdown::after { content: ""; position: absolute; top: 100%; left: -16px; width: 264px; height: 18px; display: none; }
.nav-dropdown:hover::after { display: block; }
.dropdown-menu { display: none; position: absolute; top: 100%; left: -16px; background: var(--color-surface-2); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 10px 0; min-width: 248px; box-shadow: 0 12px 40px rgba(0,0,0,0.4); margin-top: 14px; }
.dropdown-menu a { display: block; padding: 10px 20px; font-size: 0.8125rem; color: var(--color-text-muted); }
.dropdown-menu a:hover { color: #fff; background: var(--color-accent-bg); }
.nav-dropdown:hover .dropdown-menu, .dropdown-menu:hover { display: block; }

/* Hero */
.hero { padding: calc(var(--nav-height) + 80px) 0 80px; text-align: center; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; top: -120px; right: -80px; width: 520px; height: 520px; background: radial-gradient(circle, rgba(99,102,241,0.22) 0%, rgba(139,92,246,0.08) 40%, transparent 70%); pointer-events: none; }
.hero-label { font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-accent-light); font-weight: 600; margin-bottom: 20px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 700; line-height: 1.15; color: var(--color-text); margin-bottom: 20px; max-width: 700px; margin-left: auto; margin-right: auto; letter-spacing: -0.03em; }
.hero p { font-size: 1.0625rem; color: var(--color-text-muted); max-width: 540px; margin: 0 auto 36px; line-height: 1.8; }
.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Home hero split with orb */
.hero-home { text-align: left; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; position: relative; z-index: 1; }
.hero-home .hero-label, .hero-home h1, .hero-home p { margin-left: 0; margin-right: 0; }
.hero-home .hero-ctas { justify-content: flex-start; }
.hero-visual { display: flex; align-items: center; justify-content: center; }
.hero-orb { width: 240px; height: 240px; border-radius: 50%; background: var(--gradient); box-shadow: 0 0 80px rgba(124,108,255,0.5), inset 0 0 60px rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 3.25rem; letter-spacing: 0.04em; animation: floaty 5s ease-in-out infinite; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@media (prefers-reduced-motion: reduce) { .hero-orb { animation: none; } }

/* Buttons */
.btn { display: inline-block; padding: 12px 28px; font-family: var(--font); font-size: 0.875rem; font-weight: 500; border-radius: 8px; cursor: pointer; transition: all 0.2s; border: none; text-align: center; }
.btn-primary { background: var(--gradient); color: #fff; box-shadow: 0 4px 20px rgba(99,102,241,0.25); }
.btn-primary:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 6px 26px rgba(99,102,241,0.35); }
.btn-outline { background: rgba(255,255,255,0.03); color: var(--color-text); border: 1px solid var(--color-border); }
.btn-outline:hover { border-color: var(--color-border-hover); color: #fff; }

/* Sections */
.section { padding: 80px 0; }
.section-alt { background: var(--color-bg-alt); }
.section-label { font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-accent-light); font-weight: 600; margin-bottom: 12px; }
.section-title { font-size: clamp(1.5rem, 3.5vw, 2.25rem); font-weight: 700; line-height: 1.25; color: var(--color-text); margin-bottom: 16px; letter-spacing: -0.02em; }
.section-subtitle { font-size: 1rem; color: var(--color-text-muted); max-width: 540px; line-height: 1.8; margin-bottom: 40px; }
.section-subtitle.centered { margin-left: auto; margin-right: auto; }
.section-narrow { max-width: 720px; margin: 0 auto; }
.lead-text { font-size: 1.0625rem; color: var(--color-text-muted); line-height: 1.9; margin-bottom: 20px; }

/* Cards */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 32px; transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s; }
.card:hover { border-color: var(--color-border-hover); box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.card-icon { width: 44px; height: 44px; background: var(--color-accent-bg); border-radius: 11px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; color: var(--color-accent-light); }
.card h3 { font-size: 1rem; font-weight: 600; color: var(--color-text); margin-bottom: 8px; }
.card p { font-size: 0.875rem; color: var(--color-text-muted); line-height: 1.7; }
.card-link { display: inline-block; margin-top: 16px; font-size: 0.8125rem; font-weight: 500; color: var(--color-accent-light); }
.card-link:hover { color: #a5b4fc; }

/* Stats */
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px; margin: 40px 0; }
.stat { text-align: center; padding: 28px 16px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); }
.stat-value { font-size: 1.75rem; font-weight: 700; color: var(--color-accent-light); margin-bottom: 4px; }
.stat-label { font-size: 0.7rem; color: var(--color-text-dim); text-transform: uppercase; letter-spacing: 0.1em; }

/* Process */
.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; counter-reset: step; }
.process-step { position: relative; padding: 32px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); counter-increment: step; }
.process-step::before { content: "0" counter(step); font-size: 0.75rem; font-weight: 700; color: var(--color-accent-light); letter-spacing: 0.05em; display: block; margin-bottom: 12px; }
.process-step h4 { font-size: 1rem; font-weight: 600; color: var(--color-text); margin-bottom: 8px; }
.process-step p { font-size: 0.8125rem; color: var(--color-text-muted); line-height: 1.7; }

/* Service pages */
.service-hero { padding: calc(var(--nav-height) + 60px) 0 60px; max-width: 680px; margin: 0 auto; }
.deliverables { list-style: none; }
.deliverables li { padding: 12px 0; border-bottom: 1px solid var(--color-border); font-size: 0.9375rem; color: var(--color-text); display: flex; align-items: flex-start; gap: 12px; }
.deliverables li::before { content: "\2713"; color: var(--color-green); font-weight: 600; flex-shrink: 0; }

/* Skill tags */
.skill-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.skill-tag { font-size: 0.75rem; color: var(--color-accent-light); background: var(--color-accent-bg); border: 1px solid var(--color-border); border-radius: 20px; padding: 4px 12px; }

/* Cert list */
.cert-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.cert-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 10px; padding: 16px 20px; }
.cert-item span:first-child { font-size: 0.9375rem; font-weight: 500; color: var(--color-text); }
.badge { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; padding: 4px 10px; border-radius: 20px; white-space: nowrap; }
.badge-done { color: var(--color-green); background: rgba(52,211,153,0.12); }
.badge-progress { color: var(--color-amber); background: rgba(251,191,36,0.12); }

/* Tech tags */
.tech-tags { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.tech-tag { font-size: 0.6875rem; color: var(--color-text-muted); background: var(--color-bg); border: 1px solid var(--color-border); border-radius: 4px; padding: 3px 8px; }

/* Case card */
.case-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 40px; margin-top: 32px; }
.case-metric { display: inline-block; background: var(--color-accent-bg); border: 1px solid var(--color-border); border-radius: 6px; padding: 6px 14px; margin: 4px; font-size: 0.8125rem; color: var(--color-accent-light); font-weight: 500; }

/* Form */
.form-container { max-width: 580px; margin: 0 auto; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 40px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.8125rem; font-weight: 500; color: var(--color-text); margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 11px 14px; font-family: var(--font); font-size: 0.9375rem; color: var(--color-text); background: var(--color-bg); border: 1px solid var(--color-border); border-radius: 8px; outline: none; transition: border-color 0.2s; }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--color-text-dim); }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--color-accent); }
.form-group textarea { min-height: 100px; resize: vertical; }
.form-group select option { background: var(--color-surface-2); color: var(--color-text); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* CTA */
.cta-banner { text-align: center; padding: 64px 24px; background: var(--color-bg-alt); border-top: 1px solid var(--color-border); }
.cta-banner h2 { font-size: 1.5rem; font-weight: 700; color: var(--color-text); margin-bottom: 12px; letter-spacing: -0.02em; }
.cta-banner p { color: var(--color-text-muted); margin-bottom: 28px; max-width: 440px; margin-left: auto; margin-right: auto; font-size: 0.9375rem; }

/* Footer */
.footer { padding: 32px 0; border-top: 1px solid var(--color-border); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-brand { font-weight: 600; color: var(--color-text); }
.footer-brand span { background: var(--gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.footer p { font-size: 0.75rem; color: var(--color-text-dim); }

/* Trust bar */
.trust-bar { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero:not(.hero-home) .trust-bar { justify-content: center; }
.trust-item { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8125rem; color: var(--color-text-muted); background: rgba(255,255,255,0.03); border: 1px solid var(--color-border); border-radius: 20px; padding: 8px 16px; }
.trust-item::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--color-accent-light); flex-shrink: 0; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.revealed { opacity: 1; transform: translateY(0); }
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal:nth-child(5) { transition-delay: 0.32s; }
.reveal:nth-child(6) { transition-delay: 0.4s; }

/* Responsive */
@media (max-width: 768px) {
    .nav-links { display: none; position: absolute; top: var(--nav-height); left: 0; right: 0; background: var(--color-surface-2); border-bottom: 1px solid var(--color-border); flex-direction: column; padding: 16px 24px; gap: 0; }
    .nav-links.open { display: flex; }
    .nav-links li { padding: 10px 0; border-bottom: 1px solid var(--color-border); }
    .nav-links li:last-child { border-bottom: none; }
    .nav-cta { display: none; }
    .nav-toggle { display: block; }
    .dropdown-menu { position: static; box-shadow: none; border: none; padding: 0 0 0 16px; margin: 0; background: transparent; }
    .nav-dropdown:hover .dropdown-menu { display: block; }
    .hero { padding: calc(var(--nav-height) + 40px) 0 48px; }
    .hero-home { text-align: center; }
    .hero-grid { grid-template-columns: 1fr; gap: 32px; }
    .hero-home .hero-ctas, .hero-home .trust-bar { justify-content: center; }
    .hero-visual { order: -1; }
    .hero-orb { width: 180px; height: 180px; font-size: 2.5rem; }
    .section { padding: 56px 0; }
    .cards-grid { grid-template-columns: 1fr; }
    .stats-row { grid-template-columns: 1fr 1fr; }
    .process-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .hero-ctas { flex-direction: column; align-items: center; }
    .footer-inner { flex-direction: column; text-align: center; }
}

/* Service package cards */
.pkg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.pkg-card { position: relative; display: flex; flex-direction: column; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 32px; transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s; }
.pkg-card:hover { border-color: var(--color-border-hover); box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.pkg-card.featured { border-color: rgba(139,92,246,0.65); box-shadow: 0 0 44px rgba(124,108,255,0.28); }
.pkg-card.featured::after { content: "Most Popular"; position: absolute; top: 16px; right: 16px; font-size: 0.625rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; background: var(--gradient); padding: 5px 12px; border-radius: 20px; box-shadow: 0 0 18px rgba(124,108,255,0.55); }
.pkg-icon { width: 46px; height: 46px; background: var(--color-accent-bg); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; color: var(--color-accent-light); }
.pkg-card h3 { font-size: 1.1875rem; font-weight: 700; color: var(--color-text); margin-bottom: 6px; letter-spacing: -0.01em; }
.pkg-tagline { font-size: 0.8125rem; color: var(--color-accent-light); font-weight: 500; margin-bottom: 14px; }
.pkg-desc { font-size: 0.9rem; color: var(--color-text-muted); line-height: 1.7; margin-bottom: 20px; }
.pkg-divider { height: 1px; background: var(--color-border); margin: 0 0 18px; }
.pkg-list { list-style: none; margin-bottom: 24px; }
.pkg-list li { font-size: 0.8125rem; color: var(--color-text-muted); padding: 6px 0; display: flex; align-items: flex-start; gap: 10px; }
.pkg-list li::before { content: "\2713"; color: var(--color-green); font-weight: 700; flex-shrink: 0; }
.pkg-cta { margin-top: auto; }
.pkg-cta .btn { width: 100%; }
/* stronger neon on featured button */
.btn-glow { background: var(--gradient); color: #fff; box-shadow: 0 0 24px rgba(124,108,255,0.5); }
.btn-glow:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 0 34px rgba(124,108,255,0.7); }
.btn-outline.btn-quote:hover { box-shadow: 0 0 20px rgba(124,108,255,0.35); }
