/* ============================================
   SynXCon — Design System
   Palette: Navy / Slate / Silver
   Fonts: DM Sans (primary) + Cormorant Garamond (accent only)
   ============================================ */

:root {
    /* Navy */
    --navy-950: #080E1A;
    --navy-900: #0C1829;
    --navy-800: #132140;
    --navy-700: #1B2D52;

    /* Slate */
    --slate-600: #475569;
    --slate-500: #64748B;
    --slate-400: #8392A7;

    /* Silver */
    --silver-300: #B0BEC9;
    --silver-200: #CBD5E1;
    --silver-100: #E2E8F0;
    --silver-50: #F1F5F9;

    /* Accent — Ice blue */
    --accent: #7EA8CB;
    --accent-light: #A3C4DD;

    /* Semantic */
    --bg: var(--navy-950);
    --surface: var(--navy-900);
    --surface-raised: var(--navy-800);
    --border: rgba(203, 213, 225, 0.07);
    --border-hover: rgba(203, 213, 225, 0.14);
    --text-primary: var(--silver-100);
    --text-secondary: var(--slate-400);
    --text-muted: var(--slate-500);

    /* Typography */
    --font-primary: 'DM Sans', system-ui, -apple-system, sans-serif;
    --font-accent: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;

    /* Spacing — generous for luxury feel */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 7rem;
    --space-5xl: 9rem;

    /* Effects */
    --radius-sm: 4px;
    --radius-md: 8px;
    --transition: 200ms cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* ---- Reset ---- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

body {
    font-family: var(--font-primary);
    background-color: var(--bg);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ---- Focus ---- */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ---- Container ---- */
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

/* ---- Typography ---- */
h1, h2, h3, h4 {
    font-family: var(--font-primary);
    color: var(--text-primary);
}

h1 {
    font-size: clamp(2.5rem, 5.5vw, 4rem);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.025em;
}

h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-md);
}

h2 em {
    font-family: var(--font-accent);
    font-style: italic;
    font-weight: 400;
    letter-spacing: 0;
}

h3 {
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.25;
    margin-bottom: var(--space-sm);
}

h4 {
    font-size: 1.0625rem;
    font-weight: 500;
    line-height: 1.3;
    color: var(--silver-200);
}

p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.7;
}

.text-silver {
    color: var(--silver-300);
}

/* ---- Section ---- */
.section {
    padding: var(--space-5xl) 0;
}

.section-header {
    text-align: center;
    max-width: 560px;
    margin: 0 auto var(--space-3xl);
}

.section-header p {
    margin-top: var(--space-sm);
}

.section-label {
    font-family: var(--font-primary);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: var(--space-sm);
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8125rem 1.75rem;
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 0.02em;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--silver-200);
    color: var(--navy-950);
    border-color: var(--silver-200);
}

.btn-primary:hover {
    background: var(--silver-50);
    border-color: var(--silver-50);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(226, 232, 240, 0.12);
}

.btn-secondary {
    background: transparent;
    color: var(--silver-300);
    border-color: var(--border-hover);
}

.btn-secondary:hover {
    border-color: var(--slate-400);
    color: var(--silver-50);
    transform: translateY(-1px);
}

.btn-nav {
    padding: 0.5rem 1.25rem;
    font-size: 0.8125rem;
    background: transparent;
    color: var(--silver-300);
    border-color: var(--border-hover);
    border-radius: var(--radius-sm);
}

.btn-nav:hover {
    border-color: var(--accent);
    color: var(--accent-light);
}

/* ---- Navbar ---- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: var(--space-lg) 0;
    transition: padding var(--transition), background var(--transition);
    background: transparent;
}

.navbar.scrolled {
    padding: var(--space-md) 0;
    background: rgba(8, 14, 26, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-primary);
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    color: var(--silver-100);
}

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

.nav-links {
    display: flex;
    gap: var(--space-xl);
    align-items: center;
}

.nav-links li a {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 0.8125rem;
    color: var(--slate-400);
    letter-spacing: 0.02em;
}

.nav-links li a:not(.btn):hover {
    color: var(--silver-100);
}

/* ---- Nav Toggle (Mobile) ---- */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle-bar {
    display: block;
    width: 20px;
    height: 1.5px;
    background: var(--silver-200);
    border-radius: 1px;
    transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* ---- Hero ---- */
.hero {
    position: relative;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    padding-top: 6rem;
    padding-bottom: var(--space-4xl);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 55% 45% at 10% 15%, rgba(19, 33, 64, 0.5) 0%, transparent 70%);
    z-index: -1;
}

.hero-content {
    max-width: 680px;
}

.hero-tagline {
    font-family: var(--font-primary);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: var(--space-xl);
}

.hero h1 {
    margin-bottom: var(--space-lg);
}

.hero-accent-line {
    font-family: var(--font-accent);
    font-size: clamp(1.375rem, 2.5vw, 1.75rem);
    color: var(--silver-300);
    margin-bottom: var(--space-lg);
}

.hero-accent-line em {
    font-weight: 300;
    font-style: italic;
}

.hero-sub {
    font-size: 1rem;
    max-width: 520px;
    margin-bottom: var(--space-2xl);
    color: var(--slate-400);
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
}

/* ---- Services ---- */
.services {
    border-top: 1px solid var(--border);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-2xl) var(--space-xl);
    transition: border-color var(--transition), transform var(--transition);
}

.card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.card-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--navy-800);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
}

.card h3 {
    color: var(--silver-100);
}

.card p {
    font-size: 0.875rem;
    color: var(--slate-400);
    margin-bottom: 0;
    line-height: 1.7;
}

/* ---- Scope (Full Lifecycle Grid) ---- */
.scope {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.scope-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg) var(--space-xl);
}

.scope-item {
    padding: var(--space-lg) 0;
    border-top: 1px solid var(--border);
}

.scope-num {
    font-family: var(--font-accent);
    font-size: 2rem;
    font-weight: 300;
    color: var(--navy-700);
    letter-spacing: -0.02em;
    display: block;
    line-height: 1;
    margin-bottom: var(--space-md);
}

.scope-item h4 {
    margin-bottom: var(--space-xs);
}

.scope-item p {
    font-size: 0.875rem;
    color: var(--slate-500);
    margin-bottom: 0;
    line-height: 1.7;
}

/* ---- Process (Horizontal Steps) ---- */
.process {
    border-bottom: 1px solid var(--border);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    max-width: 860px;
    margin: 0 auto;
}

.step {
    text-align: center;
    padding: 0 var(--space-xl);
}

.step-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-xl);
}

.step-line {
    flex: 1;
    height: 1px;
    background: var(--border-hover);
}

.step:first-child .step-line:first-child,
.step:last-child .step-line:last-child {
    background: transparent;
}

.step-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
    margin: 0 var(--space-sm);
}

.step-content h4 {
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: var(--space-sm);
}

.step-content p {
    font-size: 0.875rem;
    color: var(--slate-400);
    margin-bottom: 0;
    line-height: 1.7;
}

/* ---- Contact ---- */
.contact {
    background: var(--bg);
}

.contact-box {
    max-width: 580px;
    margin: 0 auto;
    text-align: center;
}

.contact-box h2 {
    margin-bottom: var(--space-sm);
}

.contact-box > p {
    margin-bottom: var(--space-2xl);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    text-align: left;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-family: var(--font-primary);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--slate-500);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

input,
textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 0.9375rem;
    transition: border-color var(--transition);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
}

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

.btn-submit {
    margin-top: var(--space-sm);
    align-self: flex-start;
}

.btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-submit.success {
    background: #3B8268;
    border-color: #3B8268;
    color: #fff;
}

/* ---- Footer ---- */
.footer {
    padding: var(--space-3xl) 0 var(--space-xl);
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-xl);
}

.footer-brand p {
    font-size: 0.8125rem;
    color: var(--slate-600);
    margin-top: var(--space-sm);
    margin-bottom: 0;
}

.footer-links {
    display: flex;
    gap: var(--space-xl);
}

.footer-links a {
    font-family: var(--font-primary);
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--slate-500);
    letter-spacing: 0.02em;
}

.footer-links a:hover {
    color: var(--silver-200);
}

.copyright {
    width: 100%;
    font-size: 0.75rem;
    color: var(--slate-600);
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border);
}

/* ---- Animations ---- */
.fade-in-up {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .services-grid,
    .scope-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-steps {
        grid-template-columns: 1fr;
        max-width: 380px;
        gap: var(--space-xl);
    }

    .step {
        text-align: left;
        padding: 0;
    }

    .step-marker {
        justify-content: flex-start;
    }

    .step-line {
        display: none;
    }

    .step-dot {
        margin: 0 var(--space-md) 0 0;
    }
}

@media (max-width: 640px) {
    :root {
        --space-4xl: 4rem;
        --space-5xl: 5rem;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(8, 14, 26, 0.97);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        padding: var(--space-lg) var(--space-xl);
        gap: var(--space-md);
        border-bottom: 1px solid var(--border);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links li a {
        font-size: 0.9375rem;
        padding: var(--space-sm) 0;
    }

    .hero {
        min-height: auto;
        padding-top: 7rem;
        padding-bottom: var(--space-4xl);
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

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

    .services-grid,
    .scope-grid {
        grid-template-columns: 1fr;
    }

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

    .footer-content {
        flex-direction: column;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: var(--space-lg);
    }
}
