/* ==========================================================================
   Marsways Digital Services — Light theme
   ========================================================================== */

:root {
    --ink: #16181d;
    --body: #43484f;
    --muted: #6f747c;
    --line: #e6e7ea;
    --line-strong: #d5d7db;
    --bg: #ffffff;
    --bg-soft: #f7f7f6;
    --dot: #ececee;
    --band: #16181d;
    --shadow: rgba(22, 24, 29, 0.07);
    --accent: #c2402a;
    --accent-dark: #a2331f;
    --radius: 10px;
    --radius-lg: 16px;
    --container: 1120px;
    --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    --font-display: "Fraunces", "Times New Roman", Georgia, serif;
    --font-mono: "IBM Plex Mono", "SF Mono", Menlo, monospace;
}

[data-theme="dark"] {
    --ink: #f0f1f4;
    --body: #b9bdc5;
    --muted: #878c96;
    --line: #26282e;
    --line-strong: #3a3d45;
    --bg: #101114;
    --bg-soft: #16171b;
    --dot: #202228;
    --band: #1a1c21;
    --shadow: rgba(0, 0, 0, 0.4);
    --accent: #d8543c;
    --accent-dark: #e2685199;
}
[data-theme="dark"] { color-scheme: dark; }
[data-theme="dark"] a:hover { color: #e57a66; }

::selection { background: var(--accent); color: #fff; }

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    color: var(--body);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    transition: background 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4 {
    color: var(--ink);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.015em;
}

h1, h2 {
    font-family: var(--font-display);
    font-weight: 560;
    letter-spacing: -0.01em;
}

h1 em, h2 em {
    font-style: italic;
    font-weight: 480;
    color: var(--accent);
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

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

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

.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: color-mix(in srgb, var(--bg) 90%, transparent);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-weight: 650;
    font-size: 1.02rem;
    letter-spacing: -0.01em;
}
.brand:hover { color: var(--ink); }
.brand img { height: 30px; width: 30px; }
.brand .brand-sub { color: var(--muted); font-weight: 450; }

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    color: var(--body);
    font-size: 0.94rem;
    font-weight: 500;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
}
.nav-link:hover { color: var(--ink); }
.nav-link.active { color: var(--ink); border-bottom-color: var(--accent); }

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

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 30px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: transparent;
    color: var(--body);
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease, transform 0.2s ease;
}
.theme-toggle:hover { color: var(--ink); border-color: var(--line-strong); }
.theme-toggle:active { transform: scale(0.92); }
.theme-toggle .icon-moon { display: block; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }

.lang-switch {
    display: flex;
    border: 1px solid var(--line);
    border-radius: 7px;
    overflow: hidden;
}
.lang-switch button {
    border: none;
    background: transparent;
    font-family: var(--font-mono);
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--muted);
    padding: 5px 10px;
    cursor: pointer;
}
.lang-switch button.active { background: var(--ink); color: #fff; }

.nav-toggle {
    display: none;
    border: 1px solid var(--line);
    background: transparent;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--ink);
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font: inherit;
    font-size: 0.94rem;
    font-weight: 550;
    padding: 11px 22px;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: color-mix(in srgb, var(--ink) 85%, var(--bg)); color: var(--bg); }

.btn-secondary {
    background: transparent;
    color: var(--ink);
    border-color: var(--line-strong);
}
.btn-secondary:hover { border-color: var(--ink); color: var(--ink); }

.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); color: #fff; }

.btn-sm { padding: 8px 16px; font-size: 0.88rem; }

.btn-disabled { opacity: 0.5; pointer-events: none; filter: grayscale(0.6); }

/* --------------------------------------------------------------------------
   Sections / shared
   -------------------------------------------------------------------------- */

.section { padding: 96px 0; }
.section-soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: var(--font-mono);
    font-size: 0.76rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 16px;
}
.eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}

.section-head { max-width: 620px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.section-head.centered { margin-left: auto; margin-right: auto; text-align: center; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
    position: relative;
    padding: 120px 0 100px;
    border-bottom: 1px solid var(--line);
    overflow: hidden;
    background-image: radial-gradient(circle, var(--dot) 1px, transparent 1px);
    background-size: 26px 26px;
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg,
        var(--bg) 0%,
        var(--bg) 42%,
        color-mix(in srgb, var(--bg) 55%, transparent) 75%,
        color-mix(in srgb, var(--bg) 20%, transparent) 100%);
    pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }

/* Mars visual + orbit motif */
.hero-visual {
    position: absolute;
    top: 50%;
    right: -60px;
    width: 520px;
    height: 520px;
    transform: translateY(-50%);
    z-index: 1;
    pointer-events: none;
}

.orbit {
    position: absolute;
    inset: 0;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    animation: orbit-spin 70s linear infinite;
}
.orbit::before {
    content: "";
    position: absolute;
    inset: 72px;
    border: 1px dashed var(--line);
    border-radius: 50%;
}
.orbit::after {
    content: "";
    position: absolute;
    top: 50%;
    left: -7px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 14%, transparent);
}

.hero-mars {
    position: absolute;
    inset: 110px;
    width: calc(100% - 220px);
    height: calc(100% - 220px);
    object-fit: contain;
    animation: mars-float 7s ease-in-out infinite;
    filter: drop-shadow(0 24px 40px rgba(120, 40, 20, 0.25));
}

@keyframes orbit-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes mars-float {
    0%, 100% { transform: translateY(0) rotate(-1.5deg); }
    50% { transform: translateY(-18px) rotate(1.5deg); }
}

/* Hero entrance */
@keyframes rise-in {
    from { opacity: 0; transform: translateY(26px); }
    to { opacity: 1; transform: none; }
}

.hero .eyebrow,
.hero h1,
.hero .hero-lead,
.hero .hero-actions,
.hero .hero-sig,
.hero .hero-meta {
    opacity: 0;
    animation: rise-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero .eyebrow { animation-delay: 0.05s; }
.hero h1 { animation-delay: 0.15s; }
.hero .hero-lead { animation-delay: 0.28s; }
.hero .hero-actions { animation-delay: 0.4s; }
.hero .hero-sig { animation-delay: 0.52s; }
.hero .hero-meta { animation-delay: 0.66s; }

@keyframes visual-in {
    from { opacity: 0; transform: translateY(-46%) scale(0.96); }
    to { opacity: 1; transform: translateY(-50%) scale(1); }
}
.hero-visual {
    opacity: 0;
    animation: visual-in 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
}

.hero h1 {
    font-size: clamp(2.5rem, 5.4vw, 3.8rem);
    line-height: 1.08;
    max-width: 820px;
    margin-bottom: 24px;
}
.hero h1 .accent-line { font-style: italic; font-weight: 480; color: var(--accent); }

.hero-lead {
    font-size: 1.13rem;
    color: var(--muted);
    max-width: 620px;
    margin-bottom: 36px;
}

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

.hero-sig {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 40px;
}
.sig-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--bg);
    box-shadow: 0 0 0 2px var(--accent), 0 6px 16px var(--shadow);
}
.hero-sig .sig-text { display: flex; flex-direction: column; gap: 2px; }
.hero-sig .sig-name {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.25rem;
    line-height: 1.15;
    color: var(--ink);
}
.hero-sig .sig-role {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.hero-meta {
    display: flex;
    gap: 40px;
    margin-top: 64px;
    padding-top: 32px;
    border-top: 1px solid var(--line);
    flex-wrap: wrap;
}
.hero-meta div strong { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--ink); font-weight: 580; letter-spacing: -0.01em; }
.hero-meta div span { font-size: 0.88rem; color: var(--muted); }

/* --------------------------------------------------------------------------
   Services
   -------------------------------------------------------------------------- */

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.service-card {
    position: relative;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 36px 30px 30px;
    overflow: hidden;
}
.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.service-card:hover::before { transform: scaleX(1); }

.service-num {
    position: absolute;
    top: 18px;
    right: 26px;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 4.6rem;
    line-height: 1;
    font-weight: 500;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--line-strong);
    transition: -webkit-text-stroke-color 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}
.service-card:hover .service-num {
    -webkit-text-stroke-color: var(--accent);
    transform: translateY(-3px);
}

.service-card h3 {
    font-family: var(--font-display);
    font-weight: 580;
    font-size: 1.45rem;
    letter-spacing: -0.01em;
    margin: 44px 0 12px;
    max-width: 75%;
}
.service-card p { font-size: 0.95rem; color: var(--muted); margin-bottom: 22px; }

.svc-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.svc-tags span {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    color: var(--body);
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 100px;
    padding: 6px 13px;
    transition: border-color 0.2s ease, color 0.2s ease;
}
.service-card:hover .svc-tags span { border-color: var(--line-strong); }

/* --------------------------------------------------------------------------
   Projects
   -------------------------------------------------------------------------- */

.projects-list { display: flex; flex-direction: column; }

.project-row {
    display: grid;
    grid-template-columns: 88px 1fr auto;
    align-items: center;
    gap: 28px;
    padding: 30px 8px;
    border-top: 1px solid var(--line);
    color: inherit;
    transition: background 0.15s ease;
}
.project-row:last-child { border-bottom: 1px solid var(--line); }
.project-row:hover { background: var(--bg-soft); color: inherit; }

.project-logo {
    width: 88px;
    height: 88px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.project-logo img { width: 64px; height: 64px; object-fit: contain; }
.project-logo img.full { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }

.project-info h3 { font-family: var(--font-display); font-weight: 580; font-size: 1.35rem; margin-bottom: 4px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.project-info p { color: var(--muted); font-size: 0.95rem; max-width: 560px; }

.project-tag {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--muted);
    border: 1px solid var(--line-strong);
    border-radius: 100px;
    padding: 3px 10px;
}

.project-arrow {
    color: var(--muted);
    font-size: 1.2rem;
    transition: transform 0.15s ease, color 0.15s ease;
}
.project-row:hover .project-arrow { transform: translateX(4px); color: var(--ink); }

/* --------------------------------------------------------------------------
   Process
   -------------------------------------------------------------------------- */

.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.process-step { padding-top: 20px; border-top: 2px solid var(--ink); }
.process-step .step-no { font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500; color: var(--accent); letter-spacing: 0.06em; }
.process-step h3 { font-size: 1.02rem; margin: 8px 0 8px; }
.process-step p { font-size: 0.9rem; color: var(--muted); }

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */

.cta-band { background: var(--band); color: #cfd2d7; }
.cta-band .cta-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 88px 24px;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 60px;
    align-items: center;
}
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 14px; }
.cta-band p { color: #a6abb3; max-width: 480px; }
.cta-band .cta-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
.cta-band .btn-secondary { color: #fff; border-color: #4a4e56; }
.cta-band .btn-secondary:hover { border-color: #fff; color: #fff; }

/* --------------------------------------------------------------------------
   Page hero (subpages)
   -------------------------------------------------------------------------- */

.page-hero { padding: 90px 0 60px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.7rem); margin-bottom: 16px; max-width: 700px; }
.page-hero p { color: var(--muted); font-size: 1.08rem; max-width: 620px; }

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}
.about-grid h2 { font-size: 1.6rem; margin-bottom: 18px; }
.about-grid p + p { margin-top: 14px; }

.portrait { margin-top: 32px; max-width: 300px; }
.portrait img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    box-shadow: 0 14px 36px var(--shadow);
}
.portrait figcaption {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-top: 14px;
}
.portrait figcaption strong {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 580;
    font-size: 1.1rem;
    color: var(--ink);
}
.portrait figcaption span {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}
.stat { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.stat strong { display: block; font-family: var(--font-display); font-size: 1.9rem; font-weight: 580; color: var(--ink); letter-spacing: -0.02em; }
.stat span { font-size: 0.88rem; color: var(--muted); }

.values-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.value-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 26px; background: var(--bg); }
.value-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.value-card p { font-size: 0.93rem; color: var(--muted); }

.stack-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stack-col h4 { font-size: 0.88rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 14px; font-weight: 650; display: flex; align-items: center; gap: 9px; }
.stack-col h4 i { color: var(--accent); font-size: 0.92rem; width: 18px; text-align: center; }
.stack-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.stack-tags span {
    font-size: 0.85rem;
    color: var(--body);
    border: 1px solid var(--line);
    background: var(--bg);
    border-radius: 6px;
    padding: 5px 11px;
}

/* --------------------------------------------------------------------------
   Pricing
   -------------------------------------------------------------------------- */

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }

.price-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    background: var(--bg);
    display: flex;
    flex-direction: column;
}
.price-card.featured { border-color: var(--ink); box-shadow: 0 12px 32px var(--shadow); }

.price-card h3 { font-size: 1.08rem; margin-bottom: 6px; }
.price-card .price-sub { font-size: 0.88rem; color: var(--muted); margin-bottom: 20px; }
.price-card .price { font-family: var(--font-display); font-size: 2.2rem; font-weight: 580; color: var(--ink); letter-spacing: -0.02em; }
.price-card .price small { font-size: 0.95rem; color: var(--muted); font-weight: 450; }
.price-card .price-desc { font-size: 0.93rem; color: var(--muted); margin: 14px 0 22px; }

.price-card ul { list-style: none; margin-bottom: 28px; flex: 1; }
.price-card li {
    font-size: 0.91rem;
    padding: 8px 0 8px 26px;
    position: relative;
    border-top: 1px solid var(--line);
}
.price-card li::before {
    content: "✓";
    position: absolute;
    left: 2px;
    top: 8px;
    color: var(--accent);
    font-weight: 650;
}

.faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px 26px; background: var(--bg); }
.faq-item h4 { font-size: 0.99rem; margin-bottom: 8px; }
.faq-item p { font-size: 0.92rem; color: var(--muted); }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start; }

.contact-side h2 { font-size: 1.4rem; margin-bottom: 12px; }
.contact-side > p { color: var(--muted); margin-bottom: 30px; }

.contact-list { list-style: none; }
.contact-list li { padding: 16px 0; border-top: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 1px solid var(--line); }
.contact-list .label { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); font-weight: 650; margin-bottom: 3px; }
.contact-list a, .contact-list span.value { color: var(--ink); font-weight: 500; }

.contact-note { margin-top: 28px; font-size: 0.88rem; color: var(--muted); }

.contact-form {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 36px;
    background: var(--bg);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 550;
    color: var(--ink);
    margin-bottom: 7px;
}
.form-group label .req { color: var(--accent); }

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    font: inherit;
    font-size: 0.95rem;
    color: var(--ink);
    background: var(--bg);
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    padding: 11px 13px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-group textarea { min-height: 140px; resize: vertical; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--ink);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 8%, transparent);
}

.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 24px;
    font-size: 0.92rem;
    color: var(--body);
    cursor: pointer;
}
.checkbox-row input {
    -webkit-appearance: none;
    appearance: none;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    margin: 0;
    margin-top: 1px;
    border: 1.5px solid var(--line-strong);
    border-radius: 6px;
    background: var(--bg);
    display: inline-grid;
    place-content: center;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.checkbox-row input:hover { border-color: var(--accent); }
.checkbox-row input:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent);
}
.checkbox-row input:checked {
    background: var(--accent);
    border-color: var(--accent);
}
.checkbox-row input:checked::before {
    content: "";
    width: 12px;
    height: 12px;
    background: #fff;
    clip-path: polygon(14% 50%, 0 66%, 40% 100%, 100% 20%, 86% 8%, 38% 68%);
}

.form-status { margin-top: 16px; font-size: 0.92rem; display: none; }
.form-status.ok { display: block; color: #15803d; }
.form-status.error { display: block; color: var(--accent-dark); }

/* --------------------------------------------------------------------------
   Legal pages
   -------------------------------------------------------------------------- */

.legal { padding: 80px 0 100px; }
.legal h1 { font-size: 2.1rem; margin-bottom: 8px; }
.legal .legal-meta { color: var(--muted); font-size: 0.92rem; margin-bottom: 44px; display: block; }
.legal h2 { font-size: 1.25rem; margin: 40px 0 12px; }
.legal h3 { font-size: 1.05rem; margin: 26px 0 10px; }
.legal p + p { margin-top: 12px; }
.legal ul, .legal ol { margin: 12px 0 12px 22px; }
.legal li { margin-bottom: 6px; }

.legal-note {
    border: 1px solid var(--line);
    background: var(--bg-soft);
    border-radius: var(--radius);
    padding: 14px 18px;
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 36px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer { border-top: 1px solid var(--line); background: var(--bg-soft); padding: 64px 0 40px; }

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand img { height: 32px; width: 32px; margin-bottom: 14px; }
.footer-brand p { font-size: 0.92rem; color: var(--muted); max-width: 300px; }

.footer-col h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--muted);
    font-weight: 650;
    margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--body); font-size: 0.93rem; }
.footer-col a:hover { color: var(--ink); }
.footer-col a i {
    width: 18px;
    text-align: center;
    margin-right: 4px;
    color: var(--muted);
    transition: color 0.15s ease;
}
.footer-col a:hover i { color: var(--accent); }

.footer-bottom {
    border-top: 1px solid var(--line);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 0.86rem;
    color: var(--muted);
}

/* --------------------------------------------------------------------------
   Scroll reveal
   -------------------------------------------------------------------------- */

.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: 0ms;
}
.reveal.revealed { opacity: 1; transform: none; }

/* Card hover lift */
.service-card, .value-card, .price-card, .faq-item {
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease,
                opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.service-card:hover, .value-card:hover, .faq-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 34px var(--shadow);
    border-color: var(--line-strong);
}
.reveal.service-card, .reveal.value-card, .reveal.price-card, .reveal.faq-item {
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.25s ease, border-color 0.25s ease;
}



/* --------------------------------------------------------------------------
   Subscriptions (services page)
   -------------------------------------------------------------------------- */

.srv-hero {
    background-image: radial-gradient(circle, var(--dot) 1px, transparent 1px);
    background-size: 26px 26px;
}
.srv-hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 64px;
    align-items: center;
}
.srv-hero-grid > div:first-child > * {
    opacity: 0;
    animation: rise-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.srv-hero-grid > div:first-child > *:nth-child(2) { animation-delay: 0.12s; }
.srv-hero-grid > div:first-child > *:nth-child(3) { animation-delay: 0.24s; }
.srv-hero-grid > div:first-child > *:nth-child(4) { animation-delay: 0.38s; }

.srv-hero-stats {
    display: flex;
    gap: 36px;
    flex-wrap: wrap;
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}
.srv-hero-stats strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 580;
    color: var(--ink);
}
.srv-hero-stats span { font-size: 0.84rem; color: var(--muted); max-width: 170px; display: block; }

.srv-hero-img {
    position: relative;
    opacity: 0;
    animation: rise-in 1s cubic-bezier(0.22, 1, 0.36, 1) 0.25s forwards;
}
.srv-hero-img img {
    width: 100%;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    box-shadow: 0 28px 70px var(--shadow);
}
.srv-hero-img::before {
    content: "";
    position: absolute;
    inset: -18px -18px auto auto;
    width: 140px;
    height: 140px;
    border: 1px dashed var(--line-strong);
    border-radius: 50%;
    z-index: -1;
}
.srv-hero-badge {
    position: absolute;
    left: 18px;
    bottom: 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: color-mix(in srgb, #101114 82%, transparent);
    backdrop-filter: blur(6px);
    color: #fff;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 8px 14px;
    border-radius: 100px;
}
.srv-hero-badge .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    animation: badge-pulse 2s ease-in-out infinite;
}
@keyframes badge-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5); }
    50% { box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); }
}

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

/* Homepage services promo */
.promo-card {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-soft);
}
.promo-content { padding: 52px 48px; }
.promo-content h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 14px; }
.promo-content > p { color: var(--muted); margin-bottom: 22px; max-width: 460px; }
.promo-points { list-style: none; margin-bottom: 30px; }
.promo-points li {
    position: relative;
    padding: 8px 0 8px 26px;
    font-size: 0.94rem;
    border-top: 1px solid var(--line);
}
.promo-points li::before {
    content: "✓";
    position: absolute;
    left: 2px;
    top: 8px;
    color: var(--accent);
    font-weight: 650;
}
/* Full-width banner variant (image shown completely, no gradient) */
.promo-banner {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-soft);
}
.promo-banner-image { display: block; }
.promo-banner-image img {
    width: 100%;
    display: block;
    transition: transform 0.4s ease;
}
.promo-banner-image:hover img { transform: scale(1.015); }
.promo-banner-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    padding: 44px 48px;
    border-top: 1px solid var(--line);
    align-items: start;
}
.promo-banner-content h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin-bottom: 12px; }
.promo-banner-content p { color: var(--muted); font-size: 0.96rem; }
.promo-banner-content .promo-points { margin-bottom: 24px; }

@media (max-width: 980px) {
    .promo-banner-content { grid-template-columns: 1fr; gap: 20px; padding: 28px 24px; }
}

.promo-image { position: relative; min-height: 320px; }
.promo-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.promo-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--bg-soft) 0%, transparent 26%);
}

@media (max-width: 980px) {
    .srv-hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .promo-card { grid-template-columns: 1fr; }
    .promo-image { min-height: 220px; order: -1; }
    .promo-image::after { background: linear-gradient(0deg, var(--bg-soft) 0%, transparent 30%); }
    .srv-steps { grid-template-columns: 1fr; }
}

.sub-note {
    margin-top: 32px;
    font-size: 0.88rem;
    color: var(--muted);
    max-width: 640px;
}

.sub-status {
    margin: 28px 0 0;
    padding: 16px 20px;
    border-radius: var(--radius);
    font-size: 0.95rem;
    border: 1px solid var(--line-strong);
    background: var(--bg-soft);
}
.sub-status.ok { border-color: #86c79b; background: color-mix(in srgb, #22c55e 8%, var(--bg)); color: #15803d; }
.sub-status.warn { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); background: color-mix(in srgb, var(--accent) 7%, var(--bg)); color: var(--accent-dark); }

.sub-modal { position: fixed; inset: 0; z-index: 400; display: flex; align-items: center; justify-content: center; padding: 20px; }
.sub-modal[hidden] { display: none; }
.sub-modal-backdrop {
    position: absolute;
    inset: 0;
    background: color-mix(in srgb, #000 55%, transparent);
    backdrop-filter: blur(3px);
}
.sub-modal-card {
    position: relative;
    width: 100%;
    max-width: 440px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
    animation: rise-in 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.sub-modal-card h3 { font-family: var(--font-display); font-weight: 580; font-size: 1.4rem; margin-bottom: 6px; }
.sub-modal-plan { font-size: 0.92rem; color: var(--muted); margin-bottom: 22px; }
.sub-modal-plan strong { color: var(--ink); }
.sub-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    border: none;
    background: none;
    font-size: 1.6rem;
    line-height: 1;
    color: var(--muted);
    cursor: pointer;
}
.sub-modal-close:hover { color: var(--ink); }
.sub-form .btn { width: 100%; justify-content: center; }
.sub-form-hint { margin-top: 12px; font-size: 0.82rem; color: var(--muted); text-align: center; }

/* --------------------------------------------------------------------------
   Language-scoped content blocks (for long-form content)
   -------------------------------------------------------------------------- */

html[lang="de"] .only-en { display: none !important; }
html[lang="en"] .only-de { display: none !important; }

/* --------------------------------------------------------------------------
   Plugins
   -------------------------------------------------------------------------- */

code {
    font-family: var(--font-mono);
    font-size: 0.84em;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: 5px;
    padding: 1px 6px;
    white-space: nowrap;
}

.plugin-layout {
    display: grid;
    grid-template-columns: 1fr 330px;
    gap: 52px;
    align-items: start;
}

.plugin-media img {
    width: 100%;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    box-shadow: 0 20px 50px var(--shadow);
    margin-bottom: 36px;
}

/* Accordions */
.acc {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg);
    margin-bottom: 12px;
    overflow: hidden;
}
.acc summary {
    cursor: pointer;
    padding: 18px 22px;
    font-weight: 600;
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    list-style: none;
    user-select: none;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after {
    content: "+";
    font-family: var(--font-mono);
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--muted);
    transition: transform 0.25s ease, color 0.2s ease;
    flex-shrink: 0;
}
.acc[open] summary::after { transform: rotate(45deg); color: var(--accent); }
.acc summary:hover { color: var(--accent-dark); }
.acc[open] summary { border-bottom: 1px solid var(--line); }
.acc-body { padding: 18px 22px 22px; font-size: 0.94rem; }
.acc-body p + p, .acc-body ul + p, .acc-body p + ul { margin-top: 10px; }
.acc-body ul { margin: 8px 0 0 20px; }
.acc-body li { margin-bottom: 6px; }
.acc-body h4 { font-size: 0.95rem; margin: 16px 0 6px; }

.spec-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; margin-top: 10px; }
.spec-table th {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    font-weight: 500;
}
.spec-table th, .spec-table td {
    text-align: left;
    padding: 9px 10px 9px 0;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

/* Buy box (sticky sidebar) */
.buy-box {
    position: sticky;
    top: 94px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--bg);
    padding: 30px 28px;
    box-shadow: 0 14px 40px var(--shadow);
}
.buy-box .price {
    font-family: var(--font-display);
    font-size: 2.3rem;
    font-weight: 580;
    color: var(--ink);
    letter-spacing: -0.02em;
}
.buy-box .price small { font-size: 0.9rem; color: var(--muted); font-weight: 450; font-family: var(--font); }
.buy-box .buy-meta { list-style: none; margin: 18px 0 22px; }
.buy-box .buy-meta li {
    position: relative;
    font-size: 0.88rem;
    padding: 7px 0 7px 24px;
    border-top: 1px solid var(--line);
}
.buy-box .buy-meta li::before {
    content: "✓";
    position: absolute;
    left: 2px;
    top: 7px;
    color: var(--accent);
    font-weight: 650;
}
.buy-box .btn { width: 100%; justify-content: center; }
.buy-box .btn + .btn { margin-top: 10px; }

.btn-bbb img { width: 20px; height: 20px; border-radius: 4px; }

.buy-hint { margin-top: 14px; font-size: 0.8rem; color: var(--muted); text-align: center; }

/* Plugin tags (hero) */
.plugin-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.plugin-tags span {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    color: var(--body);
    background: var(--bg);
    border: 1px solid var(--line-strong);
    border-radius: 100px;
    padding: 5px 12px;
}

/* Plugin overview card */
.plugin-card {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg);
    color: inherit;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.plugin-card:hover { transform: translateY(-4px); box-shadow: 0 18px 44px var(--shadow); color: inherit; }
.plugin-card-media {
    position: relative;
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #101114;
}
.plugin-card-media img { width: 100%; height: auto; max-height: 100%; object-fit: contain; }
.plugin-card-body { padding: 40px 40px 36px; display: flex; flex-direction: column; align-items: flex-start; }
.plugin-card-body h3 { font-family: var(--font-display); font-weight: 580; font-size: 1.6rem; margin-bottom: 10px; }
.plugin-card-body p { color: var(--muted); font-size: 0.95rem; margin-bottom: 18px; }
.plugin-card-price {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 580;
    color: var(--ink);
    margin-bottom: 20px;
}
.plugin-card .svc-tags { margin-bottom: 22px; }

/* Plugin filter & sort */
.plugin-list { display: flex; flex-direction: column; gap: 24px; }

.plugin-filter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.filter-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-pills button {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    color: var(--body);
    background: var(--bg);
    border: 1px solid var(--line-strong);
    border-radius: 100px;
    padding: 7px 16px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.filter-pills button:hover { border-color: var(--ink); color: var(--ink); }
.filter-pills button.active {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--bg);
}

#pluginSort {
    font: inherit;
    font-size: 0.88rem;
    color: var(--ink);
    background: var(--bg);
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
}

.plugins-soon {
    margin-top: 28px;
    padding: 22px 26px;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-lg);
    color: var(--muted);
    font-size: 0.92rem;
}

@media (max-width: 980px) {
    .plugin-layout { grid-template-columns: 1fr; }
    .buy-box { position: static; }
    .plugin-card { grid-template-columns: 1fr; }
    .plugin-card-media { min-height: 200px; }
}

/* --------------------------------------------------------------------------
   Donations (Support Development)
   -------------------------------------------------------------------------- */

.donate-card {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 56px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--bg);
    padding: 44px 48px;
    align-items: start;
}

.donate-progress-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 12px;
}
.donate-total { font-size: 0.95rem; color: var(--muted); }
.donate-total strong {
    font-family: var(--font-display);
    font-weight: 580;
    font-size: 1.7rem;
    color: var(--ink);
}
.donate-percent {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
}
.donate-bar {
    height: 12px;
    border-radius: 100px;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    overflow: hidden;
}
.donate-bar-fill {
    height: 100%;
    border-radius: 100px;
    background: linear-gradient(90deg, var(--accent), #e0704f);
    transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.donate-note { margin-top: 16px; font-size: 0.88rem; color: var(--muted); }

.donate-slider-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}
.donate-slider-row label { font-size: 0.88rem; font-weight: 550; color: var(--ink); }
.donate-amount-display {
    font-family: var(--font-display);
    font-weight: 580;
    font-size: 1.6rem;
    color: var(--accent);
}

.donate-form input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 100px;
    background: linear-gradient(90deg, var(--accent) var(--fill, 4%), var(--line) var(--fill, 4%));
    outline: none;
    margin: 6px 0 22px;
    cursor: pointer;
}
.donate-form input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bg);
    border: 3px solid var(--accent);
    box-shadow: 0 2px 8px var(--shadow);
    cursor: grab;
    transition: transform 0.15s ease;
}
.donate-form input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.12); }
.donate-form input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bg);
    border: 3px solid var(--accent);
    cursor: grab;
}

@media (max-width: 980px) {
    .donate-card { grid-template-columns: 1fr; gap: 32px; padding: 28px 24px; }
}

/* --------------------------------------------------------------------------
   Customer dashboard
   -------------------------------------------------------------------------- */

.dash-main { min-height: calc(100vh - 220px); padding: 64px 0 96px; }

.dash-head { margin-bottom: 40px; max-width: 640px; }
.dash-head h1 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin-bottom: 10px; }
.dash-head p { color: var(--muted); }

.dash-section-title { font-size: 1.15rem; margin-bottom: 18px; }

.dash-empty {
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-lg);
    padding: 28px;
    color: var(--muted);
    font-size: 0.95rem;
}

.auth-card {
    max-width: 460px;
    margin: 24px auto;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--bg);
    padding: 40px 36px;
    box-shadow: 0 16px 44px var(--shadow);
}
.auth-card h1 { font-size: 1.7rem; margin-bottom: 10px; }
.auth-lead { color: var(--muted); font-size: 0.93rem; margin-bottom: 24px; }
.auth-alt { margin-top: 20px; font-size: 0.9rem; color: var(--muted); text-align: center; }

.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.product-tile {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--bg);
    padding: 26px 26px 22px;
}
.product-tile-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.product-tile h3 { font-family: var(--font-display); font-weight: 580; font-size: 1.2rem; }
.product-meta { color: var(--muted); font-size: 0.85rem; margin: 6px 0 16px; }

.license-row { margin-bottom: 16px; }
.license-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    margin-bottom: 5px;
}
.license-key {
    display: block;
    font-size: 0.92rem;
    padding: 9px 12px;
    cursor: copy;
    white-space: normal;
    word-break: break-all;
}

.product-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.dash-quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.dash-quick-item {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--bg);
    padding: 24px;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.dash-quick-item:hover { transform: translateY(-3px); box-shadow: 0 12px 30px var(--shadow); color: inherit; }
.dash-quick-item i { color: var(--accent); font-size: 1.2rem; }
.dash-quick-item strong { display: block; margin: 10px 0 4px; color: var(--ink); }
.dash-quick-item span { font-size: 0.86rem; color: var(--muted); }

.dash-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 8px 20px; background: var(--bg); }
.dash-table th, .dash-table td { padding: 12px 16px 12px 0; }

.ticket-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: start; }

.ticket-list { display: flex; flex-direction: column; gap: 10px; }
.ticket-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg);
    padding: 14px 18px;
    color: inherit;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.ticket-row:hover { border-color: var(--line-strong); background: var(--bg-soft); color: inherit; }
.ticket-subject { font-weight: 550; color: var(--ink); flex: 1; min-width: 180px; }
.ticket-meta { font-size: 0.82rem; color: var(--muted); }

.ticket-status {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 10px;
    border-radius: 100px;
    border: 1px solid;
}
.ticket-status.open { color: #15803d; border-color: #86c79b; background: color-mix(in srgb, #22c55e 8%, var(--bg)); }
.ticket-status.closed { color: var(--muted); border-color: var(--line-strong); background: var(--bg-soft); }

.ticket-thread { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.ticket-msg {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--bg);
    padding: 18px 22px;
}
.ticket-msg.from-admin { border-left: 3px solid var(--accent); background: var(--bg-soft); }
.ticket-msg-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; font-size: 0.84rem; }
.ticket-msg-head strong { color: var(--ink); }
.ticket-msg-head span { color: var(--muted); }
.ticket-msg p { font-size: 0.94rem; }

@media (max-width: 980px) {
    .product-grid, .dash-quick, .ticket-layout { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Lightbox
   -------------------------------------------------------------------------- */

img.zoomable { cursor: zoom-in; }

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: rgba(10, 11, 13, 0.88);
    backdrop-filter: blur(4px);
    cursor: zoom-out;
    animation: lightbox-in 0.25s ease;
}
.lightbox[hidden] { display: none; }
.lightbox img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 10px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
}
.lightbox-close {
    position: absolute;
    top: 18px;
    right: 24px;
    border: none;
    background: none;
    color: #fff;
    font-size: 2.2rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.8;
}
.lightbox-close:hover { opacity: 1; }

@keyframes lightbox-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 760px) {
    .lightbox { padding: 16px; }
}

/* --------------------------------------------------------------------------
   Cookie consent
   -------------------------------------------------------------------------- */

.cookie-banner {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 300;
    max-width: 420px;
    background: var(--bg);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    padding: 22px 24px;
    box-shadow: 0 18px 50px var(--shadow);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.cookie-banner.show { opacity: 1; transform: none; }
.cookie-banner.hide { opacity: 0; transform: translateY(16px); pointer-events: none; }

.cookie-banner h4 {
    font-size: 0.95rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.cookie-banner h4::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}
.cookie-banner p { font-size: 0.86rem; color: var(--muted); margin-bottom: 16px; }
.cookie-banner .cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }

@media (max-width: 520px) {
    .cookie-banner { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1180px) {
    .hero-visual { width: 420px; height: 420px; right: -110px; opacity: 0.85; }
    .hero-mars { inset: 90px; width: calc(100% - 180px); height: calc(100% - 180px); }
}

@media (max-width: 980px) {
    .services-grid, .pricing-grid { grid-template-columns: 1fr; }
    .hero-visual { display: none; }
    .process-grid, .stack-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 44px; }
    .cta-band .cta-inner { grid-template-columns: 1fr; gap: 32px; }
    .cta-band .cta-actions { justify-content: flex-start; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .faq-grid, .values-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    .section { padding: 64px 0; }
    .hero { padding: 72px 0 64px; }

    .nav-toggle { display: flex; }
    .main-nav {
        display: none;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        z-index: 100;
        background: var(--bg);
        border-bottom: 1px solid var(--line);
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 24px;
        gap: 16px;
    }
    .main-nav.open { display: flex; }

    .project-row { grid-template-columns: 64px 1fr; }
    .project-logo { width: 64px; height: 64px; }
    .project-logo img { width: 46px; height: 46px; }
    .project-arrow { display: none; }

    .form-row { grid-template-columns: 1fr; gap: 0; }
    .process-grid, .stack-grid { grid-template-columns: 1fr; }
    .stats-row { grid-template-columns: 1fr; }
    .hero-meta { gap: 24px; }
    .contact-form { padding: 24px 20px; }
}
