
/* =========================================================
   ALGOR — Global Stylesheet
   Turkish Programming Language
   ========================================================= */

/* ---------- 1. VARIABLES ---------- */

:root {
    --bg: #080b14;
    --bg-secondary: #0d1220;
    --surface: #111827;
    --surface-light: #182235;
    --surface-hover: #202d43;

    --primary: #7c5cff;
    --primary-light: #a18aff;
    --primary-dark: #6042d8;

    --cyan: #42d9f5;
    --green: #5de0a0;
    --orange: #ffb86b;
    --red: #ff7185;

    --text: #f1f5ff;
    --text-secondary: #a7b1c5;
    --text-muted: #69758c;

    --border: rgba(255, 255, 255, 0.09);
    --border-light: rgba(255, 255, 255, 0.15);

    --gradient: linear-gradient(135deg, #7c5cff 0%, #42d9f5 100%);
    --gradient-soft: linear-gradient(
        135deg,
        rgba(124, 92, 255, 0.16),
        rgba(66, 217, 245, 0.08)
    );

    --font: "Inter", "Segoe UI", Arial, sans-serif;
    --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;

    --container: 1160px;
    --radius: 16px;
    --radius-small: 10px;

    --shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
}

/* ---------- 2. RESET ---------- */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(
            circle at 15% 10%,
            rgba(124, 92, 255, 0.10),
            transparent 32%
        ),
        radial-gradient(
            circle at 90% 35%,
            rgba(66, 217, 245, 0.06),
            transparent 30%
        ),
        var(--bg);

    color: var(--text);
    font-family: var(--font);
    line-height: 1.7;
    overflow-x: hidden;
}

body,
button,
input,
textarea {
    font-family: var(--font);
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    cursor: pointer;
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

::selection {
    background: rgba(124, 92, 255, 0.45);
    color: white;
}

/* ---------- 3. SCROLLBAR ---------- */

::-webkit-scrollbar {
    width: 9px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: #303b54;
    border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ---------- 4. GENERAL ---------- */

.container {
    width: min(var(--container), calc(100% - 48px));
    margin-inline: auto;
}

section {
    position: relative;
    padding: 100px 0;
}

.section-heading {
    max-width: 720px;
    margin-bottom: 48px;
}

.section-heading.center {
    text-align: center;
    margin-inline: auto;
}

.section-label,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--primary-light);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.section-label::before,
.eyebrow::before {
    content: "";
    width: 22px;
    height: 2px;
    background: var(--gradient);
    border-radius: 10px;
}

.section-heading h2,
.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.2;
    letter-spacing: -1.5px;
    margin-bottom: 18px;
}

.section-heading p {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------- 4.1 INDEX PAGE COMPATIBILITY ---------- */

.wrap {
    width: min(var(--container), calc(100% - 48px));
    margin-inline: auto;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 22px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 0.92rem;
    font-weight: 750;
    transition: 0.2s ease;
}

.button.primary,
.button.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 8px 28px rgba(124, 92, 255, 0.22);
}

.button.secondary,
.button.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border-light);
    color: var(--text);
}

.hero.wrap {
    min-height: 650px;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
    align-items: center;
    gap: 58px;
    padding: 88px 0 96px;
}

.hero-copy {
    position: relative;
    z-index: 2;
}

.hero-copy h1 {
    max-width: 680px;
    margin-bottom: 24px;
}

.hero-lead {
    max-width: 610px;
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.85;
    margin-bottom: 30px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-copy .hero-meta {
    margin-top: 32px;
}

.window-top {
    display: grid;
    grid-template-columns: 70px 1fr 70px;
    align-items: center;
    min-height: 48px;
    padding: 0 18px;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.025);
    color: var(--text-muted);
    font-family: var(--mono);
    font-size: 0.78rem;
}

.window-top > span:nth-of-type(1) {
    text-align: center;
}

.window-lang {
    text-align: right;
}

.window-dots {
    display: flex;
    gap: 7px;
}

.window-dots i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ff7185;
}

.window-dots i:nth-child(2) {
    background: #ffb86b;
}

.window-dots i:nth-child(3) {
    background: #5de0a0;
}

.code-window pre {
    min-height: 350px;
    margin: 0;
}

.window-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.78rem;
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 7px;
    border-radius: 50%;
    background: var(--green);
}

.code-key {
    color: #bd9cff;
}

.code-fn {
    color: #69d8f5;
}

.code-comment {
    color: #65728a;
    font-style: italic;
}

.stats-grid.wrap {
    margin-top: 10px;
    margin-bottom: 35px;
}

.stats-grid.wrap + .section {
    padding-top: 85px;
}

.stat-card strong {
    display: block;
    margin-bottom: 4px;
    color: white;
    font-size: 2rem;
}

.stat-card span {
    color: var(--text-muted);
    font-size: 0.84rem;
}

main > .section {
    padding-top: 95px;
    padding-bottom: 95px;
}

.section-heading {
    max-width: 760px;
}

.feature-grid,
.resource-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.feature-card,
.resource-card,
.about-panel {
    border: 1px solid var(--border);
    background: linear-gradient(145deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
}

.feature-card {
    min-height: 235px;
    padding: 26px;
    border-radius: var(--radius);
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    margin-bottom: 20px;
    border-radius: 13px;
    background: var(--gradient-soft);
    font-size: 1.35rem;
}

.feature-icon.purple { color: var(--primary-light); }
.feature-icon.blue { color: var(--cyan); }
.feature-icon.green { color: var(--green); }
.feature-icon.orange { color: var(--orange); }

.feature-card h3 {
    margin-bottom: 10px;
    font-size: 1.12rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.92rem;
}

.learn-band {
    border-block: 1px solid var(--border);
    background: rgba(124, 92, 255, 0.055);
}

.learn-inner {
    display: grid;
    grid-template-columns: 1fr 0.78fr;
    align-items: center;
    gap: 70px;
    padding-block: 85px;
}

.learn-inner h2 {
    margin-bottom: 18px;
    font-size: clamp(2.2rem, 4vw, 3.3rem);
    line-height: 1.15;
    letter-spacing: -1.5px;
}

.learn-inner > div:first-child > p {
    max-width: 570px;
    margin-bottom: 26px;
    color: var(--text-secondary);
}

.mini-code {
    overflow: hidden;
    border: 1px solid var(--border-light);
    border-radius: 15px;
    background: #0b101b;
    box-shadow: var(--shadow);
}

.mini-code-title {
    padding: 12px 18px;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
    font-family: var(--mono);
    font-size: 0.78rem;
}

.mini-code pre {
    min-height: 180px;
    padding: 24px;
    font-family: var(--mono);
    line-height: 1.9;
}

.terminal-output {
    padding: 16px 18px;
    border-top: 1px solid var(--border);
    color: var(--green);
    font-family: var(--mono);
    font-size: 0.85rem;
}

.terminal-output > span {
    color: var(--text-muted);
    font-size: 0.68rem;
}

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

.resource-card {
    min-height: 170px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: start;
    gap: 18px;
    padding: 24px;
    border-radius: var(--radius);
    transition: 0.22s ease;
}

.resource-card:hover {
    transform: translateY(-5px);
    border-color: rgba(124,92,255,.48);
}

.resource-number {
    color: var(--primary-light);
    font-family: var(--mono);
    font-size: 0.78rem;
}

.resource-card h3 {
    margin-bottom: 8px;
}

.resource-card p {
    color: var(--text-secondary);
    font-size: 0.88rem;
}

.resource-card .arrow {
    color: var(--primary-light);
}

.about-panel {
    padding: 38px;
    border-radius: var(--radius);
}

.about-panel > h2 {
    margin-bottom: 14px;
}

.about-panel > p {
    max-width: 820px;
    color: var(--text-secondary);
}

.about-links {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 24px;
}

.about-links a {
    color: var(--primary-light);
    font-weight: 700;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 25px;
}

.footer-inner > p {
    justify-self: end;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.86rem;
}

.footer-inner > small {
    justify-self: end;
    color: var(--text-muted);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font-size: 1.35rem;
    font-weight: 900;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: var(--gradient);
}

.brand-dot {
    color: var(--primary-light);
}

.page-main {
    padding-top: 85px;
    padding-bottom: 95px;
}

.page-main > h1 {
    max-width: 850px;
    margin: 8px 0 20px;
    font-size: clamp(2.8rem, 6vw, 4.6rem);
    line-height: 1.08;
    letter-spacing: -2.5px;
}

.docs-intro {
    max-width: 760px;
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 32px;
}

.docs-layout.wrap {
    padding-top: 85px;
    padding-bottom: 95px;
}

.docs-layout {
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 44px;
}

.docs-sidebar {
    max-height: calc(100vh - 125px);
    overflow-y: auto;
}

.sidebar-title {
    margin-bottom: 12px;
    color: var(--primary-light);
    font-size: 0.75rem;
    font-weight: 850;
    letter-spacing: 1.5px;
}

.docs-content > h1 {
    margin: 8px 0 18px;
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    line-height: 1.08;
    letter-spacing: -2px;
}

.docs-content .notice,
.notice {
    margin: 20px 0;
    padding: 18px 20px;
    border: 1px solid rgba(124,92,255,.25);
    border-radius: 12px;
    background: rgba(124,92,255,.08);
    color: var(--text-secondary);
}

.docs-content pre,
.example-card pre {
    margin: 18px 0;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #080d17;
}

.docs-content pre.output {
    border-color: rgba(93,224,160,.18);
}

.docs-content pre.output code {
    color: var(--green);
}

.table-wrap {
    margin: 18px 0;
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.table-wrap table {
    min-width: 480px;
}

.docs-next {
    margin-top: 15px;
    padding-top: 26px;
    border-top: 1px solid var(--border);
}

.docs-next a {
    display: inline-flex;
    flex-direction: column;
    color: var(--primary-light);
}

.docs-next span {
    color: var(--text-muted);
    font-size: 0.72rem;
}

.example-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.example-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.example-head > span {
    color: var(--primary-light);
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 1px;
}

.copy-btn {
    padding: 7px 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(255,255,255,.035);
    color: var(--text-secondary);
    font-size: 0.76rem;
}

.example-card h2 {
    padding: 20px 22px 7px;
    font-size: 1.15rem;
}

.example-card > p {
    padding: 0 22px;
    color: var(--text-secondary);
    font-size: 0.88rem;
}

.example-card pre {
    margin: 18px 22px 22px;
    min-height: 145px;
}

.center-action {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}

.about-main {
    display: grid;
    gap: 24px;
}

.about-main > .eyebrow,
.about-main > h1,
.about-main > .docs-intro {
    margin-bottom: 0;
}

.about-main .about-panel {
    padding: 30px;
}

.about-main .about-panel ul {
    display: grid;
    gap: 9px;
    margin-top: 16px;
    padding-left: 20px;
    color: var(--text-secondary);
}

.about-main .about-panel li {
    list-style: disc;
}

/* ---------- 5. NAVBAR ---------- */

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: rgba(8, 11, 20, 0.84);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font-size: 1.45rem;
    font-weight: 900;
    letter-spacing: 1px;
    white-space: nowrap;
}

.logo span {
    color: var(--primary-light);
}

.logo-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: var(--gradient);
    color: white;
    font-family: var(--mono);
    font-size: 1rem;
    box-shadow: 0 5px 22px rgba(124, 92, 255, 0.3);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: white;
}

.nav-links a.active {
    position: relative;
}

.nav-links a.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -9px;
    height: 2px;
    background: var(--gradient);
    border-radius: 5px;
}

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

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: white;
    border-radius: 10px;
    font-size: 1.35rem;
}

/* ---------- 6. BUTTONS ---------- */

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 13px 23px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 0.92rem;
    font-weight: 750;
    transition:
        transform 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-3px);
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 8px 28px rgba(124, 92, 255, 0.22);
}

.btn-primary:hover {
    box-shadow: 0 12px 35px rgba(124, 92, 255, 0.38);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border-light);
    color: var(--text);
}

.btn-secondary:hover {
    background: var(--surface-light);
    border-color: var(--primary);
}

.btn-small {
    padding: 9px 16px;
    font-size: 0.82rem;
}

/* ---------- 7. HERO ---------- */

.hero {
    min-height: 690px;
    display: flex;
    align-items: center;
    padding: 100px 0 110px;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;
    right: -180px;
    top: 30px;
    background: radial-gradient(
        circle,
        rgba(124, 92, 255, 0.18),
        transparent 68%
    );
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 790px;
}

.hero h1 {
    font-size: clamp(3.1rem, 7vw, 5.8rem);
    line-height: 1.04;
    letter-spacing: -4px;
    font-weight: 900;
    margin-bottom: 26px;
}

.hero h1 span {
    display: block;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-description {
    max-width: 650px;
    color: var(--text-secondary);
    font-size: 1.15rem;
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 38px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    color: var(--text-muted);
    font-size: 0.83rem;
}

.hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero-meta span::before {
    content: "●";
    color: var(--green);
    font-size: 0.65rem;
}

/* ---------- 8. CODE WINDOW ---------- */

.code-window {
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--border-light);
    border-radius: 15px;
    background: #0b101b;
    box-shadow: var(--shadow);
}

.code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 14px 19px;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.025);
}

.code-dots {
    display: flex;
    gap: 7px;
}

.code-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ff6b6b;
}

.code-dots span:nth-child(2) {
    background: #ffbd4a;
}

.code-dots span:nth-child(3) {
    background: #42d98b;
}

.code-title {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-family: var(--mono);
}

.code-window pre,
.code-block pre {
    padding: 24px;
    overflow-x: auto;
    color: #dbe5ff;
    font-family: var(--mono);
    font-size: 0.88rem;
    line-height: 1.9;
    tab-size: 4;
}

.code-window code,
.code-block code {
    font-family: var(--mono);
}

.code-keyword {
    color: #bd9cff;
}

.code-string {
    color: #8be9a8;
}

.code-number {
    color: #ffbd78;
}

.code-comment {
    color: #65728a;
    font-style: italic;
}

.code-function {
    color: #69d8f5;
}

/* ---------- 9. STATS ---------- */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.025);
    overflow: hidden;
}

.stat-card {
    padding: 30px 20px;
    text-align: center;
    border-right: 1px solid var(--border);
}

.stat-card:last-child {
    border-right: 0;
}

.stat-number {
    display: block;
    font-size: 2.3rem;
    font-weight: 900;
    letter-spacing: -1px;
    color: white;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.84rem;
}

/* ---------- 10. CARDS ---------- */

.grid {
    display: grid;
    gap: 22px;
}

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

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

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

.card {
    position: relative;
    padding: 28px;
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.045),
        rgba(255, 255, 255, 0.015)
    );
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease;
}

.card:hover {
    transform: translateY(-6px);
    border-color: rgba(124, 92, 255, 0.5);
    background: rgba(124, 92, 255, 0.055);
}

.card-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    margin-bottom: 21px;
    border-radius: 13px;
    background: var(--gradient-soft);
    color: var(--primary-light);
    font-size: 1.4rem;
}

.card h3 {
    font-size: 1.15rem;
    margin-bottom: 11px;
}

.card p {
    color: var(--text-secondary);
    font-size: 0.92rem;
}

.card-link {
    display: inline-flex;
    margin-top: 20px;
    color: var(--primary-light);
    font-size: 0.88rem;
    font-weight: 750;
}

/* ---------- 11. FEATURE SECTIONS ---------- */

.feature-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 65px;
}

.feature-text h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.2;
    margin-bottom: 20px;
}

.feature-text p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.feature-list {
    display: grid;
    gap: 14px;
    margin-top: 25px;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text-secondary);
}

.feature-list li::before {
    content: "✓";
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 23px;
    height: 23px;
    border-radius: 7px;
    background: rgba(93, 224, 160, 0.12);
    color: var(--green);
    font-size: 0.8rem;
    font-weight: 900;
}

/* ---------- 12. LEARNING PATH ---------- */

.learning-path {
    display: grid;
    gap: 0;
    max-width: 820px;
    margin-inline: auto;
}

.path-item {
    position: relative;
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 22px;
    padding-bottom: 35px;
}

.path-item:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 28px;
    top: 58px;
    bottom: 0;
    width: 2px;
    background: linear-gradient(
        to bottom,
        var(--primary),
        rgba(124, 92, 255, 0.08)
    );
}

.path-number {
    position: relative;
    z-index: 1;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(124, 92, 255, 0.5);
    border-radius: 16px;
    background: var(--surface);
    color: var(--primary-light);
    font-weight: 900;
}

.path-content {
    padding-top: 5px;
}

.path-content h3 {
    margin-bottom: 7px;
}

.path-content p {
    color: var(--text-secondary);
    font-size: 0.92rem;
}

/* ---------- 13. TAGS AND BADGES ---------- */

.badge,
.tag {
    display: inline-flex;
    align-items: center;
    padding: 5px 11px;
    border-radius: 30px;
    background: rgba(124, 92, 255, 0.13);
    border: 1px solid rgba(124, 92, 255, 0.25);
    color: var(--primary-light);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.3px;
}

.badge-success {
    background: rgba(93, 224, 160, 0.1);
    border-color: rgba(93, 224, 160, 0.25);
    color: var(--green);
}

.badge-warning {
    background: rgba(255, 184, 107, 0.1);
    border-color: rgba(255, 184, 107, 0.25);
    color: var(--orange);
}

/* ---------- 14. PAGE HERO ---------- */

.page-hero {
    padding: 100px 0 70px;
    text-align: center;
    background:
        radial-gradient(
            circle at 50% 0,
            rgba(124, 92, 255, 0.15),
            transparent 60%
        );
}

.page-hero h1 {
    font-size: clamp(2.6rem, 6vw, 4.5rem);
    letter-spacing: -2px;
    line-height: 1.1;
    margin-bottom: 20px;
}

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

/* ---------- 15. DOCUMENTATION ---------- */

.docs-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 50px;
    align-items: start;
}

.docs-sidebar {
    position: sticky;
    top: 105px;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}

.docs-sidebar h3 {
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.docs-sidebar a {
    display: block;
    padding: 8px 10px;
    border-radius: 7px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    transition: 0.2s;
}

.docs-sidebar a:hover,
.docs-sidebar a.active {
    color: white;
    background: rgba(124, 92, 255, 0.13);
}

.docs-content {
    min-width: 0;
}

.docs-content section {
    padding: 0 0 55px;
    scroll-margin-top: 110px;
}

.docs-content h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.docs-content h3 {
    font-size: 1.2rem;
    margin: 28px 0 12px;
}

.docs-content p {
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.docs-content ul,
.docs-content ol {
    padding-left: 22px;
    margin: 15px 0;
    color: var(--text-secondary);
}

.docs-content ul {
    list-style: disc;
}

.docs-content ol {
    list-style: decimal;
}

.docs-content li {
    margin-bottom: 8px;
}

.docs-content code,
.inline-code {
    padding: 3px 7px;
    border-radius: 5px;
    background: rgba(124, 92, 255, 0.12);
    color: #c5b5ff;
    font-family: var(--mono);
    font-size: 0.87em;
}

.code-block {
    position: relative;
    margin: 20px 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #0b101b;
}

.code-block pre {
    padding: 22px;
}

.code-copy {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 7px 12px;
    border: 1px solid var(--border-light);
    border-radius: 7px;
    background: var(--surface);
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.code-copy:hover {
    color: white;
    border-color: var(--primary);
}

/* ---------- 16. TABLES ---------- */

.table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin: 25px 0;
    border: 1px solid var(--border);
    border-radius: 12px;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 500px;
}

th,
td {
    padding: 15px 18px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

th {
    background: var(--surface);
    color: white;
    font-size: 0.85rem;
}

td {
    color: var(--text-secondary);
    font-size: 0.88rem;
}

tr:last-child td {
    border-bottom: 0;
}

/* ---------- 17. EXAMPLES ---------- */

.example-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}

.example-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 19px 22px;
    border-bottom: 1px solid var(--border);
}

.example-card-header h3 {
    font-size: 1rem;
}

.example-card-body {
    padding: 0;
}

.example-description {
    padding: 18px 22px 0;
    color: var(--text-secondary);
    font-size: 0.88rem;
}

.example-card pre {
    padding: 22px;
    overflow-x: auto;
    color: #dbe5ff;
    font-family: var(--mono);
    font-size: 0.85rem;
    line-height: 1.8;
}

/* ---------- 18. ALERTS ---------- */

.alert {
    display: flex;
    gap: 14px;
    padding: 18px 20px;
    margin: 22px 0;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
}

.alert p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.alert-info {
    border-left: 3px solid var(--cyan);
}

.alert-warning {
    border-left: 3px solid var(--orange);
}

.alert-success {
    border-left: 3px solid var(--green);
}

/* ---------- 19. FAQ ---------- */

.faq-list {
    display: grid;
    gap: 13px;
    max-width: 850px;
    margin-inline: auto;
}

.faq-item {
    padding: 22px 24px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.025);
}

.faq-item h3 {
    font-size: 1rem;
    margin-bottom: 9px;
}

.faq-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ---------- 20. CTA ---------- */

.cta-section {
    padding: 70px 0;
}

.cta-box {
    position: relative;
    overflow: hidden;
    padding: 65px 35px;
    border: 1px solid rgba(124, 92, 255, 0.3);
    border-radius: 22px;
    background:
        radial-gradient(
            circle at 80% 10%,
            rgba(66, 217, 245, 0.14),
            transparent 40%
        ),
        linear-gradient(
            135deg,
            rgba(124, 92, 255, 0.16),
            rgba(17, 24, 39, 0.9)
        );
    text-align: center;
}

.cta-box h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 15px;
}

.cta-box p {
    max-width: 600px;
    margin: 0 auto 28px;
    color: var(--text-secondary);
}

/* ---------- 21. FOOTER ---------- */

.footer {
    padding: 70px 0 25px;
    border-top: 1px solid var(--border);
    background: rgba(4, 7, 13, 0.6);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 45px;
    margin-bottom: 55px;
}

.footer-about p {
    max-width: 300px;
    margin-top: 18px;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.footer-column h4 {
    margin-bottom: 19px;
    font-size: 0.92rem;
}

.footer-column a {
    display: block;
    margin-bottom: 11px;
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: color 0.2s;
}

.footer-column a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ---------- 22. UTILITIES ---------- */

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

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

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

.mt-1 {
    margin-top: 10px;
}

.mt-2 {
    margin-top: 20px;
}

.mt-3 {
    margin-top: 30px;
}

.mb-1 {
    margin-bottom: 10px;
}

.mb-2 {
    margin-bottom: 20px;
}

.mb-3 {
    margin-bottom: 30px;
}

.hidden {
    display: none !important;
}

.divider {
    height: 1px;
    background: var(--border);
    margin: 30px 0;
}

/* ---------- 23. ANIMATIONS ---------- */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(22px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.animate-up {
    animation: fadeUp 0.7s ease both;
}

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

/* ---------- 24. RESPONSIVE ---------- */

/* Global overflow guards */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

body * {
    max-width: 100%;
}

main,
header,
footer,
section,
article,
aside {
    min-width: 0;
}

p,
h1,
h2,
h3,
li,
td,
th,
a {
    overflow-wrap: anywhere;
}

pre,
code,
table,
.table-wrap,
.table-wrapper {
    max-width: 100%;
}

pre {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

table,
.table-wrap,
.table-wrapper {
    overflow-x: auto;
}

.navbar {
    position: sticky;
}

.nav-container {
    min-width: 0;
}

.logo {
    min-width: 0;
}

@media (max-width: 1000px) {
    .hero.wrap {
        grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
        gap: 35px;
    }

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

    .learn-inner {
        grid-template-columns: 1fr 0.9fr;
        gap: 40px;
    }

    .nav-links {
        gap: 18px;
    }

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

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

    .feature-layout {
        gap: 35px;
    }
}

@media (max-width: 760px) {
    .nav-actions {
        flex: 0 0 auto;
    }

    .nav-container {
        width: min(100% - 28px, var(--container));
    }

    .nav-links {
        width: 100%;
    }

    .hero::before,
    .learn-page .page-hero {
        max-width: 100%;
        background-size: cover;
    }

    .stats-grid,
    .feature-grid,
    .resource-grid,
    .example-grid,
    .learning-path,
    .grid,
    .grid-2,
    .grid-3,
    .grid-4,
    .feature-layout,
    .learn-inner,
    .docs-layout,
    .footer-inner,
    .footer-grid {
        min-width: 0;
        max-width: 100%;
    }

    .window-top {
        grid-template-columns: 56px minmax(0, 1fr) 56px;
        padding-inline: 12px;
    }

    .window-bottom {
        gap: 10px;
    }

    .resource-card {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    .docs-content,
    .docs-sidebar,
    .example-card,
    .feature-card,
    .resource-card,
    .about-panel,
    .mini-code,
    .code-window {
        min-width: 0;
        max-width: 100%;
    }

    .docs-sidebar {
        width: 100%;
    }

    .docs-sidebar a {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .example-card pre,
    .code-window pre,
    .mini-code pre,
    .code-block pre,
    .docs-content pre {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: auto;
        white-space: pre-wrap;
        overflow-wrap: anywhere;
    }

    .wrap,
    .container {
        width: min(100% - 34px, var(--container));
    }

    .hero.wrap {
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 42px;
        padding: 72px 0 75px;
    }

    .hero-copy h1 {
        font-size: clamp(2.75rem, 12vw, 4.2rem);
        letter-spacing: -2.5px;
    }

    .hero-lead {
        font-size: 1rem;
    }

    .code-window pre {
        min-height: 0;
        font-size: 0.78rem;
        line-height: 1.8;
    }

    .stats-grid.wrap {
        margin-bottom: 10px;
    }

    .feature-grid,
    .resource-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        min-height: 0;
    }

    .learn-inner {
        grid-template-columns: 1fr;
        gap: 38px;
        padding-block: 65px;
    }

    .mini-code pre {
        min-height: 150px;
    }

    main > .section {
        padding-top: 70px;
        padding-bottom: 70px;
    }

    .about-panel {
        padding: 28px 22px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }

    .footer-inner > p,
    .footer-inner > small {
        justify-self: start;
    }

    .footer-links {
        gap: 14px 18px;
    }

    section {
        padding: 75px 0;
    }

    .container {
        width: min(100% - 34px, var(--container));
    }

    .nav-container {
        min-height: 68px;
    }

    .menu-toggle {
        display: grid;
        place-items: center;
    }

    .nav-links {
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px 20px 20px;
        background: rgba(8, 11, 20, 0.98);
        border-bottom: 1px solid var(--border);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        padding: 13px 8px;
        border-bottom: 1px solid var(--border);
    }

    .nav-links a.active::after {
        display: none;
    }

    .nav-actions .btn {
        display: none;
    }

    .hero {
        min-height: auto;
        padding: 85px 0;
    }

    .hero h1 {
        font-size: clamp(2.8rem, 12vw, 4.4rem);
        letter-spacing: -2.5px;
    }

    .hero-description {
        font-size: 1rem;
    }

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

    .stat-card:nth-child(2) {
        border-right: 0;
    }

    .stat-card:nth-child(-n+2) {
        border-bottom: 1px solid var(--border);
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .feature-layout {
        grid-template-columns: 1fr;
    }

    .docs-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .docs-sidebar {
        position: static;
    }

    .page-hero {
        padding: 75px 0 45px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 35px 20px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .cta-box {
        padding: 45px 22px;
    }
}

@media (max-width: 760px) {
    .docs-layout.wrap {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-top: 60px;
        padding-bottom: 70px;
    }

    .docs-sidebar {
        position: static;
        max-height: none;
    }

    .docs-sidebar a {
        display: inline-block;
    }

    .page-main {
        padding-top: 65px;
        padding-bottom: 70px;
    }

    .page-main > h1,
    .docs-content > h1 {
        font-size: clamp(2.35rem, 11vw, 3.4rem);
        letter-spacing: -1.8px;
    }

    .example-grid {
        grid-template-columns: 1fr;
    }

    .example-card pre {
        margin-inline: 16px;
    }

    .about-main .about-panel {
        padding: 24px 20px;
    }

    .learn-page .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 460px) {
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn,
    .hero-actions .button {
        width: 100%;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .hero-meta {
        flex-direction: column;
        gap: 9px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .code-window pre,
    .code-block pre {
        padding: 17px;
        font-size: 0.78rem;
    }

    .path-item {
        grid-template-columns: 46px 1fr;
        gap: 15px;
    }

    .path-number {
        width: 46px;
        height: 46px;
    }

    .path-item:not(:last-child)::after {
        left: 22px;
        top: 46px;
    }
}

/* ---------- 25. ACCESSIBILITY ---------- */

:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 4px;
}

@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;
    }
}

/* =========================================================
   ALGOR LEARN PAGE — REDESIGN
   ========================================================= */

.learn-page {
    background:
        radial-gradient(ellipse at 10% 15%, rgba(124, 92, 255, .10), transparent 35%),
        radial-gradient(ellipse at 90% 55%, rgba(66, 217, 245, .06), transparent 35%),
        var(--bg);
}

/* HERO */

.learn-page .page-hero {
    padding: 110px 0 95px;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(124, 92, 255, .22), transparent 65%);
    border-bottom: 1px solid var(--border);
}

.learn-page .page-hero h1 {
    max-width: 850px;
    margin: 18px auto;
    font-size: clamp(3rem, 7vw, 5.4rem);
    font-weight: 900;
    letter-spacing: -3px;
}

.learn-page .page-hero p {
    max-width: 620px;
    font-size: 1.12rem;
    line-height: 1.9;
}

.learn-page .hero-buttons {
    margin-top: 30px;
}

/* SECTION STRUCTURE */

.learn-page main > section:not(.page-hero):not(.cta-section) {
    padding: 85px 0;
    border-bottom: 1px solid rgba(255,255,255,.045);
}

.learn-page .section-heading {
    margin-bottom: 42px;
}

.learn-page .section-heading h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
}

.learn-page .section-heading p {
    max-width: 650px;
    line-height: 1.9;
}

/* LEARNING PATH — TWO COLUMN CARDS */

.learn-page .learning-path {
    max-width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.learn-page .path-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 23px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: linear-gradient(
        145deg,
        rgba(255,255,255,.045),
        rgba(255,255,255,.012)
    );
    transition: .25s ease;
}

.learn-page .path-item:hover {
    transform: translateY(-4px);
    border-color: rgba(124,92,255,.55);
    background: rgba(124,92,255,.07);
}

.learn-page .path-item::after {
    display: none;
}

.learn-page .path-number {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    font-size: 1rem;
}

.learn-page .path-content {
    padding: 0;
}

.learn-page .path-content .badge {
    margin-bottom: 10px;
}

.learn-page .path-content h3 {
    font-size: 1.05rem;
    margin-bottom: 7px;
}

.learn-page .path-content p {
    font-size: .88rem;
    line-height: 1.75;
}

/* LESSON HEADINGS */

.learn-page .feature-text h2,
.learn-page .feature-text h3 {
    letter-spacing: -.8px;
}

.learn-page .feature-text h3 {
    font-size: 1.5rem;
    margin-bottom: 18px;
}

.learn-page .feature-text p {
    line-height: 1.9;
    margin-bottom: 17px;
}

.learn-page .feature-text .feature-list {
    margin-top: 25px;
}

/* LESSON CONTENT PANELS */

.learn-page .feature-layout {
    gap: 55px;
    align-items: center;
}

.learn-page .feature-text {
    padding: 10px 0;
}

.learn-page .feature-layout > .code-window {
    box-shadow: 0 25px 70px rgba(0,0,0,.3);
    border-color: rgba(124,92,255,.2);
}

.learn-page .code-window pre {
    min-height: 180px;
    display: flex;
    align-items: center;
}

/* CARDS */

.learn-page .card {
    padding: 27px;
    border-radius: 17px;
    background: linear-gradient(
        145deg,
        #141d2e,
        #0d1422
    );
}

.learn-page .card h3 {
    font-size: 1.12rem;
    margin-bottom: 12px;
}

.learn-page .card p {
    font-size: .91rem;
    line-height: 1.8;
}

.learn-page .card-icon {
    margin-bottom: 18px;
}

/* CODE BLOCKS */

.learn-page .code-block {
    margin-top: 20px;
    border-radius: 12px;
    border: 1px solid rgba(124,92,255,.17);
    background: #080d17;
}

.learn-page .code-block pre {
    padding: 19px;
    font-size: .82rem;
    line-height: 1.9;
    white-space: pre;
}

/* TABLES */

.learn-page .table-wrapper {
    margin-top: 20px;
}

.learn-page table th {
    background: #1a2540;
}

.learn-page table td,
.learn-page table th {
    padding: 14px 16px;
}

/* PRACTICE CARDS */

.learn-page .card .badge {
    margin-bottom: 17px;
}

.learn-page .alert {
    border-radius: 14px;
    padding: 20px;
}

/* CTA */

.learn-page .cta-box {
    border-radius: 24px;
    padding: 75px 30px;
    box-shadow: 0 25px 80px rgba(0,0,0,.2);
}

.learn-page .cta-box p {
    line-height: 1.9;
}

/* MOBILE */

@media (max-width: 760px) {
    .learn-page .page-hero {
        padding: 80px 0 65px;
    }

    .learn-page .page-hero h1 {
        font-size: clamp(2.6rem, 11vw, 4rem);
        letter-spacing: -2px;
    }

    .learn-page main > section:not(.page-hero):not(.cta-section) {
        padding: 60px 0;
    }

    .learn-page .learning-path {
        grid-template-columns: 1fr;
    }

    .learn-page .feature-layout {
        gap: 28px;
    }

    .learn-page .feature-layout > .code-window {
        width: 100%;
    }

    .learn-page .grid-2,
    .learn-page .grid-3 {
        grid-template-columns: 1fr;
    }

    .learn-page .path-item {
        padding: 19px;
    }

    .learn-page .cta-box {
        padding: 48px 20px;
    }
}
