/* ----------------------------------------------------
   THE ONE-PERSON AGENCY LAUNCHKIT — STYLESHEET
   A starkly minimalist, premium, and cinematic system.
   ---------------------------------------------------- */

/* --- Custom Variables & Tokens --- */
:root {
    /* Color Tokens - Default Cinematic Dark Mode */
    --bg-primary: #000000;      /* stark premium absolute black */
    --bg-secondary: #050505;    /* extremely deep custom gray */
    --bg-tertiary: #0b0b0b;     /* custom panel dark */
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;  /* zinc-400 */
    --text-muted: #52525b;      /* zinc-600 */
    
    --accent-color: #e5c158;    /* default polished gold */
    --accent-rgb: 229, 193, 88;
    --accent-glow: rgba(229, 193, 88, 0.15);
    
    --accent-cyan: #00f0ff;
    --accent-magenta: #ff007f;
    --accent-gold: #e5c158;
    
    --border-color: rgba(255, 255, 255, 0.05);
    --border-hover: rgba(255, 255, 255, 0.12);
    --card-shadow: 0 15px 50px -20px rgba(0, 0, 0, 0.95);
    --glass-blur: blur(16px);

    /* Typography */
    --font-heading: 'Outfit', 'Inter', sans-serif;
    --font-editorial: 'Syne', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

    /* Layout & Spacing - Heavy Cinematic Whitespace */
    --container-width: 1200px;
    --section-pad: 9rem 0;
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 16px;
    
    /* Animation Curve */
    --ease-in-out: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: all 0.8s var(--ease-in-out);
    --transition-medium: all 0.4s var(--ease-in-out);
    --transition-fast: all 0.2s var(--ease-in-out);
}

/* --- Light Mode Variables --- */
body.light-mode {
    --bg-primary: #fcfcfc;      /* ultra stark luxury white */
    --bg-secondary: #f6f6f6;    /* light panel */
    --bg-tertiary: #ededed;     /* slightly darker light panel */
    --text-primary: #000000;    /* absolute black text */
    --text-secondary: #404040;  /* deep charcoal */
    --text-muted: #8c8c8c;      /* muted gray */
    
    --accent-color: #d4af37;    /* classic rich gold */
    --accent-rgb: 212, 175, 55;
    --accent-glow: rgba(212, 175, 55, 0.06);
    
    --border-color: rgba(0, 0, 0, 0.06);
    --border-hover: rgba(0, 0, 0, 0.14);
    --card-shadow: 0 15px 50px -25px rgba(0, 0, 0, 0.08);
}

/* --- Reset & Base Settings --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-overflow-scrolling: touch;
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    /* Cinematic Dot Mesh Grid Background */
    background-image: radial-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 32px 32px;
    background-attachment: fixed;
    line-height: 1.7;
    -webkit-overflow-scrolling: touch;
    transition: background-color 0.5s var(--ease-in-out), color 0.5s var(--ease-in-out);
}

body.light-mode {
    background-image: radial-gradient(rgba(0, 0, 0, 0.02) 1px, transparent 1px);
}

/* --- Typographical Settings --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.25;
    color: var(--text-primary);
}

p {
    font-weight: 300;
    font-size: 1.05rem;
    color: var(--text-secondary);
}

/* --- Shared Layout Containers --- */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.border-top {
    border-top: 1px solid var(--border-color);
}

/* --- Scroll Progress Bar --- */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-cyan) 0%, var(--accent-magenta) 50%, var(--accent-gold) 100%);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.6), 0 0 20px rgba(255, 0, 127, 0.3);
    z-index: 1000;
    transition: width 0.1s ease-out;
}

/* --- Header / Navigation --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-primary);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    transition: border-color 0.3s, background-color 0.5s;
}

body.dark-mode .site-header {
    background-color: rgba(9, 9, 11, 0.75);
}

body.light-mode .site-header {
    background-color: rgba(250, 250, 250, 0.75);
}

.header-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: 0.15em;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.active-pulse {
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: #22c55e;
    border-radius: 50%;
    position: relative;
    top: -1px;
    box-shadow: 0 0 8px #22c55e;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: var(--transition-fast);
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-btn-highlight {
    color: var(--accent-color);
    border: 1px solid rgba(var(--accent-rgb), 0.3);
    padding: 0.4rem 0.8rem;
    border-radius: var(--border-radius-sm);
}

.nav-btn-highlight:hover {
    background-color: var(--accent-glow);
    border-color: var(--accent-color);
}

.header-actions {
    display: flex;
    align-items: center;
}

.theme-toggle-btn {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.6rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-medium);
}

.theme-toggle-btn:hover {
    color: var(--text-primary);
    border-color: var(--border-hover);
    background-color: var(--bg-secondary);
}

.icon {
    width: 1.1rem;
    height: 1.1rem;
}

body.dark-mode .sun-icon {
    display: none;
}
body.light-mode .moon-icon {
    display: none;
}

/* --- Hero Header Section --- */
.hero-section {
    padding: 10rem 0 7rem 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.75rem;
    max-width: 900px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    border: 1px solid var(--border-color);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    background-color: var(--bg-secondary);
}

.badge-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-color);
}

.badge-text {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-secondary);
}

.hero-title {
    font-family: var(--font-editorial);
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #ffffff 30%, #a1a1aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.light-mode .hero-title {
    background: linear-gradient(135deg, #000000 30%, #4b5563 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Cinematic Scroll Down Indicator --- */
.scroll-down-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-top: 4.5rem;
    align-self: center;
    animation: fade-pulse 2s infinite ease-in-out;
}

.mouse-icon {
    width: 22px;
    height: 36px;
    border: 2px solid var(--text-muted);
    border-radius: 20px;
    position: relative;
}

.mouse-wheel {
    width: 4px;
    height: 8px;
    background-color: var(--accent-gold);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 1.6s infinite ease-in-out;
}

.scroll-text {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
}

@keyframes scroll-wheel {
    0% { top: 6px; opacity: 1; }
    50% { top: 16px; opacity: 0.2; }
    100% { top: 6px; opacity: 1; }
}

@keyframes fade-pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.9; }
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    line-height: 1.6;
    max-width: 780px;
}

.hero-actions-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1rem;
    width: 100%;
}

.hero-stat-badge {
    display: flex;
    flex-direction: column;
    border-left: 2px solid var(--accent-color);
    padding-left: 1rem;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

/* --- Premium Buttons System --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.9rem 1.8rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition-medium);
}

.btn-primary {
    background-color: var(--text-primary);
    color: var(--bg-primary);
    border: 1px solid var(--text-primary);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--text-primary);
    transform: translateY(-2px);
}

.btn-accent {
    background-color: var(--accent-color);
    color: #000000;
    border: 1px solid var(--accent-color);
    box-shadow: 0 4px 14px var(--accent-glow);
}

.btn-accent:hover {
    background-color: transparent;
    color: var(--accent-color);
    box-shadow: 0 6px 20px rgba(var(--accent-rgb), 0.35);
    transform: translateY(-2px);
}

.btn-cyan {
    background-color: var(--accent-cyan);
    color: #000000;
    border: 1px solid var(--accent-cyan);
    box-shadow: 0 4px 14px rgba(0, 240, 255, 0.15);
}

.btn-cyan:hover {
    background-color: transparent;
    color: var(--accent-cyan);
    box-shadow: 0 6px 20px rgba(0, 240, 255, 0.35);
    transform: translateY(-2px);
}

.btn-magenta {
    background-color: var(--accent-magenta);
    color: #ffffff;
    border: 1px solid var(--accent-magenta);
    box-shadow: 0 4px 14px rgba(255, 0, 127, 0.15);
}

.btn-magenta:hover {
    background-color: transparent;
    color: var(--accent-magenta);
    box-shadow: 0 6px 20px rgba(255, 0, 127, 0.35);
    transform: translateY(-2px);
}

.btn-gold {
    background-color: var(--accent-gold);
    color: #000000;
    border: 1px solid var(--accent-gold);
    box-shadow: 0 4px 14px rgba(229, 193, 88, 0.18);
}

.btn-gold:hover {
    background-color: transparent;
    color: var(--accent-gold);
    box-shadow: 0 6px 20px rgba(229, 193, 88, 0.38);
    transform: translateY(-2px);
}

.btn-arrow, .btn-external-icon {
    width: 1rem;
    height: 1rem;
    transition: var(--transition-fast);
}

.btn-primary:hover .btn-arrow {
    transform: translateX(4px);
}

.btn-accent:hover .btn-external-icon,
.btn-cyan:hover .btn-external-icon,
.btn-magenta:hover .btn-external-icon,
.btn-gold:hover .btn-external-icon {
    transform: translate(2px, -2px);
}

/* --- Section Formatting Rules --- */
.intro-section, .chapter-section, .success-section {
    padding: var(--section-pad);
}

.section-kicker {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-color);
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.section-paragraph {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

/* --- Layout Grid System --- */
.grid-two-cols {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 5rem;
    align-items: start;
}

/* --- Quote Cards --- */
.quote-card {
    border-left: 2px solid var(--border-color);
    padding: 0.5rem 0 0.5rem 1.5rem;
    margin: 2rem 0;
}

.quote-text {
    font-style: italic;
    font-size: 1.1rem;
    color: var(--text-primary);
    line-height: 1.6;
}

/* --- ROI Calculator Widget --- */
.calculator-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    position: relative;
    box-shadow: var(--card-shadow);
    transition: var(--transition-slow);
}

.calculator-card:hover {
    border-color: var(--border-hover);
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--border-radius-lg);
    background: radial-gradient(circle at 50% 0%, var(--accent-glow), transparent 60%);
    pointer-events: none;
    z-index: 1;
}

.calculator-title {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

.calculator-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.calculator-inputs {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 2;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.input-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.input-label-row label {
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.input-value-display {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-color);
}

/* Slider Custom Styling */
.slider-input {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: var(--bg-tertiary);
    outline: none;
    transition: var(--transition-fast);
}

.slider-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent-color);
    cursor: pointer;
    box-shadow: 0 0 10px var(--accent-glow);
    transition: var(--transition-fast);
}

.slider-input::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: var(--text-primary);
}

.slider-input::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border: none;
    border-radius: 50%;
    background: var(--accent-color);
    cursor: pointer;
    box-shadow: 0 0 10px var(--accent-glow);
    transition: var(--transition-fast);
}

.slider-input::-moz-range-thumb:hover {
    transform: scale(1.2);
    background: var(--text-primary);
}

.calculator-results {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.result-box {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.highlighted-result {
    border-color: rgba(var(--accent-rgb), 0.3);
    background: linear-gradient(180deg, var(--bg-tertiary), var(--accent-glow));
}

.result-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.25rem;
}

.text-accent {
    color: var(--accent-color);
}

.result-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    font-weight: 500;
}

.calculator-footer-note {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background-color: rgba(var(--accent-rgb), 0.05);
    border: 1px dashed rgba(var(--accent-rgb), 0.2);
    padding: 1rem;
    border-radius: var(--border-radius-md);
    position: relative;
    z-index: 2;
}

.calculator-footer-note span {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.calculator-footer-note strong {
    color: var(--accent-color);
}

.info-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--accent-color);
    flex-shrink: 0;
}

/* --- Chapter Layouts --- */
.grid-chapter {
    display: grid;
    grid-template-columns: 1fr 1.1fr; /* Image left / Text right by default */
    gap: 8rem;
    align-items: center;
}

.chapter-image-col {
    position: relative;
    width: 100%;
}

.chapter-text-col {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Dynamic Chapter Accent Custom Theming */
.chapter-section {
    position: relative;
    overflow: hidden;
}

.chapter-section .section-kicker,
.chapter-section .chapter-number,
.chapter-section .step-heading strong {
    color: var(--chapter-accent) !important;
}

.chapter-section .checklist-cb:checked ~ .custom-cb {
    background-color: var(--chapter-accent) !important;
    border-color: var(--chapter-accent) !important;
}

.chapter-section .checklist-item:hover .custom-cb {
    border-color: var(--chapter-accent) !important;
}

.chapter-section .quote-card {
    border-left-color: var(--chapter-accent);
}

.chapter-metadata {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chapter-number {
    font-family: var(--font-editorial);
    font-size: 4rem;
    line-height: 1;
    font-weight: 800;
    color: var(--accent-color);
    letter-spacing: -0.05em;
    opacity: 0.8;
}

.chapter-title {
    font-size: 2rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.chapter-duration {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

/* --- Chapter Checklist Styling --- */
.chapter-checklist-card {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    margin-top: 1.5rem;
}

.checklist-heading {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.checklist-items {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
}

.checklist-cb {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.custom-cb {
    width: 18px;
    height: 18px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    background-color: var(--bg-primary);
    display: inline-block;
    flex-shrink: 0;
    position: relative;
    top: 3px;
    transition: var(--transition-fast);
}

.checklist-item:hover .custom-cb {
    border-color: var(--accent-color);
}

.checklist-cb:checked ~ .custom-cb {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.checklist-cb:checked ~ .custom-cb::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid #000;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.item-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.checklist-cb:checked ~ .item-text {
    color: var(--text-muted);
    text-decoration: line-through;
}

/* --- Chapter Content Formatting --- */
.content-subtitle {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    letter-spacing: -0.01em;
    margin-bottom: 2rem;
}

.chapter-paragraph {
    margin-bottom: 1.75rem;
    font-size: 1.05rem;
}

.step-heading {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin: 2.5rem 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.technical-list {
    margin: 1.5rem 0 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.technical-list li {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 300;
}

.technical-list strong {
    color: var(--text-primary);
    font-weight: 500;
}

.cta-wrapper {
    margin-top: 3rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 2rem;
    background-color: var(--bg-secondary);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.cta-subtext {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* --- Interactive Code Preview Snippets --- */
.code-preview-box {
    background-color: #0f1015;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    margin: 2rem 0;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

body.light-mode .code-preview-box {
    background-color: #0f1015; /* Maintain coding contrast on light themes */
}

.code-header {
    background-color: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.code-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.red-dot { background-color: #ff5f56; }
.yellow-dot { background-color: #ffbd2e; }
.green-dot { background-color: #27c93f; }

.code-title {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #a1a1aa;
    margin-left: 0.5rem;
}

.code-content {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: #e4e4e7;
    padding: 1.5rem;
    line-height: 1.6;
    overflow-x: auto;
    white-space: pre;
}

/* --- Overall Success State Dashboard --- */
.success-section {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

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

.success-icon-wrapper {
    margin-bottom: 1.5rem;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.success-pulse-icon {
    width: 3.5rem;
    height: 3.5rem;
    color: var(--accent-color);
    filter: drop-shadow(0 0 10px var(--accent-glow));
    animation: success-pulse 2s infinite ease-in-out;
}

@keyframes success-pulse {
    0% { transform: scale(1); filter: drop-shadow(0 0 5px var(--accent-glow)); }
    50% { transform: scale(1.08); filter: drop-shadow(0 0 18px rgba(6, 182, 212, 0.4)); }
    100% { transform: scale(1); filter: drop-shadow(0 0 5px var(--accent-glow)); }
}

.success-heading {
    font-family: var(--font-editorial);
    font-size: 2.2rem;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.success-subheading {
    max-width: 600px;
    margin: 0 auto 3rem auto;
    font-size: 1.05rem;
}

.overall-progress-bar-container {
    max-width: 550px;
    margin: 0 auto;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--card-shadow);
}

.overall-progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.progress-track {
    width: 100%;
    height: 10px;
    background-color: var(--bg-primary);
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color), #2563eb);
    border-radius: 5px;
    width: 0%;
    transition: width 0.6s cubic-bezier(0.1, 0.8, 0.25, 1);
}

/* --- Footer --- */
.site-footer {
    padding: 6rem 0 3rem 0;
    background-color: var(--bg-primary);
}

.footer-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    padding-bottom: 4rem;
}

.footer-logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: 0.15em;
    color: var(--text-primary);
    display: block;
    margin-bottom: 1rem;
}

.footer-quote {
    font-size: 0.9rem;
    font-style: italic;
    color: var(--text-muted);
    max-width: 400px;
}

.footer-right {
    display: flex;
    justify-content: flex-end;
    gap: 5rem;
}

.footer-links-group {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.links-heading {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.footer-link {
    font-size: 0.82rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-link:hover {
    color: var(--accent-color);
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    padding-top: 2rem;
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* --- Premium Illustration Blocks --- */
.illustration-container {
    width: 100%;
    aspect-ratio: 1.1 / 1;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--card-shadow);
    transition: var(--transition-slow);
}

.illustration-container:hover {
    border-color: var(--border-hover);
    transform: scale(1.02);
}

.illustration-glow {
    position: absolute;
    width: 80%;
    height: 80%;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    pointer-events: none;
    z-index: 1;
}

#chapter1 .illustration-glow {
    background: radial-gradient(circle, var(--accent-cyan) 0%, transparent 70%);
}
#chapter2 .illustration-glow {
    background: radial-gradient(circle, var(--accent-magenta) 0%, transparent 70%);
}
#chapter3 .illustration-glow {
    background: radial-gradient(circle, var(--accent-gold) 0%, transparent 70%);
}

.illustration-svg {
    width: 85%;
    height: 85%;
    z-index: 2;
    overflow: visible;
}

/* Animations for illustrations */
@keyframes dash {
    to {
        stroke-dashoffset: 0;
    }
}
@keyframes pulse-glow {
    0%, 100% { filter: drop-shadow(0 0 4px var(--glow-color)); }
    50% { filter: drop-shadow(0 0 15px var(--glow-color)); }
}
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}
@keyframes rotate {
    to { transform: rotate(360deg); }
}
@keyframes drift {
    0% { transform: translate(0, 0); opacity: 0; }
    15% { opacity: 0.8; }
    85% { opacity: 0.8; }
    100% { transform: translate(80px, -20px); opacity: 0; }
}
@keyframes flow-right {
    0% { stroke-dashoffset: 24; }
    100% { stroke-dashoffset: 0; }
}

.animated-dash {
    stroke-dasharray: 120;
    stroke-dashoffset: 120;
    animation: dash 3.5s forwards ease-in-out;
}

.animated-pulse {
    animation: pulse-glow 3s infinite ease-in-out;
}

.animated-float {
    animation: float 5s infinite ease-in-out;
}

.animated-rotate {
    transform-origin: center;
    animation: rotate 25s infinite linear;
}

/* --- Premium Monetization Section --- */
.monetization-section {
    padding: var(--section-pad);
    background-color: #000;
    position: relative;
    overflow: hidden;
}

.monetization-container {
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid rgba(229, 193, 88, 0.15);
    border-radius: var(--border-radius-lg);
    background: linear-gradient(180deg, #050505 0%, #000000 100%);
    padding: 4.5rem 3.5rem;
    text-align: center;
    position: relative;
    box-shadow: 0 25px 60px rgba(229, 193, 88, 0.04);
}

.monetization-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 250px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
}

.monetization-glow {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(229, 193, 88, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.monetization-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.monetization-title {
    font-family: var(--font-editorial);
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.03em;
    text-transform: uppercase;
    color: #ffffff;
    margin: 0;
}

.monetization-paragraph {
    max-width: 650px;
    margin: 0 auto;
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.btn-metallic-gold {
    background: linear-gradient(135deg, #e5c158 0%, #b8932b 100%);
    color: #000000;
    border: 1px solid #ffd700;
    font-weight: 700;
    padding: 1.1rem 2.2rem;
    letter-spacing: 0.1em;
    box-shadow: 0 10px 30px rgba(229, 193, 88, 0.25);
    transition: var(--transition-medium);
}

.btn-metallic-gold:hover {
    background: transparent;
    color: #ffd700;
    box-shadow: 0 15px 40px rgba(229, 193, 88, 0.45);
    transform: translateY(-3px);
}

/* --- Cinematic Ambient Glow Blobs --- */
.cinematic-glow-blob {
    position: absolute;
    width: 650px;
    height: 650px;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.08;
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: screen;
    animation: blob-float 20s infinite ease-in-out;
}

body.light-mode .cinematic-glow-blob {
    opacity: 0.04;
    mix-blend-mode: multiply;
    filter: blur(160px);
}

.blob-cyan {
    background: radial-gradient(circle, rgba(0, 240, 255, 0.5) 0%, transparent 70%);
}
.blob-magenta {
    background: radial-gradient(circle, rgba(255, 0, 127, 0.4) 0%, transparent 70%);
}
.blob-gold {
    background: radial-gradient(circle, rgba(229, 193, 88, 0.4) 0%, transparent 70%);
}

@keyframes blob-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* --- Reveal On Scroll Animations --- */
.reveal-on-scroll {
    opacity: 0;
    filter: blur(12px);
    transform: translateY(60px) scale(0.96);
    transition: opacity 1.4s cubic-bezier(0.16, 1, 0.3, 1), 
                filter 1.4s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, filter, transform;
}

.reveal-on-scroll.active {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
}

/* --- Responsive Adjustments & Media Queries --- */

@media (max-width: 1024px) {
    :root {
        --section-pad: 5rem 0;
    }
    
    .grid-two-cols {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .grid-chapter {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .chapter-image-col {
        order: 1;
    }
    
    .chapter-text-col {
        order: 2;
    }
    
    .chapter-metadata {
        position: static;
        flex-direction: column;
        align-items: flex-start;
        border-bottom: none;
        padding-bottom: 0;
        gap: 1rem;
    }
    
    .chapter-checklist-card {
        border-top: 1px solid var(--border-color);
        padding-top: 1.5rem;
        margin-top: 1.5rem;
        width: 100%;
    }
    
    .checklist-items {
        display: flex;
        flex-direction: column;
        gap: 0.9rem;
    }
}

@media (max-width: 768px) {
    :root {
        --section-pad: 3.5rem 0;
    }

    body {
        overflow-x: clip; /* Modern CSS standard: prevents horizontal leak without disrupting vertical scroll touch dynamics */
    }

    .container {
        padding: 0 1.25rem; /* Dynamic fluid side padding for smaller mobile screens */
    }

    .main-nav {
        display: none; /* Hide standard nav list on mobile screen sizes */
    }
    
    .site-header {
        padding: 0.2rem 0;
    }
    
    .header-container {
        padding: 1rem 1.25rem;
    }
    
    /* Layout wrapping conversions */
    .grid-chapter, .grid-two-cols {
        display: flex;
        flex-direction: column;
        gap: 2.5rem;
    }
    
    /* Stack illustrations above tutorial text cleanly */
    .chapter-image-col {
        order: -1;
        width: 100%;
        max-width: 100%;
    }
    
    .chapter-text-col {
        order: 1;
        width: 100%;
    }

    .hero-section {
        padding: 7rem 0 4rem 0;
    }
    
    /* Responsive Typography */
    .hero-title {
        font-size: clamp(1.8rem, 7vw, 2.3rem);
        line-height: 1.2;
    }

    .section-title {
        font-size: clamp(1.4rem, 6vw, 1.9rem);
        line-height: 1.3;
    }

    .chapter-title {
        font-size: clamp(1.4rem, 5vw, 1.7rem);
    }

    .content-subtitle {
        font-size: clamp(1.2rem, 5vw, 1.45rem);
        margin-bottom: 1.25rem;
    }

    .success-heading {
        font-size: clamp(1.5rem, 6vw, 1.85rem);
    }

    /* Container scaling and margins */
    .calculator-card {
        padding: 1.25rem; /* Fluid padding */
    }
    
    .calculator-results {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .monetization-container {
        padding: 2.5rem 1.25rem; /* Drastically reduced to fit mobile viewports */
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .footer-right {
        justify-content: flex-start;
        gap: 3rem;
    }
    
    .cta-wrapper {
        align-items: stretch;
        padding: 1.25rem;
        margin-top: 1.75rem;
    }

    .code-preview-box {
        margin: 1.25rem 0;
    }

    .code-content {
        padding: 1rem;
        font-size: 0.78rem;
    }
    
    /* Button spacing & full width configuration */
    .btn {
        width: 100%;
        min-height: 48px; /* Accessible 48px minimum touch height guarantee */
        padding: 0.8rem 1.5rem;
        box-sizing: border-box;
    }

    .hero-actions-container {
        flex-direction: column;
        align-items: stretch;
        gap: 1.25rem;
    }

    .hero-stat-badge {
        border-left: none;
        border-top: 1px solid var(--accent-color);
        padding-left: 0;
        padding-top: 0.75rem;
        width: 100%;
        text-align: center;
        align-items: center;
    }

    /* Checklist tap UX optimization */
    .checklist-item {
        padding: 0.6rem 0; /* Comfortable tap padding height */
        min-height: 44px;  /* Accessible target touch range */
        align-items: center;
    }

    .custom-cb {
        top: 0; /* Reset vertical offset since we center-align elements */
    }

    /* Scale cinematic glow blobs down on mobile screens to prevent horizontal overflow scrolling */
    .cinematic-glow-blob {
        width: 280px;
        height: 280px;
        filter: blur(80px);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .chapter-metadata {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .checklist-items {
        grid-template-columns: 1fr;
    }
    
    .footer-right {
        flex-direction: column;
        gap: 2rem;
    }
}

/* --- Local AI Launch-Strategist Widget Styling --- */
.ai-widget-section {
    padding: var(--section-pad);
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.ai-widget-card {
    background-color: rgba(9, 9, 11, 0.6);
    border: 1px solid rgba(0, 240, 255, 0.15);
    border-radius: var(--border-radius-lg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 2.5rem;
    box-shadow: 0 20px 50px rgba(0, 240, 255, 0.05), var(--card-shadow);
    transition: var(--transition-slow);
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.ai-widget-card:hover {
    border-color: rgba(0, 240, 255, 0.35);
    box-shadow: 0 20px 60px rgba(0, 240, 255, 0.08), var(--card-shadow);
}

.ai-widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.25rem;
}

.engine-status {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background-color: rgba(0, 240, 255, 0.04);
    border: 1px solid rgba(0, 240, 255, 0.15);
    padding: 0.4rem 0.9rem;
    border-radius: 50px;
}

@keyframes status-blink {
    0%, 100% { opacity: 0.4; box-shadow: 0 0 3px var(--accent-cyan); }
    50% { opacity: 1; box-shadow: 0 0 10px var(--accent-cyan); }
}

.status-pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-cyan);
    border-radius: 50%;
    animation: status-blink 1.8s infinite ease-in-out;
}

.status-text {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--accent-cyan);
}

.widget-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin: 0;
    text-transform: uppercase;
    color: #ffffff;
}

.ai-chat-body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 0.5rem;
    scroll-behavior: smooth;
}

/* Scrollbar Customization for Chat area */
.ai-chat-body::-webkit-scrollbar {
    width: 4px;
}
.ai-chat-body::-webkit-scrollbar-track {
    background: transparent;
}
.ai-chat-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
}

.chat-message {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    max-width: 85%;
    animation: message-slide-up 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes message-slide-up {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.ai-message {
    align-self: flex-start;
}

.user-message {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.chat-message .avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 800;
    flex-shrink: 0;
    box-sizing: border-box;
}

.ai-message .avatar {
    background-color: rgba(0, 240, 255, 0.1);
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.15);
}

.user-message .avatar {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.chat-message .message-content {
    padding: 1rem 1.25rem;
    border-radius: var(--border-radius-md);
    font-size: 0.95rem;
    line-height: 1.5;
}

.ai-message .message-content {
    background-color: rgba(255, 255, 255, 0.015);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--accent-cyan);
    color: var(--text-secondary);
}

.user-message .message-content {
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-right: 3px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.ai-chat-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

.ai-choice-btn {
    background-color: rgba(255, 255, 255, 0.02);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius-md);
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-medium);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    box-sizing: border-box;
}

.ai-choice-btn:hover {
    background-color: rgba(0, 240, 255, 0.05);
    color: #ffffff;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.15);
    transform: translateY(-2px);
}

.ai-choice-btn:active {
    transform: translateY(0);
}

/* Typing Indicator Styling */
.typing-indicator {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0.8rem 1.25rem;
    background-color: rgba(255, 255, 255, 0.015);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    align-self: flex-start;
}

.typing-indicator span {
    width: 6px;
    height: 6px;
    background-color: var(--text-secondary);
    border-radius: 50%;
    animation: typing-jump 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing-jump {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* Dynamic AI Summary Dashboard Panel */
.ai-summary-box {
    margin-top: 0.5rem;
    background: linear-gradient(180deg, rgba(15, 16, 21, 0.8) 0%, rgba(9, 9, 11, 0.95) 100%);
    border: 1px dashed rgba(229, 193, 88, 0.2);
    border-radius: var(--border-radius-lg);
    padding: 1.75rem;
    box-shadow: var(--card-shadow);
    animation: message-slide-up 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    width: 100%;
}

.ai-summary-box.highlight-gold {
    border-color: rgba(229, 193, 88, 0.4);
    background: linear-gradient(180deg, rgba(15, 16, 21, 0.8) 0%, rgba(229, 193, 88, 0.03) 100%);
}

.ai-summary-box.highlight-magenta {
    border-color: rgba(255, 0, 127, 0.4);
    background: linear-gradient(180deg, rgba(15, 16, 21, 0.8) 0%, rgba(255, 0, 127, 0.03) 100%);
}

.ai-summary-box.highlight-cyan {
    border-color: rgba(0, 240, 255, 0.4);
    background: linear-gradient(180deg, rgba(15, 16, 21, 0.8) 0%, rgba(0, 240, 255, 0.03) 100%);
}

.summary-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    margin-bottom: 1rem;
}

.highlight-gold .summary-tag {
    background-color: rgba(229, 193, 88, 0.1);
    color: var(--accent-gold);
    border: 1px solid rgba(229, 193, 88, 0.3);
}

.highlight-magenta .summary-tag {
    background-color: rgba(255, 0, 127, 0.1);
    color: var(--accent-magenta);
    border: 1px solid rgba(255, 0, 127, 0.3);
}

.highlight-cyan .summary-tag {
    background-color: rgba(0, 240, 255, 0.1);
    color: var(--accent-cyan);
    border: 1px solid rgba(0, 240, 255, 0.3);
}

.summary-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.summary-recommendation {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.summary-cta-note {
    display: block;
    margin-top: 1.25rem;
    font-size: 0.82rem;
    font-style: italic;
    color: var(--text-muted);
}

/* Glowing Chapter Pulses */
@keyframes flash-gold-pulse {
    0%, 100% { box-shadow: none; border-top-color: var(--border-color); }
    50% { box-shadow: 0 0 40px rgba(229, 193, 88, 0.45); border-top-color: var(--accent-gold); }
}
.flash-gold {
    animation: flash-gold-pulse 1.8s ease-in-out 3;
}

@keyframes flash-magenta-pulse {
    0%, 100% { box-shadow: none; border-top-color: var(--border-color); }
    50% { box-shadow: 0 0 40px rgba(255, 0, 127, 0.45); border-top-color: var(--accent-magenta); }
}
.flash-magenta {
    animation: flash-magenta-pulse 1.8s ease-in-out 3;
}

@keyframes flash-cyan-pulse {
    0%, 100% { box-shadow: none; border-top-color: var(--border-color); }
    50% { box-shadow: 0 0 40px rgba(0, 240, 255, 0.45); border-top-color: var(--accent-cyan); }
}
.flash-cyan {
    animation: flash-cyan-pulse 1.8s ease-in-out 3;
}

/* Responsive adjustments for AI widget */
@media (max-width: 768px) {
    .ai-widget-card {
        padding: 1.25rem;
        gap: 1.25rem;
    }
    
    .chat-message {
        max-width: 95%;
    }
    
    .ai-chat-controls {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        padding-top: 1rem;
    }
    
    .ai-choice-btn {
        width: 100%;
        padding: 0.8rem 1.25rem;
    }

    .ai-summary-box {
        padding: 1.25rem;
    }
}

