/* =========================================================
   Softekey — shared design system
   Used by the service pages (printing.html and children).
   Tokens mirror the homepage (index.html) exactly.
   ========================================================= */

/* ===== CSS VARIABLES ===== */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #1a1a2e;
    --bg-card-hover: #1f1f35;
    --accent: #6c63ff;
    --accent-light: #8b83ff;
    --accent-glow: rgba(108, 99, 255, 0.3);
    --teal: #00d4aa;
    --teal-glow: rgba(0, 212, 170, 0.3);
    --text-primary: #f0f0f5;
    --text-secondary: #8888a0;
    --text-muted: #55556a;
    --border: rgba(255, 255, 255, 0.06);
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    --radius: 20px;
    --radius-sm: 12px;
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    line-height: 1.6;
    min-height: 100vh;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
@keyframes pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ===== BACKGROUND EFFECTS ===== */
.bg-grid {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 0;
    pointer-events: none;
}
.bg-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
    animation: pulse 6s ease-in-out infinite;
}
.bg-orb-1 {
    width: 400px; height: 400px;
    background: var(--accent-glow);
    top: -100px; right: -100px;
}
.bg-orb-2 {
    width: 300px; height: 300px;
    background: var(--teal-glow);
    bottom: -50px; left: -50px;
    animation-delay: 3s;
}

/* ===== TOP NAV ===== */
.nav {
    position: relative;
    z-index: 20;
    max-width: 1300px;
    margin: 0 auto;
    padding: 22px 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 17px;
    letter-spacing: -0.01em;
}
.nav-brand .mark {
    width: 30px; height: 30px;
    border-radius: 9px;
    background: var(--bg-secondary);
    border: 1.5px solid var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 800;
    color: var(--accent-light);
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.nav-links a {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 8px 14px;
    border-radius: 50px;
    border: 1px solid transparent;
    transition: var(--transition);
}
.nav-links a:hover {
    color: var(--text-primary);
    background: var(--bg-card);
    border-color: var(--border);
}
.nav-links a.active {
    color: var(--accent-light);
    background: rgba(108, 99, 255, 0.1);
    border-color: rgba(108, 99, 255, 0.2);
}

/* ===== LAYOUT ===== */
.wrap {
    position: relative;
    z-index: 10;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}
.wrap-wide { max-width: 1300px; }

/* ===== BREADCRUMB ===== */
.breadcrumb {
    position: relative;
    z-index: 10;
    max-width: 1100px;
    margin: 0 auto;
    padding: 26px 24px 0;
    font-size: 12.5px;
    color: var(--text-muted);
}
.breadcrumb a { color: var(--text-secondary); transition: var(--transition); }
.breadcrumb a:hover { color: var(--accent-light); }
.breadcrumb .sep { margin: 0 8px; opacity: 0.5; }

/* ===== PAGE HERO ===== */
.page-hero {
    position: relative;
    z-index: 10;
    padding: 32px 24px 30px;
    text-align: center;
    animation: fadeInUp 0.8s ease;
    max-width: 900px;
    margin: 0 auto;
}
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(108, 99, 255, 0.1);
    border: 1px solid rgba(108, 99, 255, 0.2);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent-light);
    margin-bottom: 22px;
}
.eyebrow .dot {
    width: 6px; height: 6px;
    background: var(--teal);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}
.page-hero h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(32px, 5.5vw, 56px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 18px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-light) 50%, var(--teal) 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 6s ease infinite;
}
.page-hero .lede {
    font-size: 17px;
    font-weight: 300;
    color: var(--text-secondary);
    max-width: 680px;
    margin: 0 auto;
}

/* ===== SECTIONS ===== */
.section {
    position: relative;
    z-index: 10;
    max-width: 1100px;
    margin: 0 auto;
    padding: 46px 24px 0;
}
.section h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(24px, 3.4vw, 33px);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
    color: var(--text-primary);
}
.section h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 19px;
    font-weight: 600;
    margin: 26px 0 10px;
    color: var(--text-primary);
}
.section p {
    font-size: 15.5px;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
    max-width: 80ch;
}
.section strong { color: var(--text-primary); font-weight: 600; }
.section a.inline {
    color: var(--accent-light);
    border-bottom: 1px solid rgba(108, 99, 255, 0.3);
    transition: var(--transition);
}
.section a.inline:hover { color: var(--teal); border-color: var(--teal); }
.section ul, .section ol {
    margin: 0 0 18px 20px;
    color: var(--text-secondary);
    font-weight: 300;
    font-size: 15.5px;
    line-height: 1.85;
    max-width: 80ch;
}
.section li { margin-bottom: 7px; }
.section li::marker { color: var(--accent); }

/* ===== SERVICE CARD GRID ===== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 8px;
}
.svc-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 26px;
    transition: var(--transition);
    animation: fadeInUp 0.8s ease;
    height: 100%;
}
a.svc-card { cursor: pointer; }
a.svc-card:hover {
    transform: translateY(-8px);
    border-color: rgba(108, 99, 255, 0.3);
    background: var(--bg-card-hover);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px var(--accent-glow);
}
.svc-icon {
    font-size: 26px;
    width: 54px; height: 54px;
    border-radius: var(--radius-sm);
    background: rgba(108, 99, 255, 0.1);
    border: 1px solid rgba(108, 99, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}
.svc-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 9px;
    transition: var(--transition);
}
a.svc-card:hover h3 { color: var(--accent-light); }
.svc-card p {
    font-size: 14px;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 18px;
    flex-grow: 1;
}
.svc-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-light);
    letter-spacing: 0.04em;
    margin-top: auto;
}
.svc-cta .arrow { transition: var(--transition); }
a.svc-card:hover .svc-cta .arrow { transform: translateX(4px); }

/* ===== TAGS ===== */
.tag-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.tag {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    padding: 4px 12px;
    border-radius: 50px;
    background: rgba(108, 99, 255, 0.1);
    color: var(--accent-light);
    border: 1px solid rgba(108, 99, 255, 0.15);
}
.tag.teal {
    background: rgba(0, 212, 170, 0.1);
    color: var(--teal);
    border-color: rgba(0, 212, 170, 0.15);
}

/* ===== SPEC TABLE ===== */
.table-scroll { overflow-x: auto; margin-bottom: 20px; }
table.specs {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    font-size: 14px;
    min-width: 460px;
}
table.specs th, table.specs td {
    text-align: left;
    padding: 13px 18px;
    border-bottom: 1px solid var(--border);
}
table.specs th {
    background: var(--bg-secondary);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-light);
}
table.specs td { color: var(--text-secondary); font-weight: 300; }
table.specs td:first-child { color: var(--text-primary); font-weight: 500; }
table.specs tr:last-child td { border-bottom: none; }
table.specs tbody tr { transition: var(--transition); }
table.specs tbody tr:hover { background: var(--bg-card-hover); }

/* ===== CALLOUT ===== */
.callout {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius-sm);
    padding: 20px 24px;
    margin: 22px 0;
}
.callout p { margin-bottom: 0; font-size: 14.5px; }
.callout.teal { border-left-color: var(--teal); }

/* ===== FAQ ===== */
.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px 24px;
    margin-bottom: 12px;
    transition: var(--transition);
}
.faq-item:hover { border-color: rgba(108, 99, 255, 0.25); }
.faq-item h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px;
    color: var(--text-primary);
}
.faq-item p { margin-bottom: 0; font-size: 14.5px; }

/* ===== CTA BAND ===== */
.cta-band {
    position: relative;
    z-index: 10;
    max-width: 1100px;
    margin: 60px auto 0;
    padding: 0 24px;
}
.cta-inner {
    background: linear-gradient(135deg, rgba(108,99,255,0.12), rgba(0,212,170,0.10));
    border: 1px solid rgba(108, 99, 255, 0.22);
    border-radius: var(--radius);
    padding: 44px 32px;
    text-align: center;
}
.cta-inner h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(22px, 3.2vw, 30px);
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}
.cta-inner p {
    color: var(--text-secondary);
    font-weight: 300;
    max-width: 560px;
    margin: 0 auto 24px;
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    font-size: 14.5px;
    padding: 14px 30px;
    border-radius: 50px;
    transition: var(--transition);
    border: 1px solid transparent;
}
.btn:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px var(--accent-glow);
}
.btn-ghost {
    background: transparent;
    border-color: var(--border);
    color: var(--text-secondary);
    margin-left: 8px;
}
.btn-ghost:hover {
    background: var(--bg-card);
    color: var(--text-primary);
    border-color: rgba(108, 99, 255, 0.3);
    box-shadow: none;
}

/* ===== FOOTER ===== */
.footer {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 46px 24px 60px;
    margin-top: 64px;
    border-top: 1px solid var(--border);
}
.footer-links {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}
.footer-links a {
    font-size: 13px;
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 50px;
    transition: var(--transition);
}
.footer-links a:hover { color: var(--accent-light); background: var(--bg-card); }
.footer p { font-size: 13px; color: var(--text-muted); }
.footer p a { color: var(--accent-light); transition: var(--transition); }
.footer p a:hover { color: var(--teal); }

/* ===== RESPONSIVE ===== */
@media (max-width: 860px) {
    .card-grid { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
    .nav { justify-content: center; }
}
@media (max-width: 480px) {
    .nav { padding: 18px 16px 0; }
    .nav-links a { padding: 7px 11px; font-size: 12.5px; }
    .breadcrumb { padding: 20px 16px 0; }
    .page-hero { padding: 26px 16px 22px; }
    .section { padding: 36px 16px 0; }
    .cta-band { padding: 0 16px; }
    .cta-inner { padding: 34px 22px; }
    .svc-card { padding: 24px 22px; }
    .btn-ghost { margin-left: 0; margin-top: 10px; }
}
