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

:root {
    --bg: #F6F7FB;
    --surface: #FFFFFF;
    --ink: #10142B;
    --ink-soft: #565C74;
    --ink-faint: #8A90A8;
    --primary: #2B4FE0;
    --primary-deep: #16214F;
    --mint: #0E9A78;
    --line: #E4E7F2;
    --line-strong: #D3D8EA;
    --shadow: 0 10px 30px rgba(16, 20, 43, 0.06);
    --shadow-lg: 0 24px 60px rgba(16, 20, 43, 0.10);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--ink);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Blueprint dot-grid background */
.bg-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.5;
    background-image: radial-gradient(circle, var(--line-strong) 1px, transparent 1px);
    background-size: 28px 28px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 1rem;
}

.eyebrow::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    display: inline-block;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.1rem 5%;
    background: rgba(246, 247, 251, 0.85);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid var(--line);
    animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

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

nav {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo img {
    display: block;
    height: 44px;
    width: auto;
}

.logo-word {
    font-family: 'Poppins', sans-serif;
    font-style: italic;
    font-weight: 600;
    font-size: 1.2rem;
    letter-spacing: -0.01em;
    color: #6B1A1D;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    gap: 2.4rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--ink-soft);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-cta {
    padding: 0.6rem 1.4rem !important;
    background: var(--ink);
    color: #fff !important;
    border-radius: 8px;
    font-size: 0.9rem !important;
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    background: var(--primary) !important;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--ink);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 5% 4rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.5rem, 5.2vw, 4rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    color: var(--ink);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-text h1 .accent-text {
    color: var(--primary);
}

.hero-text p {
    font-size: 1.15rem;
    color: var(--ink-soft);
    margin-bottom: 2.5rem;
    max-width: 560px;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.cta-button {
    display: inline-block;
    padding: 0.95rem 2.2rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    box-shadow: var(--shadow);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(43, 79, 224, 0.25);
    background: var(--primary-deep);
}

.cta-secondary {
    display: inline-block;
    padding: 0.95rem 2.2rem;
    background: var(--surface);
    color: var(--ink);
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    border: 1px solid var(--line-strong);
    transition: all 0.3s ease;
}

.cta-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Workflow rail — signature element */
.hero-visual {
    position: relative;
    animation: fadeIn 1s ease-out 0.8s both;
}

.rail-card {
    background: var(--surface);
    padding: 2.2rem;
    border-radius: 20px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
}

.rail-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.6rem;
}

.rail {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.rail-step {
    display: flex;
    gap: 1rem;
    position: relative;
    padding-bottom: 1.6rem;
}

.rail-step:last-child {
    padding-bottom: 0;
}

.rail-dot-col {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.rail-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    flex-shrink: 0;
    z-index: 1;
}

.rail-line {
    width: 2px;
    flex-grow: 1;
    background: var(--line-strong);
    margin-top: 4px;
}

.rail-step:last-child .rail-line {
    display: none;
}

.rail-step-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.98rem;
    color: var(--ink);
    margin-bottom: 0.2rem;
}

.rail-step-desc {
    font-size: 0.85rem;
    color: var(--ink-faint);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Section shared */
.services, .about, .products, .process, .industries, .contact {
    padding: 6rem 5%;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header.left {
    text-align: left;
    margin-bottom: 3rem;
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 4.2vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    color: var(--ink);
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--ink-soft);
    max-width: 620px;
    margin: 0 auto;
}

.section-header.left .section-subtitle {
    margin: 0;
}

/* Services Section */
.services-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: var(--surface);
    padding: 2.2rem;
    border-radius: 16px;
    border: 1px solid var(--line);
    transition: all 0.35s ease;
    position: relative;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 52px;
    height: 52px;
    background: rgba(43, 79, 224, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.4rem;
}

.service-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.service-card p {
    color: var(--ink-soft);
    line-height: 1.7;
    font-size: 0.96rem;
}

/* Process section */
.process {
    background: var(--surface);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.process-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

.process-step {
    position: relative;
    padding-top: 1rem;
}

.process-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--line-strong);
}

.process-step.is-first::before {
    background: linear-gradient(90deg, var(--primary), var(--line-strong));
}

.process-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 0.8rem;
    display: block;
}

.process-step h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.process-step p {
    font-size: 0.88rem;
    color: var(--ink-faint);
}

/* About Section */
.about-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    color: var(--ink);
}

.about-text p {
    color: var(--ink-soft);
    margin-bottom: 1.5rem;
    font-size: 1.02rem;
    line-height: 1.8;
}

.highlight-box {
    background: var(--surface);
    padding: 1.8rem;
    border-radius: 16px;
    border-left: 3px solid var(--primary);
    border-top: 1px solid var(--line);
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    margin-top: 2rem;
}

.features-list {
    list-style: none;
    display: grid;
    gap: 0.9rem;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.2rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: 0.96rem;
}

.features-list li::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--mint);
    flex-shrink: 0;
}

/* Products Section */
.products {
    background: var(--ink);
    color: #fff;
}

.products .section-title,
.products .eyebrow {
    color: #fff;
}

.products .eyebrow::before {
    background: var(--mint);
}

.products .eyebrow {
    color: #B9C2FF;
}

.products .section-subtitle {
    color: #A9AFC7;
}

.product-card {
    max-width: 1400px;
    margin: 0 auto;
    background: #171C36;
    border: 1px solid #2A3057;
    border-radius: 22px;
    padding: 3rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.product-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--mint);
    background: rgba(14, 154, 120, 0.12);
    padding: 0.35rem 0.8rem;
    border-radius: 20px;
    margin-bottom: 1.2rem;
    letter-spacing: 0.03em;
}

.product-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.9rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.product-card > div:first-child p {
    color: #A9AFC7;
    margin-bottom: 1.8rem;
    line-height: 1.7;
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.8rem;
}

.product-tag {
    font-size: 0.82rem;
    padding: 0.4rem 0.9rem;
    background: #232951;
    border-radius: 8px;
    color: #C7CCE6;
}

.product-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    padding: 0.85rem 1.8rem;
    background: var(--primary);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.product-link:hover {
    background: #4A6BF0;
    transform: translateY(-2px);
}

.product-modules {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;
}

.product-module {
    background: #10142B;
    border: 1px solid #2A3057;
    border-radius: 12px;
    padding: 1.1rem;
}

.product-module-icon {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.product-module h5 {
    font-family: 'Outfit', sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.product-module p {
    font-size: 0.78rem;
    color: #8A90B0;
    line-height: 1.5;
}

/* Industries Section */
.industries {
    background: var(--bg);
}

.industries-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.industry-pill {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 1.6rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--ink);
    transition: all 0.3s ease;
}

.industry-pill:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.industry-pill span {
    font-size: 1.1rem;
}

.trust-note {
    text-align: center;
    max-width: 640px;
    margin: 2.5rem auto 0;
    color: var(--ink-faint);
    font-size: 0.92rem;
}

/* Contact Section */
.contact {
    background: var(--surface);
    border-top: 1px solid var(--line);
}

.contact-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 4rem;
}

.contact-info h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1.4rem;
    font-weight: 700;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.1rem;
    padding: 1rem;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 12px;
}

.contact-icon {
    width: 38px;
    height: 38px;
    background: rgba(43, 79, 224, 0.08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item strong {
    font-size: 0.92rem;
}

.contact-item div div {
    font-size: 0.92rem;
    color: var(--ink-soft);
}

.contact-form {
    background: var(--bg);
    padding: 2.2rem;
    border-radius: 20px;
    border: 1px solid var(--line);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.form-group {
    margin-bottom: 1.4rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--ink);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    color: var(--ink);
    font-family: inherit;
    font-size: 0.96rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 110px;
}

.submit-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    text-align: center;
    display: block;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: var(--primary-deep);
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(43, 79, 224, 0.2);
}

/* Footer */
footer {
    background: var(--ink);
    padding: 2.4rem 5%;
    text-align: center;
}

footer p {
    color: #8A90B0;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 968px) {

    .hero-content,
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .product-card {
        grid-template-columns: 1fr;
    }

    .process-grid {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 2.5rem;
    }

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

    .nav-links {
        position: fixed;
        top: 76px;
        right: -100%;
        width: 280px;
        height: calc(100vh - 76px);
        background: var(--surface);
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem;
        transition: right 0.3s ease;
        border-left: 1px solid var(--line);
    }

    .nav-links.active {
        right: 0;
    }

    .menu-toggle {
        display: block;
    }

    .hero-visual {
        order: -1;
    }
}

@media (max-width: 640px) {
    header {
        padding: 1rem 5%;
    }

    .logo img {
        height: 34px;
    }

    .logo-word {
        font-size: 0.95rem;
    }

    .hero {
        padding: 6rem 5% 3rem;
    }

    .services, .about, .products, .process, .industries, .contact {
        padding: 3.5rem 5%;
    }

    .service-card {
        padding: 1.8rem;
    }

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

    .product-card {
        padding: 2rem;
    }

    .product-modules {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 420px) {
    .logo-word {
        display: none;
    }
}

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

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