/* ============================================
   InkFlow — Dark Glassmorphism Landing Page
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* --- Design Tokens --- */
:root {
    --bg-root: #0A0B10;
    --bg-surface: rgba(15, 16, 24, 0.6);
    --bg-glass: rgba(255, 255, 255, 0.03);
    --bg-glass-hover: rgba(255, 255, 255, 0.06);
    --bg-glass-btn: rgba(255, 255, 255, 0.05);

    --text-primary: #E4E6ED;
    --text-secondary: #8890A4;
    --text-muted: #505668;
    --text-bright: #FFFFFF;

    --accent: #D4A853;
    --accent-soft: rgba(212, 168, 83, 0.10);
    --accent-glow: rgba(212, 168, 83, 0.06);
    --accent2: #8B7CF6;
    --accent2-soft: rgba(139, 124, 246, 0.08);

    --glass-border: rgba(255, 255, 255, 0.07);
    --glass-border-h: rgba(255, 255, 255, 0.14);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --glass-blur: blur(24px);
    --glass-blur-lg: blur(40px);

    --ff-display: 'Playfair Display', Georgia, serif;
    --ff-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --ff-mono: 'JetBrains Mono', monospace;

    --fs-display: clamp(3rem, 7vw, 5.5rem);
    --fs-h2: clamp(1.75rem, 3.5vw, 2.5rem);
    --fs-h3: clamp(1.1rem, 2vw, 1.35rem);
    --fs-body: 0.95rem;
    --fs-small: 0.82rem;
    --fs-xs: 0.72rem;

    --sp-xs: 0.5rem;
    --sp-sm: 1rem;
    --sp-md: 1.5rem;
    --sp-lg: 2.5rem;
    --sp-xl: 4.5rem;
    --sp-2xl: 7rem;

    --r-sm: 8px;
    --r-md: 14px;
    --r-lg: 22px;
    --r-xl: 30px;
    --r-pill: 100px;

    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --t-fast: 0.25s var(--ease);
    --t-med: 0.45s var(--ease);
    --t-slow: 0.7s var(--ease);
}

/* --- Light Theme Overrides --- */
[data-theme="light"] {
    --bg-root: #F5F3EE;
    --bg-surface: rgba(255, 255, 255, 0.5);
    /* Slightly more opaque for better legibility */
    --bg-glass: rgba(255, 255, 255, 0.7);
    --bg-glass-hover: rgba(255, 255, 255, 0.85);
    --bg-glass-btn: rgba(255, 255, 255, 0.6);

    --text-primary: #2C2E3A;
    --text-secondary: #5A5E72;
    --text-muted: #8890A4;
    --text-bright: #1A1B24;

    --accent: #B8922E;
    --accent-soft: rgba(184, 146, 46, 0.12);
    --accent-glow: rgba(184, 146, 46, 0.15);
    --accent2: #7060E0;
    --accent2-soft: rgba(112, 96, 224, 0.12);

    /* Crisper definition */
    --glass-border: rgba(20, 20, 20, 0.08);
    --glass-border-h: rgba(20, 20, 20, 0.18);
    /* Warmer, deeper shadow */
    --glass-shadow:
        0 4px 24px -1px rgba(184, 146, 46, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.6) inset;
    --glass-blur: blur(28px);
    --glass-blur-lg: blur(44px);
}

/* Light theme — body transition */
body {
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* Light theme — mouse glow blending */
[data-theme="light"] #mouse-glow {
    mix-blend-mode: multiply;
    background: radial-gradient(circle,
            rgba(184, 146, 46, 0.08) 0%,
            rgba(112, 96, 224, 0.04) 30%,
            transparent 70%);
}

[data-theme="light"] #mouse-glow.hovering {
    background: radial-gradient(circle,
            rgba(184, 146, 46, 0.12) 0%,
            rgba(112, 96, 224, 0.06) 35%,
            transparent 70%);
}

/* Light theme — header */
[data-theme="light"] .header {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

[data-theme="light"] .header.scrolled {
    background: rgba(245, 243, 238, 0.9);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* Light theme — nav CTA */
[data-theme="light"] .nav-cta {
    color: #fff !important;
    background: linear-gradient(135deg, #CFAB58, #B08528) !important;
    box-shadow: 0 4px 16px rgba(184, 146, 46, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

[data-theme="light"] .nav-cta:hover {
    box-shadow: 0 6px 20px rgba(184, 146, 46, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
}

/* Light theme — hero orbs */
[data-theme="light"] .hero-orb.orb-1 {
    background: rgba(184, 146, 46, 0.08);
}

[data-theme="light"] .hero-orb.orb-2 {
    background: rgba(112, 96, 224, 0.06);
}

/* Light theme — hero dot grid */
[data-theme="light"] .hero-grid-bg {
    background-image: radial-gradient(rgba(0, 0, 0, 0.08) 1px, transparent 1px);
}

/* Light theme — hero italic shimmer text */
[data-theme="light"] .hero h1 em {
    background: linear-gradient(90deg, #B8922E, #E0C060, #B8922E, #E0C060);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Light theme — tag badges */
[data-theme="light"] .tag {
    background: rgba(184, 146, 46, 0.08);
    border-color: rgba(184, 146, 46, 0.25);
    color: #9C781E;
}

[data-theme="light"] .tag:hover {
    background: rgba(184, 146, 46, 0.14);
    border-color: rgba(184, 146, 46, 0.35);
}

/* Light theme — ghost button */
[data-theme="light"] .btn-ghost {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(0, 0, 0, 0.12);
    color: var(--text-primary);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 1);
    transform: translateY(-2px);
}

/* Light theme — primary button */
[data-theme="light"] .btn-prim {
    color: #fff;
    background: linear-gradient(135deg, #CFAB58, #B08528);
    box-shadow: 0 6px 24px rgba(184, 146, 46, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

[data-theme="light"] .btn-prim:hover {
    box-shadow: 0 12px 32px rgba(184, 146, 46, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

/* Light theme — app windows (Frosted Glass) */
[data-theme="light"] .app-window {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow:
        0 8px 32px -4px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .app-window:hover {
    border-color: rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.85);
    box-shadow:
        0 24px 64px -12px rgba(184, 146, 46, 0.15),
        0 0 0 1px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

[data-theme="light"] .app-window:nth-child(1)::before {
    background: radial-gradient(ellipse at 30% 20%, rgba(184, 146, 46, 0.12), transparent 60%);
}

[data-theme="light"] .app-window:nth-child(2)::before {
    background: radial-gradient(ellipse at 70% 20%, rgba(112, 96, 224, 0.12), transparent 60%);
}

/* Light theme — window bar */
[data-theme="light"] .window-bar {
    background: rgba(255, 255, 255, 0.4);
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

/* Light theme — window icons */
[data-theme="light"] .window-icon.pen {
    background: rgba(184, 146, 46, 0.1);
    border-color: rgba(184, 146, 46, 0.2);
    color: #B8922E;
}

[data-theme="light"] .window-icon.brush {
    background: rgba(112, 96, 224, 0.1);
    border-color: rgba(112, 96, 224, 0.2);
    color: #7060E0;
}

[data-theme="light"] .app-window:hover .window-icon.pen {
    color: #fff;
    background: linear-gradient(135deg, #CFAB58, #B08528);
    box-shadow: 0 8px 24px rgba(184, 146, 46, 0.3);
}

[data-theme="light"] .app-window:hover .window-icon.brush {
    color: #fff;
    background: linear-gradient(135deg, #8B7CF6, #6B5CE7);
    box-shadow: 0 8px 24px rgba(139, 124, 246, 0.3);
}

/* Light theme — mini tags */
[data-theme="light"] .mini-tag {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--text-secondary);
}

[data-theme="light"] .app-window:hover .mini-tag {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.15);
    color: var(--text-primary);
}

/* Light theme — window links */
[data-theme="light"] .window-link.amber {
    background: rgba(184, 146, 46, 0.08);
    border-color: rgba(184, 146, 46, 0.25);
    color: #9C781E;
}

[data-theme="light"] .window-link.amber:hover {
    background: rgba(184, 146, 46, 0.16);
    border-color: rgba(184, 146, 46, 0.4);
}

[data-theme="light"] .window-link.purple {
    background: rgba(112, 96, 224, 0.08);
    border-color: rgba(112, 96, 224, 0.25);
    color: #5E4BC6;
}

[data-theme="light"] .window-link.purple:hover {
    background: rgba(112, 96, 224, 0.16);
    border-color: rgba(112, 96, 224, 0.4);
}

/* Light theme — bento cards (Cards should look like physical frosted glass) */
[data-theme="light"] .bento-card {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 0, 0, 0.07);
    box-shadow:
        0 4px 24px -2px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .bento-card:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.15);
    box-shadow:
        0 20px 56px -8px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    transform: translateY(-6px) scale(1.01);
}

[data-theme="light"] .bento-card.glow-amber::after {
    background: radial-gradient(circle at 25% 25%, rgba(184, 146, 46, 0.12), transparent 55%);
}

[data-theme="light"] .bento-card.glow-purple::after {
    background: radial-gradient(circle at 75% 25%, rgba(112, 96, 224, 0.08), transparent 55%);
}

/* Light theme — swatches */
[data-theme="light"] .swatch {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .bento-card:hover .swatch {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Light theme — ink stroke svg */
[data-theme="light"] .ink-stroke .draw-line {
    stroke: #7060E0;
}

/* Light theme — features divider */
[data-theme="light"] .features::before {
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.12), transparent);
}

/* Light theme — footer */
[data-theme="light"] .footer {
    border-top-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .footer-line {
    background: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .footer-links a:hover {
    color: var(--accent);
    background: rgba(184, 146, 46, 0.08);
    border-color: rgba(184, 146, 46, 0.2);
}

/* Light theme — logo mark */
[data-theme="light"] .logo-mark {
    color: #fff;
    box-shadow: 0 4px 12px rgba(184, 146, 46, 0.25);
}

/* Light theme — mobile nav */
[data-theme="light"] .nav-links {
    background: rgba(245, 243, 238, 0.95);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

/* ============================================
   THEME TOGGLE BUTTON
   ============================================ */
.theme-toggle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    cursor: pointer;
    display: grid;
    place-items: center;
    position: relative;
    transition: all var(--t-fast);
    flex-shrink: 0;
    margin-left: 8px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Light theme toggle override */
[data-theme="light"] .theme-toggle {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

[data-theme="light"] .theme-toggle:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.2);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 1);
}

.theme-toggle:hover {
    background: var(--bg-glass-hover);
    border-color: var(--glass-border-h);
    transform: rotate(15deg) scale(1.08);
}

.theme-icon {
    position: absolute;
    font-size: 1.05rem;
    transition: opacity 0.3s ease, transform 0.3s ease;
    line-height: 1;
}

/* Dark mode default: show sun, hide moon */
.theme-icon.sun {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.theme-icon.moon {
    opacity: 0;
    transform: scale(0.5) rotate(90deg);
}

/* Light mode: show moon, hide sun */
[data-theme="light"] .theme-icon.sun {
    opacity: 0;
    transform: scale(0.5) rotate(-90deg);
}

[data-theme="light"] .theme-icon.moon {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

/* --- Reset --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--ff-body);
    font-size: var(--fs-body);
    color: var(--text-primary);
    background: var(--bg-root);
    line-height: 1.65;
    overflow-x: hidden;
    position: relative;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

button {
    font-family: inherit;
}

/* ============================================
   MOUSE TRACKER — Soft radial glow
   ============================================ */
#mouse-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    background: radial-gradient(circle,
            rgba(212, 168, 83, 0.08) 0%,
            rgba(139, 124, 246, 0.04) 30%,
            transparent 70%);
    opacity: 0;
    will-change: transform;
    mix-blend-mode: screen;
    transition: opacity 0.3s ease, width 0.3s ease, height 0.3s ease, background 0.3s ease;
}

#mouse-glow.active {
    opacity: 1;
}

#mouse-glow.hovering {
    background: radial-gradient(circle,
            rgba(212, 168, 83, 0.12) 0%,
            rgba(139, 124, 246, 0.06) 35%,
            transparent 70%);
    width: 900px;
    height: 900px;
}

/* Light theme — mouse glow blending */
[data-theme="light"] #mouse-glow {
    mix-blend-mode: multiply;
    background: radial-gradient(circle,
            rgba(184, 146, 46, 0.06) 0%,
            rgba(112, 96, 224, 0.03) 30%,
            transparent 70%);
}

[data-theme="light"] #mouse-glow.hovering {
    background: radial-gradient(circle,
            rgba(184, 146, 46, 0.09) 0%,
            rgba(112, 96, 224, 0.05) 35%,
            transparent 70%);
}

/* ============================================
   GLASS MIXIN — reusable look
   ============================================ */
.glass {
    background: var(--bg-glass);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.glass:hover {
    background: var(--bg-glass-hover);
    border-color: var(--glass-border-h);
}

/* ============================================
   UTILITIES
   ============================================ */
.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 var(--sp-md);
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--accent);
    padding: 6px 16px;
    border-radius: var(--r-pill);
    background: rgba(212, 168, 83, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(212, 168, 83, 0.12);
    transition: all var(--t-med);
}

.tag:hover {
    background: rgba(212, 168, 83, 0.10);
    border-color: rgba(212, 168, 83, 0.22);
}

.tag .pulse {
    width: 5px;
    height: 5px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.4;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

.section-title {
    font-family: var(--ff-display);
    font-size: var(--fs-h2);
    font-weight: 600;
    color: var(--text-bright);
    margin: var(--sp-xs) 0;
    line-height: 1.2;
}

.section-desc {
    font-size: var(--fs-body);
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

/* ============================================
   HEADER — Glass navbar
   ============================================ */
.header {
    position: fixed;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 1100px;
    z-index: 100;
    padding: 10px 24px;
    border-radius: var(--r-pill);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    transition: all var(--t-med);
}

.header.scrolled {
    background: rgba(10, 11, 16, 0.7);
    backdrop-filter: var(--glass-blur-lg);
    -webkit-backdrop-filter: var(--glass-blur-lg);
    border-color: var(--glass-border-h);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--ff-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-bright);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: opacity var(--t-fast);
}

.logo:hover {
    opacity: 0.85;
}

.logo-mark {
    width: 28px;
    height: 28px;
    border-radius: var(--r-sm);
    background: linear-gradient(135deg, var(--accent), #C4922E);
    display: grid;
    place-items: center;
    font-size: 0.7rem;
    color: var(--bg-root);
    font-weight: 700;
    transition: transform var(--t-fast);
}

.logo:hover .logo-mark {
    transform: rotate(-8deg) scale(1.05);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--sp-lg);
}

.nav-links a {
    font-size: var(--fs-small);
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--t-fast);
    position: relative;
    padding: 4px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width var(--t-med);
}

.nav-links a:hover {
    color: var(--text-bright);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    font-size: var(--fs-xs) !important;
    font-weight: 600 !important;
    color: var(--bg-root) !important;
    background: linear-gradient(135deg, var(--accent), #C4922E) !important;
    padding: 8px 20px !important;
    border-radius: var(--r-pill) !important;
    transition: all var(--t-fast) !important;
    box-shadow: 0 4px 16px rgba(212, 168, 83, 0.2);
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 24px rgba(212, 168, 83, 0.35) !important;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    width: 20px;
    height: 1.5px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--t-fast);
}

/* ============================================
   HERO
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: calc(var(--sp-2xl) + 50px) var(--sp-md) var(--sp-xl);
    position: relative;
    overflow: hidden;
}

/* Atmospheric orbs — floating & breathing */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(80px);
}

.hero-orb.orb-1 {
    top: -10%;
    right: 5%;
    width: 500px;
    height: 500px;
    background: rgba(212, 168, 83, 0.04);
    animation: floatOrb1 12s ease-in-out infinite;
}

.hero-orb.orb-2 {
    bottom: -15%;
    left: -5%;
    width: 600px;
    height: 600px;
    background: rgba(139, 124, 246, 0.03);
    animation: floatOrb2 15s ease-in-out infinite;
}

@keyframes floatOrb1 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }

    33% {
        transform: translate(-30px, 20px) scale(1.05);
        opacity: 0.7;
    }

    66% {
        transform: translate(20px, -15px) scale(0.95);
        opacity: 1;
    }
}

@keyframes floatOrb2 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }

    50% {
        transform: translate(25px, -20px) scale(1.08);
        opacity: 0.6;
    }
}

/* Subtle dot grid */
.hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 55% 45% at 50% 40%, black 15%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 55% 45% at 50% 40%, black 15%, transparent 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 780px;
}

.hero h1 {
    font-family: var(--ff-display);
    font-size: var(--fs-display);
    font-weight: 700;
    line-height: 1.05;
    color: var(--text-bright);
    margin: var(--sp-md) 0;
    letter-spacing: -2px;
}

.hero h1 em {
    font-style: italic;
    background: linear-gradient(90deg, var(--accent), #F0D080, var(--accent), #F0D080);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmerText 6s ease-in-out infinite;
}

@keyframes shimmerText {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.hero-sub {
    font-size: clamp(1rem, 1.8vw, 1.12rem);
    color: var(--text-secondary);
    max-width: 530px;
    margin: 0 auto var(--sp-lg);
    font-weight: 300;
    line-height: 1.75;
}

.hero-btns {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-sm);
    flex-wrap: wrap;
}

/* ============================================
   BUTTONS — All glass
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: var(--fs-small);
    font-weight: 600;
    padding: 13px 30px;
    border-radius: var(--r-pill);
    border: none;
    cursor: pointer;
    letter-spacing: 0.3px;
    transition: all var(--t-med);
    position: relative;
    overflow: hidden;
}

.btn .arr {
    transition: transform var(--t-fast);
}

.btn:hover .arr {
    transform: translateX(4px);
}

/* Primary — gradient with glass sheen + shine sweep */
.btn-prim {
    background: linear-gradient(135deg, var(--accent), #C4922E);
    color: var(--bg-root);
    box-shadow:
        0 4px 24px rgba(212, 168, 83, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-prim::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    border-radius: inherit;
    pointer-events: none;
    transition: none;
}

.btn-prim:hover::before {
    animation: shineSweep 0.6s var(--ease-out) forwards;
}

@keyframes shineSweep {
    from {
        left: -100%;
    }

    to {
        left: 120%;
    }
}

.btn-prim:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 10px 36px rgba(212, 168, 83, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* Ghost — glass button */
.btn-ghost {
    background: var(--bg-glass-btn);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--glass-border-h);
    color: var(--text-bright);
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* ============================================
   TOOLS SHOWCASE — Glass app windows
   ============================================ */
.showcase {
    padding: var(--sp-2xl) 0;
    position: relative;
}

.showcase .section-head {
    text-align: center;
    margin-bottom: var(--sp-xl);
}

.showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-md);
    max-width: 980px;
    margin: 0 auto;
}

.app-window {
    background: var(--bg-glass);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--r-xl);
    overflow: hidden;
    transition: all var(--t-slow);
    position: relative;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.15);
}

/* Inner glow on hover */
.app-window::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--r-xl);
    opacity: 0;
    transition: opacity var(--t-med);
    pointer-events: none;
}

.app-window:nth-child(1)::before {
    background: radial-gradient(ellipse at 30% 20%, rgba(212, 168, 83, 0.06), transparent 60%);
}

.app-window:nth-child(2)::before {
    background: radial-gradient(ellipse at 70% 20%, rgba(139, 124, 246, 0.06), transparent 60%);
}

.app-window:hover {
    transform: translateY(-10px) scale(1.015);
    border-color: var(--glass-border-h);
    box-shadow:
        0 28px 72px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        0 0 80px -20px rgba(212, 168, 83, 0.06);
}

.app-window:hover::before {
    opacity: 1;
}

/* Title bar */
.window-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 13px 20px;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.015);
}

.window-dots {
    display: flex;
    gap: 6px;
}

.window-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    transition: transform var(--t-fast);
}

.app-window:hover .window-dots span {
    transform: scale(1.15);
}

.window-dots span:nth-child(1) {
    background: #FF5F57;
}

.window-dots span:nth-child(2) {
    background: #FFBD2E;
}

.window-dots span:nth-child(3) {
    background: #28CA42;
}

.window-title {
    flex: 1;
    text-align: center;
    font-size: var(--fs-xs);
    font-family: var(--ff-mono);
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

/* Window body */
.window-body {
    padding: var(--sp-lg);
    position: relative;
    z-index: 1;
}

.window-icon {
    width: 54px;
    height: 54px;
    border-radius: var(--r-md);
    display: grid;
    place-items: center;
    margin-bottom: var(--sp-md);
    font-size: 1.4rem;
    transition: all var(--t-med);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.window-icon.pen {
    background: rgba(212, 168, 83, 0.08);
    color: var(--accent);
    border: 1px solid rgba(212, 168, 83, 0.12);
    box-shadow: 0 4px 16px rgba(212, 168, 83, 0.05);
}

.window-icon.brush {
    background: rgba(139, 124, 246, 0.08);
    color: var(--accent2);
    border: 1px solid rgba(139, 124, 246, 0.12);
    box-shadow: 0 4px 16px rgba(139, 124, 246, 0.05);
}

.app-window:hover .window-icon {
    transform: scale(1.1) rotate(-5deg);
    transition: all 0.5s var(--ease-spring);
}

.app-window:hover .window-icon.pen {
    background: linear-gradient(135deg, var(--accent), #C4922E);
    color: var(--bg-root);
    border-color: transparent;
    box-shadow: 0 8px 28px rgba(212, 168, 83, 0.25);
}

.app-window:hover .window-icon.brush {
    background: linear-gradient(135deg, var(--accent2), #6B5CE7);
    color: white;
    border-color: transparent;
    box-shadow: 0 8px 28px rgba(139, 124, 246, 0.25);
}

.window-body h3 {
    font-family: var(--ff-display);
    font-size: var(--fs-h3);
    font-weight: 600;
    color: var(--text-bright);
    margin-bottom: 8px;
}

.window-body p {
    font-size: var(--fs-small);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--sp-md);
}

/* Mini tags — glass pills */
.mini-features {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: var(--sp-md);
}

.mini-tag {
    font-size: var(--fs-xs);
    font-weight: 500;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    padding: 4px 12px;
    border-radius: var(--r-pill);
    transition: all var(--t-fast);
}

.app-window:hover .mini-tag {
    border-color: var(--glass-border-h);
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
}

.window-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--fs-small);
    font-weight: 600;
    transition: all var(--t-med);
    padding: 10px 22px;
    border-radius: var(--r-pill);
}

.window-link.amber {
    color: var(--accent);
    background: rgba(212, 168, 83, 0.06);
    border: 1px solid rgba(212, 168, 83, 0.12);
}

.window-link.amber:hover {
    background: rgba(212, 168, 83, 0.12);
    border-color: rgba(212, 168, 83, 0.25);
    transform: translateX(4px);
}

.window-link.purple {
    color: var(--accent2);
    background: rgba(139, 124, 246, 0.06);
    border: 1px solid rgba(139, 124, 246, 0.12);
}

.window-link.purple:hover {
    background: rgba(139, 124, 246, 0.12);
    border-color: rgba(139, 124, 246, 0.25);
    transform: translateX(4px);
}

.window-link .arr {
    transition: transform var(--t-fast);
}

.window-link:hover .arr {
    transform: translateX(3px);
}

/* ============================================
   FEATURES — Bento Grid (Glass cards)
   ============================================ */
.features {
    padding: var(--sp-2xl) 0;
    position: relative;
}

/* Thin divider */
.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, var(--glass-border-h), transparent);
}

.features .section-head {
    text-align: center;
    margin-bottom: var(--sp-xl);
}

.bento {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(155px, auto);
    gap: 14px;
    max-width: 980px;
    margin: 0 auto;
}

.bento-card {
    background: var(--bg-glass);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--r-lg);
    padding: var(--sp-md);
    position: relative;
    overflow: hidden;
    transition: all var(--t-med);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

/* Inner glow layer */
.bento-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--r-lg);
    opacity: 0;
    transition: opacity var(--t-med);
    pointer-events: none;
}

.bento-card:hover {
    border-color: var(--glass-border-h);
    transform: translateY(-5px) scale(1.01);
    box-shadow:
        0 20px 56px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    background: var(--bg-glass-hover);
}

.bento-card:hover::after {
    opacity: 1;
}

.bento-card.wide {
    grid-column: span 2;
}

.bento-card.tall {
    grid-row: span 2;
}

.bento-card.glow-amber::after {
    background: radial-gradient(circle at 25% 25%, rgba(212, 168, 83, 0.05), transparent 55%);
}

.bento-card.glow-purple::after {
    background: radial-gradient(circle at 75% 25%, rgba(139, 124, 246, 0.05), transparent 55%);
}

.bento-icon {
    font-size: 1.5rem;
    margin-bottom: var(--sp-sm);
    line-height: 1;
    transition: transform 0.5s var(--ease-spring);
}

.bento-card:hover .bento-icon {
    transform: scale(1.15) rotate(-5deg);
}

.bento-label {
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.bento-label.amber {
    color: var(--accent);
}

.bento-label.purple {
    color: var(--accent2);
}

.bento-card h4 {
    font-family: var(--ff-display);
    font-size: 1.08rem;
    font-weight: 600;
    color: var(--text-bright);
    margin-bottom: 5px;
    line-height: 1.3;
}

.bento-card p {
    font-size: var(--fs-small);
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Decorative visuals */
.bento-visual {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--sp-sm);
}

.ink-stroke {
    width: 100%;
    max-width: 200px;
}

.ink-stroke svg {
    width: 100%;
    height: auto;
}

.ink-stroke .draw-line {
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    animation: drawStroke 3s ease-in-out infinite;
}

@keyframes drawStroke {
    0% {
        stroke-dashoffset: 300;
    }

    40% {
        stroke-dashoffset: 0;
    }

    60% {
        stroke-dashoffset: 0;
    }

    100% {
        stroke-dashoffset: -300;
    }
}

.swatch-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-bottom: var(--sp-sm);
    flex: 1;
    align-content: center;
}

.swatch {
    aspect-ratio: 1;
    border-radius: var(--r-sm);
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
    transition: all 0.4s var(--ease);
}

/* Staggered swatch animation on card hover */
.bento-card:hover .swatch:nth-child(1) {
    transition-delay: 0s;
    transform: scale(1.06);
}

.bento-card:hover .swatch:nth-child(2) {
    transition-delay: 0.04s;
    transform: scale(1.06);
}

.bento-card:hover .swatch:nth-child(3) {
    transition-delay: 0.08s;
    transform: scale(1.06);
}

.bento-card:hover .swatch:nth-child(4) {
    transition-delay: 0.12s;
    transform: scale(1.06);
}

.bento-card:hover .swatch:nth-child(5) {
    transition-delay: 0.16s;
    transform: scale(1.06);
}

.bento-card:hover .swatch:nth-child(6) {
    transition-delay: 0.20s;
    transform: scale(1.06);
}

.bento-card:hover .swatch:nth-child(7) {
    transition-delay: 0.24s;
    transform: scale(1.06);
}

.bento-card:hover .swatch:nth-child(8) {
    transition-delay: 0.28s;
    transform: scale(1.06);
}

.swatch::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
}

.swatch:nth-child(1)::after {
    background: #D4A853;
}

.swatch:nth-child(2)::after {
    background: #8B7CF6;
}

.swatch:nth-child(3)::after {
    background: #4ECDC4;
}

.swatch:nth-child(4)::after {
    background: #FF6B6B;
}

.swatch:nth-child(5)::after {
    background: #45B7D1;
}

.swatch:nth-child(6)::after {
    background: #96CEB4;
}

.swatch:nth-child(7)::after {
    background: #F4A261;
}

.swatch:nth-child(8)::after {
    background: #E76F51;
}

.bento-card:hover .swatch {
    border-color: var(--glass-border-h);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ============================================
   FOOTER — Glass
   ============================================ */
.footer {
    padding: var(--sp-xl) 0 var(--sp-md);
    border-top: 1px solid var(--glass-border);
}

.footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--sp-sm);
}

.footer-brand {
    font-family: var(--ff-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.footer-links {
    display: flex;
    gap: var(--sp-md);
}

.footer-links a {
    font-size: var(--fs-small);
    color: var(--text-muted);
    transition: color var(--t-fast);
    padding: 4px 12px;
    border-radius: var(--r-pill);
    background: transparent;
    border: 1px solid transparent;
    transition: all var(--t-fast);
}

.footer-links a:hover {
    color: var(--accent);
    background: rgba(212, 168, 83, 0.04);
    border-color: rgba(212, 168, 83, 0.1);
}

.footer-line {
    width: 100%;
    height: 1px;
    background: var(--glass-border);
    margin: var(--sp-md) 0;
}

.footer-copy {
    text-align: center;
    width: 100%;
    font-size: var(--fs-xs);
    color: var(--text-muted);
}

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(32px) scale(0.98);
    transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.reveal.d1 {
    transition-delay: 0.08s;
}

.reveal.d2 {
    transition-delay: 0.16s;
}

.reveal.d3 {
    transition-delay: 0.24s;
}

.reveal.d4 {
    transition-delay: 0.32s;
}

.reveal.d5 {
    transition-delay: 0.40s;
}

.reveal.d6 {
    transition-delay: 0.48s;
}

.reveal.d7 {
    transition-delay: 0.56s;
}

@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-anim {
    opacity: 0;
    animation: heroFadeUp 0.85s var(--ease) forwards;
}

.hero-anim.ha1 {
    animation-delay: 0.1s;
}

.hero-anim.ha2 {
    animation-delay: 0.25s;
}

.hero-anim.ha3 {
    animation-delay: 0.4s;
}

.hero-anim.ha4 {
    animation-delay: 0.55s;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
    .showcase-grid {
        grid-template-columns: 1fr;
        max-width: 520px;
    }

    .bento {
        grid-template-columns: repeat(2, 1fr);
    }

    .bento-card.wide {
        grid-column: span 2;
    }

    .header {
        width: calc(100% - 24px);
        padding: 10px 18px;
    }
}

@media (max-width: 700px) {
    .nav-links {
        display: none;
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        width: 100%;
        flex-direction: column;
        background: rgba(10, 11, 16, 0.92);
        backdrop-filter: var(--glass-blur-lg);
        -webkit-backdrop-filter: var(--glass-blur-lg);
        padding: var(--sp-sm) var(--sp-md) var(--sp-md);
        gap: var(--sp-sm);
        border: 1px solid var(--glass-border);
        border-radius: var(--r-lg);
        box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
    }

    .nav-links.open {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .hero-btns {
        flex-direction: column;
    }

    .hero-btns .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 520px) {
    .bento {
        grid-template-columns: 1fr;
    }

    .bento-card.wide {
        grid-column: span 1;
    }

    .footer-row {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* ============================================
   NEW FEATURE ANIMATIONS
   ============================================ */

/* 1. 12 Styles (Dashed/Dotted Lines) */
.draw-line.dashed {
    stroke-dasharray: 10, 10;
    animation: drawStroke 3s ease-in-out infinite;
    animation-delay: 0.2s;
}

.draw-line.dotted {
    stroke-dasharray: 2, 8;
    stroke-linecap: round;
    animation: drawStroke 3s ease-in-out infinite;
    animation-delay: 0.4s;
}

/* 2. Smart Paper (Grid Pulse) */
.smart-paper-anim {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    position: relative;
    padding: 10px;
}

.paper-line {
    width: 100%;
    height: 1px;
    background: rgba(212, 168, 83, 0.3);
    position: relative;
    overflow: visible;
}

.paper-line::after {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 20px;
    background-image: linear-gradient(90deg, transparent 50%, rgba(212, 168, 83, 0.1) 50%);
    background-size: 20px 100%;
    opacity: 0;
    animation: paperGridPulse 4s ease-in-out infinite;
}

@keyframes paperGridPulse {

    0%,
    100% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }
}

/* 3. Customization (Sliders) */
.sliders-anim {
    width: 80%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.slider-track {
    width: 100%;
    height: 2px;
    background: rgba(212, 168, 83, 0.2);
    position: relative;
    border-radius: 2px;
}

.slider-knob {
    width: 10px;
    height: 10px;
    background: #B8922E;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 8px rgba(184, 146, 46, 0.4);
}

.slider-knob.k1 {
    left: 20%;
    animation: moveKnob1 4s ease-in-out infinite;
}

.slider-knob.k2 {
    left: 80%;
    animation: moveKnob2 5s ease-in-out infinite;
}

.slider-knob.k3 {
    left: 50%;
    animation: moveKnob3 3s ease-in-out infinite;
}

@keyframes moveKnob1 {

    0%,
    100% {
        left: 20%;
    }

    50% {
        left: 70%;
    }
}

@keyframes moveKnob2 {

    0%,
    100% {
        left: 80%;
    }

    50% {
        left: 40%;
    }
}

@keyframes moveKnob3 {

    0%,
    100% {
        left: 50%;
    }

    50% {
        left: 30%;
    }
}

/* 4. Margins (Breathing Box) */
.margin-anim {
    width: 80px;
    height: 50px;
    border: 1px dashed rgba(212, 168, 83, 0.3);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.margin-box {
    width: 100%;
    height: 100%;
    background: rgba(212, 168, 83, 0.05);
    animation: breatheMargin 4s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5px;
}

.margin-arrow {
    width: 0;
    height: 0;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
}

.margin-arrow.left {
    border-right: 6px solid #B8922E;
}

.margin-arrow.right {
    border-left: 6px solid #B8922E;
}

@keyframes breatheMargin {

    0%,
    100% {
        width: 100%;
        opacity: 0.5;
    }

    50% {
        width: 60%;
        opacity: 1;
    }
}

/* 5. Instant Art (Lightning Stroke) */
.draw-fast {
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    animation: drawFast 2s ease-in-out infinite;
    filter: drop-shadow(0 0 5px rgba(139, 124, 246, 0.4));
}

@keyframes drawFast {
    0% {
        stroke-dashoffset: 400;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    40% {
        stroke-dashoffset: 0;
    }

    70% {
        opacity: 1;
    }

    100% {
        stroke-dashoffset: 0;
        opacity: 0;
    }
}

/* 7. SVG Export (Vector Pulse) */
.vector-anim {
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: flex-end;
}

.vector-box {
    border: 1.5px solid #8B7CF6;
    background: rgba(139, 124, 246, 0.1);
    position: absolute;
    box-shadow: 0 0 10px rgba(139, 124, 246, 0.2);
}

.vector-box.small {
    width: 20px;
    height: 20px;
    bottom: 10px;
    left: 10px;
    z-index: 2;
    animation: vectorSmall 4s ease-in-out infinite;
}

.vector-box.large {
    width: 40px;
    height: 40px;
    top: 10px;
    right: 10px;
    opacity: 0.5;
    animation: vectorLarge 4s ease-in-out infinite;
}

@keyframes vectorSmall {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(0.8);
    }
}

@keyframes vectorLarge {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.2);
        opacity: 1;
        border-color: #fff;
    }
}

/* Light Theme Overrides for New Animations */
[data-theme="light"] .paper-line {
    background: rgba(184, 146, 46, 0.2);
}

[data-theme="light"] .slider-track {
    background: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .margin-anim {
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .margin-box {
    background: rgba(184, 146, 46, 0.1);
}

/* Header Controls (Group Toggle + Hamburger) */
.header-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-controls .theme-toggle {
    margin-left: 0;
}