/* ==========================================================================
   ternis.org — Modern Organic Tech Design System
   Inspired by Organic Green Tech Aesthetics, Floating Pill Navigation & Morphing Blobs
   ========================================================================== */

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

:root {
    /* Organic Green Tech Palette (Light / Default) */
    --primary: #4a5d23;
    --primary-hover: #3d4d1d;
    --primary-glow: rgba(74, 93, 35, 0.25);
    --secondary: #8c9c6f;
    --secondary-light: #c2cdb0;
    --bg-color: #f7f6f2;
    --bg-surface: #ffffff;
    --bg-surface-trans: rgba(255, 255, 255, 0.65);
    --bg-card: rgba(255, 255, 255, 0.75);
    --bg-card-hover: rgba(255, 255, 255, 0.95);
    --text-dark: #2c3029;
    --text-muted: #6e7568;
    --accent: #d4a373;
    --accent-glow: rgba(212, 163, 115, 0.3);
    --border-subtle: rgba(74, 93, 35, 0.12);
    --border-highlight: rgba(74, 93, 35, 0.35);

    /* Code / Terminal */
    --code-bg: #1e2417;
    --code-border: rgba(140, 156, 111, 0.2);
    --code-text: #e7ebd9;

    /* Subtle Shadows & Radii (Crisp, modern, minimal) */
    --shadow-sm: 0 1px 2px rgba(44, 48, 41, 0.04);
    --shadow-md: 0 4px 16px rgba(44, 48, 41, 0.04);
    --shadow-glow: 0 0 0 1px var(--border-highlight);
    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    /* Fonts */
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

[data-theme="dark"] {
    --primary: #94b858;
    --primary-hover: #a8cc6a;
    --primary-glow: rgba(148, 184, 88, 0.2);
    --secondary: #789456;
    --secondary-light: #334026;
    --bg-color: #0f140d;
    --bg-surface: #171f14;
    --bg-surface-trans: rgba(23, 31, 20, 0.8);
    --bg-card: rgba(23, 31, 20, 0.7);
    --bg-card-hover: rgba(30, 41, 26, 0.95);
    --text-dark: #f0f4ea;
    --text-muted: #9eae93;
    --accent: #e5b382;
    --accent-glow: rgba(229, 179, 130, 0.2);
    --border-subtle: rgba(148, 184, 88, 0.15);
    --border-highlight: rgba(148, 184, 88, 0.4);

    --code-bg: #090d07;
    --code-border: rgba(148, 184, 88, 0.15);
    --code-text: #f0f4ea;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 0 1px var(--border-highlight);
}

/* ==========================================================================
   Base & Reset
   ========================================================================== */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--font-sans);
}

/* Custom Text Selection */
::selection {
    background: var(--primary);
    color: #ffffff;
}

::-moz-selection {
    background: var(--primary);
    color: #ffffff;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE / Edge */
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
    width: 0;
    height: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-dark);
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ==========================================================================
   Container & Layout
   ========================================================================== */

.container {
    width: 100%;
    max-width: 1160px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    position: relative;
    z-index: 1;
}

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

/* ==========================================================================
   Floating Pill Navigation Bar
   ========================================================================== */

.nav-container-fixed {
    position: fixed;
    top: 1.75rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 820px;
    z-index: 1000;
}

nav.floating-nav {
    background: var(--bg-surface-trans);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: 100px;
    padding: 0.7rem 1.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-sm);
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

nav.floating-nav:hover {
    border-color: var(--border-highlight);
}

.logo {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    transition: opacity 0.2s ease;
}

.logo:hover {
    opacity: 0.85;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.925rem;
    font-weight: 500;
    transition: color 0.2s ease, background-color 0.2s ease;
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a.active {
    color: var(--primary);
    font-weight: 600;
    background: rgba(74, 93, 35, 0.09);
}

[data-theme="dark"] .nav-links a.active {
    background: rgba(148, 184, 88, 0.14);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

/* Lang Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    background: rgba(74, 93, 35, 0.08);
    border: 1px solid var(--border-subtle);
    border-radius: 50px;
    padding: 2px;
}

.lang-btn {
    padding: 0.25rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: var(--font-mono);
    border-radius: 50px;
    color: var(--text-muted);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.lang-btn.active {
    background: var(--primary);
    color: #ffffff;
}

.btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(74, 93, 35, 0.06);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-icon:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}

.btn-icon svg {
    width: 17px;
    height: 17px;
    transition: transform 0.3s ease;
}

.btn-theme-toggle:hover svg {
    transform: rotate(20deg);
}

.mobile-toggle {
    display: none;
}

.mobile-drawer {
    position: fixed;
    top: 5.5rem;
    left: 5%;
    right: 5%;
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    box-shadow: var(--shadow-md);
    z-index: 999;
    transform: translateY(-130%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.mobile-drawer.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

/* ==========================================================================
   Buttons, Badges & Expanding SVG Arrow (With Length Variations)
   ========================================================================== */

/* Arrow svg in buttons (Standard / Default) */
.arrow-svg {
    width: 35px;
    height: 12px;
    stroke: currentColor;
    stroke-width: 1.5;
    fill: none;
    margin-left: -20px;
    vertical-align: middle;
    display: inline-block;
    flex-shrink: 0;
    transition: all 0.2s ease-out;
}

.arrow-svg .line {
    stroke-dasharray: 30;
    stroke-dashoffset: 40;
    transition: all 0.2s ease-out;
}

.btn:focus-visible .arrow-svg,
.btn:hover .arrow-svg,
.btn-expanding:focus-visible .arrow-svg,
.btn-expanding:hover .arrow-svg,
a:hover .arrow-svg {
    width: 40px;
    margin-left: 4px;
}

.btn:focus-visible .arrow-svg .line,
.btn:hover .arrow-svg .line,
.btn-expanding:focus-visible .arrow-svg .line,
.btn-expanding:hover .arrow-svg .line,
a:hover .arrow-svg .line {
    stroke-dashoffset: 58;
}

/* Length Variation: Small / Compact (Expands less for inline notices) */
.arrow-svg.arrow-svg-sm,
.arrow-svg-sm {
    width: 26px;
    height: 10px;
    margin-left: -13px;
}

.arrow-svg.arrow-svg-sm .line,
.arrow-svg-sm .line {
    stroke-dasharray: 30;
    stroke-dashoffset: 40;
}

.btn:focus-visible .arrow-svg-sm,
.btn:hover .arrow-svg-sm,
.btn-expanding:focus-visible .arrow-svg-sm,
.btn-expanding:hover .arrow-svg-sm,
a:hover .arrow-svg-sm,
.btn:focus-visible .arrow-svg.arrow-svg-sm,
.btn:hover .arrow-svg.arrow-svg-sm,
.btn-expanding:focus-visible .arrow-svg.arrow-svg-sm,
.btn-expanding:hover .arrow-svg.arrow-svg-sm,
a:hover .arrow-svg.arrow-svg-sm {
    width: 30px;
    margin-left: 3px;
}

.btn:focus-visible .arrow-svg-sm .line,
.btn:hover .arrow-svg-sm .line,
.btn-expanding:focus-visible .arrow-svg-sm .line,
.btn-expanding:hover .arrow-svg-sm .line,
a:hover .arrow-svg-sm .line,
.btn:focus-visible .arrow-svg.arrow-svg-sm .line,
.btn:hover .arrow-svg.arrow-svg-sm .line,
.btn-expanding:focus-visible .arrow-svg.arrow-svg-sm .line,
.btn-expanding:hover .arrow-svg.arrow-svg-sm .line,
a:hover .arrow-svg.arrow-svg-sm .line {
    stroke-dashoffset: 49;
}

.btn:active {
    transform: scale(0.98);
}

.btn-nav-cta {
    background: var(--primary);
    color: #ffffff !important;
    padding: 0.45rem 1.15rem;
    font-size: 0.825rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: 50px;
    border: 1px solid transparent;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    transition: background-color 0.25s ease, border-color 0.25s ease;
}

.btn-nav-cta:hover {
    background: var(--primary-hover);
    border-color: var(--primary);
}

.btn {
    background: var(--primary);
    color: #ffffff;
    padding: 0.75rem 1.85rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
    border: 1px solid transparent;
    cursor: pointer;
}

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

.btn-secondary {
    background: var(--bg-surface);
    color: var(--text-dark);
    border: 1px solid var(--border-subtle);
}

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

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--border-highlight);
}

.btn-outline:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.btn-sm {
    padding: 0.42rem 1.1rem;
    font-size: 0.85rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.32rem 0.85rem;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: var(--font-mono);
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.badge-primary {
    background: rgba(74, 93, 35, 0.1);
    color: var(--primary);
    border: 1px solid rgba(74, 93, 35, 0.18);
}

.badge-secondary {
    background: rgba(140, 156, 111, 0.12);
    color: var(--secondary);
    border: 1px solid rgba(140, 156, 111, 0.2);
}

.badge-accent {
    background: rgba(212, 163, 115, 0.14);
    color: var(--accent);
    border: 1px solid rgba(212, 163, 115, 0.25);
}

/* ==========================================================================
   Sections & Typography
   ========================================================================== */

section {
    padding: 8rem 0 5rem;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 4rem;
}

.section-badge {
    margin-bottom: 1.25rem;
}

h1 {
    font-size: clamp(2.8rem, 5.5vw, 5rem);
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 1.75rem;
    color: var(--primary);
    letter-spacing: -0.02em;
}

h1 strong {
    font-weight: 600;
}

h2 {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 1.25rem;
    color: var(--primary);
    letter-spacing: -0.015em;
}

h2 strong {
    font-weight: 600;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--secondary);
    line-height: 1.7;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

#hero {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 11rem;
    padding-bottom: 5rem;
}

.hero-p {
    font-size: 1.25rem;
    max-width: 680px;
    margin: 0 auto 3rem;
    color: var(--secondary);
    line-height: 1.7;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-bottom: 4.5rem;
}

/* Hero Stats */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    background: var(--bg-card);
    backdrop-filter: blur(14px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2rem 2.5rem;
    box-shadow: var(--shadow-sm);
    width: 100%;
}

.stat-item {
    text-align: center;
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: var(--border-subtle);
}

.stat-value {
    font-size: 2rem;
    font-weight: 600;
    font-family: var(--font-mono);
    color: var(--primary);
    margin-bottom: 0.25rem;
}

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

/* ==========================================================================
   Infrastructure & DNS Notice Bar
   ========================================================================== */

.infra-notice-bar {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-left: 3px solid var(--primary);
    border-radius: var(--radius-md);
    padding: 0.95rem 1.5rem;
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.infra-notice-content {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.infra-notice-prefix {
    font-family: var(--font-mono);
    font-size: 0.725rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--primary);
}

.infra-notice-text {
    color: var(--text-dark);
    font-size: 0.9rem;
    line-height: 1.5;
}

.infra-notice-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.infra-link {
    font-family: var(--font-mono);
    font-size: 0.825rem;
    font-weight: 600;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.infra-link:hover {
    color: var(--primary-hover);
}

/* ==========================================================================
   Projects Showcase (Curated Minimalist Cards)
   ========================================================================== */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.project-card {
    background: var(--bg-card);
    backdrop-filter: blur(14px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover {
    border-color: var(--border-highlight);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(74, 93, 35, 0.05);
}

.project-header {
    margin-bottom: 0.4rem;
}

.project-card h3 {
    font-size: 1.55rem;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: -0.01em;
    margin: 0;
}

.project-tagline {
    font-size: 0.88rem;
    font-family: var(--font-mono);
    font-weight: 500;
    color: var(--secondary);
    margin-bottom: 0.95rem;
}

.project-desc {
    font-size: 0.94rem;
    line-height: 1.65;
    color: var(--text-dark);
    margin-bottom: 1.35rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.5rem;
    margin-bottom: 1.5rem;
}

.project-tag {
    font-size: 0.72rem;
    font-family: var(--font-mono);
    padding: 0.2rem 0.55rem;
    background: rgba(74, 93, 35, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
}

[data-theme="dark"] .project-tag {
    background: rgba(148, 184, 88, 0.06);
    color: var(--text-muted);
}

.project-features {
    list-style: none;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.project-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.925rem;
    color: var(--text-dark);
}

.project-features li svg {
    width: 18px;
    height: 18px;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.project-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    border-top: 1px solid var(--border-subtle);
    padding-top: 1.35rem;
}

@media (min-width: 769px) {
    .project-card-full {
        grid-column: 1 / -1;
    }
}

/* ==========================================================================
   Dedicated Nameservers Section Styles
   ========================================================================== */

.ns-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.ns-card {
    background: var(--bg-card);
    backdrop-filter: blur(14px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.ns-card:hover {
    border-color: var(--border-highlight);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(74, 93, 35, 0.05);
}

.ns-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.ns-status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 600;
}

.ns-dot-live {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #52b788;
    box-shadow: 0 0 8px rgba(82, 183, 136, 0.7);
    display: inline-block;
    animation: nsPulse 2s ease-in-out infinite alternate;
}

@keyframes nsPulse {
    0% { transform: scale(0.9); opacity: 0.7; }
    100% { transform: scale(1.15); opacity: 1; }
}

.ns-node-badge {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-sm);
    background: rgba(74, 93, 35, 0.08);
    color: var(--primary);
    border: 1px solid var(--border-subtle);
}

[data-theme="dark"] .ns-node-badge {
    background: rgba(148, 184, 88, 0.12);
}

.ns-hostname {
    font-family: var(--font-mono);
    font-size: 1.55rem;
    font-weight: 600;
    color: var(--primary);
    margin: 0 0 0.4rem 0;
    letter-spacing: -0.01em;
}

.ns-alias {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--secondary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.ns-alias code {
    font-weight: 600;
    color: var(--primary);
}

.ns-desc {
    font-size: 0.94rem;
    line-height: 1.65;
    color: var(--text-dark);
    margin-bottom: 1.35rem;
}

.ns-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.5rem;
}

.ns-spec-chip {
    font-size: 0.72rem;
    font-family: var(--font-mono);
    padding: 0.2rem 0.55rem;
    background: rgba(74, 93, 35, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
}

[data-theme="dark"] .ns-spec-chip {
    background: rgba(148, 184, 88, 0.06);
}

.ns-meta-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
    align-items: center;
}

.ns-domains-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
}

.ns-domains-header h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
    margin: 0;
}

.ns-meta-desc {
    font-size: 0.925rem;
    line-height: 1.65;
    color: var(--text-dark);
    margin-bottom: 1.25rem;
}

.ns-domain-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ns-domain-pill {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.35rem 0.85rem;
    background: rgba(74, 93, 35, 0.06);
    border: 1px solid var(--border-subtle);
    border-radius: 50px;
    color: var(--primary);
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
}

a.ns-domain-pill:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.ns-terminal {
    background: var(--code-bg);
    border: 1px solid var(--code-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.ns-terminal-header {
    display: flex;
    align-items: center;
    padding: 0.65rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid var(--code-border);
    gap: 6px;
}

.ns-terminal-title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-left: auto;
}

.ns-terminal-code {
    margin: 0;
    padding: 1.15rem 1.25rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    line-height: 1.6;
    color: #c9d1d9;
    overflow-x: auto;
}

.term-prompt {
    color: #8c9c6f;
    user-select: none;
}

.ns-actions-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

@media (max-width: 900px) {
    .ns-meta-card {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }
}

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

/* ==========================================================================
   Interactive API Playground
   ========================================================================== */

.playground-wrapper {
    background: var(--code-bg);
    border: 1px solid var(--code-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.terminal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.75rem;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid var(--code-border);
}

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

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red { background: #e06c75; }
.dot.yellow { background: #e5c07b; }
.dot.green { background: #98c379; }

.terminal-tabs {
    display: flex;
    gap: 0.5rem;
}

.tab-btn {
    padding: 0.35rem 0.85rem;
    font-size: 0.8rem;
    font-family: var(--font-mono);
    font-weight: 500;
    color: var(--text-muted);
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-btn.active {
    color: #ffffff;
    background: var(--primary);
}

.playground-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid var(--code-border);
}

.code-pane, .response-pane {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
}

.code-pane {
    border-right: 1px solid var(--code-border);
    background: rgba(0, 0, 0, 0.2);
}

.pane-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.pane-title {
    font-size: 0.775rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--secondary);
}

.code-snippet {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.65;
    color: var(--code-text);
    white-space: pre-wrap;
    word-break: break-word;
    flex-grow: 1;
}

.response-json {
    font-family: var(--font-mono);
    font-size: 0.825rem;
    line-height: 1.65;
    color: #c5d9a5;
    max-height: 320px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.4);
    padding: 1.25rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.playground-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.75rem;
    background: rgba(255, 255, 255, 0.02);
    font-size: 0.875rem;
    color: var(--secondary);
}

/* ==========================================================================
   Maintainer Section
   ========================================================================== */

.maintainer-card {
    background: var(--bg-card);
    backdrop-filter: blur(14px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 3.5rem;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3.5rem;
    align-items: center;
    box-shadow: var(--shadow-sm);
}

.maintainer-content h2 {
    margin-bottom: 1rem;
}

.maintainer-content p {
    font-size: 1.05rem;
    line-height: 1.75;
    margin-bottom: 1.25rem;
    color: var(--text-dark);
}

.maintainer-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.studio-showcase {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.studio-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-subtle);
}

.studio-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.studio-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: var(--font-mono);
    flex-shrink: 0;
}

.studio-meta h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary);
}

.studio-meta p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Roadmap & FAQ
   ========================================================================== */

.roadmap-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.roadmap-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 2rem 1.75rem;
    transition: all 0.3s ease;
}

.roadmap-card:hover {
    border-color: var(--border-highlight);
    background: var(--bg-card-hover);
}

.roadmap-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary);
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.roadmap-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* FAQ */
.faq-list {
    max-width: 840px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.faq-item.active {
    border-color: var(--primary);
}

.faq-question {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    padding: 1.5rem 2rem;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-icon {
    width: 20px;
    height: 20px;
    color: var(--secondary);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-answer {
    padding: 0 2rem 1.5rem;
    color: var(--text-dark);
    font-size: 0.975rem;
    line-height: 1.7;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

/* ==========================================================================
   Sculpted Organic Footer
   ========================================================================== */

footer.sculpted-footer {
    background: var(--primary);
    color: var(--bg-color);
    border-top-left-radius: 100px;
    border-top-right-radius: 100px;
    padding: 6rem 0 3rem;
    position: relative;
    z-index: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 4rem;
    margin-bottom: 4.5rem;
}

.footer-cta {
    font-size: clamp(2.5rem, 4.5vw, 4rem);
    font-weight: 300;
    line-height: 1.15;
    color: var(--bg-color);
}

.footer-cta strong {
    font-weight: 600;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-col h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--bg-color);
    opacity: 0.7;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.footer-col a {
    color: var(--bg-color);
    font-size: 1rem;
    opacity: 0.9;
    transition: opacity 0.2s ease, transform 0.2s ease;
    display: inline-block;
}

.footer-col a:hover {
    opacity: 1;
    transform: translateX(3px);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(247, 246, 242, 0.2);
    padding-top: 2.25rem;
    font-size: 0.9rem;
    opacity: 0.85;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-version-link {
    color: inherit;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 3px;
    transition: opacity 0.2s ease, text-decoration-color 0.2s ease;
}

.footer-version-link:hover {
    opacity: 1;
    text-decoration-style: solid;
}

/* ==========================================================================
   Legal Document View
   ========================================================================== */

.legal-section {
    padding: 10rem 0 7rem;
}

.legal-card {
    background: var(--bg-card);
    backdrop-filter: blur(14px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 3.5rem;
    box-shadow: var(--shadow-sm);
}

.legal-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 2.25rem 0 0.85rem;
    color: var(--primary);
}

.legal-content p {
    color: var(--text-dark);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.legal-content pre {
    background: var(--code-bg);
    border: 1px solid var(--code-border);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--code-text);
    white-space: pre-wrap;
    line-height: 1.6;
    margin: 1.5rem 0;
}

/* ==========================================================================
   Sections Wrapper & Sticky Scroll-To-Top Tracker (Clean & Precise)
   ========================================================================== */

.sections-wrapper {
    position: relative;
    width: 100%;
}

.scroll-top-tracker {
    position: sticky;
    bottom: 2rem;
    display: flex;
    justify-content: flex-end;
    width: 100%;
    padding-right: 2.5rem;
    pointer-events: none;
    z-index: 990;
    height: 0;
}

.scroll-to-top {
    pointer-events: auto;
    position: relative;
    width: 44px;
    height: 44px;
    margin-top: -3.5rem;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease, border-color 0.2s ease, background-color 0.2s ease, transform 0.15s ease;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    border-color: var(--primary);
    background: var(--bg-surface);
}

.scroll-to-top:active {
    transform: scale(0.94);
}

.progress-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
    pointer-events: none;
}

.progress-ring-bg {
    stroke: var(--border-subtle);
}

.progress-ring-circle {
    stroke: var(--primary);
    stroke-dasharray: 119.38;
    stroke-dashoffset: 119.38;
    transition: stroke-dashoffset 0.1s linear;
}

.scroll-to-top .scroll-arrow-icon {
    width: 18px;
    height: 18px;
    color: var(--primary);
    position: relative;
    z-index: 2;
    display: block;
    transition: color 0.2s ease;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1024px) {
    nav.floating-nav { padding: 0.8rem 1.75rem; }
    .two-col { grid-template-columns: 1fr; gap: 3rem; }
    .values-grid { grid-template-columns: 1fr; }
    .projects-grid { grid-template-columns: 1fr; }
    .roadmap-grid { grid-template-columns: repeat(2, 1fr); }
    .maintainer-card { grid-template-columns: 1fr; gap: 2.5rem; }
    .footer-content { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-toggle { display: flex; }
    .nav-container-fixed { width: 94%; top: 1rem; }
    nav.floating-nav { padding: 0.75rem 1.25rem; }

    .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; padding: 1.5rem; }
    .stat-item:nth-child(2)::after { display: none; }

    .playground-body { grid-template-columns: 1fr; }
    .code-pane { border-right: none; border-bottom: 1px solid var(--code-border); }

    .roadmap-grid { grid-template-columns: 1fr; }
    .footer-links-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    footer.sculpted-footer { border-top-left-radius: 60px; border-top-right-radius: 60px; padding: 4.5rem 0 2.5rem; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
    .legal-card { padding: 2rem 1.5rem; }
    .scroll-top-tracker { bottom: 1.25rem; padding-right: 1.25rem; }
}
