/* WebPi.AI - Agent-Native FinTech */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #3a3a4a;
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

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

/* ========== Typography ========== */
h1, h2, h3, h4 {
    color: #1a1a2e;
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.25rem); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
h4 { font-size: 1.1rem; }

.accent { color: #d63600; }

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

/* ========== Focus ========== */
:focus-visible {
    outline: 2px solid #d63600;
    outline-offset: 2px;
}

/* ========== Button ========== */
.btn {
    display: inline-block;
    padding: 14px 36px;
    background: #d63600;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 6px;
    letter-spacing: 0.02em;
    transition: background 0.2s, transform 0.2s;
}

.btn:hover {
    background: #b82e00;
    transform: translateY(-1px);
}

/* ========== Navigation ========== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    transition: background 0.3s, padding 0.3s, box-shadow 0.3s;
}

.nav.scrolled {
    background: #fff;
    padding: 10px 0;
    box-shadow: 0 1px 12px rgba(0,0,0,0.08);
}

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

.nav-logo img {
    height: 36px;
    width: auto;
}

.logo-dark { display: none; }
.nav.scrolled .logo-light { display: none; }
.nav.scrolled .logo-dark { display: block; }

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255,255,255,0.9);
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #fff;
}

.nav.scrolled .nav-links a {
    color: #3a3a4a;
}

.nav.scrolled .nav-links a:hover {
    color: #d63600;
}

/* Mobile toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: background 0.2s;
}

.nav.scrolled .nav-toggle span {
    background: #1a1a2e;
}

/* ========== Hero ========== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #0f0c29 0%, #1a1a2e 40%, #24243e 100%);
    color: #fff;
    padding: 120px 0 80px;
}

.hero h1 {
    color: #fff;
    margin-bottom: 0.25rem;
}

.hero-tagline {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    margin-bottom: 1.5rem;
}

.hero-sub {
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.65);
    max-width: 640px;
    margin-bottom: 1.5rem;
}

.hero-location {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.4);
    margin-bottom: 2rem;
}

/* ========== Hero-to-Content Transition ========== */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, transparent, #f8f9fb);
    pointer-events: none;
}

/* ========== Services / Cards ========== */
.services {
    padding: 100px 0;
    background: #f8f9fb;
}

.cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.card {
    background: #fff;
    border-radius: 12px;
    padding: 40px 32px;
    text-align: center;
    box-shadow: 0 2px 20px rgba(0,0,0,0.04);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    border-top: 3px solid transparent;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    border-top-color: #d63600;
}

.card-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
}

.card h3 {
    margin-bottom: 12px;
}

.card p {
    font-size: 0.925rem;
    color: #626272;
    line-height: 1.6;
}

/* ========== Detail Sections ========== */
.detail {
    padding: 80px 0;
}

.detail-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 100px;
}

.detail-row:last-child {
    margin-bottom: 0;
}

.detail-row.reverse .detail-text {
    order: 2;
}

.detail-row.reverse .detail-image {
    order: 1;
}

.detail-lead {
    font-size: 1.05rem;
    color: #626272;
    margin-bottom: 1rem;
}

.detail-text ul {
    margin-top: 1rem;
}

.detail-text li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 16px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.detail-text li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #d63600;
}

.detail-text li strong {
    color: #1a1a2e;
}

.detail-image {
    border-radius: 12px;
    overflow: hidden;
}

/* ========== Tech Stack ========== */
.tech {
    padding: 80px 0;
    background: #f8f9fb;
}

.tech-intro {
    text-align: center;
    font-size: 1.05rem;
    color: #626272;
    line-height: 1.7;
    max-width: 640px;
    margin: -1.5rem auto 3rem;
}

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

.tech-card {
    background: #fff;
    border-radius: 10px;
    padding: 28px 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    transition: transform 0.2s, box-shadow 0.2s;
}

.tech-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.tech-icon {
    font-size: 1.75rem;
    margin-bottom: 12px;
    display: block;
    line-height: 1;
    color: #d63600;
    font-family: "Segoe UI Symbol", "Apple Symbols", "Noto Sans Symbols 2", sans-serif;
}

.tech-card h4 {
    margin-bottom: 8px;
}

.tech-card p {
    font-size: 0.9rem;
    color: #626272;
    line-height: 1.6;
}

.tech-disclaimer {
    margin-top: 2.5rem;
    font-size: 0.78rem;
    color: #9a9aaa;
    text-align: center;
    line-height: 1.6;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

/* ========== Contact ========== */
.contact {
    padding: 80px 0;
    text-align: center;
}

.contact p {
    font-size: 1.05rem;
    color: #626272;
    margin-bottom: 1.5rem;
}

.contact-email {
    display: inline-block;
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    background: #d63600;
    padding: 14px 36px;
    border-radius: 6px;
    transition: background 0.2s, transform 0.2s;
}

.contact-email:hover {
    background: #b82e00;
    transform: translateY(-1px);
}


/* ========== Footer ========== */
.footer {
    background: #1a1a2e;
    color: rgba(255,255,255,0.6);
    padding: 60px 0 30px;
}

.footer-about {
    max-width: 560px;
    margin-bottom: 40px;
}

.footer-about h4 {
    color: #fff;
    margin-bottom: 12px;
}

.footer-about p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.5);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.35);
}

/* ========== Responsive ========== */
@media (max-width: 900px) {
    .detail-row {
        grid-template-columns: 1fr;
        gap: 32px;
        margin-bottom: 64px;
    }

    .detail-row.reverse .detail-text { order: 1; }
    .detail-row.reverse .detail-image { order: 2; }

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

    .cards {
        grid-template-columns: 1fr;
        max-width: none;
        margin: 0;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: #fff;
        padding: 16px 24px;
        gap: 0;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    }

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

    .nav-links a {
        color: #3a3a4a;
        padding: 12px 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-links li:last-child a {
        border-bottom: none;
    }

    .nav-links a:hover {
        color: #d63600;
    }

    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }

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