/* ============================================
   Amteka - Torq-Inspired Design
   Clean, minimalist, professional
   ============================================ */

/* --- Reset & Base --- */

:root {
    --banner-h: 44px;
}

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

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1e293b;
    background: #ffffff;
}

a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #1d4ed8;
}

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

/* --- Layout --- */

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Announcement Banner --- */

.site-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    height: var(--banner-h);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    background: #2563eb;
    text-align: center;
}

.site-banner p {
    font-size: 0.875rem;
    font-weight: 500;
    color: #ffffff;
}

.site-banner a {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 600;
}

.site-banner a:hover {
    color: #e0ecff;
}

/* --- Navigation --- */

.site-header {
    position: fixed;
    top: var(--banner-h);
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease, padding 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.08);
}

.nav-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    transition: height 0.3s ease;
}

.site-header.scrolled .nav-container {
    height: 60px;
}

.nav-logo img {
    height: 32px;
    width: auto;
    display: block;
}

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

.nav-links li a {
    display: inline-block;
    padding: 8px 18px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #475569;
    border-radius: 8px;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-links li a:hover {
    color: #1e293b;
    background: #f1f5f9;
}

.nav-cta {
    background: #2563eb !important;
    color: #ffffff !important;
}

.nav-cta:hover {
    background: #1d4ed8 !important;
    color: #ffffff !important;
}

/* Mobile toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.mobile-toggle:hover {
    background: #f1f5f9;
}

.mobile-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: #475569;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* --- Hero --- */

.hero {
    position: relative;
    padding: 180px 0 100px;
    overflow: hidden;
    background: #192f44;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(
            160deg,
            rgba(25, 47, 68, 0.97) 0%,
            rgba(25, 47, 68, 0.92) 35%,
            rgba(37, 99, 235, 0.15) 100%
        ),
        url("../code_background.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

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

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #93c5fd;
    background: rgba(37, 99, 235, 0.15);
    border: 1px solid rgba(37, 99, 235, 0.25);
    border-radius: 100px;
    margin-bottom: 32px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #ffffff;
    max-width: 780px;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.15rem;
    font-weight: 400;
    line-height: 1.75;
    color: #cbd5e1;
    background: rgba(37, 99, 235, 0.15);
    max-width: 640px;
    margin-bottom: 56px;
}

/* Hero entry-point cards */
.hero-cards {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #ffffff;
    text-decoration: none;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.hero-card:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    color: #ffffff;
}

.hero-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(37, 99, 235, 0.2);
    color: #93c5fd;
    flex-shrink: 0;
}

.hero-card-text {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-card-title {
    font-size: 0.95rem;
    font-weight: 600;
}

.hero-card-arrow {
    font-size: 1.1rem;
    opacity: 0.6;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.hero-card:hover .hero-card-arrow {
    opacity: 1;
    transform: translateX(3px);
}

/* --- Sections --- */

.section {
    padding: 120px 0;
}

.section-white {
    background: #ffffff;
}

.section-gray {
    background: #f8fafc;
}

.section-dark {
    background: #192f44;
    color: #ffffff;
}

.section-header {
    margin-bottom: 48px;
}

.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #2563eb;
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: 2.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: #0f172a;
}

.section-header-light .section-label {
    color: #93c5fd;
}

.section-header-light h2 {
    color: #ffffff;
}

/* --- Solutions Grid --- */

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.solution-card {
    padding: 32px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.solution-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.solution-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    margin-bottom: 20px;
}

.solution-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
}

.solution-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #475569;
}

/* --- Platform layout --- */

.platform-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.platform-text {
    max-width: 720px;
}

.platform-infographic {
    position: sticky;
    top: 96px;
}

.platform-infographic img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

/* --- Platform text / About content --- */

.platform-text,
.about-content {
    max-width: 720px;
}

.platform-text p,
.about-content p {
    font-size: 1.1rem;
    line-height: 1.85;
    color: #475569;
    margin-bottom: 24px;
}

.platform-text p:last-child,
.about-content p:last-child {
    margin-bottom: 0;
}

.platform-text a {
    color: #2563eb;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.platform-text a:hover {
    color: #1d4ed8;
}

.platform-text strong {
    color: #1e293b;
    font-weight: 600;
}

/* --- Image modal --- */

.platform-infographic img {
    cursor: zoom-in;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.modal-open {
    opacity: 1;
    pointer-events: all;
}

.modal-overlay img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 8px 48px rgba(0, 0, 0, 0.4);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 2rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    line-height: 1;
}

.modal-close:hover {
    opacity: 1;
}

/* --- Contact --- */

.contact-content {
    max-width: 560px;
}

.contact-content p {
    font-size: 1.15rem;
    line-height: 1.75;
    color: #cbd5e1;
    margin-bottom: 32px;
}

.contact-email {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 1.05rem;
    font-weight: 600;
    color: #ffffff;
    background: #2563eb;
    border-radius: 12px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.contact-email:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    color: #ffffff;
}

/* --- Footer --- */

.site-footer {
    background: #0f1c28;
    padding: 48px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-logo {
    height: 24px;
    width: auto;
    opacity: 0.7;
}

.footer-tagline {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

.footer-contact a {
    font-size: 0.9rem;
    color: #94a3b8;
    transition: color 0.2s ease;
}

.footer-contact a:hover {
    color: #e2e8f0;
}

.footer-copy p {
    font-size: 0.8rem;
    color: #475569;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1024px) {
    .hero h1 {
        font-size: 2.75rem;
    }

    .section-header h2 {
        font-size: 2.25rem;
    }

    .section {
        padding: 96px 0;
    }

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

    .platform-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .platform-infographic {
        position: static;
    }
}

@media (max-width: 768px) {
    /* Nav */
    .mobile-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: calc(72px + var(--banner-h));
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        padding: 16px 24px 24px;
        gap: 4px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
        transform: translateY(-20px);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .nav-links.nav-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-links li a {
        display: block;
        padding: 12px 16px;
        font-size: 1rem;
        border-radius: 10px;
    }

    .nav-cta {
        text-align: center;
        margin-top: 4px;
    }

    .site-header.scrolled .nav-links {
        top: calc(60px + var(--banner-h));
    }

    /* Hero */
    .hero {
        padding: 140px 0 80px;
    }

    .hero h1 {
        font-size: 2.15rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 40px;
    }

    .hero-cards {
        flex-direction: column;
    }

    .hero-card {
        width: 100%;
    }

    /* Sections */
    .section {
        padding: 72px 0;
    }

    .section-header {
        margin-bottom: 32px;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    /* Content sections */
    .approach-content p,
    .ignition-content p,
    .about-content p {
        font-size: 1rem;
    }

    /* Footer */
    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.75rem;
    }

    .hero-badge {
        font-size: 0.7rem;
        padding: 5px 12px;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .contact-email {
        width: 100%;
        justify-content: center;
    }
}
