/* Hytovia Tools — v3.5
   Mittelweg: schlank, aber mit Design. Mobile-first. */

:root {
    --bg: #07070a;
    --bg-soft: #0a0a0f;
    --bg-card: #11111a;
    --bg-card-hover: #161624;

    --border: #1f1f2b;
    --border-strong: #2a2a3a;
    --border-hover: #3a3a4f;

    --text: #f4f4f6;
    --text-bright: #ffffff;
    --text-mute: #9c9caf;
    --text-dim: #6e6e7e;
    --text-faint: #3a3a4a;

    --accent-violet: #8b5cf6;
    --accent-violet-bright: #a78bfa;
    --accent-cyan: #06b6d4;
    --accent-status: #4ade80;

    --container: 960px;
    --container-narrow: 640px;

    --radius-sm: 6px;
    --radius: 12px;
    --radius-lg: 18px;

    --font: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    --mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    -webkit-text-size-adjust: 100%;
    background: var(--bg);
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s var(--ease);
}

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

::selection {
    background: rgba(139, 92, 246, 0.4);
    color: var(--text-bright);
}

:focus-visible {
    outline: 2px solid var(--accent-violet);
    outline-offset: 4px;
    border-radius: 2px;
}

/* Container */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.container-narrow { max-width: var(--container-narrow); }

@media (min-width: 768px) {
    .container { padding: 0 32px; }
}

/* Ambient */
.ambient {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.35;
    will-change: transform;
}

.ambient-orb-1 {
    width: 580px;
    height: 580px;
    top: -160px;
    right: -140px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.4), transparent 70%);
    animation: orb-1 40s ease-in-out infinite;
}

.ambient-orb-2 {
    width: 480px;
    height: 480px;
    top: 50%;
    left: -200px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.3), transparent 70%);
    animation: orb-2 50s ease-in-out infinite;
}

@keyframes orb-1 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-60px, 40px); }
}
@keyframes orb-2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(40px, -50px); }
}

.ambient-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 30%, transparent 80%);
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background: linear-gradient(180deg, transparent 0%, transparent 70%, var(--bg) 100%);
}

main, .nav, .footer { position: relative; z-index: 2; }

/* Status dot */
.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-status);
    box-shadow: 0 0 10px rgba(74, 222, 128, 0.6);
    animation: pulse 2s ease-in-out infinite;
    flex-shrink: 0;
    display: inline-block;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

/* Shimmer for accent text */
.shimmer {
    background: linear-gradient(120deg,
        #ffffff 0%,
        #ffffff 35%,
        #c4b5fd 50%,
        #ffffff 65%,
        #ffffff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 12s linear infinite;
}

@keyframes shimmer {
    to { background-position: -200% center; }
}

.mute { color: var(--text-mute); font-weight: 600; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 22px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.01em;
    transition: all 0.2s var(--ease);
    white-space: nowrap;
    border: 1px solid transparent;
    min-height: 46px;
    font-family: inherit;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(180deg, #ffffff, #e5e5ea);
    color: #07070a;
    border-color: rgba(255, 255, 255, 0.2);
    font-weight: 600;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.5) inset,
        0 8px 24px -8px rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    background: #ffffff;
    transform: translateY(-1px);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.6) inset,
        0 12px 32px -8px rgba(255, 255, 255, 0.3);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    border-color: var(--border-strong);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--border-hover);
    transform: translateY(-1px);
}

/* Navigation */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 12px 0;
    background: rgba(7, 7, 10, 0.7);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.3s var(--ease);
}

.nav.is-scrolled {
    background: rgba(7, 7, 10, 0.88);
}

.nav-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

@media (min-width: 768px) {
    .nav-container { padding: 0 32px; }
}

.nav-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: -0.02em;
    color: var(--text);
}

.nav-logo-accent { color: var(--text-mute); font-weight: 500; }

.nav-cta {
    padding: 9px 16px;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    transition: all 0.2s var(--ease);
}

.nav-cta:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-hover);
}

/* Section base */
.section {
    padding: 56px 0;
    position: relative;
}

@media (min-width: 768px) {
    .section { padding: 88px 0; }
}

.section-eyebrow {
    display: inline-block;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text-dim);
    letter-spacing: 0.02em;
    margin-bottom: 28px;
}

/* Hero */
.hero {
    padding: 56px 0 32px;
    text-align: left;
}

@media (min-width: 768px) {
    .hero {
        padding: 96px 0 56px;
        text-align: center;
    }
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-mute);
    margin-bottom: 24px;
}

.hero h1 {
    font-size: clamp(34px, 7vw, 60px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.035em;
    margin-bottom: 22px;
    color: var(--text-bright);
}

.hero-sub {
    font-size: clamp(16px, 2vw, 18px);
    color: var(--text-mute);
    line-height: 1.6;
    max-width: 560px;
    margin: 0 0 32px;
}

@media (min-width: 768px) {
    .hero-sub { margin-left: auto; margin-right: auto; }
}

.cta-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@media (min-width: 480px) {
    .cta-row { flex-direction: row; flex-wrap: wrap; }
}

@media (min-width: 768px) {
    .cta-row { justify-content: center; }
}

/* Architektur-Diagramm */
.section-arch {
    padding-top: 32px;
    padding-bottom: 32px;
}

@media (min-width: 768px) {
    .section-arch { padding-top: 16px; padding-bottom: 80px; }
}

.section-arch h2 {
    font-size: clamp(28px, 5.5vw, 44px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 18px;
    color: var(--text-bright);
}

.arch-intro {
    font-size: 15.5px;
    color: var(--text-mute);
    line-height: 1.65;
    margin-bottom: 36px;
    max-width: 620px;
}

.arch-intro em {
    font-style: normal;
    color: var(--text);
    font-weight: 500;
}

.arch {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 820px;
    margin: 0 auto;
}

.arch-layer {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.arch-label {
    font-family: var(--mono);
    font-size: 10.5px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.arch-boxes {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

@media (min-width: 600px) {
    .arch-boxes-4 { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 880px) {
    .arch-boxes-4 { grid-template-columns: repeat(4, 1fr); }
}

.arch-box {
    padding: 16px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: all 0.25s var(--ease);
    position: relative;
    overflow: hidden;
}

.arch-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
}

.arch-box:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.arch-box h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-bright);
    letter-spacing: -0.01em;
    margin-bottom: 4px;
}

.arch-box h5 {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-bright);
    letter-spacing: -0.01em;
    margin-bottom: 3px;
}

.arch-box p {
    font-size: 12.5px;
    color: var(--text-mute);
    line-height: 1.45;
    margin: 0;
}

.arch-box-accent {
    background:
        linear-gradient(180deg, rgba(139, 92, 246, 0.08) 0%, transparent 60%),
        var(--bg-card);
    border-color: rgba(139, 92, 246, 0.4);
}

.arch-box-accent::before {
    background: linear-gradient(90deg, transparent, var(--accent-violet-bright), transparent);
}

.arch-box-wide {
    grid-column: 1 / -1;
    padding: 20px 22px;
}

.arch-box-data {
    background:
        linear-gradient(180deg, rgba(6, 182, 212, 0.05) 0%, transparent 60%),
        var(--bg-card);
    border-color: rgba(6, 182, 212, 0.3);
}

.arch-box-data::before {
    background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
}

.arch-box-data h4 {
    font-size: 16px;
    color: var(--text-bright);
}

.arch-box-data p {
    font-size: 13px;
    color: var(--text);
    max-width: 540px;
}

.arch-box-small {
    padding: 14px 16px;
}

/* Vertical connector line between layers */
.arch-line {
    width: 1px;
    height: 24px;
    margin: 8px auto;
    background: linear-gradient(180deg, transparent, var(--border-strong), transparent);
    position: relative;
}

.arch-line::before,
.arch-line::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--border-hover);
}

.arch-line::before { top: 0; }
.arch-line::after  { bottom: 0; }

.arch-note {
    margin: 36px auto 0;
    max-width: 600px;
    font-size: 14px;
    color: var(--text-mute);
    line-height: 1.6;
    text-align: center;
    padding: 0 8px;
}

/* Cases */
.section-cases {
    background:
        radial-gradient(ellipse at 50% 0%, rgba(139, 92, 246, 0.04) 0%, transparent 50%);
}

.case {
    padding: 28px 0;
    border-top: 1px solid var(--border);
}

.case:first-of-type {
    border-top: none;
    padding-top: 0;
}

@media (min-width: 768px) {
    .case { padding: 40px 0; }
}

.case-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.case h3 {
    font-size: clamp(20px, 3.5vw, 28px);
    font-weight: 700;
    color: var(--text-bright);
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.case-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text-mute);
    border-bottom: 1px solid var(--border-hover);
    padding-bottom: 1px;
    transition: all 0.2s var(--ease);
}

.case-link:hover {
    color: var(--text-bright);
    border-bottom-color: var(--text-bright);
}

.case-link-static {
    color: var(--text-dim);
    border-bottom: none;
    padding-bottom: 0;
}

.case-link-static:hover { color: var(--text-dim); }

.case p {
    color: var(--text-mute);
    font-size: 15px;
    line-height: 1.65;
    margin-bottom: 16px;
    max-width: 700px;
}

.stack {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    display: inline-block;
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-mute);
    line-height: 1.4;
    transition: all 0.2s var(--ease);
}

.tag:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--border-hover);
    color: var(--text);
}

/* Capability */
.section-capability {
    background:
        radial-gradient(ellipse at 50% 50%, rgba(6, 182, 212, 0.04) 0%, transparent 60%);
}

.section-capability h2 {
    font-size: clamp(28px, 5.5vw, 44px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    color: var(--text-bright);
}

.section-capability p {
    font-size: clamp(15px, 2vw, 17px);
    line-height: 1.7;
    color: var(--text);
    margin-bottom: 16px;
    max-width: 600px;
}

.section-capability p.mute {
    color: var(--text-mute);
    font-size: clamp(14px, 1.8vw, 15px);
    font-weight: 400;
}

/* Contact */
.section-contact {
    padding-bottom: 80px;
}

@media (min-width: 768px) {
    .section-contact { padding-bottom: 112px; }
}

.section-contact h2 {
    font-size: clamp(26px, 5vw, 40px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 18px;
    color: var(--text-bright);
}

.contact-sub {
    font-size: 16px;
    color: var(--text-mute);
    line-height: 1.6;
    margin-bottom: 28px;
    max-width: 520px;
}

.channels {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@media (min-width: 600px) {
    .channels { flex-direction: row; flex-wrap: wrap; }
}

.channel {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 14.5px;
    color: var(--text);
    transition: all 0.2s var(--ease);
    min-height: 52px;
}

.channel svg {
    color: var(--accent-violet-bright);
    flex-shrink: 0;
}

.channel:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--border-hover);
    transform: translateY(-1px);
    color: var(--text-bright);
}

/* Footer */
.footer {
    border-top: 1px solid var(--border);
    background: var(--bg-soft);
    padding: 20px 0;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    font-size: 12px;
    color: var(--text-dim);
}

@media (min-width: 600px) {
    .footer-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-brand svg { color: var(--text-mute); }

.footer-links {
    display: inline-flex;
    align-items: center;
    gap: 16px;
}

.footer-links a {
    color: var(--text-dim);
    transition: color 0.2s var(--ease);
}

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

/* Reveal */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal { opacity: 1; transform: none; }
}

/* Legal */
.legal {
    max-width: 640px;
    margin: 0 auto;
    padding: 56px 24px 80px;
    position: relative;
    z-index: 2;
}

.legal h1 {
    font-size: clamp(26px, 4vw, 34px);
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-bright);
    letter-spacing: -0.02em;
}

.legal h2 {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text-mute);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 28px 0 10px;
    font-weight: 400;
}

.legal h3 {
    font-size: 15px;
    margin: 20px 0 6px;
    color: var(--text-bright);
}

.legal p, .legal li {
    color: var(--text-mute);
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 10px;
}

.legal a {
    color: var(--text);
    border-bottom: 1px solid var(--border-hover);
}

.legal a:hover { border-bottom-color: var(--text); }

.legal ul {
    margin: 8px 0 16px 0;
    padding-left: 18px;
}

.legal ul li { list-style: disc; padding-left: 4px; }

.back-link {
    display: inline-block;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text-mute);
    border-bottom: none;
    margin-bottom: 24px;
    transition: color 0.2s var(--ease);
}

.back-link:hover { color: var(--text); }
