:root {
    --foundation-ink: #17213f;
    --foundation-muted: #667085;
    --foundation-surface: rgba(255, 255, 255, 0.82);
    --foundation-border: rgba(99, 102, 241, 0.14);
    --foundation-purple: #5b45d6;
    --foundation-blue: #3867ed;
    --foundation-teal: #0e9f9a;
    --foundation-pink: #d247a5;
    --foundation-yellow: #f5b942;
    --foundation-shadow: 0 22px 60px rgba(54, 45, 130, 0.14);
    --foundation-soft-shadow: 0 10px 30px rgba(40, 44, 100, 0.1);
    --foundation-radius: 28px;
    --foundation-ease: cubic-bezier(0.23, 1, 0.32, 1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.foundation-page {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    color: var(--foundation-ink);
    background:
        radial-gradient(circle at 8% 8%, rgba(111, 97, 226, 0.12) 0 2px, transparent 3px),
        radial-gradient(circle at 88% 18%, rgba(14, 159, 154, 0.12) 0 2px, transparent 3px),
        radial-gradient(circle at 18% 83%, rgba(210, 71, 165, 0.1) 0 2px, transparent 3px),
        linear-gradient(135deg, #f8fbff 0%, #f5f3ff 52%, #f9fbff 100%);
    font-family: 'Cairo', sans-serif;
}

body.foundation-page::before,
body.foundation-page::after {
    content: '';
    position: fixed;
    z-index: -1;
    pointer-events: none;
    border-radius: 999px;
    filter: blur(2px);
}

body.foundation-page::before {
    width: 420px;
    height: 420px;
    top: 110px;
    right: -180px;
    background: radial-gradient(circle, rgba(85, 65, 216, 0.12), transparent 70%);
}

body.foundation-page::after {
    width: 360px;
    height: 360px;
    bottom: 50px;
    left: -170px;
    background: radial-gradient(circle, rgba(14, 159, 154, 0.1), transparent 70%);
}

.foundation-container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.foundation-nav {
    position: sticky;
    top: 0;
    z-index: 40;
    padding: 15px 0;
    border-bottom: 1px solid rgba(99, 102, 241, 0.08);
    background: rgba(255, 255, 255, 0.76);
    backdrop-filter: blur(20px);
    transition: box-shadow 220ms ease, background 220ms ease;
}

.foundation-nav.is-scrolled {
    background: rgba(255, 255, 255, 0.93);
    box-shadow: 0 8px 28px rgba(46, 42, 107, 0.08);
}

.foundation-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.foundation-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--foundation-ink);
    font-size: 1.08rem;
    font-weight: 900;
    text-decoration: none;
}

.foundation-brand-mark {
    display: grid;
    width: 41px;
    height: 41px;
    place-items: center;
    color: #fff;
    border-radius: 14px;
    background: linear-gradient(135deg, #5945d7, #2e77e7);
    box-shadow: 0 9px 18px rgba(76, 71, 202, 0.25);
}

.foundation-nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.foundation-back,
.foundation-outline-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 43px;
    padding: 0 17px;
    border-radius: 14px;
    font-size: 0.87rem;
    font-weight: 800;
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.foundation-back {
    color: #fff;
    background: linear-gradient(135deg, #5945d7, #3c75e8);
    box-shadow: 0 8px 18px rgba(71, 74, 203, 0.18);
}

.foundation-outline-link {
    color: var(--foundation-purple);
    border: 1px solid rgba(91, 69, 214, 0.18);
    background: rgba(255, 255, 255, 0.66);
}

.foundation-back:hover,
.foundation-outline-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 22px rgba(71, 74, 203, 0.18);
}

.foundation-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.22fr) minmax(300px, 0.78fr);
    gap: 28px;
    align-items: stretch;
    padding: 62px 0 34px;
}

.foundation-hero-copy,
.foundation-hero-visual {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: var(--foundation-radius);
    box-shadow: var(--foundation-shadow);
}

.foundation-hero-copy {
    padding: clamp(30px, 5vw, 62px);
    color: #fff;
    background: linear-gradient(135deg, #4531bf 0%, #5f43d8 47%, #2874e6 100%);
}

.foundation-hero-copy::before,
.foundation-hero-copy::after {
    content: '';
    position: absolute;
    pointer-events: none;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.foundation-hero-copy::before {
    width: 310px;
    height: 310px;
    top: -170px;
    left: -90px;
}

.foundation-hero-copy::after {
    width: 220px;
    height: 220px;
    right: -80px;
    bottom: -130px;
}

.foundation-kicker,
.foundation-hero h1,
.foundation-hero-copy > p,
.foundation-hero-actions,
.foundation-hero-badges {
    position: relative;
    z-index: 1;
}

.foundation-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 7px 13px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.12);
    font-size: 0.77rem;
    font-weight: 800;
}

.foundation-kicker-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #7cf1d0;
    box-shadow: 0 0 0 5px rgba(124, 241, 208, 0.13);
}

.foundation-hero h1 {
    max-width: 720px;
    margin: 0;
    font-size: clamp(2rem, 4.5vw, 4.15rem);
    line-height: 1.18;
    letter-spacing: -0.04em;
    font-weight: 900;
}

.foundation-hero h1 span {
    color: #a8f5e4;
}

.foundation-hero-copy > p {
    max-width: 620px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1rem;
    line-height: 2;
}

.foundation-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
    margin-top: 30px;
}

.foundation-primary-cta,
.foundation-ghost-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 49px;
    padding: 0 19px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 900;
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.foundation-primary-cta {
    color: #2b197f;
    background: #fff;
    box-shadow: 0 11px 20px rgba(34, 22, 127, 0.2);
}

.foundation-ghost-cta {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.27);
    background: rgba(255, 255, 255, 0.1);
}

.foundation-primary-cta:hover,
.foundation-ghost-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 25px rgba(34, 22, 127, 0.2);
}

.foundation-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 32px;
}

.foundation-hero-badges span {
    padding: 7px 11px;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.82);
    background: rgba(255, 255, 255, 0.11);
    font-size: 0.76rem;
    font-weight: 700;
}

.foundation-hero-visual {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100%;
    padding: 28px;
    background: rgba(255, 255, 255, 0.74);
}

.foundation-orbit {
    position: relative;
    display: grid;
    min-height: 260px;
    place-items: center;
    overflow: hidden;
    border-radius: 23px;
    background:
        radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.12) 0 2px, transparent 3px),
        linear-gradient(145deg, #f2f0ff, #eef8ff);
}

.foundation-orbit::before,
.foundation-orbit::after {
    content: '';
    position: absolute;
    border: 1px dashed rgba(91, 69, 214, 0.2);
    border-radius: 50%;
}

.foundation-orbit::before {
    width: 210px;
    height: 210px;
}

.foundation-orbit::after {
    width: 290px;
    height: 290px;
    border-color: rgba(14, 159, 154, 0.16);
}

.orbit-center {
    position: relative;
    z-index: 1;
    display: grid;
    width: 108px;
    height: 108px;
    place-items: center;
    border: 7px solid rgba(255, 255, 255, 0.7);
    border-radius: 33px;
    color: #fff;
    background: linear-gradient(135deg, #5e49db, #2278df);
    box-shadow: 0 18px 28px rgba(73, 77, 205, 0.24);
    font-size: 2.45rem;
}

.orbit-chip {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 11px;
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 12px;
    color: var(--foundation-ink);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 9px 20px rgba(53, 51, 126, 0.12);
    font-size: 0.72rem;
    font-weight: 900;
}

.orbit-chip:nth-child(2) { top: 25px; right: 20px; }
.orbit-chip:nth-child(3) { bottom: 24px; left: 20px; }
.orbit-chip:nth-child(4) { bottom: 30px; right: 22px; }

.foundation-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 17px;
}

.foundation-stat {
    padding: 14px 10px;
    text-align: center;
    border: 1px solid var(--foundation-border);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.66);
}

.foundation-stat strong {
    display: block;
    color: var(--foundation-purple);
    font-size: 1.28rem;
    font-weight: 900;
}

.foundation-stat span {
    display: block;
    margin-top: 2px;
    color: var(--foundation-muted);
    font-size: 0.68rem;
    font-weight: 700;
}

.foundation-section {
    padding: 32px 0 72px;
}

.foundation-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 23px;
}

.foundation-section-heading h2 {
    margin: 0;
    color: var(--foundation-ink);
    font-size: clamp(1.55rem, 3vw, 2.25rem);
    line-height: 1.35;
    font-weight: 900;
}

.foundation-section-heading p {
    max-width: 560px;
    margin: 8px 0 0;
    color: var(--foundation-muted);
    font-size: 0.92rem;
}

.foundation-section-label {
    display: inline-flex;
    margin-bottom: 9px;
    color: var(--foundation-teal);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.foundation-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 13px;
    margin-bottom: 22px;
    padding: 13px;
    border: 1px solid rgba(99, 102, 241, 0.11);
    border-radius: 19px;
    background: rgba(255, 255, 255, 0.64);
    box-shadow: 0 8px 22px rgba(42, 42, 110, 0.05);
}

.foundation-filter-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.foundation-filter {
    min-height: 35px;
    padding: 0 12px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: var(--foundation-muted);
    background: transparent;
    font: inherit;
    font-size: 0.75rem;
    font-weight: 800;
    cursor: pointer;
    transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.foundation-filter:hover {
    transform: translateY(-1px);
    color: var(--foundation-purple);
    background: rgba(91, 69, 214, 0.07);
}

.foundation-filter.is-active {
    color: #fff;
    background: linear-gradient(135deg, #5a44d4, #3a75e8);
    box-shadow: 0 5px 12px rgba(71, 74, 203, 0.18);
}

.foundation-search-wrap {
    position: relative;
    min-width: min(100%, 250px);
}

.foundation-search-wrap span {
    position: absolute;
    top: 50%;
    right: 12px;
    color: var(--foundation-purple);
    transform: translateY(-50%);
}

.foundation-search {
    width: 100%;
    min-height: 39px;
    padding: 0 37px 0 12px;
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 11px;
    outline: none;
    color: var(--foundation-ink);
    background: rgba(255, 255, 255, 0.82);
    font: inherit;
    font-size: 0.76rem;
    font-weight: 700;
    transition: border 160ms ease, box-shadow 160ms ease;
}

.foundation-search:focus {
    border-color: rgba(91, 69, 214, 0.55);
    box-shadow: 0 0 0 4px rgba(91, 69, 214, 0.1);
}

.skill-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.skill-card {
    position: relative;
    display: flex;
    min-height: 235px;
    flex-direction: column;
    overflow: hidden;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.74);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.74);
    box-shadow: 0 10px 28px rgba(45, 43, 115, 0.08);
    transition: transform 220ms var(--foundation-ease), box-shadow 220ms ease, opacity 180ms ease;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 5px;
    background: var(--card-accent, linear-gradient(90deg, #5a44d4, #3b75e9));
}

.skill-card::after {
    content: '';
    position: absolute;
    width: 115px;
    height: 115px;
    right: -58px;
    bottom: -62px;
    border-radius: 50%;
    background: var(--card-wash, rgba(91, 69, 214, 0.1));
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 35px rgba(45, 43, 115, 0.13);
}

.skill-card.is-filtered-out {
    display: none;
}

.skill-card-top,
.skill-card h3,
.skill-card > p,
.skill-toggle,
.skill-details {
    position: relative;
    z-index: 1;
}

.skill-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.skill-icon {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 14px;
    color: #fff;
    background: var(--card-accent, linear-gradient(135deg, #5a44d4, #3b75e9));
    box-shadow: 0 8px 16px rgba(77, 77, 170, 0.15);
    font-size: 1.34rem;
}

.skill-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    min-height: 27px;
    padding: 0 7px;
    border-radius: 9px;
    color: var(--foundation-muted);
    background: rgba(91, 69, 214, 0.07);
    font-size: 0.68rem;
    font-weight: 900;
}

.skill-card h3 {
    margin: 17px 0 7px;
    color: var(--foundation-ink);
    font-size: 1.02rem;
    font-weight: 900;
}

.skill-card > p {
    min-height: 49px;
    margin: 0;
    color: var(--foundation-muted);
    font-size: 0.78rem;
    line-height: 1.9;
}

.skill-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 38px;
    margin-top: auto;
    padding: 8px 10px 8px 12px;
    border: 1px solid rgba(91, 69, 214, 0.12);
    border-radius: 11px;
    color: var(--foundation-purple);
    background: rgba(255, 255, 255, 0.58);
    font: inherit;
    font-size: 0.73rem;
    font-weight: 900;
    cursor: pointer;
    transition: background 160ms ease, color 160ms ease;
}

.skill-toggle:hover,
.skill-card.is-open .skill-toggle {
    color: #fff;
    background: var(--card-accent, linear-gradient(135deg, #5a44d4, #3b75e9));
}

.skill-toggle .toggle-arrow {
    display: inline-flex;
    transition: transform 180ms var(--foundation-ease);
}

.skill-card.is-open .toggle-arrow {
    transform: rotate(180deg);
}

.skill-details {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows 240ms var(--foundation-ease), opacity 180ms ease, margin-top 240ms var(--foundation-ease);
}

.skill-details > div {
    overflow: hidden;
}

.skill-card.is-open .skill-details {
    grid-template-rows: 1fr;
    margin-top: 11px;
    opacity: 1;
}

.skill-detail-line {
    display: flex;
    gap: 7px;
    padding-top: 7px;
    border-top: 1px solid rgba(91, 69, 214, 0.1);
    color: var(--foundation-muted);
    font-size: 0.72rem;
    line-height: 1.8;
}

.skill-detail-line + .skill-detail-line {
    margin-top: 6px;
}

.skill-detail-line strong {
    color: var(--foundation-ink);
}

.skill-card.tone-purple { --card-accent: linear-gradient(135deg, #5844d6, #8057db); --card-wash: rgba(88, 68, 214, 0.11); }
.skill-card.tone-blue { --card-accent: linear-gradient(135deg, #2878e7, #4b65ef); --card-wash: rgba(40, 120, 231, 0.1); }
.skill-card.tone-teal { --card-accent: linear-gradient(135deg, #0a918e, #22c2af); --card-wash: rgba(10, 145, 142, 0.1); }
.skill-card.tone-pink { --card-accent: linear-gradient(135deg, #bf3d9a, #f06ca2); --card-wash: rgba(191, 61, 154, 0.1); }
.skill-card.tone-orange { --card-accent: linear-gradient(135deg, #e08c2d, #f4b643); --card-wash: rgba(224, 140, 45, 0.11); }

.foundation-empty {
    display: none;
    margin: 20px 0 0;
    padding: 24px;
    text-align: center;
    border: 1px dashed rgba(91, 69, 214, 0.25);
    border-radius: 18px;
    color: var(--foundation-muted);
    background: rgba(255, 255, 255, 0.45);
    font-size: 0.85rem;
    font-weight: 700;
}

.foundation-empty.is-visible {
    display: block;
}

.foundation-roadmap {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 13px;
    margin-top: 10px;
}

.roadmap-step {
    position: relative;
    padding: 20px 17px;
    border: 1px solid rgba(99, 102, 241, 0.11);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.7);
}

.roadmap-step::after {
    content: '←';
    position: absolute;
    top: 24px;
    left: -14px;
    color: rgba(91, 69, 214, 0.35);
    font-size: 1.2rem;
    font-weight: 900;
}

.roadmap-step:last-child::after {
    display: none;
}

.roadmap-number {
    display: grid;
    width: 35px;
    height: 35px;
    place-items: center;
    margin-bottom: 13px;
    border-radius: 11px;
    color: #fff;
    background: linear-gradient(135deg, #5a44d4, #3b75e9);
    font-size: 0.82rem;
    font-weight: 900;
}

.roadmap-step:nth-child(2) .roadmap-number { background: linear-gradient(135deg, #0d9290, #21bbaa); }
.roadmap-step:nth-child(3) .roadmap-number { background: linear-gradient(135deg, #d247a5, #ee7098); }
.roadmap-step:nth-child(4) .roadmap-number { background: linear-gradient(135deg, #db8a2e, #f3b742); }

.roadmap-step h3 {
    margin: 0 0 5px;
    color: var(--foundation-ink);
    font-size: 0.88rem;
    font-weight: 900;
}

.roadmap-step p {
    margin: 0;
    color: var(--foundation-muted);
    font-size: 0.72rem;
    line-height: 1.85;
}

.foundation-cta {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    overflow: hidden;
    margin: 4px 0 72px;
    padding: 29px 32px;
    border-radius: 24px;
    color: #fff;
    background: linear-gradient(135deg, #2f1f9a, #5b45d6 55%, #2a7ce4);
    box-shadow: var(--foundation-shadow);
}

.foundation-cta::after {
    content: '';
    position: absolute;
    width: 240px;
    height: 240px;
    left: -70px;
    bottom: -175px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
}

.foundation-cta h2,
.foundation-cta p,
.foundation-cta a {
    position: relative;
    z-index: 1;
}

.foundation-cta h2 {
    margin: 0;
    font-size: clamp(1.3rem, 2.8vw, 2rem);
    font-weight: 900;
}

.foundation-cta p {
    margin: 6px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.82rem;
}

.foundation-cta a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 17px;
    border-radius: 13px;
    color: #321f9a;
    background: #fff;
    font-size: 0.82rem;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 10px 18px rgba(38, 24, 132, 0.2);
    transition: transform 180ms ease;
}

.foundation-cta a:hover {
    transform: translateY(-3px);
}

.foundation-footer {
    padding: 25px 0 35px;
    border-top: 1px solid rgba(99, 102, 241, 0.1);
    color: var(--foundation-muted);
    text-align: center;
    font-size: 0.74rem;
}

.foundation-footer a {
    color: var(--foundation-purple);
    font-weight: 800;
    text-decoration: none;
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 600ms ease, transform 600ms var(--foundation-ease);
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 70ms; }
.delay-2 { transition-delay: 140ms; }
.delay-3 { transition-delay: 210ms; }

body.dark-mode.foundation-page {
    color: #e8eaff;
    background:
        radial-gradient(circle at 8% 8%, rgba(111, 97, 226, 0.18) 0 2px, transparent 3px),
        radial-gradient(circle at 88% 18%, rgba(14, 159, 154, 0.18) 0 2px, transparent 3px),
        linear-gradient(135deg, #0b1120 0%, #17183a 52%, #0c1727 100%);
}

body.dark-mode .foundation-nav {
    border-bottom-color: rgba(255, 255, 255, 0.08);
    background: rgba(11, 17, 32, 0.72);
}

body.dark-mode .foundation-nav.is-scrolled {
    background: rgba(11, 17, 32, 0.93);
}

body.dark-mode .foundation-brand,
body.dark-mode .foundation-section-heading h2,
body.dark-mode .skill-card h3,
body.dark-mode .skill-detail-line strong,
body.dark-mode .roadmap-step h3 {
    color: #f4f5ff;
}

body.dark-mode .foundation-outline-link,
body.dark-mode .foundation-hero-visual,
body.dark-mode .foundation-tools,
body.dark-mode .skill-card,
body.dark-mode .skill-toggle,
body.dark-mode .foundation-stat,
body.dark-mode .roadmap-step,
body.dark-mode .foundation-empty {
    border-color: rgba(164, 169, 255, 0.15);
    background: rgba(20, 27, 52, 0.8);
}

body.dark-mode .foundation-hero-visual,
body.dark-mode .foundation-tools,
body.dark-mode .skill-card,
body.dark-mode .roadmap-step {
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.2);
}

body.dark-mode .foundation-orbit {
    background: radial-gradient(circle at 50% 50%, rgba(129, 140, 248, 0.16) 0 2px, transparent 3px), linear-gradient(145deg, #1a1b42, #102b3b);
}

body.dark-mode .orbit-chip,
body.dark-mode .foundation-search,
body.dark-mode .skill-toggle {
    color: #edf0ff;
    background: rgba(29, 37, 67, 0.9);
}

body.dark-mode .foundation-search {
    border-color: rgba(164, 169, 255, 0.18);
}

body.dark-mode .foundation-section-heading p,
body.dark-mode .skill-card > p,
body.dark-mode .skill-detail-line,
body.dark-mode .roadmap-step p,
body.dark-mode .foundation-stat span,
body.dark-mode .foundation-footer,
body.dark-mode .foundation-empty {
    color: #aeb7d1;
}

body.dark-mode .skill-index {
    color: #bbc4e1;
    background: rgba(129, 140, 248, 0.14);
}

@media (max-width: 900px) {
    .foundation-hero {
        grid-template-columns: 1fr;
    }

    .foundation-hero-visual {
        min-height: auto;
    }

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

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

    .roadmap-step:nth-child(2)::after {
        display: none;
    }
}

@media (max-width: 620px) {
    .foundation-container {
        width: min(100% - 24px, 540px);
    }

    .foundation-nav {
        padding: 11px 0;
    }

    .foundation-brand-text,
    .foundation-outline-link {
        display: none;
    }

    .foundation-back {
        min-height: 39px;
        padding: 0 12px;
        font-size: 0.76rem;
    }

    .foundation-hero {
        gap: 14px;
        padding-top: 25px;
    }

    .foundation-hero-copy {
        padding: 29px 23px;
        border-radius: 24px;
    }

    .foundation-hero h1 {
        font-size: clamp(1.9rem, 10vw, 2.7rem);
    }

    .foundation-hero-copy > p {
        font-size: 0.86rem;
    }

    .foundation-hero-visual {
        padding: 15px;
        border-radius: 23px;
    }

    .foundation-orbit {
        min-height: 215px;
    }

    .foundation-orbit::after {
        width: 245px;
        height: 245px;
    }

    .foundation-stats {
        gap: 7px;
    }

    .foundation-stat {
        padding: 11px 5px;
    }

    .foundation-stat strong {
        font-size: 1.04rem;
    }

    .foundation-stat span {
        font-size: 0.6rem;
    }

    .foundation-section {
        padding: 23px 0 52px;
    }

    .foundation-section-heading {
        display: block;
        margin-bottom: 17px;
    }

    .foundation-section-heading h2 {
        font-size: 1.55rem;
    }

    .foundation-section-heading p {
        font-size: 0.8rem;
    }

    .foundation-tools {
        align-items: stretch;
        padding: 10px;
    }

    .foundation-filter-list {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 2px;
    }

    .foundation-filter {
        flex: 0 0 auto;
    }

    .foundation-search-wrap {
        width: 100%;
    }

    .skill-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .skill-card {
        min-height: 215px;
        padding: 18px;
    }

    .foundation-roadmap {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .roadmap-step::after,
    .roadmap-step:nth-child(2)::after {
        display: none;
    }

    .foundation-cta {
        display: block;
        margin-bottom: 52px;
        padding: 24px 21px;
        border-radius: 21px;
    }

    .foundation-cta a {
        width: 100%;
        margin-top: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
