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

.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(156, 220, 255, 0.05) 0%, transparent 70%),
                radial-gradient(circle at 80% 20%, rgba(156, 220, 255, 0.03) 0%, transparent 70%),
                radial-gradient(circle at 40% 80%, rgba(156, 220, 255, 0.02) 0%, transparent 70%),
                rgba(13, 17, 19, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    overflow: hidden;
    backdrop-filter: blur(1px);
}

.loader::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 40%, rgba(156, 220, 255, 0.03) 0%, transparent 30%),
        radial-gradient(circle at 70% 60%, rgba(156, 220, 255, 0.02) 0%, transparent 40%),
        radial-gradient(circle at 50% 20%, rgba(156, 220, 255, 0.025) 0%, transparent 35%);
    animation: backgroundShift 8s ease-in-out infinite;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
    color: var(--text);
    position: relative;
    z-index: 1;
}

.loader-logo {
    font-family: "Epilogue", sans-serif;
    font-weight: 800;
    font-size: 3rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 40px;
    animation: logoPulse 2s ease-in-out infinite, textGlow 3s ease-in-out infinite alternate;
    background: linear-gradient(45deg, var(--text), var(--primary), var(--text));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(156, 220, 255, 0.3));
}

.loader-spinner-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto;
}

.loader-spinner {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid transparent;
    border-top: 2px solid var(--primary);
    border-right: 2px solid var(--primary-strong);
    border-radius: 50%;
    animation: spin 1.5s linear infinite, pulse 2s ease-in-out infinite;
}

.loader-spinner:nth-child(2) {
    animation: spin 1.5s linear infinite reverse, pulse 2s ease-in-out infinite 0.5s;
    width: 80px;
    height: 80px;
    top: 20px;
    left: 20px;
    border-top: 2px solid var(--primary-strong);
    border-right: 2px solid var(--muted);
}

.loader-spinner:nth-child(3) {
    animation: spin 1.5s linear infinite, pulse 2s ease-in-out infinite 1s;
    width: 60px;
    height: 60px;
    top: 30px;
    left: 30px;
    border-top: 2px solid var(--muted);
    border-right: 2px solid var(--primary);
}

.loader-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.particle:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { top: 60%; left: 80%; animation-delay: 1s; }
.particle:nth-child(3) { top: 40%; left: 60%; animation-delay: 2s; }
.particle:nth-child(4) { top: 80%; left: 30%; animation-delay: 3s; }
.particle:nth-child(5) { top: 10%; left: 70%; animation-delay: 4s; }
.particle:nth-child(6) { top: 70%; left: 20%; animation-delay: 5s; }

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes logoPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes textGlow {
    0% {
        filter: drop-shadow(0 0 10px rgba(156, 220, 255, 0.2));
    }
    100% {
        filter: drop-shadow(0 0 30px rgba(156, 220, 255, 0.6));
    }
}

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

@keyframes backgroundShift {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.8;
    }
    33% {
        transform: translate(10px, -10px) scale(1.05);
        opacity: 1;
    }
    66% {
        transform: translate(-10px, 10px) scale(0.95);
        opacity: 0.9;
    }
}

a:focus,
button:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-20px) translateX(10px);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-10px) translateX(-10px);
        opacity: 1;
    }
    75% {
        transform: translateY(-30px) translateX(5px);
        opacity: 0.6;
    }
}

:root {
    --bg: #0d1113;
    --surface: #12171b;
    --surface-soft: #161e24;
    --surface-muted: #1e262e;
    --text: #e0e3e5;
    --muted: #8b97a6;
    --outline: rgba(255, 255, 255, 0.08);
    --primary: #9cdcff;
    --primary-strong: #6dc7ff;
    --border: rgba(255, 255, 255, 0.05);
    --max: 1400px;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    min-height: 100vh;
    background: radial-gradient(circle at top left, rgba(156, 220, 255, 0.09), transparent 36%),
        linear-gradient(180deg, #0d1113 0%, #0d1113 100%);
    color: var(--text);
    font-family: "Space Grotesk", sans-serif;
    line-height: 1.7;
    overflow-x: hidden;
}

::selection {
    background: rgba(156, 220, 255, 0.24);
    color: var(--text);
}

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

img {
    max-width: 100%;
    display: block;
    height: auto;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

button,
input,
textarea,
select {
    font: inherit;
}

.container {
    width: min(100% - 48px, var(--max));
    margin: 0 auto;
}

.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(13, 17, 19, 0.88);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-inner {
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    font-family: "Epilogue", sans-serif;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 28px;
    list-style: none;
}

.nav-links li a {
    position: relative;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.nav-links li a:hover,
.nav-links li a.active-link {
    color: var(--text);
}

.nav-links li a.active-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -10px;
    height: 2px;
    background: var(--primary);
    border-radius: 999px;
}

.btn {
    border: 1px solid transparent;
    padding: 14px 22px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    -webkit-tap-highlight-color: transparent;
    min-height: 44px; /* iOS touch target minimum */
}

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

.btn-primary {
    background: var(--primary);
    color: #0d1113;
}

.btn-primary:hover {
    opacity: 0.95;
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
}

.menu-btn {
    display: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 12px 16px;
    border-radius: 999px;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.menu-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-1px);
}

.menu-btn:active {
    transform: translateY(0);
}

.mobile-menu {
    display: none;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 20px 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.mobile-menu.open {
    display: block;
    max-height: 300px;
    padding: 20px 0 24px;
}

.mobile-menu ul {
    list-style: none;
    display: grid;
    gap: 14px;
}

.mobile-menu li a {
    color: var(--text);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    transition: color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    display: block;
    padding: 8px 0;
}

.mobile-menu li a:hover,
.mobile-menu li a:active {
    color: var(--primary);
}

.hero {
    padding: 112px 0 82px;
    position: relative;
    overflow: hidden;
    background-image: url("3d_animated__desigs_for_a_landing_page_called.gif");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(13, 17, 19, 0.82) 0%, rgba(13, 17, 19, 0.85) 50%, rgba(13, 17, 19, 0.96) 100%);
    pointer-events: none;
}

.hero > .container {
    position: relative;
    z-index: 1;
}

.kicker {
    display: inline-flex;
    margin-bottom: 24px;
    color: var(--primary);
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

h1,
h2,
h3,
h4 {
    font-family: "Epilogue", sans-serif;
    line-height: 1.02;
    letter-spacing: -0.03em;
    margin-bottom: 22px;
}

h1 {
    font-size: clamp(3.2rem, 6vw, 5.6rem);
    max-width: 12ch;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.4rem);
}

h3 {
    font-size: clamp(1.3rem, 2.5vw, 1.9rem);
}

.lead {
    max-width: 760px;
    font-size: 1.04rem;
    color: var(--muted);
}

.section {
    padding: 78px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.grid-12 {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 24px;
}

.card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    padding: 32px;
    border-radius: 28px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(12px);
}

.card-alt {
    background: rgba(255, 255, 255, 0.04);
}

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

.stat-num {
    font-family: "Epilogue", sans-serif;
    font-size: clamp(2rem, 4vw, 3.3rem);
    color: var(--text);
}

.mono {
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
}

.muted {
    color: var(--muted);
}

.footer {
    padding: 42px 0 64px;
}

.footer-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    flex-wrap: wrap;
    color: var(--muted);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 16px;
}

label {
    display: block;
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 10px;
    color: var(--muted);
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    padding: 16px 18px;
    border-radius: 18px;
    outline: none;
}

textarea {
    min-height: 160px;
    resize: vertical;
}

.card label {
    cursor: pointer;
}

.card label input {
    margin-right: 10px;
    accent-color: var(--primary);
}

.contact-popup-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 1000;
}

.contact-popup-backdrop.open {
    display: flex;
}

.contact-popup {
    width: min(560px, 100%);
    background: rgba(13, 17, 19, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 32px;
    border-radius: 30px;
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.35);
}

.contact-popup-title {
    font-family: "Epilogue", sans-serif;
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    line-height: 1.05;
    margin-bottom: 16px;
}

.contact-popup-text {
    color: var(--muted);
    margin-bottom: 22px;
}

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

.contact-popup-close {
    margin-top: 14px;
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4px 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    cursor: pointer;
    color: var(--text);
}

@media (max-width: 900px) {
    .nav-links,
    .nav-cta {
        display: none;
    }

    .menu-btn {
        display: inline-flex;
    }

    .grid-12 {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 18px;
    }

    .grid-12 > * {
        grid-column: span 6 !important;
    }

    .hero {
        padding: 70px 0 50px;
    }

    .lead {
        font-size: 1rem;
        line-height: 1.6;
    }

    .btn {
        width: 100%;
        min-height: 48px; /* Larger touch targets on tablets */
        font-size: 0.85rem;
    }

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

    .card {
        padding: 26px;
    }

    img {
        max-width: 100%;
        height: auto;
    }
}

    .stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .container {
        width: min(100% - 32px, var(--max));
    }
}

@media (max-width: 600px) {
    .container {
        width: min(100% - 24px, var(--max));
    }

    .nav-inner {
        flex-wrap: wrap;
        min-height: 72px;
        gap: 12px;
        padding: 16px 0;
    }

    .brand {
        width: 100%;
        text-align: center;
        margin-bottom: 8px;
    }

    .menu-btn {
        margin-left: auto;
    }

    h1 {
        font-size: clamp(2rem, 10vw, 3.2rem);
        line-height: 1.2;
    }

    h2 {
        font-size: clamp(1.4rem, 8vw, 2rem);
        line-height: 1.3;
    }

    h3 {
        font-size: 1.2rem;
        line-height: 1.4;
    }

    .hero {
        padding: 60px 0 40px;
    }

    .lead {
        font-size: 1.1rem;
        line-height: 1.5;
    }

    .btn {
        width: 100%;
        min-height: 50px; /* Even larger touch targets on phones */
        font-size: 0.9rem;
        padding: 16px 24px;
    }

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

    .footer-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .card {
        padding: 20px;
        margin-bottom: 16px;
    }

    .section {
        padding: 40px 0;
    }
}
