:root {
    --brand-primary: #5c6ac4;
    --brand-secondary: #ff896b;
    --bg: #f6f7fb;
    --text: #101828;
    --muted: #475467;
    --border: #e4e7ec;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Assistant', 'Segoe UI', sans-serif;
    margin: 0;
    background: var(--bg);
    color: var(--text);
    direction: rtl;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    padding-bottom: 3rem;
}

.container {
    width: min(1200px, 92%);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: #0f1c4d;
    color: #fff;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.25);
    margin-bottom: 2rem;
    position: relative;
}

.site-header__glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.25), transparent 60%);
    pointer-events: none;
}

.header-core {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 2rem;
    align-items: center;
    padding: 1.8rem 0 0.8rem;
}

.brand-stack {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.logo-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.logo-symbol {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid rgba(92, 106, 196, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--brand-primary);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-text strong {
    font-size: 1.05rem;
}

.logo-text small {
    font-size: 0.72rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
}

.tagline {
    margin: 0;
    color: rgba(255, 255, 255, 0.75);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}

.primary-nav {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
}

.tool-search {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
}

.tool-search input {
    background: transparent;
    border: none;
    color: #fff;
    font: inherit;
    width: 140px;
}

.tool-search input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.tool-search button {
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 999px;
    padding: 0.3rem 0.7rem;
    cursor: pointer;
    font-weight: 600;
}

.nav-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.nav-link--highlight {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.user-bundle {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.user-pill {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 0.9rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    min-width: 210px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
}

.user-name {
    margin: 0;
    font-weight: 700;
    color: #fff;
}

.brand-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    border: 1px solid var(--brand-primary);
    color: var(--brand-primary);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    background: #fff;
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.08);
}

.brand-cta.secondary {
    border-color: var(--border);
    color: var(--muted);
    background: transparent;
    box-shadow: none;
}

.brand-cta.gradient {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    color: #fff;
    border: none;
}

.site-header .brand-cta {
    border-color: rgba(92, 106, 196, 0.4);
    color: var(--brand-primary);
    background: #fff;
    box-shadow: none;
}

.site-header .brand-cta.secondary {
    border-color: rgba(15, 23, 42, 0.08);
    color: var(--muted);
    background: transparent;
}

.site-header .brand-cta.gradient {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    border: none;
    color: #fff;
    box-shadow: 0 10px 20px rgba(92, 106, 196, 0.25);
}

.partner-ribbon {
    position: relative;
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    padding: 1rem 0 1.5rem;
}

.partner-chip {
    flex: 1 1 240px;
    min-width: 220px;
    background: #fff;
    border-radius: 0.9rem;
    padding: 0.8rem 1rem;
    text-decoration: none;
    color: var(--text);
    display: flex;
    justify-content: space-between;
    border: 1px solid rgba(92, 106, 196, 0.2);
}

.partner-chip span {
    color: var(--muted);
}

.partner-chip strong {
    font-weight: 700;
    color: var(--brand-primary);
}

.menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(92, 106, 196, 0.3);
    background: #fff;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.3rem;
    cursor: pointer;
    z-index: 35;
}

.menu-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 3px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.site-header.menu-open .menu-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.site-header.menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
}

.site-header.menu-open .menu-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 15;
}

.site-header.menu-open .menu-overlay {
    opacity: 1;
    pointer-events: auto;
}

.hero {
    margin-top: -2rem;
    padding: 4rem 0 2rem;
}

.hero__shell {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 2rem;
    padding: clamp(1.5rem, 4vw, 3rem);
    color: var(--text);
    display: grid;
    grid-template-columns: minmax(320px, 1.15fr) minmax(280px, 0.85fr);
    gap: 2rem;
    align-items: stretch;
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.08);
}

@media (max-width: 860px) {
    .hero__shell {
        grid-template-columns: 1fr;
    }
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    color: var(--brand-primary);
    border-color: rgba(92, 106, 196, 0.4);
}

.hero__content h1 {
    margin: 0 0 0.7rem;
    font-size: clamp(2.4rem, 6vw, 3.4rem);
}

.hero__content p {
    color: var(--muted);
    font-size: 1.1rem;
    line-height: 1.7;
}

.hero__bullets {
    margin: 1.2rem 0 0;
    display: grid;
    gap: 0.6rem;
    padding: 0;
    list-style: none;
}

.hero__bullets li {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted);
}

.hero__bullets li::before {
    content: '•';
    color: var(--brand-secondary);
    font-size: 1.5rem;
}

.hero__trust {
    margin-top: 1rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.cta-group {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.hero__panel {
    position: relative;
    background: linear-gradient(160deg, #1d4ed8, #9333ea);
    border-radius: 1.5rem;
    padding: 1.8rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    color: #fff;
    overflow: hidden;
}

.hero__panel::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.35), transparent 55%);
    pointer-events: none;
}

.hero__panel > * {
    position: relative;
}

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

.hero-metric span {
    color: rgba(255, 255, 255, 0.85);
}

.hero-metric strong {
    font-size: 2.4rem;
}

.hero__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.8rem;
}

.hero__stats div {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 1rem;
    padding: 0.9rem;
    text-align: center;
    color: #fff;
}

.hero__stats span {
    display: block;
    font-weight: 700;
    font-size: 1.2rem;
}

.hero__stats small {
    display: block;
    color: rgba(255, 255, 255, 0.8);
}

.hero__panel .small-note {
    color: rgba(255, 255, 255, 0.85);
}

.hero-visual {
    margin-top: auto;
}

.hero-visual__box {
    position: relative;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 1.3rem;
    padding: 1.2rem;
    overflow: hidden;
    animation: floatBox 4s ease-in-out infinite;
}

.hero-visual__label {
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
}

.hero-visual__dots {
    display: flex;
    gap: 0.35rem;
    margin: 0.8rem 0;
}

.hero-visual__dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    animation: pulseDot 1.6s ease infinite;
}

.hero-visual__dots span:nth-child(2) { animation-delay: 0.2s; }
.hero-visual__dots span:nth-child(3) { animation-delay: 0.4s; }

.hero-visual__progress {
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    overflow: hidden;
    margin-bottom: 0.8rem;
}

.hero-visual__progress span {
    display: block;
    height: 100%;
    width: 80%;
    background: linear-gradient(135deg, #facc15, #f97316);
    animation: sweep 2.4s ease infinite;
}

.hero-visual__lights {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.hero-visual__lights span {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4), transparent 60%);
    animation: blink 3s ease-in-out infinite;
}

.hero-visual__lights span:last-child {
    align-self: flex-end;
    animation-delay: 1.4s;
}

.hero-visual__caption {
    margin: 0.9rem 0 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.hero__trust {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.hero-card {
    background: #fff;
    padding: 1.2rem;
    border-radius: 1rem;
    border: 1px solid var(--border);
    box-shadow: 0 10px 25px rgba(16, 24, 40, 0.08);
}

.text-suite {
    margin-top: 3rem;
    background: #fff;
    border-radius: 1.5rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: 2rem;
    box-shadow: 0 25px 45px rgba(15, 23, 42, 0.08);
}

.text-suite__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.text-suite__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.tool-card.compact {
    padding: 1.1rem;
}

.tool-metrics {
    margin: 1.5rem 0;
    padding: 0.9rem 1.2rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 1rem;
    background: #fff;
    display: inline-flex;
    gap: 1.5rem;
}

.tool-metrics__label {
    display: block;
    font-size: 0.85rem;
    color: var(--muted);
}

.tool-metrics strong {
    font-size: 1.3rem;
}

.seo-suite {
    margin-top: 2rem;
    background: linear-gradient(135deg, rgba(15, 28, 77, 0.05), rgba(92, 106, 196, 0.08));
    border-radius: 1.5rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: 2rem;
}

.seo-suite__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.seo-suite__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.media-suite {
    margin-top: 2rem;
    background: #fff;
    border-radius: 1.5rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: 2rem;
    box-shadow: 0 25px 45px rgba(15, 23, 42, 0.08);
}

.media-suite__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.media-suite__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.dev-suite {
    margin-top: 2rem;
    background: #fff;
    border-radius: 1.5rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: 2rem;
}

.dev-suite__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.dev-suite__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.design-suite {
    margin-top: 2rem;
    background: linear-gradient(120deg, rgba(92, 106, 196, 0.08), rgba(15, 28, 77, 0.2));
    border-radius: 1.5rem;
    border: 1px solid rgba(92, 106, 196, 0.3);
    padding: 2rem;
    color: #fff;
}

.design-suite__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.design-suite__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.design-suite h2 {
    color: #fff;
}

.design-suite p {
    color: rgba(255, 255, 255, 0.8);
}

.design-suite .badge {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.file-suite {
    margin-top: 2rem;
    background: linear-gradient(135deg, rgba(15, 28, 77, 0.02), rgba(255, 137, 107, 0.08));
    border-radius: 1.5rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: 2rem;
}

.file-suite__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.file-suite__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.calc-suite {
    margin-top: 2rem;
    background: #fff;
    border-radius: 1.5rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: 2rem;
}

.calc-suite__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.calc-suite__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.business-suite {
    margin-top: 2rem;
    background: #fefefe;
    border-radius: 1.5rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: 2rem;
}

.business-suite__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.business-suite__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.cyber-suite {
    margin-top: 2rem;
    background: #f8f9ff;
    border-radius: 1.5rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: 2rem;
}

.cyber-suite__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.cyber-suite__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.random-suite {
    margin-top: 2rem;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.08), rgba(59, 130, 246, 0.08));
    border-radius: 1.5rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: 2rem;
}

.random-suite__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.random-suite__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.premium-suite {
    margin-top: 2rem;
    background: #0f1c4d;
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 2rem;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.premium-suite::after {
    content: '';
    position: absolute;
    inset: 10% 20%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent 60%);
    pointer-events: none;
}

.premium-suite__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    position: relative;
}

.premium-suite__grid {
    position: relative;
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.premium-card {
    background: rgba(15, 23, 42, 0.65);
    border-radius: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.premium-card header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.premium-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
}

.premium-card .brand-cta.secondary {
    margin-top: auto;
    align-self: flex-start;
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.85);
}

.premium-card strong {
    font-size: 1.2rem;
}

.premium-category-list {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.premium-category-card {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 1rem;
    padding: 1.2rem;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.premium-category-card header {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.premium-category-card header span {
    font-size: 1.8rem;
}

.premium-category-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.premium-category-card .brand-cta.secondary {
    width: fit-content;
}

.ai-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.ai-image-grid figure {
    margin: 0;
    background: #fff;
    border-radius: 1rem;
    padding: 0.6rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ai-image-grid img {
    width: 100%;
    border-radius: 0.8rem;
    object-fit: cover;
}

.ai-image-grid figcaption {
    font-size: 0.8rem;
    color: var(--muted);
    word-break: break-word;
}

.color-swatch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
}

.color-swatch {
    border-radius: 1rem;
    padding: 1.5rem 1rem;
    min-height: 130px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.color-swatch__code {
    font-weight: 700;
    font-size: 1.1rem;
}

.color-swatch__meta {
    font-size: 0.9rem;
}

.random-output-list {
    display: grid;
    gap: 0.5rem;
}

.random-output-list li {
    list-style: none;
    padding: 0.75rem 1rem;
    border-radius: 0.8rem;
    background: #f8fafc;
    border: 1px dashed rgba(15, 23, 42, 0.15);
}

.random-picker-result {
    margin-top: 1rem;
    padding: 1.5rem;
    border-radius: 1rem;
    background: #fef9c3;
    border: 1px solid rgba(250, 204, 21, 0.4);
    text-align: center;
    font-size: 1.3rem;
    font-weight: 700;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin: 2rem 0 3rem;
}

.tool-card {
    background: #fff;
    padding: 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tool-card h3 {
    margin: 0;
    font-size: 1rem;
}

.tool-card p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--muted);
}

.tool-card a {
    margin-top: auto;
    color: #fff;
    background: var(--brand-primary);
    text-align: center;
    padding: 0.45rem;
    border-radius: 0.6rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.12);
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    gap: 1rem;
}

.section-title__text h2 {
    margin: 0;
}

.section-title__text p {
    margin: 0.3rem 0 0;
    color: var(--muted);
}

.insight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.insight-card {
    background: #fff;
    border-radius: 1.2rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    box-shadow: inset 0 0 0 1px rgba(92, 106, 196, 0.05);
}

.insight-card h3 {
    margin: 0;
}

.insight-card p {
    color: var(--muted);
}

.seo-strip {
    background: #fff;
    border-radius: 1.2rem;
    border: 1px solid rgba(92, 106, 196, 0.2);
    padding: 1.5rem;
    margin-top: 2rem;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.05);
}

.seo-strip h3 {
    margin: 0 0 0.6rem;
}

.seo-strip p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}
}

.tool-layout {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 1.2rem;
    padding: 1.5rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 25px 45px rgba(15, 23, 42, 0.08);
}

.tool-layout form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tool-form fieldset {
    border: 1px dashed var(--border);
    border-radius: 0.8rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tool-form legend {
    font-weight: 700;
    padding: 0 0.25rem;
}

.preview-stage,
.radius-preview,
.typography-preview,
.glass-preview {
    border-radius: 1.2rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #fff;
    padding: 1.5rem;
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.08);
}

.animation-stage {
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(92, 106, 196, 0.08), rgba(15, 23, 42, 0.04));
}

.animation-box {
    width: 80px;
    height: 80px;
    border-radius: 1rem;
    background: var(--brand-secondary);
}

.radius-preview {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.radius-preview__box {
    width: 220px;
    height: 140px;
    background: linear-gradient(135deg, #5c6ac4, #a5b4fc);
}

.radius-values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.6rem;
}

.radius-values span {
    display: inline-flex;
    justify-content: space-between;
    font-size: 0.9rem;
    padding: 0.4rem 0.6rem;
    border-radius: 0.6rem;
    background: #f8fafc;
    border: 1px dashed rgba(15, 23, 42, 0.08);
}

.typography-preview {
    background: #0f172a;
    color: #fff;
    display: grid;
    gap: 1rem;
}

.typography-sample h2,
.typography-sample p {
    margin: 0;
}

.typography-scale {
    display: grid;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.typography-scale li {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
    padding-bottom: 0.3rem;
}

.typography-scale span {
    color: rgba(255, 255, 255, 0.85);
}

.gradient-output {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.gradient-card {
    border-radius: 1.1rem;
    padding: 1.2rem;
    border: 1px solid rgba(15, 23, 42, 0.1);
    color: #fff;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    overflow: hidden;
}

.gradient-card code {
    font-size: 0.85rem;
    background: rgba(15, 23, 42, 0.4);
    padding: 0.15rem 0.4rem;
    border-radius: 999px;
}

.glass-preview {
    background: linear-gradient(135deg, #0f172a, #1d4ed8);
    position: relative;
    padding: 3rem 2rem;
    overflow: hidden;
}

.glass-preview::after {
    content: '';
    position: absolute;
    inset: 20% 10%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent 60%);
    filter: blur(30px);
    pointer-events: none;
}

.glass-card {
    width: 260px;
    padding: 1.5rem;
    border-radius: 1.2rem;
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    position: relative;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.3);
}

.glass-card.neumorphic {
    background: #f9fafb;
    color: var(--text);
    border: none;
    box-shadow: 15px 15px 30px rgba(15, 23, 42, 0.1), -15px -15px 30px #fff;
}

.code-snippet {
    background: #0f172a;
    color: #e2e8f0;
    padding: 1rem;
    border-radius: 1rem;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.85rem;
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tool-layout label {
    font-weight: 600;
}

.tool-layout input,
.tool-layout textarea,
.tool-layout button,
.tool-layout select {
    font: inherit;
    padding: 0.7rem 0.9rem;
    border-radius: 0.6rem;
    border: 1px solid var(--border);
}

.tool-layout button {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    color: #fff;
    border: none;
    cursor: pointer;
    font-weight: 700;
}

.tool-page {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tool-hero {
    background: linear-gradient(135deg, rgba(92, 106, 196, 0.1), rgba(255, 137, 107, 0.15));
    border-radius: 1.2rem;
    padding: 1.5rem;
    border: 1px solid rgba(92, 106, 196, 0.2);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    align-items: center;
    justify-content: space-between;
}

.tool-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(92, 106, 196, 0.4);
    font-weight: 600;
}

.tool-hero__meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    color: var(--muted);
}

.tool-hero__meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.tool-form.is-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.tool-form.is-loading::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.7);
    animation: fadePulse 1.5s ease infinite;
}

.tool-form.is-loading::before {
    content: '';
    position: absolute;
    width: 48px;
    height: 48px;
    border: 4px solid rgba(92, 106, 196, 0.3);
    border-top-color: var(--brand-primary);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: spin 0.9s linear infinite;
    z-index: 2;
}

.tool-progress-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.progress-block {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 0.9rem;
    padding: 1rem;
    background: #fdfdff;
}

.progress-block strong {
    display: block;
    font-size: 1.3rem;
    margin-bottom: 0.4rem;
}

.progress-bar {
    position: relative;
    height: 6px;
    border-radius: 999px;
    background: rgba(92, 106, 196, 0.2);
    overflow: hidden;
}

.progress-fill {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    width: var(--percent, 50%);
    transform-origin: left;
    transform: scaleX(0);
    animation: fillBar 0.9s ease forwards;
}

.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    font-size: 0.85rem;
}

.badge-status.fast {
    background: rgba(34, 197, 94, 0.15);
    color: #15803d;
}

.badge-status.average {
    background: rgba(251, 191, 36, 0.25);
    color: #92400e;
}

.badge-status.slow {
    background: rgba(239, 68, 68, 0.15);
    color: #991b1b;
}

.seo-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.seo-card {
    border-radius: 1rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: 1rem;
    background: #fff;
    box-shadow: 0 15px 30px rgba(15, 23, 42, 0.05);
}

.seo-card h4 {
    margin: 0 0 0.4rem;
}

.results {
    background: #f8f9ff;
    border-radius: 0.8rem;
    padding: 1rem;
    margin-top: 1rem;
}

.results h3 {
    margin-top: 0;
}

.results table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.results table th,
.results table td {
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: 0.4rem 0.6rem;
    text-align: right;
}

.results table th {
    background: #f5f6fb;
}

.code-block {
    background: #0f172a;
    color: #e2e8f0;
    padding: 1rem;
    border-radius: 0.8rem;
    overflow-x: auto;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.9rem;
}

.download-btn {
    margin-top: 0.8rem;
    display: inline-flex;
}

.file-drop-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.file-drop-hint {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--muted);
    border: 1px dashed rgba(15, 23, 42, 0.4);
    border-radius: 0.8rem;
    padding: 0.45rem 0.75rem;
}

.file-drop-container.dragover .file-drop-hint {
    border-color: var(--brand-primary);
    background: rgba(92, 106, 196, 0.08);
}

.file-drop-hint .brand-cta {
    padding: 0.35rem 0.9rem;
}

.file-upload {
    position: relative;
    border: 1px dashed rgba(15, 23, 42, 0.4);
    border-radius: 0.9rem;
    padding: 0.8rem;
    text-align: center;
    color: var(--muted);
    margin-bottom: 0.5rem;
    cursor: pointer;
}

.file-upload.dragover {
    border-color: var(--brand-primary);
    background: rgba(92, 106, 196, 0.08);
}

.file-upload input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.file-list {
    margin: 0.4rem 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.file-chip {
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
    font-size: 0.85rem;
}

.serp-preview {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.12);
}

.serp-url {
    color: #0f9d58;
    font-size: 0.9rem;
}

.serp-title {
    color: #1a0dab;
    font-size: 1.1rem;
    margin: 0.2rem 0;
}

.serp-description {
    color: #4b5563;
    margin: 0.3rem 0 0;
}

.speed-tool .speed-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.speed-form__row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.score-panel {
    margin-top: 1.5rem;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: 1rem;
    background: #fff;
}

.score-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 10px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.score-panel.grade-fast .score-circle {
    border-color: #22c55e;
}

.score-panel.grade-average .score-circle {
    border-color: #fbbf24;
}

.score-panel.grade-slow .score-circle {
    border-color: #ef4444;
}

.score-value {
    font-size: 2.5rem;
    font-weight: 700;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.metric-card {
    background: #fff;
    border-radius: 0.8rem;
    border: 1px solid var(--border);
    padding: 1rem;
}

.metric-label {
    display: block;
    font-size: 0.85rem;
    color: var(--muted);
}

.recommendations ul {
    margin: 0;
    padding-inline-start: 1.2rem;
    direction: rtl;
}

.recommendations li {
    margin-bottom: 0.4rem;
}

.diff-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.diff-item {
    padding: 0.6rem 0.8rem;
    border-radius: 0.7rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #fff;
}

.diff-item.diff-add {
    border-color: rgba(34, 197, 94, 0.3);
    background: rgba(34, 197, 94, 0.08);
}

.diff-item.diff-remove {
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.08);
}

.diff-item.diff-same {
    opacity: 0.6;
}

.badge {
    display: inline-block;
    background: rgba(92, 106, 196, 0.12);
    color: var(--brand-primary);
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    font-size: 0.85rem;
}

.badge.premium {
    background: rgba(255, 137, 107, 0.18);
    color: var(--brand-secondary);
    font-weight: 700;
}

.site-footer {
    background: #0f1c4d;
    color: #fff;
    margin-top: 3rem;
    padding: 4rem 0 2.5rem;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 -25px 45px rgba(15, 23, 42, 0.35);
}

.site-footer__glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.25), transparent 55%);
    pointer-events: none;
}

.footer-shell {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.footer-hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.5rem;
    padding: 1.5rem;
}

.footer-brand .logo-chip {
    background: rgba(255, 255, 255, 0.15);
}

.footer-brand .tagline,
.footer-brand .small-note {
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.6rem;
}

.footer-metrics {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-metrics div {
    min-width: 120px;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0.8rem 1rem;
    background: rgba(15, 23, 42, 0.25);
}

.footer-metrics small {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
}

.footer-metrics strong {
    font-size: 1.4rem;
}

.footer-actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.site-footer .brand-cta {
    box-shadow: none;
}

.site-footer .brand-cta.secondary {
    border-color: rgba(255, 255, 255, 0.35);
    color: rgba(255, 255, 255, 0.8);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.footer-nav strong {
    display: block;
    margin-bottom: 0.8rem;
    color: #fff;
}

.footer-nav a {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.35rem;
    text-decoration: none;
    font-size: 0.95rem;
}

.footer-nav a:hover {
    color: #fff;
}

.footer-seo {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    padding: 1.1rem;
    line-height: 1.7;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-seo strong {
    display: block;
    margin-bottom: 0.4rem;
    color: #fff;
}

.footer-ribbon {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-legal {
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.76);
}

.footer-legal a {
    color: #fff;
}

.small-note {
    margin-top: 0.3rem;
    font-size: 0.85rem;
    color: var(--muted);
}

@media (max-width: 1100px) {
    .header-core {
        grid-template-columns: auto 1fr;
        gap: 1rem;
    }
    .nav-wrap {
        flex-wrap: wrap;
        justify-content: flex-end;
    }
}

@media (max-width: 900px) {
    .header-core {
        grid-template-columns: 1fr auto;
        text-align: right;
    }
    .nav-wrap {
        position: absolute;
        inset-inline: 0;
        top: calc(100% + 0.75rem);
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        padding: 1.5rem;
        background: #ffffff;
        border: 1px solid rgba(15, 23, 42, 0.08);
        border-radius: 1.5rem;
        box-shadow: 0 25px 40px rgba(15, 23, 42, 0.12);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px);
        transition: opacity 0.25s ease, transform 0.25s ease;
        z-index: 30;
    }
    .site-header.menu-open .nav-wrap {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }
    .primary-nav {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0.6rem;
        background: transparent;
        padding: 0;
    }
    .nav-link {
        width: 100%;
        padding: 0.9rem 1.1rem;
        border-radius: 0.9rem;
        background: rgba(92, 106, 196, 0.08);
    }
    .nav-link--highlight {
        background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    }
    .user-bundle {
        flex-direction: column;
        align-items: stretch;
        gap: 0.7rem;
    }
    .user-pill {
        width: 100%;
        justify-content: flex-start;
    }
    .menu-toggle {
        display: inline-flex;
    }
    .partner-chip {
        flex: 1 1 100%;
    }
    .footer-hero {
        grid-template-columns: 1fr;
    }
    .footer-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 560px) {
    .header-core {
        grid-template-columns: 1fr auto;
    }
    .brand-stack {
        align-items: flex-start;
    }
    .tagline {
        font-size: 0.9rem;
    }
}

@keyframes spin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes fadePulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 0.3; }
}

@keyframes fillBar {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

@keyframes floatBox {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes pulseDot {
    0%, 100% { opacity: 0.4; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.1); }
}

@keyframes sweep {
    0% { transform: translateX(-80%); }
    100% { transform: translateX(20%); }
}

@keyframes blink {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}
