:root {
    --bg-ink: #071522;
    --bg-slate: #10293b;
    --surface: rgba(8, 28, 43, 0.78);
    --surface-strong: #0d2233;
    --text-main: #f2f5f8;
    --text-soft: #c8d3db;
    --accent: #ff8c42;
    --accent-soft: #ffc08a;
    --line: rgba(255, 255, 255, 0.14);
    --ok: #57d49b;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    color: var(--text-main);
    font-family: "Outfit", sans-serif;
    line-height: 1.55;
    background:
        radial-gradient(circle at 10% 12%, rgba(255, 140, 66, 0.18), transparent 36%),
        radial-gradient(circle at 86% 6%, rgba(104, 203, 255, 0.18), transparent 35%),
        linear-gradient(155deg, var(--bg-ink) 0%, #0d2030 48%, var(--bg-slate) 100%);
}

.noise-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.15;
    background-image: radial-gradient(rgba(255, 255, 255, 0.2) 0.5px, transparent 0.5px);
    background-size: 4px 4px;
    z-index: -1;
}

.container {
    width: min(1120px, 92vw);
    margin: 0 auto;
}

.section {
    padding: 5rem 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(8px);
    background: rgba(6, 18, 28, 0.64);
    border-bottom: 1px solid var(--line);
}

.nav-wrap {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
}

.brand {
    text-decoration: none;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.brand-logo {
    display: block;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    object-fit: cover;
}

.brand-text {
    font-family: "Bricolage Grotesque", sans-serif;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.main-nav {
    display: flex;
    gap: 1.2rem;
}

.main-nav a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.97rem;
    opacity: 0.92;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.main-nav a:hover {
    color: var(--accent-soft);
    opacity: 1;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 10px;
    cursor: pointer;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    margin: 0 auto;
    background: #ecf0f3;
}

h1,
h2,
h3 {
    margin: 0;
    line-height: 1.1;
    font-family: "Bricolage Grotesque", sans-serif;
}

h1 {
    font-size: clamp(2.1rem, 6vw, 4.2rem);
    letter-spacing: -0.02em;
    max-width: 12ch;
}

.section-title {
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    margin-top: 0.5rem;
    max-width: 24ch;
}

.eyebrow {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
    color: var(--accent-soft);
    font-weight: 600;
}

.hero {
    padding-top: 6.5rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.9fr;
    gap: 1.5rem;
    align-items: start;
}

.hero-lead {
    margin-top: 1.15rem;
    max-width: 62ch;
    color: var(--text-soft);
    font-size: 1.04rem;
}

.hero-actions {
    margin-top: 1.9rem;
    display: flex;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.btn {
    text-decoration: none;
    border: none;
    border-radius: 999px;
    padding: 0.76rem 1.3rem;
    font-weight: 600;
    font-family: "Outfit", sans-serif;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(130deg, var(--accent), #f6b056);
    color: #261002;
    box-shadow: 0 12px 30px rgba(255, 140, 66, 0.25);
}

.btn-secondary {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--line);
}

.hero-panel {
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 1.4rem;
    background: linear-gradient(145deg, rgba(22, 43, 61, 0.65), rgba(9, 28, 44, 0.78));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.hero-panel h2 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
}

.hero-panel ul {
    margin: 0;
    padding-left: 1.1rem;
    color: var(--text-soft);
}

.hero-panel li {
    margin-bottom: 0.5rem;
}

.panel-note {
    margin-top: 1rem;
    font-weight: 500;
    color: var(--ok);
}

.stats {
    padding-top: 1.4rem;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.stat-grid article {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    padding: 1.1rem;
}

.stat-grid h3 {
    font-size: 1.5rem;
    color: var(--accent-soft);
}

.stat-grid p {
    margin: 0.4rem 0 0;
    color: var(--text-soft);
}

.service-grid {
    margin-top: 1.7rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.service-card,
.project-card {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    padding: 1.2rem;
}

.project-carousel {
    margin-top: 1.7rem;
}

.carousel-track {
    position: relative;
    min-height: 220px;
}

.carousel-slide {
    display: none;
    animation: fadeSlide 0.35s ease;
}

.carousel-slide.active {
    display: block;
}

.carousel-controls {
    margin-top: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

.carousel-btn {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.55rem 1rem;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    font: inherit;
    cursor: pointer;
}

.carousel-btn:hover {
    border-color: rgba(255, 192, 138, 0.5);
}

.carousel-dots {
    display: flex;
    gap: 0.45rem;
    align-items: center;
}

.carousel-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    padding: 0;
}

.carousel-dot.active {
    background: var(--accent-soft);
}

@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card h3,
.project-card h3 {
    font-size: 1.2rem;
}

.project-card h3 a {
    color: inherit;
    text-decoration: none;
}

.project-card h3 a:hover {
    color: var(--accent-soft);
}

.service-card p,
.project-card p {
    color: var(--text-soft);
}

.service-card ul {
    margin: 0;
    padding-left: 1rem;
    color: var(--text-soft);
}

.service-card li {
    margin-bottom: 0.35rem;
}

.packages-block {
    margin-top: 2rem;
}

.packages-title {
    margin-top: 0.5rem;
    font-size: clamp(1.2rem, 2.1vw, 1.7rem);
}

.package-grid {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.package-card {
    position: relative;
    padding-bottom: 1.4rem;
}

.package-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.7rem;
}

.package-head h4 {
    margin: 0;
    font-family: "Bricolage Grotesque", sans-serif;
    font-size: 1.14rem;
}

.package-tag {
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #2a1404;
    background: linear-gradient(145deg, var(--accent-soft), #ff9e52);
    border-radius: 999px;
    padding: 0.32rem 0.6rem;
    font-weight: 700;
    white-space: nowrap;
}

.package-price {
    margin: 0.8rem 0 0;
    font-family: "Bricolage Grotesque", sans-serif;
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--accent-soft);
}

.package-price span {
    display: block;
    margin-top: 0.2rem;
    font-family: "Outfit", sans-serif;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-soft);
}

.package-hosting {
    margin: 0.35rem 0 0;
    color: var(--text-main);
    font-weight: 600;
}

.tooltip-card {
    cursor: help;
}

.tooltip-card:focus {
    outline: 2px solid rgba(255, 192, 138, 0.6);
    outline-offset: 2px;
}

.tooltip {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: 5.75rem;
    margin: 0;
    padding: 0.6rem 0.7rem;
    border: 1px solid rgba(255, 192, 138, 0.38);
    border-radius: 10px;
    background: rgba(9, 24, 37, 0.96);
    color: var(--text-main);
    font-size: 0.87rem;
    line-height: 1.35;
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
}

.tooltip-card:hover .tooltip,
.tooltip-card:focus-within .tooltip,
.tooltip-card:focus .tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.package-details {
    margin-top: 1rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.24);
    padding-top: 0.7rem;
}

.package-details summary {
    cursor: pointer;
    color: var(--accent-soft);
    font-weight: 600;
}

.package-details p {
    margin: 0.6rem 0 0;
    color: var(--text-soft);
}

.integration {
    background: linear-gradient(180deg, rgba(9, 26, 40, 0.2), rgba(255, 140, 66, 0.05));
}

.integration-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.3rem;
    align-items: start;
}

.flow-list {
    margin: 0;
    padding: 1rem 1rem 1rem 2.2rem;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: var(--surface-strong);
}

.flow-list li {
    margin-bottom: 0.9rem;
    color: var(--text-soft);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.contact-options {
    margin-top: 1.3rem;
    display: grid;
    gap: 0.7rem;
}

.contact-options a {
    color: var(--text-main);
    text-decoration: none;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0.72rem 0.9rem;
    background: rgba(255, 255, 255, 0.06);
}

.contact-options a:hover {
    border-color: rgba(255, 192, 138, 0.5);
}

.contact-form {
    display: grid;
    gap: 0.65rem;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    padding: 1rem;
}

.contact-form label {
    font-size: 0.9rem;
    color: var(--text-soft);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.17);
    border-radius: 12px;
    padding: 0.75rem 0.8rem;
    background: rgba(2, 11, 18, 0.65);
    color: var(--text-main);
    font: inherit;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: 2px solid rgba(255, 192, 138, 0.4);
    outline-offset: 1px;
}

.form-status {
    margin: 0;
    min-height: 1.2rem;
    color: var(--ok);
}

.site-footer {
    border-top: 1px solid var(--line);
    background: rgba(5, 16, 25, 0.75);
}

.footer-wrap {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.footer-wrap p {
    margin: 0;
    color: var(--text-soft);
}

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

.thank-you-wrap {
    min-height: 100vh;
    display: grid;
    align-items: center;
}

.thank-you-card {
    max-width: 720px;
    margin: 0 auto;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 2rem;
    background: var(--surface);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
}

.thank-you-card h1 {
    margin-top: 0.5rem;
    max-width: 16ch;
}

.thank-you-card p {
    color: var(--text-soft);
}

@media (max-width: 900px) {
    .hero-grid,
    .integration-grid,
    .contact-grid,
    .service-grid,
    .package-grid {
        grid-template-columns: 1fr;
    }

    .stat-grid {
        grid-template-columns: 1fr;
    }

    .menu-toggle {
        display: flex;
    }

    .main-nav {
        position: absolute;
        top: 78px;
        right: 4vw;
        left: 4vw;
        display: none;
        flex-direction: column;
        padding: 0.75rem;
        border-radius: 14px;
        border: 1px solid var(--line);
        background: rgba(8, 24, 36, 0.95);
    }

    .main-nav.open {
        display: flex;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
