/* ==========================================================================
   Guardian Pulse — Comprehensive Self-Contained Stylesheet
   Zero external CSS compiler dependencies — 100% bulletproof offline/online rendering
   ========================================================================== */

/* --- CSS Variables & Theme --- */
:root {
    --bg-dark-950: #060913;
    --bg-dark-900: #0b1120;
    --bg-dark-850: #0f172a;
    --bg-dark-800: #1e293b;
    --bg-dark-700: #334155;
    --border-dark: #1e293b;
    --border-light: rgba(255, 255, 255, 0.1);

    --teal-400: #2dd4bf;
    --teal-500: #14b8a6;
    --teal-600: #0d9488;
    --emerald-400: #34d399;
    --cyan-400: #38bdf8;
    --coral-400: #ff5a5f;
    --amber-400: #fbbf24;
    --red-400: #f87171;
    --purple-400: #c084fc;

    --text-white: #ffffff;
    --text-slate-100: #f1f5f9;
    --text-slate-200: #e2e8f0;
    --text-slate-300: #cbd5e1;
    --text-slate-400: #94a3b8;
    --text-slate-500: #64748b;
}

/* --- Reset & Global Defaults --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-dark-950);
}

body {
    background-color: var(--bg-dark-950);
    color: var(--text-slate-100);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

img, svg, canvas {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    letter-spacing: -0.035em;
    font-weight: 700;
    color: var(--text-white);
    line-height: 1.2;
}

.font-mono {
    font-family: 'JetBrains Mono', monospace;
}

.font-sans {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.hero-headline {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.08;
}

.gradient-text-ai {
    background: linear-gradient(135deg, #2dd4bf 0%, #38bdf8 50%, #4facfe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 24px rgba(45, 212, 191, 0.3));
}

/* --- Cyber Grid & Ambient Background Gradients --- */
.cyber-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse 60% 50% at 50% 30%, #000 70%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 30%, #000 70%, transparent 100%);
}

.glow-orb {
    position: absolute;
    border-radius: 9999px;
    filter: blur(120px);
    opacity: 0.25;
    pointer-events-none;
}

.glow-top-left {
    top: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #0d9488, transparent 70%);
}

.glow-top-right {
    top: 5%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #0284c7, transparent 70%);
}

.glow-center {
    top: 45%;
    left: 30%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, #10b981, transparent 70%);
    opacity: 0.12;
}

/* --- Layout & Grid System --- */
.max-w-7xl {
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
}

.max-w-5xl {
    max-width: 64rem;
    margin-left: auto;
    margin-right: auto;
}

.max-w-3xl {
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

.max-w-2xl {
    max-width: 42rem;
}

.max-w-md {
    max-width: 28rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-7 { padding-left: 1.75rem; padding-right: 1.75rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-3\.5 { padding-top: 0.875rem; padding-bottom: 0.875rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.pt-12 { padding-top: 3rem; }
.pb-20 { padding-bottom: 5rem; }

.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gap-2 { gap: 0.5rem; }
.gap-2\.5 { gap: 0.625rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.inline-flex { display: inline-flex; }

.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.top-0 { top: 0; }
.inset-0 { inset: 0; }
.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-50 { z-index: 50; }
.overflow-hidden { overflow: hidden; }
.pointer-events-none { pointer-events: none; }

/* Sizing Utilities */
.w-full { width: 100%; }
.h-full { height: 100%; }
.w-36 { width: 9rem; max-width: 9rem; }
.h-36 { height: 9rem; max-height: 9rem; }
.w-11 { width: 2.75rem; max-width: 2.75rem; }
.h-11 { height: 2.75rem; max-height: 2.75rem; }
.w-12 { width: 3rem; max-width: 3rem; }
.h-12 { height: 3rem; max-height: 3rem; }
.w-10 { width: 2.5rem; max-width: 2.5rem; }
.h-10 { height: 2.5rem; max-height: 2.5rem; }
.w-8 { width: 2rem; max-width: 2rem; }
.h-8 { height: 2rem; max-height: 2rem; }
.w-2 { width: 0.5rem; }
.h-2 { height: 0.5rem; }
.w-2\.5 { width: 0.625rem; }
.h-2\.5 { height: 0.625rem; }
.w-3 { width: 0.75rem; }
.h-3 { height: 0.75rem; }
.h-20 { height: 5rem; }
.h-9 { height: 2.25rem; }
.h-4 { height: 1rem; }
.h-6 { height: 1.5rem; }
.h-7 { height: 1.75rem; }
.h-8 { height: 2rem; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }

/* Responsive Media Queries */
@media (min-width: 640px) {
    .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .sm\:flex-row { flex-direction: row; }
    .sm\:text-right { text-align: right; }
    .sm\:block { display: block; }
    .sm\:flex { display: flex; }
    .sm\:text-5xl { font-size: 3rem; }
    .sm\:text-base { font-size: 1rem; }
    .sm\:text-lg { font-size: 1.125rem; }
    .sm\:p-12 { padding: 3rem; }
}

@media (min-width: 768px) {
    .md\:flex { display: flex; }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
    .md\:col-span-8 { grid-column: span 8 / span 8; }
    .md\:col-span-4 { grid-column: span 4 / span 4; }
}

@media (min-width: 1024px) {
    .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
    .lg\:pt-20 { padding-top: 5rem; }
    .lg\:pb-28 { padding-bottom: 7rem; }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
    .lg\:col-span-7 { grid-column: span 7 / span 7; }
    .lg\:col-span-5 { grid-column: span 5 / span 5; }
    .lg\:p-8 { padding: 2rem; }
    .lg\:justify-end { justify-content: flex-end; }
    .lg\:text-6xl { font-size: 3.75rem; }
}

/* --- Font Sizes & Colors --- */
.text-6xl { font-size: 3.75rem; }
.text-5xl { font-size: 3rem; }
.text-4xl { font-size: 2.25rem; }
.text-3xl { font-size: 1.875rem; }
.text-2xl { font-size: 1.5rem; }
.text-xl { font-size: 1.25rem; }
.text-lg { font-size: 1.125rem; }
.text-base { font-size: 1rem; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-\[10px\] { font-size: 10px; }
.text-\[11px\] { font-size: 11px; }

.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.font-black { font-weight: 900; }

.tracking-tight { letter-spacing: -0.025em; }
.tracking-widest { letter-spacing: 0.1em; }
.uppercase { text-transform: uppercase; }

.text-white { color: var(--text-white); }
.text-slate-100 { color: var(--text-slate-100); }
.text-slate-200 { color: var(--text-slate-200); }
.text-slate-300 { color: var(--text-slate-300); }
.text-slate-400 { color: var(--text-slate-400); }
.text-slate-500 { color: var(--text-slate-500); }
.text-slate-600 { color: #475569; }
.text-slate-900 { color: #0f172a; }
.text-slate-950 { color: #020617; }
.text-teal-300 { color: #5eead4; }
.text-teal-400 { color: var(--teal-400); }
.text-emerald-300 { color: #6ee7b7; }
.text-emerald-400 { color: var(--emerald-400); }
.text-cyan-300 { color: #7dd3fc; }
.text-cyan-400 { color: var(--cyan-400); }
.text-amber-300 { color: #fcd34d; }
.text-amber-400 { color: var(--amber-400); }
.text-red-200 { color: #fecaca; }
.text-red-300 { color: #fca5a5; }
.text-red-400 { color: var(--red-400); }
.text-purple-300 { color: #d8b4fe; }
.text-purple-400 { color: var(--purple-400); }
.text-accent-coral { color: var(--coral-400); }

/* --- Background Colors --- */
.bg-dark-950 { background-color: var(--bg-dark-950); }
.bg-dark-900 { background-color: var(--bg-dark-900); }
.bg-dark-850 { background-color: var(--bg-dark-850); }
.bg-dark-800 { background-color: var(--bg-dark-800); }
.bg-dark-700 { background-color: var(--bg-dark-700); }
.bg-dark-950\/80 { background-color: rgba(6, 9, 19, 0.85); }
.bg-dark-900\/80 { background-color: rgba(11, 17, 32, 0.8); }
.bg-dark-900\/70 { background-color: rgba(11, 17, 32, 0.7); }
.bg-dark-900\/90 { background-color: rgba(11, 17, 32, 0.9); }
.bg-dark-900\/40 { background-color: rgba(11, 17, 32, 0.4); }
.bg-dark-900\/50 { background-color: rgba(11, 17, 32, 0.5); }
.bg-dark-800\/90 { background-color: rgba(30, 41, 59, 0.9); }
.bg-slate-900\/90 { background-color: rgba(15, 23, 42, 0.9); }
.bg-slate-800\/40 { background-color: rgba(30, 41, 59, 0.4); }
.bg-slate-800 { background-color: var(--bg-dark-800); }
.bg-white { background-color: #ffffff; }

.bg-teal-500\/10 { background-color: rgba(20, 184, 166, 0.1); }
.bg-teal-500\/20 { background-color: rgba(20, 184, 166, 0.2); }
.bg-emerald-500\/10 { background-color: rgba(16, 185, 129, 0.1); }
.bg-emerald-500\/20 { background-color: rgba(16, 185, 129, 0.2); }
.bg-emerald-950\/80 { background-color: rgba(2, 44, 34, 0.8); }
.bg-cyan-500\/10 { background-color: rgba(6, 182, 212, 0.1); }
.bg-cyan-500\/20 { background-color: rgba(6, 182, 212, 0.2); }
.bg-amber-500\/10 { background-color: rgba(245, 158, 11, 0.1); }
.bg-amber-500 { background-color: #f59e0b; }
.bg-red-500\/10 { background-color: rgba(239, 68, 68, 0.1); }
.bg-red-500\/20 { background-color: rgba(239, 68, 68, 0.2); }
.bg-red-500\/80 { background-color: rgba(239, 68, 68, 0.8); }
.bg-red-900\/80 { background-color: rgba(127, 29, 29, 0.8); }
.bg-red-950\/95 { background-color: rgba(69, 10, 10, 0.95); }
.bg-purple-500\/20 { background-color: rgba(168, 85, 247, 0.2); }
.bg-accent-coral\/10 { background-color: rgba(255, 90, 95, 0.1); }
.bg-accent-coral\/20 { background-color: rgba(255, 90, 95, 0.2); }
.bg-emerald-400 { background-color: #34d399; }
.bg-teal-400 { background-color: #2dd4bf; }
.bg-teal-500 { background-color: #14b8a6; }
.bg-red-400 { background-color: #f87171; }
.bg-purple-400 { background-color: #c084fc; }

/* --- Dedicated Component Card Backdrops --- */
.watch-glow-backdrop {
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.2) 0%, rgba(16, 185, 129, 0.1) 40%, transparent 70%);
    filter: blur(40px);
    border-radius: 9999px;
    pointer-events: none;
    z-index: 0;
}

.escalation-flow-card {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.95) 0%, rgba(11, 17, 32, 0.98) 100%) !important;
    border: 1px solid rgba(51, 65, 85, 0.85) !important;
    border-radius: 20px;
}

.download-card-wrapper {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(6, 9, 19, 0.98) 100%) !important;
    border: 1px solid rgba(20, 184, 166, 0.35) !important;
    border-radius: 24px;
}

/* --- Dedicated High-Impact Button Classes --- */
.btn-download-primary {
    background: linear-gradient(135deg, #2dd4bf 0%, #10b981 100%) !important;
    color: #060913 !important;
    font-weight: 800 !important;
    padding: 14px 28px !important;
    border-radius: 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    font-size: 1rem !important;
    box-shadow: 0 10px 25px -5px rgba(20, 184, 166, 0.45), 0 0 15px rgba(45, 212, 191, 0.3) !important;
    transition: all 0.2s ease !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    text-decoration: none !important;
    cursor: pointer !important;
}

.btn-download-primary:hover {
    transform: translateY(-2px) !important;
    background: linear-gradient(135deg, #5eead4 0%, #34d399 100%) !important;
    box-shadow: 0 15px 30px -5px rgba(20, 184, 166, 0.65), 0 0 25px rgba(45, 212, 191, 0.5) !important;
    color: #020617 !important;
}

.btn-specs-secondary {
    background: rgba(30, 41, 59, 0.85) !important;
    color: #f1f5f9 !important;
    border: 1px solid rgba(51, 65, 85, 0.8) !important;
    font-weight: 600 !important;
    padding: 14px 24px !important;
    border-radius: 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    font-size: 0.95rem !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    cursor: pointer !important;
}

.btn-specs-secondary:hover {
    background: rgba(51, 65, 85, 0.95) !important;
    border-color: rgba(45, 212, 191, 0.5) !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
}

.btn-sim-link {
    color: #94a3b8 !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 8px 12px !important;
    transition: color 0.2s ease !important;
}

.btn-sim-link:hover {
    color: #2dd4bf !important;
}

.btn-header-cta {
    background: linear-gradient(135deg, #2dd4bf 0%, #10b981 100%) !important;
    color: #060913 !important;
    font-weight: 700 !important;
    padding: 9px 20px !important;
    font-size: 0.875rem !important;
    border-radius: 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    box-shadow: 0 4px 15px rgba(20, 184, 166, 0.35) !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
}

.btn-header-cta:hover {
    background: linear-gradient(135deg, #5eead4 0%, #34d399 100%) !important;
    transform: translateY(-1px) !important;
}

/* --- Borders --- */
.border { border-width: 1px; border-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-slate-800 { border-color: #1e293b; }
.border-slate-800\/80 { border-color: rgba(30, 41, 59, 0.8); }
.border-slate-800\/60 { border-color: rgba(30, 41, 59, 0.6); }
.border-slate-700 { border-color: #334155; }
.border-slate-700\/80 { border-color: rgba(51, 65, 85, 0.8); }
.border-teal-500\/30 { border-color: rgba(20, 184, 166, 0.3); }
.border-teal-500\/20 { border-color: rgba(20, 184, 166, 0.2); }
.border-teal-500\/40 { border-color: rgba(20, 184, 166, 0.4); }
.border-emerald-500\/30 { border-color: rgba(16, 185, 129, 0.3); }
.border-emerald-500\/40 { border-color: rgba(16, 185, 129, 0.4); }
.border-cyan-500\/30 { border-color: rgba(6, 182, 212, 0.3); }
.border-cyan-500\/40 { border-color: rgba(6, 182, 212, 0.4); }
.border-amber-500\/30 { border-color: rgba(245, 158, 11, 0.3); }
.border-red-500\/40 { border-color: rgba(239, 68, 68, 0.4); }
.border-red-500\/50 { border-color: rgba(239, 68, 68, 0.5); }
.border-purple-500\/30 { border-color: rgba(168, 85, 247, 0.3); }
.border-purple-500\/50 { border-color: rgba(168, 85, 247, 0.5); }
.border-accent-coral\/20 { border-color: rgba(255, 90, 95, 0.2); }

/* --- Border Radius --- */
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-full { border-radius: 9999px; }

/* --- Shadows & Backdrop Blur --- */
.backdrop-blur-xl { backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
.backdrop-blur-md { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.backdrop-blur { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.1); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.2); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6); }

/* --- Header Specific --- */
header {
    height: 80px;
}

header .max-w-7xl {
    height: 100%;
}

.logo-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

/* --- Heartbeat & Pulse Animations --- */
@keyframes heartPulse {
    0% { transform: scale(1); }
    14% { transform: scale(1.22); }
    28% { transform: scale(1); }
    42% { transform: scale(1.18); }
    70% { transform: scale(1); }
}

.heart-beat {
    animation: heartPulse 1.2s infinite ease-in-out;
    transform-origin: center;
}

.heart-beat.fast {
    animation-duration: 0.45s !important;
}

.pulse-dot {
    animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
    75%, 100% {
        transform: scale(2);
        opacity: 0;
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(-25%);
        animation-timing-function: cubic-bezier(0.8,0,1,1);
    }
    50% {
        transform: none;
        animation-timing-function: cubic-bezier(0,0,0.2,1);
    }
}

.animate-bounce {
    animation: bounce 1s infinite;
}

@keyframes pulse {
    50% {
        opacity: .5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* --- Realistic Smartwatch Device Mockup --- */
.smartwatch-wrapper {
    position: relative;
    width: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    filter: drop-shadow(0 25px 35px rgba(0, 0, 0, 0.7));
    margin: 0 auto;
}

.watch-strap {
    width: 140px;
    height: 44px;
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    border-left: 2px solid rgba(255, 255, 255, 0.08);
    border-right: 2px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 1;
}

.watch-strap-top {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.1);
}

.watch-strap-bottom {
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    box-shadow: inset 0 -2px 4px rgba(0, 0, 0, 0.5);
}

.smartwatch-body {
    width: 270px;
    height: 300px;
    background: linear-gradient(145deg, #2d3748 0%, #1a202c 40%, #0f172a 100%);
    border-radius: 46px;
    padding: 12px;
    box-shadow: 
        0 0 0 3px rgba(255, 255, 255, 0.15),
        0 15px 30px rgba(0, 0, 0, 0.8),
        inset 0 2px 5px rgba(255, 255, 255, 0.3),
        inset 0 -3px 8px rgba(0, 0, 0, 0.8);
    position: relative;
    z-index: 2;
}

.smartwatch-screen {
    width: 100%;
    height: 100%;
    background-color: #030712;
    border-radius: 36px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.9);
}

.watch-crown {
    position: absolute;
    right: -7px;
    width: 7px;
    background: linear-gradient(90deg, #4b5563, #9ca3af, #374151);
    border-radius: 0 4px 4px 0;
    box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.top-crown {
    top: 75px;
    height: 36px;
}

.bottom-crown {
    top: 145px;
    height: 24px;
}

/* --- Realistic Smartphone Showcase Mockup --- */
.phone-mockup-frame {
    position: relative;
    background: #0f172a;
    border: 6px solid #334155;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.7);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 320px;
    margin: 0 auto;
}

.phone-mockup-frame img {
    width: 100%;
    height: auto;
    display: block;
}

.phone-notch {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 75px;
    height: 16px;
    background-color: #0f172a;
    border-radius: 9999px;
    z-index: 20;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- Simulation Buttons Styling --- */
.sim-btn {
    padding: 14px 16px;
    border-radius: 16px;
    background-color: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(51, 65, 85, 0.8);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-align: left;
    outline: none;
    width: 100%;
}

.sim-btn:hover {
    background-color: rgba(30, 41, 59, 0.95);
    border-color: rgba(20, 184, 166, 0.5);
    transform: translateY(-2px);
}

.sim-btn.active {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.18) 0%, rgba(15, 23, 42, 0.95) 100%);
    border-color: #14b8a6;
    box-shadow: 0 0 15px rgba(20, 184, 166, 0.25);
}

/* --- EKG Canvas Oscilloscope Box --- */
#ekgCanvas {
    width: 100%;
    height: 80px;
    max-height: 80px;
    display: block;
}

/* --- Equalizer Visualizer Bars --- */
.eq-bar {
    width: 14px;
    background: linear-gradient(180deg, #2dd4bf 0%, #0d9488 100%);
    border-radius: 4px;
    transition: height 0.12s ease-in-out, background 0.3s;
}

.eq-bar.danger {
    background: linear-gradient(180deg, #f87171 0%, #dc2626 100%) !important;
}

.eq-bar.warning {
    background: linear-gradient(180deg, #fbbf24 0%, #d97706 100%) !important;
}

/* --- QR Code Container Box --- */
.qr-box {
    width: 140px;
    height: 140px;
    max-width: 140px;
    max-height: 140px;
    background-color: #ffffff;
    padding: 8px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px auto;
}

.qr-box svg {
    width: 100%;
    height: 100%;
}

/* --- Custom Scrollbar for Terminal Logs --- */
.scrollbar-thin::-webkit-scrollbar {
    width: 6px;
}
.scrollbar-thin::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.6);
    border-radius: 8px;
}
.scrollbar-thin::-webkit-scrollbar-thumb {
    background: rgba(51, 65, 85, 0.8);
    border-radius: 8px;
}
.scrollbar-thin::-webkit-scrollbar-thumb:hover {
    background: rgba(20, 184, 166, 0.8);
}

/* --- Hidden / Utility helpers --- */
.hidden { display: none !important; }
