/* =============================================
   Chase Asia – unique design system
   Solid hex colors only. No rgba().
   ============================================= */
:root {
    --color-deep-navy: #001f3f;
    --color-royal: #003366;
    --color-accent: #ff7f2a;
    --color-accent-alt: #e66a1e;
    --color-light-bg: #f2f5f9;
    --color-white: #ffffff;
    --color-foreground: #1a1a2e;
    --color-mid: #2d3748;
    --color-border: #cbd5e1;
    --color-success: #2b9348;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --max-width: 1280px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-family);
    background: var(--color-light-bg);
    color: var(--color-foreground);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
img, svg { display: block; max-width: 100%; }
a { color: var(--color-royal); text-decoration: none; }
a:hover, a:focus { color: var(--color-accent); }
ul { list-style: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* skip link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--color-royal);
    color: var(--color-white);
    padding: 0.5rem 1rem;
    z-index: 100;
}
.skip-link:focus { top: 0; }

/* ===== NAVIGATION ===== */
.nav {
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 0.75rem 0;
}
.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
}
.nav-logo { display: flex; align-items: center; gap: 0.5rem; }
.logo-mark {
    background: var(--color-royal);
    color: var(--color-white);
    font-weight: 800;
    font-size: 1.5rem;
    line-height: 1;
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
}
.logo-text { font-weight: 700; font-size: 1.25rem; color: var(--color-foreground); }
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
}
.nav-toggle .bar {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--color-foreground);
    margin: 5px 0;
    transition: 0.3s;
    border-radius: 2px;
}
.nav-menu { display: flex; align-items: center; gap: 1.75rem; }
.nav-link {
    font-weight: 500;
    color: var(--color-mid);
    padding: 0.25rem 0;
    border-bottom: 2px solid transparent;
    transition: 0.2s;
}
.nav-link:hover, .nav-link:focus, .nav-link.active { border-bottom-color: var(--color-accent); color: var(--color-royal); }
.nav-cta {
    background: var(--color-royal);
    color: var(--color-white) !important;
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    border-bottom: none;
    font-weight: 600;
}
.nav-cta:hover { background: var(--color-accent); color: var(--color-white) !important; }

@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: var(--color-white);
        border-top: 1px solid var(--color-border);
        padding: 1.5rem;
        gap: 1.25rem;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    }
    .nav-menu.open { display: flex; }
    .nav-cta { width: fit-content; }
}

/* ===== HERO ===== */
.hero {
    position: relative;
    background: var(--color-deep-navy);
    color: var(--color-white);
    overflow: hidden;
    padding: 5rem 1.5rem 4rem;
}
.hero-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 2;
}
.hero-content { max-width: 600px; }
.hero-tag {
    display: inline-block;
    background: var(--color-accent);
    color: var(--color-foreground);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.35rem 0.9rem;
    border-radius: 2rem;
    margin-bottom: 1.5rem;
}
.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.25rem;
}
.hero-title .accent { color: var(--color-accent); }
.hero-sub {
    font-size: 1.15rem;
    color: #d0d9e6;
    margin-bottom: 2rem;
    max-width: 480px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.btn {
    display: inline-block;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.75rem 1.75rem;
    border-radius: 2rem;
    transition: 0.2s;
    text-align: center;
    border: 2px solid transparent;
    cursor: pointer;
}
.btn-primary {
    background: var(--color-accent);
    color: var(--color-foreground);
    border-color: var(--color-accent);
}
.btn-primary:hover {
    background: var(--color-accent-alt);
    border-color: var(--color-accent-alt);
    color: var(--color-foreground);
}
.btn-outline {
    background: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}
.btn-outline:hover {
    background: var(--color-white);
    color: var(--color-foreground);
}
.btn-full { width: 100%; }

/* hero visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero-chip {
    width: 280px;
    height: 280px;
    background: linear-gradient(145deg, #002a5c, #001a3a);
    border-radius: 40% 60% 35% 65% / 50% 40% 60% 50%;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border: 1px solid #1a4c7a;
    animation: chipFloat 6s ease-in-out infinite;
}
@keyframes chipFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(2deg); }
}
.chip-orb {
    position: absolute;
    width: 80px; height: 80px;
    background: var(--color-accent);
    border-radius: 50%;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.25;
    filter: blur(24px);
}
.chip-lines {
    position: absolute;
    inset: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 30px;
}
.chip-lines span {
    display: block;
    width: 20px;
    height: 2px;
    background: #3f7cb0;
    opacity: 0.6;
    border-radius: 2px;
}
.chip-radial {
    position: absolute;
    inset: 30px;
    border: 1px dashed #3f7cb0;
    border-radius: 50%;
    opacity: 0.3;
    animation: spin 20s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hero-bg-shapes .shape {
    position: absolute;
    border-radius: 50%;
    z-index: 0;
    opacity: 0.08;
}
.shape-1 { width: 600px; height: 600px; background: var(--color-accent); top: -200px; right: -200px; }
.shape-2 { width: 400px; height: 400px; background: var(--color-royal); bottom: -100px; left: -100px; }
.shape-3 { width: 200px; height: 200px; background: var(--color-white); top: 40%; right: 10%; }

@media (max-width: 768px) {
    .hero { padding: 3rem 1rem 2.5rem; }
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-content { max-width: 100%; }
    .hero-sub { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero-visual { display: none; }
    .hero-title { font-size: 2.4rem; }
}

/* ===== STATS ===== */
.stats-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem;
    padding: 3.5rem 1.5rem;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
}
.stat-block { text-align: center; }
.stat-number {
    display: block;
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--color-royal);
    line-height: 1.1;
}
.stat-label { font-size: 1rem; color: var(--color-mid); font-weight: 500; }

/* ===== SECTIONS ===== */
.section { padding: 4rem 1.5rem; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { font-size: 2.2rem; font-weight: 800; color: var(--color-foreground); }
.section-header h2 .accent { color: var(--color-accent); }
.section-header p { color: var(--color-mid); max-width: 540px; margin: 0.75rem auto 0; }

/* SERVICES */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}
.service-card {
    background: var(--color-white);
    padding: 2rem 1.5rem;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    transition: 0.25s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}
.service-card:hover { transform: translateY(-6px); border-color: var(--color-accent); box-shadow: 0 12px 24px rgba(0,51,102,0.08); }
.card-icon { font-size: 2.5rem; color: var(--color-accent); margin-bottom: 1rem; font-weight: 300; }
.service-card h3 { font-size: 1.15rem; margin-bottom: 0.75rem; color: var(--color-royal); }
.service-card p { font-size: 0.95rem; color: var(--color-mid); }

/* WHY */
.why { background: var(--color-white); }
.why-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.why-text h2 { font-size: 2rem; font-weight: 800; margin-bottom: 1.25rem; }
.why-text h2 .accent { color: var(--color-accent); }
.why-text p { color: var(--color-mid); margin-bottom: 1.5rem; max-width: 480px; }
.why-list li {
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: flex;
    gap: 0.5rem;
    color: var(--color-foreground);
}
.why-list li span { color: var(--color-accent); }
.why-graphic { display: flex; justify-content: center; }
.hex-panel {
    width: 220px;
    height: 220px;
    background: var(--color-royal);
    clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0% 50%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hex-inner {
    width: 80%;
    height: 80%;
    background: var(--color-accent);
    clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0% 50%);
    opacity: 0.3;
}
.hex-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--color-accent);
    border-radius: 50%;
}
.dot1 { top: 12%; left: 30%; } .dot2 { top: 12%; right: 30%; } .dot3 { top: 48%; left: 5%; }
.dot4 { top: 48%; right: 5%; } .dot5 { bottom: 12%; left: 30%; } .dot6 { bottom: 12%; right: 30%; }

@media (max-width: 768px) {
    .why-layout { grid-template-columns: 1fr; text-align: center; }
    .why-text p { margin: 0 auto 1.5rem; }
    .why-list { display: inline-block; text-align: left; }
    .why-graphic { margin-top: 2rem; }
}

/* ===== CONTACT ===== */
.contact { background: var(--color-deep-navy); color: var(--color-white); }
.contact-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}
.contact-info h2 { font-size: 2rem; font-weight: 800; margin-bottom: 1rem; }
.contact-info p { margin-bottom: 1.5rem; color: #cbd5e1; }
.contact-info address { font-style: normal; line-height: 1.8; color: #e2e8f0; }
.contact-info a { color: var(--color-accent); font-weight: 500; }
.contact-info a:hover { color: var(--color-white); }

.contact-form { background: var(--color-white); padding: 2rem; border-radius: 1rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: 0.35rem; color: var(--color-foreground); font-size: 0.9rem; }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
    font-family: var(--font-family);
    font-size: 1rem;
    background: var(--color-white);
    transition: 0.2s;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(255,127,42,0.2);
}
.form-note { font-size: 0.85rem; color: var(--color-mid); text-align: center; margin-top: 0.75rem; }

@media (max-width: 768px) {
    .contact-inner { grid-template-columns: 1fr; }
}

/* ===== PAGE CONTENT (privacy + terms) ===== */
.page-content { background: var(--color-white); min-height: 60vh; }
.content-block {
    max-width: 800px;
    margin: 0 auto;
    background: var(--color-white);
    padding: 2rem 0;
}
.content-block h1 { font-size: 2.2rem; margin-bottom: 0.5rem; color: var(--color-royal); }
.content-block h2 { font-size: 1.4rem; margin: 2rem 0 0.5rem; color: var(--color-foreground); }
.content-block p, .content-block li { font-size: 1.05rem; line-height: 1.7; color: var(--color-mid); }
.content-block ul { margin: 0.75rem 0 1rem 1.5rem; list-style: disc; }
.content-block ul li { margin-bottom: 0.25rem; }

/* ===== FOOTER ===== */
.footer {
    background: var(--color-foreground);
    color: #b0b8c4;
    padding: 2rem 1.5rem;
}
.footer-layout {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.footer-brand { display: flex; align-items: center; gap: 1rem; }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a { color: #b0b8c4; font-weight: 500; }
.footer-links a:hover { color: var(--color-accent); }

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
    .hero-title { font-size: 2rem; }
    .stats-section { gap: 1.5rem; padding: 2rem 1rem; }
    .stat-number { font-size: 2rem; }
}

/* ===== ANIMATIONS (scroll reveal via JS) ===== */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}