:root {
    --bg: #0b0b0b;
    --fg: #f4f4f4;
    --muted: #a9a9a9;
    --accent: #ff4600;
    --ring: rgba(255, 70, 0, .18);
    --maxw: 1100px;
    --card: #1a1a1a;
    --brd: rgba(255, 255, 255, .07);
}

/* Main */

* {
    box-sizing: border-box;
    color: var(--fg);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Inter, sans-serif;
    min-height: 100dvh;

    background:
        radial-gradient(circle at 20% 30%,
            rgba(255, 70, 0, 0.08) 0%,
            rgba(0, 0, 0, 0.9) 100%),
        radial-gradient(circle at 80% 70%,
            rgba(255, 255, 255, 0.05) 0%,
            rgba(0, 0, 0, 0.9) 100%),
        var(--bg);

    background-attachment: fixed;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
    padding-bottom: env(safe-area-inset-bottom);
}

h1,
h2,
h3 {
    color: var(--fg);
    font-size: clamp(20px, 3.8vw, 32px);
    font-weight: 700;
    margin-bottom: 24px;
}

span {
    color: var(--muted);
}

#current-footer {
   color: var(--fg); 
}

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

.wrap1 {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 24px;
    padding-top: 96px;
}

.wrap2 {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 48px 24px;
}

/* Navigation */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgb(1, 1, 1);
    border-bottom: 1px solid rgba(255, 255, 255, .11);
}

.nav-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    justify-content: center;
    position: relative;
    gap: 32px;
}

.nav-link {
    font-size: 18px;
    font-weight: 500;
    color: var(--muted);
    text-decoration: none;
    position: relative;
    padding: 4px 0;
    transition: color .15s ease;
}

.nav-link:hover {
    color: var(--fg);
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    background: var(--accent);
    opacity: 0;
    transform: scaleX(.6);
    transition: .15s ease;
}

.nav-link:hover::after {
    opacity: 1;
    transform: scaleX(1);
}

#current-nav {
    color: var(--fg);
}

.lang-selector {
    position: absolute; 
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

.flag {
    width: 30px;
    height: 20px;
    border-radius: 3px;
    transition: transform 0.15s ease;
    display: block;
}

.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgb(1,1,1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 5px;
    padding: 5px;
    pointer-events: auto;
    white-space: nowrap;
    z-index: 10;
}

.lang-selector:hover .dropdown {
    display: block;
}

.dropdown .flag {
    display: block;
    margin: 2px 0;
}

/* Brand */

.brand-logo {
    height: clamp(40px, 6vw, 64px);
    image-rendering: pixelated;
    display: inline-block;
    vertical-align: middle;
    filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .25))
}

.brand-emoji {
    font-size: clamp(32px, 6vw, 56px);
    line-height: 1
}

.brand-fallback {
    display: none
}

/* Panels */

.panels {
    display: flex;
    gap: 48px;
    margin-top: 48px;
    flex-wrap: wrap;
}

.panel-left {
    flex: 1 1 320px;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.panel-header h1 {
    font-size: clamp(28px, 5vw, 42px);
    margin: 0;
    font-weight: 800;
}

.panel-description {
    color: var(--muted);
    font-size: clamp(14px, 2.5vw, 18px);
    line-height: 1.6;
}

.panel-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.panel-buttons .btn-ghost.primary {
    border-color: rgba(255, 70, 0, 0.55);
    background: rgba(255, 70, 0, 0.08);
    color: var(--accent);
}

.panel-right {
    flex: 2 1 600px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
}

/* Buttons */

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 14px;
    border: 1px solid rgba(255, 255, 255, .1);
    background: rgba(255, 70, 0, .05);
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: transform .14s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease
}

.btn-ghost:hover {
    transform: translateY(-2px);
    background: rgba(255, 70, 0, .08);
    border-color: rgba(255, 70, 0, .28);
    box-shadow: 0 6px 16px -10px rgba(0, 0, 0, .55)
}

.btn-ghost:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px -10px rgba(0, 0, 0, .55)
}

/* Features */

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

.feature {
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .02);
    border-radius: 14px;
    padding: 14px;
    transition: transform .2s ease, box-shadow .2s ease
}

.feature:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .5)
}

.feature h3 {
    margin: 0 0 8px;
    font-size: 18px
}

.feature p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55
}

#features-list {
    scroll-margin-block-start: clamp(16px, env(safe-area-inset-top) + 24px, 96px)
}

/* Commands */

.commands-section {
    margin-top: 64px;
}

.commands-section h2 {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 800;
    margin-bottom: 32px;
    color: var(--fg);
}

.commands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.command-card {
    background: 1px solid rgba(22, 22, 22, 1);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.command-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px -8px rgba(0, 0, 0, 0.5);
}

.command-card h3 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 800;
}

.command-card p {
    margin: 0;
    font-size: 14px;
    color: var(--muted);
    line-height: 1.5;
}

/* Setup */

.setup-section {
    margin-top: 48px;
    margin-bottom: 64px;
}

.setup-section h2 {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 800;
    margin-bottom: 32px;
    color: var(--fg);
}

.setup-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(600px, 1fr));
    gap: 16px;
}

.setup-card {
    background: 1px solid rgba(22, 22, 22, 1);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.setup-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px -8px rgba(0, 0, 0, 0.5);
}

.setup-card h3 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 800;
}

.setup-card p {
    margin: 0;
    font-size: 14px;
    color: var(--muted);
    line-height: 1.5;
}

/* IFrames */

iframe.clickup-embed {
    width: 100%;
    height: 650px;
    border: 1px solid #ccc;
    background: transparent;
}

/* Footer */

.footer {
    border-top: 1px solid rgba(255, 255, 255, .06);
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: space-between;
    padding: 18px 4px;
    color: var(--muted);
    font-size: 14px;
}

.footer-inner a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s ease, font-weight 0.15s ease;
}

.footer-inner a:hover {
    color: var(--fg);
}

.footer-inner.wrap {
    padding-top: 24px;
}