/* ============================================================
   AI ProQuo — Main Stylesheet
   Computer Systems Design and Related Services
   ============================================================ */

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

:root {
    --color-deep: #0c1929;
    --color-slate: #1a2744;
    --color-navy: #162240;
    --color-cyan: #06b6d4;
    --color-cyan-dark: #0891b2;
    --color-cyan-dim: #0e7490;
    --color-gold: #d4a853;
    --color-gold-light: #e9c46a;
    --color-coral: #f43f5e;
    --color-white: #ffffff;
    --color-gray-50: #f8fafc;
    --color-gray-100: #f1f5f9;
    --color-gray-200: #e2e8f0;
    --color-gray-300: #cbd5e1;
    --color-gray-400: #94a3b8;
    --color-gray-500: #64748b;
    --color-gray-600: #475569;
    --color-gray-700: #334155;
    --color-gray-800: #1e293b;
    --color-gray-900: #0f172a;

    --font-sans: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'Cascadia Code', 'Fira Code', 'JetBrains Mono', 'Consolas', monospace;

    --max-width: 1200px;
    --header-height: 72px;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
    --shadow-cyan: 0 4px 20px rgba(6,182,212,0.15);

    --transition: 0.25s ease;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-gray-800);
    background: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

img, svg {
    display: block;
    max-width: 100%;
}

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

a:hover {
    color: var(--color-cyan-dim);
}

ul {
    list-style: none;
}

address {
    font-style: normal;
}

/* --- Typography --- */
.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-tag {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-cyan);
    background: rgba(6,182,212,0.08);
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.section-title {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--color-deep);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--color-gray-500);
    max-width: 600px;
    margin: 0 auto;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    transition: all var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
}

.btn-primary {
    background: var(--color-cyan);
    color: var(--color-white);
    border-color: var(--color-cyan);
}

.btn-primary:hover {
    background: var(--color-cyan-dark);
    border-color: var(--color-cyan-dark);
    color: var(--color-white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-cyan);
}

.btn-outline {
    background: transparent;
    color: var(--color-cyan);
    border-color: var(--color-cyan);
}

.btn-outline:hover {
    background: var(--color-cyan);
    color: var(--color-white);
    transform: translateY(-1px);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(12,25,41,0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: background var(--transition);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-white);
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.logo-mark {
    font-size: 1.4em;
    color: var(--color-cyan);
    line-height: 1;
}

.logo-text {
    color: var(--color-white);
}

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

.logo:hover .logo-mark {
    color: var(--color-gold-light);
}

.main-nav .nav-list {
    display: flex;
    gap: 8px;
}

.nav-link {
    display: inline-block;
    padding: 8px 16px;
    color: #c5c9ce;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.nav-link:hover,
.nav-link:focus-visible {
    color: var(--color-cyan);
    background: rgba(6,182,212,0.1);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.toggle-bar {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--color-white);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    min-height: 95vh;
    display: flex;
    align-items: center;
    background: linear-gradient(160deg, #080e1a 0%, #0c1929 30%, #112240 70%, #0a1628 100%);
    overflow: hidden;
    padding-top: var(--header-height);
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 50%, rgba(6,182,212,0.07) 0%, transparent 60%),
        radial-gradient(ellipse 60% 70% at 80% 30%, rgba(212,168,83,0.05) 0%, transparent 60%);
    pointer-events: none;
}

.hero-pattern::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.4;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
    padding: 80px 0 100px;
}

.hero-badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-gold-light);
    border: 1px solid rgba(212,168,83,0.3);
    padding: 8px 18px;
    border-radius: 20px;
    margin-bottom: 28px;
}

.hero-title {
    font-size: 3.6rem;
    font-weight: 900;
    color: var(--color-white);
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.highlight {
    color: var(--color-cyan);
    position: relative;
    white-space: nowrap;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--color-cyan);
    opacity: 0.25;
    border-radius: 2px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #b3b7bd;
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 580px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-actions .btn-outline {
    color: var(--color-white);
    border-color: rgba(255,255,255,0.25);
}

.hero-actions .btn-outline:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.4);
    color: var(--color-white);
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
    background: var(--color-deep);
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 40px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--color-cyan);
    line-height: 1;
    letter-spacing: -0.02em;
    display: inline-flex;
    align-items: flex-start;
}

.stat-plus {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--color-cyan);
    margin-left: 2px;
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: #8e9399;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-top: 8px;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services {
    padding: 100px 0;
    background: var(--color-white);
}

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

.service-card {
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-cyan), var(--color-cyan-dark));
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

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

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(6,182,212,0.06);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    color: var(--color-cyan-dark);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: var(--color-cyan);
    color: var(--color-white);
    transform: scale(1.05);
}

.service-icon svg {
    width: 32px;
    height: 32px;
}

.service-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-gray-900);
    margin-bottom: 10px;
    line-height: 1.3;
}

.service-desc {
    font-size: 0.9rem;
    color: var(--color-gray-500);
    line-height: 1.65;
}

/* ============================================================
   PROCESS
   ============================================================ */
.process {
    padding: 100px 0;
    background: var(--color-gray-50);
}

.process-timeline {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.process-step {
    display: flex;
    gap: 32px;
    padding: 32px 0;
    position: relative;
}

.process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 27px;
    top: 92px;
    bottom: -32px;
    width: 2px;
    background: var(--color-gray-300);
}

.step-marker {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--color-white);
    border: 2px solid var(--color-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    color: var(--color-cyan);
    z-index: 1;
    transition: all 0.3s ease;
}

.process-step:hover .step-marker {
    background: var(--color-cyan);
    color: var(--color-white);
    box-shadow: var(--shadow-cyan);
}

.step-content {
    flex: 1;
    padding-top: 8px;
}

.step-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-gray-900);
    margin-bottom: 8px;
}

.step-desc {
    font-size: 0.95rem;
    color: var(--color-gray-500);
    line-height: 1.65;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
    padding: 100px 0;
    background: var(--color-white);
}

.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text .section-tag {
    margin-bottom: 12px;
}

.about-text .section-title {
    margin-bottom: 20px;
}

.about-lead {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-gray-700);
    line-height: 1.6;
    margin-bottom: 16px;
}

.about-text p {
    font-size: 0.95rem;
    color: var(--color-gray-500);
    margin-bottom: 16px;
    line-height: 1.7;
}

.about-text .btn {
    margin-top: 8px;
}

.about-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-grid {
    position: relative;
    width: 340px;
    height: 340px;
}

.visual-node {
    position: absolute;
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: var(--color-white);
    border: 2px solid var(--color-gray-300);
}

.node-a { top: 0; left: 50%; transform: translateX(-50%); }
.node-b { top: 50%; right: 0; transform: translateY(-50%); }
.node-c { bottom: 0; left: 50%; transform: translateX(-50%); }
.node-d { top: 50%; left: 0; transform: translateY(-50%); }

.visual-edge {
    position: absolute;
    background: var(--color-gray-300);
}

.edge-1 { top: 28px; left: 50%; width: 160px; height: 2px; transform: rotate(45deg); transform-origin: left center; }
.edge-2 { top: 50%; right: 28px; width: 160px; height: 2px; transform: rotate(135deg); transform-origin: left center; }
.edge-3 { bottom: 28px; left: 50%; width: 160px; height: 2px; transform: rotate(225deg); transform-origin: left center; }
.edge-4 { top: 50%; left: 28px; width: 160px; height: 2px; transform: rotate(315deg); transform-origin: left center; }

/* ============================================================
   CTA / CONTACT
   ============================================================ */
.cta {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(160deg, #0a1628 0%, #112240 50%, #0c1929 100%);
    overflow: hidden;
}

.cta-pattern {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 70%, rgba(6,182,212,0.06) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(212,168,83,0.04) 0%, transparent 50%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.cta-title {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: 16px;
    line-height: 1.2;
}

.cta-subtitle {
    font-size: 1.1rem;
    color: #a5aab1;
    max-width: 560px;
    margin: 0 auto 48px;
    line-height: 1.6;
}

.contact-cards {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
    padding: 24px 32px;
    color: var(--color-white);
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 260px;
}

.contact-card:hover {
    background: rgba(6,182,212,0.08);
    border-color: rgba(6,182,212,0.3);
    transform: translateY(-2px);
    color: var(--color-white);
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: rgba(6,182,212,0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-cyan);
    flex-shrink: 0;
}

.contact-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.contact-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #757b82;
    margin-bottom: 4px;
}

.contact-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-white);
}

.physical-address {
    font-size: 0.85rem;
    color: #82888f;
    font-weight: 500;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--color-deep);
    color: #a5aab1;
    padding: 64px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 48px;
}

.footer-brand .logo-text {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.footer-tagline {
    margin-top: 8px;
    font-size: 0.85rem;
    line-height: 1.5;
}

.footer-org {
    margin-top: 4px;
    font-size: 0.8rem;
    color: #6a7077;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.footer-heading {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-white);
    margin-bottom: 16px;
}

.footer-nav ul li,
.footer-contact ul li {
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.footer-nav a {
    color: #8e9399;
}

.footer-nav a:hover {
    color: var(--color-cyan);
}

.footer-contact a {
    color: #8e9399;
}

.footer-contact a:hover {
    color: var(--color-cyan);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 20px 0;
    text-align: center;
    font-size: 0.8rem;
    color: #5d6269;
}

/* ============================================================
   PRIVACY & TERMS PAGES
   ============================================================ */
.legal-page {
    padding-top: calc(var(--header-height) + 48px);
    padding-bottom: 80px;
    background: var(--color-white);
}

.legal-header {
    background: linear-gradient(160deg, #080e1a 0%, #0c1929 40%, #112240 100%);
    color: var(--color-white);
    padding: 60px 0 48px;
    text-align: center;
    margin-bottom: 56px;
}

.legal-header .section-tag {
    color: var(--color-gold-light);
    background: rgba(212,168,83,0.1);
}

.legal-header .section-title {
    color: var(--color-white);
    font-size: 2.6rem;
    margin-bottom: 8px;
}

.legal-header .section-desc {
    color: #9a9fa6;
}

.legal-content {
    max-width: 780px;
    margin: 0 auto;
}

.legal-content h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-deep);
    margin-top: 40px;
    margin-bottom: 14px;
    padding-top: 24px;
    border-top: 1px solid var(--color-gray-200);
}

.legal-content h2:first-of-type {
    border-top: none;
    margin-top: 0;
    padding-top: 0;
}

.legal-content p {
    font-size: 0.95rem;
    color: var(--color-gray-600);
    line-height: 1.75;
    margin-bottom: 14px;
}

.legal-content ul {
    list-style: disc;
    padding-left: 24px;
    margin-bottom: 14px;
}

.legal-content ul li {
    font-size: 0.95rem;
    color: var(--color-gray-600);
    line-height: 1.7;
    margin-bottom: 6px;
}

.legal-content .effective-date {
    font-size: 0.9rem;
    color: var(--color-gray-400);
    font-weight: 600;
    margin-bottom: 32px;
}

.legal-content .last-updated {
    font-size: 0.85rem;
    color: var(--color-gray-400);
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--color-gray-200);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .about-visual {
        order: -1;
        max-width: 280px;
        margin: 0 auto;
    }
    .visual-grid {
        width: 260px;
        height: 260px;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.4rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    .cta-title {
        font-size: 1.8rem;
    }
    .contact-cards {
        flex-direction: column;
        align-items: center;
    }
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--color-slate);
        padding: 100px 32px 32px;
        transition: right 0.35s ease;
        box-shadow: -4px 0 20px rgba(0,0,0,0.3);
    }
    .main-nav.active {
        right: 0;
    }
    .main-nav .nav-list {
        flex-direction: column;
        gap: 4px;
    }
    .nav-link {
        display: block;
        padding: 14px 16px;
        font-size: 1rem;
        border-radius: var(--radius-sm);
    }
    .mobile-toggle {
        display: flex;
    }
    .mobile-toggle.active .toggle-bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .mobile-toggle.active .toggle-bar:nth-child(2) {
        opacity: 0;
    }
    .mobile-toggle.active .toggle-bar:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    .legal-content {
        padding: 0 16px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.9rem;
    }
    .hero-actions {
        flex-direction: column;
    }
    .hero-actions .btn {
        width: 100%;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .process-step {
        gap: 16px;
    }
    .step-marker {
        width: 44px;
        height: 44px;
        font-size: 0.85rem;
    }
    .process-step:not(:last-child)::after {
        left: 21px;
        top: 76px;
    }
}
