:root {
    --bg: #07111f;
    --surface: #0f2238;
    --surface-2: #173255;
    --accent: #ff7a1a;
    --accent-2: #38c4ff;
    --text: #ecf3ff;
    --muted: #b9c7db;
    --success: #20c77f;
    --error: #ff4f61;
    --radius: 18px;
    --shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Manrope", "Segoe UI", sans-serif;
    color: var(--text);
    background: radial-gradient(circle at 10% -5%, #174675, transparent 30%),
        radial-gradient(circle at 90% 0%, #0f5d71, transparent 35%),
        linear-gradient(160deg, #04101f 0%, #061427 45%, #07111f 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

h1,
h2,
h3 {
    font-family: "Sora", "Segoe UI", sans-serif;
    margin: 0 0 0.55rem;
    line-height: 1.15;
}

p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

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

.bg-orb {
    position: fixed;
    width: 340px;
    height: 340px;
    border-radius: 999px;
    filter: blur(10px);
    opacity: 0.16;
    pointer-events: none;
    z-index: 0;
}

.orb-1 {
    left: -70px;
    top: 200px;
    background: var(--accent);
    animation: orbit 11s ease-in-out infinite;
}

.orb-2 {
    right: -100px;
    top: 90px;
    background: var(--accent-2);
    animation: orbit 13s ease-in-out infinite reverse;
}

.notice {
    position: sticky;
    top: 0;
    z-index: 40;
    width: min(95%, 1100px);
    margin: 0.8rem auto 0;
    padding: 0.95rem 1rem;
    border-radius: 12px;
    text-align: center;
    font-weight: 700;
    backdrop-filter: blur(10px);
}

.notice-success {
    background: rgba(32, 199, 127, 0.2);
    border: 1px solid rgba(32, 199, 127, 0.45);
}

.notice-error {
    background: rgba(255, 79, 97, 0.2);
    border: 1px solid rgba(255, 79, 97, 0.4);
}

.topbar {
    width: min(95%, 1120px);
    margin: 1rem auto 0;
    background: rgba(6, 20, 39, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    backdrop-filter: blur(12px);
    padding: 0.75rem 1.1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 1rem;
    z-index: 35;
}

.logo {
    font-family: "Sora", sans-serif;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.logo span {
    color: var(--accent);
}

.nav {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav a {
    font-size: 0.93rem;
    color: #dce8f8;
    transition: color 0.25s ease;
}

.nav a:hover {
    color: var(--accent-2);
}

.menu-toggle {
    display: none;
    border: 0;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    border-radius: 10px;
    padding: 0.55rem 0.8rem;
    cursor: pointer;
}

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

.hero,
.section {
    width: min(95%, 1120px);
    margin: 0 auto;
}

.hero {
    padding: 4.8rem 0 3.6rem;
    display: grid;
    grid-template-columns: 1.07fr 0.93fr;
    gap: 2rem;
    align-items: center;
}

.pill {
    display: inline-flex;
    margin-bottom: 1rem;
    color: #d9f3ff;
    font-weight: 700;
    font-size: 0.82rem;
    background: rgba(56, 196, 255, 0.16);
    border: 1px solid rgba(56, 196, 255, 0.35);
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
}

.hero h1 {
    font-size: clamp(2rem, 4vw, 3.6rem);
}

.hero p {
    margin-top: 0.9rem;
    max-width: 60ch;
}

.hero-actions {
    margin-top: 1.6rem;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn {
    border: 0;
    cursor: pointer;
    border-radius: 999px;
    padding: 0.72rem 1.3rem;
    font-weight: 700;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(130deg, var(--accent), #ff9b4b);
    color: #1f1205;
    box-shadow: 0 8px 24px rgba(255, 122, 26, 0.35);
}

.btn-ghost {
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #d7e6ff;
    background: transparent;
}

.stats {
    margin-top: 1.7rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(90px, 1fr));
    gap: 0.85rem;
}

.stat {
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(15, 34, 56, 0.75);
    border-radius: 14px;
    padding: 0.85rem;
}

.stat strong {
    display: block;
    font-family: "Sora", sans-serif;
    font-size: 1.5rem;
    margin-bottom: 0.2rem;
    color: #ffffff;
}

.stat span {
    font-size: 0.86rem;
    color: var(--muted);
}

.hero-visual {
    position: relative;
    min-height: 440px;
    border-radius: 24px;
    background: linear-gradient(170deg, rgba(9, 34, 61, 0.9), rgba(18, 61, 93, 0.7));
    border: 1px solid rgba(255, 255, 255, 0.12);
    overflow: hidden;
}

.hero-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(130deg, rgba(56, 196, 255, 0.08), rgba(255, 122, 26, 0.15));
}

.floating-window {
    position: absolute;
    z-index: 2;
    width: min(300px, 84%);
    border-radius: 16px;
    padding: 1rem;
    background: rgba(8, 25, 43, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow);
}

.floating-window p {
    color: #c8d9ee;
    font-size: 0.88rem;
}

.floating-window strong {
    display: block;
    margin-top: 0.3rem;
    font-family: "Sora", sans-serif;
    color: #fff;
}

.floating-window small {
    color: #afc4de;
    display: block;
    margin-top: 0.35rem;
}

.fw-main {
    left: 8%;
    top: 14%;
    animation: floatY 6s ease-in-out infinite;
}

.fw-secondary {
    right: 7%;
    top: 44%;
    animation: floatY 7s ease-in-out infinite reverse;
}

.fw-accent {
    left: 16%;
    bottom: 12%;
    animation: floatY 8s ease-in-out infinite;
}

.progress {
    margin-top: 0.65rem;
    width: 100%;
    background: rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    overflow: hidden;
    height: 10px;
}

.progress span {
    display: block;
    height: 100%;
    background: linear-gradient(100deg, var(--accent-2), #58ffbd);
}

.section {
    padding: 2.3rem 0 1rem;
}

.section-head {
    margin-bottom: 1.15rem;
}

.tag {
    color: var(--accent-2);
    text-transform: uppercase;
    font-size: 0.76rem;
    letter-spacing: 0.12em;
    font-weight: 800;
    margin-bottom: 0.35rem;
}

.section h2 {
    font-size: clamp(1.6rem, 3vw, 2.5rem);
}

.services-grid,
.project-grid,
.timeline-grid,
.testimonial-track {
    display: grid;
    gap: 1rem;
}

.services-grid {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.service-card,
.project-card,
.timeline-item,
.testimonial-card,
.estimate,
.cta-card {
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(170deg, rgba(12, 29, 48, 0.88), rgba(10, 25, 42, 0.75));
    box-shadow: var(--shadow);
}

.service-card,
.project-card,
.timeline-item,
.testimonial-card {
    padding: 1rem;
}

.service-icon {
    display: inline-flex;
    width: 42px;
    height: 42px;
    border-radius: 11px;
    align-items: center;
    justify-content: center;
    font-family: "Sora", sans-serif;
    background: rgba(255, 122, 26, 0.2);
    color: #ffcfaa;
    margin-bottom: 0.7rem;
}

.service-card p,
.project-card p,
.timeline-item p,
.testimonial-card p {
    margin-top: 0.45rem;
}

.estimate {
    margin-top: 1.4rem;
    padding: 1.3rem;
    display: grid;
    grid-template-columns: 1fr 1fr 0.75fr;
    gap: 1rem;
}

.estimate-form {
    display: grid;
    gap: 0.7rem;
}

label {
    display: grid;
    gap: 0.33rem;
    font-size: 0.9rem;
    color: #dce9fa;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(6, 16, 27, 0.8);
    color: var(--text);
    padding: 0.7rem 0.8rem;
    font: inherit;
}

input:focus,
select:focus,
textarea:focus {
    outline: 2px solid rgba(56, 196, 255, 0.45);
    border-color: transparent;
}

.check-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.check-row input {
    width: auto;
}

.estimate-result {
    background: rgba(8, 26, 44, 0.95);
    border: 1px solid rgba(56, 196, 255, 0.32);
    border-radius: 14px;
    padding: 1rem;
    font-size: 0.95rem;
    color: #d8ecff;
}

.estimate-result strong {
    color: #ffffff;
    display: block;
    margin: 0.25rem 0;
}

.project-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.project-type {
    color: #a2d7ff;
    font-size: 0.86rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.timeline-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.timeline-item span {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    font-family: "Sora", sans-serif;
    background: rgba(56, 196, 255, 0.2);
    color: #d0f3ff;
    margin-bottom: 0.5rem;
}

.testimonial-track {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.testimonial-card strong {
    display: block;
    margin-top: 0.8rem;
}

.cta {
    padding-bottom: 3rem;
}

.cta-card {
    text-align: center;
    padding: 2rem 1rem;
}

.cta-card p {
    max-width: 650px;
    margin: 0.7rem auto 1.3rem;
}

.footer {
    width: min(95%, 1120px);
    margin: 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 1.15rem 0 2.2rem;
    color: #a9bdd7;
    font-size: 0.88rem;
}

.floating-chat {
    position: fixed;
    right: 18px;
    bottom: 18px;
    border-radius: 999px;
    padding: 0.75rem 1rem;
    background: linear-gradient(130deg, var(--accent-2), #69f6d7);
    color: #042128;
    font-weight: 800;
    z-index: 41;
    box-shadow: 0 12px 30px rgba(56, 196, 255, 0.35);
}

.modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 60;
}

.modal.open {
    display: block;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
}

.modal-panel {
    position: relative;
    width: min(92%, 580px);
    margin: 6vh auto;
    background: #0a1d31;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    padding: 1.2rem;
    box-shadow: var(--shadow);
    animation: popIn 0.3s ease;
}

.modal-close {
    position: absolute;
    right: 0.8rem;
    top: 0.8rem;
    border: 0;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
    width: 34px;
    height: 34px;
    border-radius: 9px;
    cursor: pointer;
    font-size: 1.4rem;
    line-height: 1;
}

#quoteForm {
    margin-top: 0.8rem;
    display: grid;
    gap: 0.65rem;
}

.hidden-hp {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

.form-status {
    min-height: 1.4rem;
    font-size: 0.86rem;
}

.form-status.ok {
    color: var(--success);
}

.form-status.error {
    color: var(--error);
}

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

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

@keyframes floatY {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-16px);
    }
}

@keyframes orbit {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(16px, -12px) scale(1.08);
    }
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

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

    .hero-visual {
        min-height: 360px;
    }
}

@media (max-width: 760px) {
    .menu-toggle {
        display: inline-flex;
    }

    .nav {
        position: absolute;
        right: 1rem;
        top: calc(100% + 0.5rem);
        width: min(92vw, 270px);
        display: none;
        flex-direction: column;
        align-items: stretch;
        background: rgba(8, 21, 36, 0.95);
        border: 1px solid rgba(255, 255, 255, 0.16);
        border-radius: 14px;
        padding: 0.75rem;
        gap: 0.65rem;
    }

    .nav.open {
        display: flex;
    }

    .topbar {
        border-radius: 16px;
    }

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

    .hero-visual {
        min-height: 340px;
    }

    .floating-window {
        width: min(92%, 320px);
    }

    .fw-main {
        left: 4%;
    }

    .fw-secondary {
        right: 4%;
    }

    .fw-accent {
        left: 8%;
    }
}
