/* ==========================================================================
   A2Z Website — Main Stylesheet
   Design: Yeldra-inspired Dark — Deep Black + Purple + Green
   Font: Inter (Google Fonts)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ==========================================================================
   1. RESET
   ========================================================================== */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ==========================================================================
   2. CUSTOM PROPERTIES
   ========================================================================== */

:root {
    /* Backgrounds */
    --bg-primary:   #1b2632;
    --bg-secondary: #1f2d3d;
    --bg-card:      rgba(255, 255, 255, 0.04);
    --bg-card-hover:rgba(255, 255, 255, 0.07);

    /* Accents — Blue */
    --accent-blue:       #0b5f84;
    --accent-blue-light: #1ab4e8;
    --accent-blue-glow:  rgba(26, 180, 232, 0.30);
    --accent-green:        #10b981;
    --accent-green-light:  #34d399;
    --accent-green-glow:   rgba(16, 185, 129, 0.25);

    /* Text */
    --text-primary:   #f8fafc;
    --text-secondary: rgba(248, 250, 252, 0.55);
    --text-muted:     rgba(248, 250, 252, 0.30);

    /* Borders */
    --border-subtle: rgba(255, 255, 255, 0.07);
    --border-medium: rgba(255, 255, 255, 0.12);
    --border-accent: rgba(11, 95, 132, 0.4);

    /* Typography */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Type Scale */
    --text-xs:   0.75rem;
    --text-sm:   0.875rem;
    --text-base: 1rem;
    --text-lg:   1.125rem;
    --text-xl:   1.25rem;
    --text-2xl:  1.5rem;
    --text-3xl:  1.875rem;
    --text-4xl:  2.25rem;
    --text-5xl:  3rem;
    --text-6xl:  3.75rem;
    --text-7xl:  4.5rem;

    /* Spacing */
    --space-1:  0.5rem;
    --space-2:  1rem;
    --space-3:  1.5rem;
    --space-4:  2rem;
    --space-6:  3rem;
    --space-8:  4rem;
    --space-12: 6rem;
    --space-16: 8rem;
    --space-20: 10rem;

    /* Radii */
    --radius-sm:   6px;
    --radius-md:   10px;
    --radius-lg:   14px;
    --radius-xl:   20px;
    --radius-2xl:  28px;
    --radius-full: 9999px;

    /* Container */
    --container-xl: 1200px;

    /* Transitions */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   3. BASE
   ========================================================================== */

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

.skip-link {
    position: absolute;
    top: -9999px; left: -9999px;
    background: var(--accent-blue);
    color: #fff;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    z-index: 9999;
    font-size: var(--text-sm);
}
.skip-link:focus { top: 16px; left: 16px; }

/* ==========================================================================
   4. LAYOUT UTILITIES
   ========================================================================== */

.container {
    width: 100%;
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: 0 var(--space-4);
}

.section {
    padding: var(--space-16) 0;
}

.section--alt {
    background-color: var(--bg-secondary);
    position: relative;
}

.section-header {
    max-width: 640px;
    margin-bottom: var(--space-8);
}

.section-header--center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.section-header p {
    color: var(--text-secondary);
    font-size: var(--text-lg);
    margin-top: var(--space-2);
}

.grid {
    display: grid;
    gap: var(--space-3);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.divider {
    height: 1px;
    background: var(--border-subtle);
}

/* ==========================================================================
   5. TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

h1 { font-size: clamp(2.5rem, 5vw, var(--text-7xl)); }
h2 { font-size: clamp(2rem, 3.5vw, var(--text-5xl)); }
h3 { font-size: var(--text-2xl); }

.gradient-text {
    background: linear-gradient(135deg, #fff 0%, #0b5f84 50%, #1ab4e8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-blue-light);
    padding: 5px 12px;
    border: 1px solid rgba(11, 95, 132, 0.25);
    border-radius: var(--radius-full);
    background: rgba(11, 95, 132, 0.08);
    margin-bottom: var(--space-2);
}

.accent {
    background: linear-gradient(135deg, #0b5f84, #1ab4e8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================================================
   6. BUTTONS
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    line-height: 1;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
    text-decoration: none;
}

.btn--primary {
    background: linear-gradient(135deg, #0b5f84, #1ab4e8);
    color: #fff;
    box-shadow: 0 0 30px var(--accent-blue-glow);
}
.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 50px var(--accent-blue-glow), 0 8px 24px rgba(0,0,0,0.4);
}

.btn--secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-medium);
    backdrop-filter: blur(8px);
}
.btn--secondary:hover {
    border-color: var(--border-accent);
    background: rgba(11, 95, 132, 0.08);
    transform: translateY(-2px);
}

.btn--large  { padding: 14px 28px; font-size: var(--text-base); }
.btn--medium { padding: 11px 22px; }
.btn--small  { padding: 8px 16px; font-size: var(--text-xs); }

/* ==========================================================================
   7. NAVIGATION
   ========================================================================== */

.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 900;
    padding: 18px 0;
    transition: background var(--transition-base), border-color var(--transition-base);
    border-bottom: 1px solid transparent;
}

.nav.scrolled {
    background: rgba(8, 8, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom-color: var(--border-subtle);
}

.nav__inner {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.nav__logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.nav__logo-img {
    height: 50px;
    width: auto;
    max-width: 150px;
    display: block;
    object-fit: contain;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    margin-left: auto;
    list-style: none;
}

.nav__link {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
    padding: 8px 14px;
    border-radius: var(--radius-full);
    transition: color var(--transition-fast), background var(--transition-fast);
}

.nav__link:hover,
.nav__link.active {
    color: var(--text-primary);
    background: rgba(255,255,255,0.06);
}

.nav__cta {
    font-size: var(--text-sm);
    font-weight: 600;
    color: #fff;
    padding: 9px 20px;
    background: linear-gradient(135deg, #0b5f84, #1ab4e8);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    box-shadow: 0 0 20px var(--accent-blue-glow);
    margin-left: var(--space-1);
}

.nav__cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 36px var(--accent-blue-glow);
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-left: auto;
}

.nav__toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

/* ==========================================================================
   8. HERO
   ========================================================================== */

.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: calc(var(--space-8) + 80px) 0 var(--space-6);
    overflow: hidden;
}

/* Background flowing paths */
.hero__bg-paths {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    will-change: auto;
    contain: strict;
}

/* Decorative arc lines */
.hero__arcs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    pointer-events: none;
    overflow: visible;
    z-index: 1;
}

.hero__arc {
    fill: none;
    stroke: rgba(255, 255, 255, 0.20);
    stroke-width: 1px;
    vector-effect: non-scaling-stroke;
}

.hero__arc--1 {
    stroke-dasharray: 500 2100;
    animation: arcTravel 18s linear infinite;
}

.hero__arc--2 {
    stroke: rgba(255, 255, 255, 0.10);
    stroke-dasharray: 320 2400;
    animation: arcTravel 26s linear infinite reverse;
}

.hero__inner {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: var(--container-xl);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
}

.hero__label {
    margin-bottom: 0;
}

.hero__title {
    font-size: clamp(2.8rem, 6vw, 4.75rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

.hero__title .accent {
    display: block;
}

.hero__description {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    max-width: 560px;
    line-height: 1.7;
}

.hero__actions {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex-wrap: wrap;
    justify-content: center;
    margin-top: var(--space-2);
}

/* Hero visual — mockup card below CTA */
.hero__visual {
    margin-top: var(--space-8);
    width: 100%;
    max-width: 680px;
}

.hero__mockup {
    position: relative;
}

.hero__stat {
    display: none;
}

.hero__scroll {
    display: none;
}

/* ==========================================================================
   9. BLUEPRINT CARD (reused across pages)
   ========================================================================== */

.blueprint-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: var(--space-4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: relative;
    overflow: hidden;
}

.blueprint-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}

.blueprint-card__header {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
    padding-bottom: var(--space-2);
    border-bottom: 1px solid var(--border-subtle);
}

.blueprint-card__dots {
    display: flex;
    gap: 6px;
}

.blueprint-card__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
}
.blueprint-card__dot:first-child  { background: #ff5f57; }
.blueprint-card__dot:nth-child(2) { background: #febc2e; }
.blueprint-card__dot:last-child   { background: #28c840; }

.blueprint-card__title {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
    font-family: 'SF Mono', 'Fira Code', monospace;
}

.blueprint-card__badge {
    margin-left: auto;
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--accent-green-light);
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

/* Feature list inside card */
.feature-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: var(--text-sm);
    color: var(--text-secondary);
    padding: 10px 14px;
    background: rgba(255,255,255,0.03);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    transition: border-color var(--transition-fast), background var(--transition-fast);
}

.feature-item:hover {
    background: rgba(255,255,255,0.055);
    border-color: var(--border-medium);
}

.feature-item__icon { font-size: 1rem; flex-shrink: 0; }

.feature-item__value {
    margin-left: auto;
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--accent-green-light);
}

/* Progress bar */
.progress-bar {
    margin-top: var(--space-3);
    padding-top: var(--space-2);
    border-top: 1px solid var(--border-subtle);
}

.progress-bar__label {
    display: flex;
    justify-content: space-between;
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.progress-bar__track {
    height: 5px;
    background: rgba(255,255,255,0.06);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-bar__fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #0b5f84, #1ab4e8);
    border-radius: var(--radius-full);
    transition: width 1.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-bar__fill.animated { width: 78%; }

/* ==========================================================================
   10. FEATURE CARDS
   ========================================================================== */

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: var(--space-4);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-blue-light), transparent);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-medium);
    transform: translateY(-3px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 40px rgba(11, 95, 132, 0.08);
}

.card:hover::before { opacity: 1; }

.card__icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    background: rgba(11, 95, 132, 0.12);
    border: 1px solid rgba(11, 95, 132, 0.2);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-3);
}

.card__title {
    font-size: var(--text-lg);
    font-weight: 700;
    margin-bottom: var(--space-1);
    color: var(--text-primary);
}

.card__description {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ==========================================================================
   11. FEATURE SHOWCASE (alternating)
   ========================================================================== */

.feature-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: center;
}

.feature-showcase--reversed {
    direction: rtl;
}
.feature-showcase--reversed > * {
    direction: ltr;
}

.feature-showcase--stacked {
    grid-template-columns: 1fr;
}
.feature-showcase--stacked .feature-showcase__visual {
    width: 100%;
}

.feature-showcase__content .label { margin-bottom: var(--space-2); }

.feature-showcase__content h3 {
    font-size: var(--text-3xl);
    font-weight: 700;
    margin-bottom: var(--space-2);
    line-height: 1.2;
}

.feature-showcase__content p {
    color: var(--text-secondary);
    font-size: var(--text-base);
    line-height: 1.7;
    margin-bottom: var(--space-3);
}

.feature-list-inline {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.feature-list-inline li {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    padding-left: 20px;
    position: relative;
}

.feature-list-inline li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-blue-light), var(--accent-green-light));
}

/* ==========================================================================
   12. STATS
   ========================================================================== */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-3);
}

.stat-item {
    text-align: center;
    padding: var(--space-6) var(--space-4);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
}

.stat-item:hover {
    border-color: var(--border-accent);
    background: var(--bg-card-hover);
    transform: translateY(-3px);
}

.stat-item__number {
    display: block;
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-blue-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: var(--space-1);
}

.stat-item__label {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
}

/* ==========================================================================
   13. CTA SECTION
   ========================================================================== */

.cta-section {
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section .label {
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.cta-section__glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(11, 95, 132, 0.18) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    filter: blur(40px);
}

.cta-section h2 {
    font-size: clamp(2rem, 3.5vw, 3rem);
    margin-bottom: var(--space-2);
}

.cta-section p {
    color: var(--text-secondary);
    font-size: var(--text-lg);
    max-width: 520px;
    margin: 0 auto var(--space-6);
    line-height: 1.7;
}

.cta-section__actions {
    display: flex;
    justify-content: center;
    gap: var(--space-2);
    flex-wrap: wrap;
    margin-top: var(--space-4);
}

/* ==========================================================================
   14. FOOTER
   ========================================================================== */

.footer {
    background: #151e29;
    border-top: 1px solid var(--border-subtle);
    padding: var(--space-12) 0 var(--space-6);
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-8);
    padding-bottom: var(--space-8);
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: var(--space-6);
}

.footer__brand p {
    color: var(--text-muted);
    font-size: var(--text-sm);
    line-height: 1.7;
    max-width: 280px;
    margin-top: var(--space-2);
}

.footer__heading {
    display: block;
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: var(--space-3);
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    list-style: none;
}

.footer__link {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.footer__link:hover { color: var(--accent-blue-light); }

.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer__copyright {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.footer__bottom-links {
    display: flex;
    gap: var(--space-3);
}

.footer__bottom-link {
    font-size: var(--text-sm);
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.footer__bottom-link:hover { color: var(--text-secondary); }

/* ==========================================================================
   15. PAGE HERO (tools / download pages)
   ========================================================================== */

.page-hero {
    padding: calc(var(--space-16) + 80px) 0 var(--space-12);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero__glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(11, 95, 132, 0.2) 0%, transparent 70%);
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
    filter: blur(50px);
}

.page-hero__label { margin-bottom: var(--space-2); }

.page-hero h1 {
    margin-bottom: var(--space-3);
}

.page-hero p {
    color: var(--text-secondary);
    font-size: var(--text-lg);
    max-width: 560px;
    margin: 0 auto;
}

/* ==========================================================================
   16. TOOL CARDS (tools.html)
   ========================================================================== */

.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
}

.tool-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: var(--space-4);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                border-color 0.35s ease,
                background 0.35s ease;
    position: relative;
    overflow: hidden;
}

/* Animated gradient border on top */
.tool-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, #0b5f84, #1ab4e8, #0b5f84);
    background-size: 200% 100%;
    opacity: 0;
    transition: opacity 0.35s ease;
}

/* Radial glow that follows card */
.tool-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-xl);
    background: radial-gradient(ellipse at 50% 0%, rgba(26,180,232,0.08) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.tool-card:hover {
    border-color: rgba(26, 180, 232, 0.3);
    background: var(--bg-card-hover);
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.35), 0 0 0 1px rgba(26,180,232,0.08);
}

.tool-card:hover::after {
    opacity: 1;
    animation: borderSlide 2s linear infinite;
}

.tool-card:hover::before { opacity: 1; }

@keyframes borderSlide {
    0%   { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

/* Icon wrap */
.tool-card__visual {
    margin-bottom: var(--space-4);
}

.tool-card__icon-wrap {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(11,95,132,0.25), rgba(26,180,232,0.1));
    border: 1px solid rgba(26,180,232,0.2);
    border-radius: 14px;
    color: #1ab4e8;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.35s ease,
                background 0.35s ease;
}

.tool-card:hover .tool-card__icon-wrap {
    transform: scale(1.1) rotate(-4deg);
    background: linear-gradient(135deg, rgba(11,95,132,0.4), rgba(26,180,232,0.2));
    box-shadow: 0 8px 24px rgba(26,180,232,0.2);
}

.tool-card__icon-wrap svg {
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.tool-card:hover .tool-card__icon-wrap svg {
    transform: scale(1.05);
}

.tool-card--featured {
    border-color: rgba(11, 95, 132, 0.3);
    background: rgba(11, 95, 132, 0.06);
    box-shadow: 0 0 40px rgba(11, 95, 132, 0.12);
}

.tool-card__badge {
    display: inline-flex;
    font-size: var(--text-xs);
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-3);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.tool-card__badge--available {
    background: rgba(16, 185, 129, 0.12);
    color: var(--accent-green-light);
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.tool-card__badge--soon {
    background: rgba(11, 95, 132, 0.1);
    color: var(--accent-blue-light);
    border: 1px solid rgba(11, 95, 132, 0.2);
}

.tool-card__icon {
    font-size: 2rem;
    margin-bottom: var(--space-2);
    display: block;
}

.tool-card__name {
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--space-1);
}

.tool-card__description {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: var(--space-3);
}

.tool-card__features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: var(--space-4);
}

.tool-card__feature {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    padding-left: 18px;
    position: relative;
}

.tool-card__feature::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-blue-light);
    font-size: 0.75rem;
}

.tool-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-3);
    border-top: 1px solid var(--border-subtle);
}

.tool-card__version {
    font-size: var(--text-xs);
    color: var(--text-muted);
    font-family: 'SF Mono', 'Fira Code', monospace;
}

.notify-btn {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--accent-blue-light);
    background: rgba(11, 95, 132, 0.1);
    border: 1px solid rgba(11, 95, 132, 0.2);
    border-radius: var(--radius-full);
    padding: 6px 14px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.notify-btn:hover {
    background: rgba(11, 95, 132, 0.2);
}

.notify-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ==========================================================================
   17. DOWNLOAD PAGE
   ========================================================================== */

.download-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
    counter-reset: steps;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: var(--space-6) var(--space-4);
    position: relative;
    counter-increment: steps;
    overflow: hidden;
}

.step-card::before {
    content: counter(steps, decimal-leading-zero);
    position: absolute;
    top: -10px; right: 20px;
    font-size: 6rem;
    font-weight: 900;
    color: rgba(255,255,255,0.03);
    line-height: 1;
    pointer-events: none;
    letter-spacing: -0.05em;
}

.step-card__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-blue-light));
    border-radius: 50%;
    font-size: var(--text-sm);
    font-weight: 700;
    color: #fff;
    margin-bottom: var(--space-3);
    box-shadow: 0 0 20px var(--accent-blue-glow);
}

.step-card__title {
    font-size: var(--text-lg);
    font-weight: 700;
    margin-bottom: var(--space-1);
}

.step-card__description {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.65;
}

/* Requirements / Changelog */
.requirements-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
}

.req-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: var(--space-4);
}

.req-card h3 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-3);
    color: var(--accent-blue-light);
}

.req-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.req-list li {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.req-list li::before {
    content: '✓';
    color: var(--accent-green-light);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Changelog */
.changelog-entry {
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: var(--space-3);
}

.changelog-entry__header {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-subtle);
}

.changelog-entry__version {
    font-size: var(--text-base);
    font-weight: 700;
    font-family: 'SF Mono', 'Fira Code', monospace;
    color: var(--accent-blue-light);
}

.changelog-entry__date {
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin-left: auto;
}

.changelog-entry__tag {
    font-size: var(--text-xs);
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    background: rgba(16, 185, 129, 0.12);
    color: var(--accent-green-light);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.changelog-entry__body {
    padding: var(--space-4);
    background: rgba(255,255,255,0.015);
}

.changelog-entry__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.changelog-entry__list li {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.changelog-entry__list li::before {
    content: '→';
    color: var(--accent-blue-light);
    flex-shrink: 0;
}

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: var(--space-2); }

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: border-color var(--transition-fast);
}

.faq-item.open { border-color: var(--border-accent); }

.faq-item__question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
    background: none;
    border: none;
    padding: var(--space-3) var(--space-4);
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    text-align: left;
    transition: color var(--transition-fast);
}

.faq-item__question:hover { color: var(--accent-blue-light); }

.faq-item__icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid var(--border-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    line-height: 1;
    transition: all var(--transition-base);
    color: var(--text-secondary);
}

.faq-item.open .faq-item__icon {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: #fff;
    transform: rotate(45deg);
}

.faq-item__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item__answer p {
    padding: 14px 20px 18px;
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

.faq-item.open .faq-item__answer { max-height: 500px; }

.faq-item__answer-inner {
    padding: var(--space-4) var(--space-5) var(--space-5);
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.7;
    border-top: 1px solid var(--border-subtle);
}

/* Support card */
.support-card {
    background: linear-gradient(135deg, rgba(11, 95, 132, 0.12), rgba(16, 185, 129, 0.06));
    border: 1px solid rgba(11, 95, 132, 0.25);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    text-align: center;
}

.support-card h2 { margin-bottom: var(--space-2); }

.support-card p {
    color: var(--text-secondary);
    font-size: var(--text-lg);
    max-width: 480px;
    margin: 0 auto var(--space-6);
}

/* Download hero card */
.download-hero-card {
    background: linear-gradient(135deg, rgba(11, 95, 132, 0.15), rgba(16, 185, 129, 0.08));
    border: 1px solid rgba(11, 95, 132, 0.3);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-6);
    box-shadow: 0 0 80px rgba(11, 95, 132, 0.15);
}

.download-hero-card__info h2 {
    margin-bottom: var(--space-1);
}

.download-hero-card__info p {
    color: var(--text-secondary);
    font-size: var(--text-lg);
    margin-bottom: var(--space-4);
}

.download-hero-card__meta {
    display: flex;
    gap: var(--space-4);
    margin-top: var(--space-3);
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.meta-item__label {
    font-size: var(--text-xs);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.meta-item__value {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-primary);
    font-family: 'SF Mono', 'Fira Code', monospace;
}

/* ==========================================================================
   18. SCROLL ANIMATIONS
   ========================================================================== */

.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in--delay-1 { transition-delay: 0.10s; }
.fade-in--delay-2 { transition-delay: 0.20s; }
.fade-in--delay-3 { transition-delay: 0.30s; }
.fade-in--delay-4 { transition-delay: 0.40s; }

/* ==========================================================================
   19. RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
    .grid-4       { grid-template-columns: repeat(2, 1fr); }
    .tools-grid   { grid-template-columns: repeat(2, 1fr); }
    .stats-grid   { grid-template-columns: repeat(2, 1fr); }
    .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--space-6); }

    .feature-showcase,
    .feature-showcase--reversed {
        grid-template-columns: 1fr;
        direction: ltr;
        gap: var(--space-6);
    }

    .download-hero-card { flex-direction: column; text-align: center; }
    .download-hero-card__meta { justify-content: center; }
    .download-steps { grid-template-columns: 1fr; }
    .requirements-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav__links {
        position: fixed;
        top: 0; right: -100%;
        width: min(320px, 85vw);
        height: 100vh;
        background: rgba(8, 8, 15, 0.97);
        backdrop-filter: blur(30px);
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 80px var(--space-4) var(--space-6);
        border-left: 1px solid var(--border-subtle);
        transition: right var(--transition-base);
    }

    .nav__links.open { right: 0; }

    .nav__link, .nav__cta {
        width: 100%;
        padding: 12px 16px;
    }

    .nav__toggle { display: flex; }

    .nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav__toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
    .nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    h2 { font-size: var(--text-3xl); }

    .grid-4   { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .tools-grid { grid-template-columns: 1fr; }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    .hero__actions { flex-direction: column; align-items: center; }
    .hero__actions .btn { width: 100%; max-width: 280px; justify-content: center; }

    .section { padding: var(--space-12) 0; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .container  { padding: 0 var(--space-2); }
    h1 { font-size: 2.4rem; }
    h2 { font-size: 1.9rem; }
}
