/* 3Desk — Public website */

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

:root {
    --bg:     #1e1e1e;
    --border: rgba(255, 255, 255, .08);
    --accent: #2789f9;
    --text:   #f0f0f0;
    --muted:  rgba(255, 255, 255, .4);
}

body {
    background: linear-gradient(165deg, #474747  0%, #0e0e0e 50%, #000000 100%);
    background-attachment: fixed;
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
}

.w-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Nav */
.w-nav {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    background: rgba(5, 5, 10, .75);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.w-nav .w-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 54px;
}

/* Hero */
.w-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 24px 56px;
}

.w-hero__logo {
    width: min(400px, 25vw);
    margin-bottom: 30px;
}

.w-hero__philosophy {
    font-size: clamp(1.4rem, 3vw, 2rem);
    color: var(--muted);
    margin-bottom: 16px;
    min-height: 1.3em;
}

.w-hero__tagline {
    font-size: clamp(1.9rem, 4.5vw, 3.2rem);
    font-weight: 800;
    color: var(--text);
    letter-spacing: -.04em;
    line-height: 1.1;
    margin-bottom: 36px;
}

.w-hero__ui {
    width: min(100%, 1100px);
    height: auto;
    display: block;
    border-radius: 20px;
    border: 2px solid #2d2d2d;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, .35),
        0 24px 80px rgba(0, 0, 0, .5);
}

.w-btn {
    display: inline-flex;
    align-items: center;
    height: 46px;
    padding: 0 28px;
    background: var(--accent);
    border-radius: 999px;
    color: #fff;
    font-size: .95rem;
    font-weight: 700;
    text-decoration: none;
    transition: opacity .5s ease;
}

.w-btn--visible { opacity: 1 !important; }

.w-btn:hover { opacity: .88 !important; color: #fff; }

/* Modules */
.w-modules {
    max-width: 1100px;
    margin: 0 auto;
    padding: 16px 24px 72px;
    text-align: center;
}

.w-modules__tagline {
    font-size: clamp(1.9rem, 4.5vw, 3.2rem);
    font-weight: 800;
    color: var(--text);
    letter-spacing: -.04em;
    line-height: 1.1;
    margin-bottom: 16px;
}

.w-modules__sub {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: clamp(1rem, 1.5vw, 1.3rem);
    color: #2789f9;
    margin-bottom: 40px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
    font-weight: 400;
    text-transform: uppercase;
}

.w-modules__sub-icon {
    width: 2.3em;
    height: 2.3em;
    flex-shrink: 0;
}

.w-modules__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    text-align: left;
}

.w-module-card {
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px 20px 22px;
    transition: border-color .2s ease, background .2s ease;
}

.w-module-card:hover {
    border-color: rgba(39, 137, 249, .4);
    background: rgba(39, 137, 249, .05);
}

.w-module-card__icon {
    width: 80px;
    height: 80px;
    border-radius: 14px;
    background: rgba(39, 137, 249, .12);
    border: 1px solid rgba(39, 137, 249, .2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--accent);
}

.w-module-card__icon svg {
    width: 36px;
    height: 36px;
}

.w-module-card h2 {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 8px;
    color: var(--accent);
}

.w-module-card p {
    font-size: .83rem;
    line-height: 1.6;
    color: var(--muted);
}

.w-module-card .w-plan-text {
    font-size: 20px;
    line-height: 1.6;
    color: #a2a1a1;
}

@media (max-width: 900px) {
    .w-modules__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
    .w-modules__grid { grid-template-columns: 1fr; }
}

/* Engine bar — full width under modules */
.w-engine-bar {
    margin-top: 16px;
    padding: 28px 24px;
    background: rgba(39, 137, 249, .06);
    border: 1px solid rgba(39, 137, 249, .22);
    border-radius: 14px;
    text-align: center;
}

.w-engine-bar__title {
    font-size: clamp(1.1rem, 2.2vw, 1.4rem);
    font-weight: 800;
    letter-spacing: .14em;
    color: var(--text);
    margin-bottom: 10px;
}

.w-engine-bar__tagline {
    font-size: clamp(1.1rem, 1.6vw, 1.2rem);
    color: var(--muted);
    letter-spacing: .04em;
    line-height: 1.5;
    margin: 0 auto;
}

/* Tech stack */
.w-stack {
    margin-top: 72px;
    padding-top: 48px;
}

.w-stack__engine {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    color: var(--muted);
    letter-spacing: .06em;
    margin-bottom: 20px;
}

.w-stack__engine strong {
    color: var(--text);
    font-weight: 800;
    letter-spacing: .14em;
}

.w-stack__lead {
    max-width: 640px;
    margin: 0 auto 40px;
    font-size: clamp(1.1rem, 1.6vw, 1.2rem);
    line-height: 1.5;
    color: var(--muted);
}

.w-stack__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    list-style: none;
    text-align: left;
}

.w-stack__item {
    background: rgba(255, 255, 255, .03);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.w-stack__label {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--accent);
}

.w-stack__desc {
    font-size: .9rem;
    line-height: 1.55;
    color: var(--muted);
}

@media (max-width: 640px) {
    .w-stack__grid { grid-template-columns: 1fr; }
}

/* Legal pages */
.w-legal {
    padding: 88px 0 48px;
}

.w-legal__title {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -.03em;
    margin-bottom: 28px;
}

.w-legal .privacy-doc h2 {
    font-size: 1rem;
    font-weight: 700;
    margin: 28px 0 10px;
    color: var(--text);
}

.w-legal .privacy-doc p,
.w-legal .privacy-doc li {
    font-size: .9rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, .72);
}

.w-legal .privacy-doc ul {
    margin: 0 0 16px 1.2rem;
}

.w-legal .privacy-doc a {
    color: var(--accent);
    text-decoration: none;
}

.w-legal .privacy-doc a:hover {
    text-decoration: underline;
}

.w-legal .privacy-doc__updated {
    font-size: .82rem;
    color: var(--muted);
    margin-bottom: 20px;
}

.w-legal .privacy-doc__contact {
    margin-top: 28px;
}

.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0 20px;
    font-size: .85rem;
}

.cookie-table th,
.cookie-table td {
    padding: 10px 12px;
    border: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
    color: rgba(255, 255, 255, .72);
}

.cookie-table th {
    font-weight: 600;
    color: var(--text);
    background: rgba(255, 255, 255, .04);
}

.cookie-table code {
    font-size: .82rem;
    color: var(--accent);
}

@media (max-width: 640px) {
    .cookie-table { display: block; overflow-x: auto; }
}

/* Footer */
.w-footer {
    border-top: 1px solid var(--border);
    padding: 24px 0;
}

.w-footer-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.w-footer-links {
    display: flex;
    gap: 24px;
}

.w-footer-links a {
    font-size: .8rem;
    color: var(--muted);
    text-decoration: none;
}

.w-footer-links a:hover { color: var(--text); }

.w-footer-copy {
    font-size: .74rem;
    color: rgba(255, 255, 255, .18);
}

.w-hit-count {
    font-variant-numeric: tabular-nums;
    letter-spacing: .08em;
}
