:root {
    --bg: #f6f1e7;
    --bg-soft: #fff9f0;
    --surface: rgba(255, 253, 249, 0.92);
    --surface-strong: #ffffff;
    --text: #17212c;
    --muted: #5d6a78;
    --line: rgba(37, 66, 93, 0.12);
    --accent: #ff8f5a;
    --accent-2: #2aa6b4;
    --danger: #ff7b7b;
    --shadow: 0 18px 40px rgba(124, 96, 62, 0.12);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Manrope", sans-serif;
    color: var(--text);
    background:
        radial-gradient(1200px 520px at 12% -10%, rgba(255, 192, 141, 0.28), transparent 58%),
        radial-gradient(900px 480px at 92% 4%, rgba(118, 214, 223, 0.24), transparent 55%),
        linear-gradient(180deg, #fffdfa 0%, #f8f2ea 42%, #f6f1e7 100%);
    line-height: 1.6;
}

.container {
    width: min(1140px, 92vw);
    margin: 0 auto;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
    z-index: 1000;
    background: #fff;
    color: #000;
    padding: 0.5rem 0.75rem;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(12px);
    background: rgba(255, 251, 244, 0.86);
    border-bottom: 1px solid var(--line);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    gap: 1rem;
}

.brand-block {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.brand {
    text-decoration: none;
    color: var(--text);
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.04em;
    display: inline-flex;
}

.brand-powered {
    font-family: "Manrope", sans-serif;
    font-size: 0.72rem;
    color: var(--muted);
    letter-spacing: 0.04em;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 1rem;
    padding: 0;
    margin: 0;
    align-items: center;
}

.nav-list a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 600;
}

.nav-list a:hover,
.nav-list a:focus-visible {
    color: #0f1820;
}

.nav-cta {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.65rem 1rem;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 18px rgba(124, 96, 62, 0.08);
}

.lang-switch {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0 2.25rem 0 0.95rem;
    background: rgba(255, 255, 255, 0.88);
    color: var(--text);
    font: inherit;
    height: 42px;
    line-height: 42px;
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--muted) 50%),
        linear-gradient(135deg, var(--muted) 50%, transparent 50%);
    background-position:
        calc(100% - 16px) calc(50% - 2px),
        calc(100% - 10px) calc(50% - 2px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.hero {
    position: relative;
    overflow: clip;
    padding: 5rem 0 3rem;
}

.shape {
    position: absolute;
    pointer-events: none;
    filter: blur(10px);
}

.shape-a {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 191, 148, 0.28);
    top: -70px;
    right: 10%;
}

.shape-b {
    width: 240px;
    height: 240px;
    border-radius: 25% 75% 45% 55%;
    background: rgba(111, 212, 219, 0.18);
    left: 4%;
    bottom: 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 1.5rem;
    align-items: start;
}

.kicker {
    margin: 0 0 0.8rem;
    color: #b96d35;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.78rem;
}

h1,
h2,
h3 {
    font-family: "Space Grotesk", sans-serif;
    line-height: 1.2;
    margin-top: 0;
}

h1 {
    font-size: clamp(2rem, 4vw, 3.3rem);
    margin-bottom: 1rem;
}

.hero-lead {
    color: var(--muted);
    max-width: 65ch;
}

.hero-actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin: 1.3rem 0;
}

.btn {
    display: inline-block;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 0.7rem 1.1rem;
    font-weight: 700;
    cursor: pointer;
    font-family: "Manrope", sans-serif;
}

.btn-primary {
    background: linear-gradient(120deg, var(--accent), #ffb678);
    color: #1d2024;
    box-shadow: 0 12px 24px rgba(255, 143, 90, 0.26);
}

.btn-primary:hover,
.btn-primary:focus-visible {
    filter: brightness(1.05);
}

.btn-secondary {
    border-color: var(--line);
    color: var(--text);
    background: rgba(255, 255, 255, 0.88);
}

.hero-points {
    margin: 1rem 0 0;
    padding-left: 1.2rem;
    color: var(--muted);
}

.hero-panel {
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: 18px;
    padding: 1.3rem;
    box-shadow: var(--shadow);
}

.hero-panel-image {
    width: 100%;
    display: block;
    border-radius: 12px;
    margin-bottom: 1rem;
    border: 1px solid var(--line);
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.hero-panel dl {
    margin: 0;
    display: grid;
    gap: 1rem;
}

.hero-panel dt {
    font-weight: 700;
}

.hero-panel dd {
    margin: 0.3rem 0 0;
    color: var(--muted);
}

.section {
    padding: 4rem 0;
}

.section-alt {
    background: linear-gradient(180deg, rgba(255, 250, 242, 0.35), rgba(241, 234, 223, 0.78));
}

.section-head {
    max-width: 72ch;
    margin-bottom: 1.8rem;
}

.section-head p {
    color: var(--muted);
}

.tech-strip {
    text-align: center;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    color: var(--muted);
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.card-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.rescue-box,
.step,
.contact-form {
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: 16px;
    padding: 1.1rem;
    box-shadow: var(--shadow);
}

.service-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 0.8rem;
    border: 1px solid var(--line);
}

.logo-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem;
}

.logo-card {
    display: grid;
    gap: 0.55rem;
    justify-items: start;
    align-content: center;
    min-height: 154px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(250, 244, 235, 0.94));
    color: var(--text);
    text-decoration: none;
    text-align: left;
    padding: 1rem;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.logo-mark-wrap {
    width: 100%;
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    border-radius: 16px;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(37, 66, 93, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.logo-mark-light {
    background: rgba(255, 255, 255, 0.92);
}

.logo-mark-dark {
    background: #14314e;
}

.logo-mark {
    width: auto;
    max-width: 170px;
    max-height: 32px;
    display: block;
    object-fit: contain;
}

.logo-name {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.02rem;
}

.logo-meta {
    font-size: 0.9rem;
    color: var(--muted);
}

.logo-card:hover,
.logo-card:focus-visible {
    border-color: rgba(42, 166, 180, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(124, 96, 62, 0.12);
}

.logo-card:hover .logo-mark-wrap,
.logo-card:focus-visible .logo-mark-wrap {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(124, 96, 62, 0.08);
}

.checklist {
    padding-left: 1.1rem;
}

.rescue-box ol {
    margin: 0;
    padding-left: 1.1rem;
    color: var(--muted);
}

.note {
    margin-top: 0.8rem;
    font-size: 0.92rem;
}

.timeline {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.step span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: rgba(42, 166, 180, 0.14);
    font-family: "Space Grotesk", sans-serif;
    margin-bottom: 0.7rem;
}

.contact {
    padding-top: 3rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.contact-form {
    display: grid;
    gap: 0.55rem;
}

.contact-form label {
    font-weight: 600;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--text);
    padding: 0.65rem 0.75rem;
    font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: 2px solid var(--accent-2);
    outline-offset: 2px;
}

.form-status {
    min-height: 1.3rem;
    margin: 0;
}

.site-footer {
    border-top: 1px solid var(--line);
    padding: 1.3rem 0 2rem;
    color: var(--muted);
}

.site-footer a {
    color: var(--muted);
    margin-right: 0.7rem;
}

.site-footer a:hover,
.site-footer a:focus-visible {
    color: var(--text);
}

.systemflare-link {
    color: var(--muted);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    border-radius: 999px;
    padding: 0.08rem 0.35rem;
    display: inline-flex;
    align-items: center;
    transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.systemflare-link:hover,
.systemflare-link:focus-visible {
    color: #0f1820;
    background: rgba(42, 166, 180, 0.08);
    border-bottom-color: transparent;
}

.footer-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.8rem;
}

.reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

@media (max-width: 1024px) {
    .hero-grid,
    .rescue-grid,
    .contact-grid,
    .timeline {
        grid-template-columns: 1fr 1fr;
    }

    .card-grid {
        grid-template-columns: 1fr 1fr;
    }

    .logo-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-wrap {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.8rem 0;
    }

    .nav-list {
        gap: 0.6rem;
        font-size: 0.92rem;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .hero-actions .btn {
        width: 100%;
        text-align: center;
    }

    .hero-grid,
    .rescue-grid,
    .contact-grid,
    .timeline,
    .card-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 3.5rem;
    }

    .brand-powered {
        flex-wrap: wrap;
    }
}

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