:root {
    --bg-main: #050715;
    --bg-elevated: #0c1020;
    --bg-elevated-alt: #101528;
    --border-subtle: #1c2340;

    --text-main: #e5e7f0;
    --text-muted: #a1a5b7;

    --accent-magenta: #ff2c96;
    --accent-cyan: #35d7ff;
    --accent-soft: rgba(53, 215, 255, 0.12);
}

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

body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: radial-gradient(circle at top, #151a33 0, var(--bg-main) 55%);
    color: var(--text-main);
}

/* Header */

.site-header {
    border-bottom: 1px solid var(--border-subtle);
    background: radial-gradient(circle at top, #181f3a 0, #050715 55%);
}

.header-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 56px 20px 40px;
    text-align: center;
}

.logo {
    height: 90px;
    margin-bottom: 16px;
}

.site-header h1 {
    margin: 0 0 8px;
    font-size: 2.2rem;
    letter-spacing: 0.04em;
}

.tagline {
    margin: 0;
    font-size: 1rem;
    color: var(--text-muted);
}

/* Top navigation */

.site-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(5, 7, 21, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.home-layout .nav-inner {
    justify-content: flex-end;
}

.nav-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-main);
}

.nav-logo img {
    height: 28px;
    display: block;
}

.nav-brand {
    font-size: 0.9rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
}

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

.nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 8px 20px;
    border-radius: 999px;

    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;

    color: var(--text-main);
    border: 1px solid var(--accent-magenta);

    background: radial-gradient(circle at top left,
        rgba(255, 44, 150, 0.30),
        rgba(53, 215, 255, 0.16)
    );

    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;
}

.nav-link:hover {
    border-color: var(--accent-cyan);
    background: radial-gradient(circle at top left,
        rgba(53, 215, 255, 0.36),
        rgba(255, 44, 150, 0.28)
    );
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.55);
}

.nav-link.active {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    background: rgba(53, 215, 255, 0.10);
    box-shadow: 0 0 12px rgba(53, 215, 255, 0.25);
}


/* Sections */

.section {
    padding: 40px 20px 30px;
}

.section-inner {
    max-width: 960px;
    margin: 0 auto;
}

.section h2 {
    font-size: 1.6rem;
    margin: 0 0 10px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 600;
}

.section h2::before {
    content: "";
    width: 32px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent-magenta), var(--accent-cyan));
}

.section p {
    margin: 0;
    margin-top: 4px;
    line-height: 1.7;
    color: var(--text-muted);
}

/* Services */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.service-card {
    background: linear-gradient(145deg, var(--bg-elevated), var(--bg-elevated-alt));
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
    padding: 18px 18px 20px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
    transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
    text-decoration: none;
    display: block;
    color: inherit;
    cursor: pointer;
}

.service-card:link,
.service-card:visited,
.service-card:hover,
.service-card:active {
    text-decoration: none;
    color: inherit;
}

.service-card:hover h3,
.service-card:hover p {
    transition: text-shadow 0.2s ease;
    text-shadow: 0 0 6px rgba(255, 44, 150, 0.45), 0 0 12px rgba(255, 44, 150, 0.25);
}

.service-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right,
    rgba(255, 44, 150, 0.18),
    transparent 55%);
    opacity: 0;
    transition: opacity 0.22s ease;
    pointer-events: none;
}

.service-card h3 {
    margin: 0 0 8px;
    font-size: 1.1rem;
    font-weight: 600;
}

.service-card p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.service-card:hover {
    border-color: var(--accent-soft);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.6);
    transform: translateY(-3px);
}

.service-card:hover::before {
    opacity: 1;
}

/* CTA */

.section-cta {
    padding-top: 20px;
    padding-bottom: 60px;
}

.cta-inner {
    text-align: center;
    max-width: 720px;
}

.section-cta h2 {
    justify-content: center;
}

.section-cta h2::before {
    display: none;
}

.section-cta p {
    margin-top: 10px;
    margin-bottom: 20px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 26px;
    border-radius: 999px;
    border: 1px solid var(--accent-magenta);
    background: radial-gradient(circle at top left,
    rgba(255, 44, 150, 0.3),
    rgba(53, 215, 255, 0.16));
    color: var(--text-main);
    font-size: 0.98rem;
    font-weight: 500;
    text-decoration: none;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
    transition:
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.btn-primary:hover {
    border-color: var(--accent-cyan);
    background: radial-gradient(circle at top left,
    rgba(53, 215, 255, 0.36),
    rgba(255, 44, 150, 0.28));
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.55);
}

/* Footer */

.site-footer {
    border-top: 1px solid var(--border-subtle);
    padding: 16px 20px 18px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    background: #050612;
}

/* Responsive tweaks */

@media (max-width: 600px) {
    .header-inner {
    padding-top: 40px;
    padding-bottom: 28px;
    }

    .site-header h1 {
    font-size: 1.8rem;
    }

    .tagline {
    font-size: 0.95rem;
    }
}

/* Form page layout */

.form-page {
    min-height: calc(100vh - 140px); /* header + footer space */
}

.form-container {
    max-width: 960px;
}

.form-note {
    margin-top: 8px;
    margin-bottom: 18px;
}

.form-frame-wrapper {
    margin-top: 12px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    background: linear-gradient(145deg, var(--bg-elevated), var(--bg-elevated-alt));
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

/* Adjust height as needed; 80vh is a good starting point */
.form-frame {
    width: 100%;
    min-height: 80vh;
    border: none;
    background: transparent;
}

.form-fallback {
    margin-top: 14px;
    font-size: 0.9rem;
}

.form-fallback a {
    color: var(--accent-cyan);
    text-decoration: none;
}

.form-fallback a:hover {
    text-decoration: underline;
}
