/*
 * LCE Online Securities — Obsidian Blue Theme
 * Aesthetic: Midnight Signal — deep-ocean operations, electric blue on void black
 * Typography: DM Serif Display (headings) + Outfit (body)
 */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --bg-primary: #080c14;
    --bg-surface: #0e1420;
    --bg-surface-2: #141c2c;
    --bg-surface-3: #1a2436;

    --accent: #4a8fd9;
    --accent-dim: rgba(74,143,217, 0.08);
    --accent-glow: rgba(74,143,217, 0.05);
    --accent-hover: #5da0e8;

    --text-primary: #dce4f0;
    --text-secondary: #8a9ab4;
    --text-muted: #556580;

    --border: rgba(74,143,217, 0.22);
    --border-subtle: rgba(255, 255, 255, 0.05);

    --font-display: 'DM Serif Display', serif;
    --font-body: 'Outfit', sans-serif;

    --radius: 6px;
    --radius-lg: 12px;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --transition: 0.35s var(--ease);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 200px;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 28px; }
section { padding: 120px 0; position: relative; }

.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--text-primary); line-height: 1.15; font-weight: 400; }
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.2rem; }

.section-label { display: inline-flex; align-items: center; gap: 12px; font-size: 0.65rem; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: var(--accent); margin-bottom: 20px; }
.section-label::before { content: ''; width: 24px; height: 1px; background: var(--accent); }
.section-header { max-width: 600px; margin-bottom: 64px; }
.section-header.centered { text-align: center; margin-left: auto; margin-right: auto; }
.section-header.centered .section-label { justify-content: center; }
.section-header.centered .section-label::before { display: none; }
.section-header p { margin-top: 18px; font-size: 1.05rem; font-weight: 300; color: var(--text-muted); line-height: 1.8; }

header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 24px 0; transition: background 0.4s, padding 0.4s, box-shadow 0.4s; }
header.scrolled { background: rgba(8, 12, 20, 0.92); backdrop-filter: blur(24px) saturate(1.2); padding: 14px 0; box-shadow: 0 1px 0 rgba(255,255,255,0.05), 0 0 40px rgba(0,0,0,0.3); }
header nav { display: flex; align-items: center; justify-content: space-between; }

.logo { font-family: var(--font-display); font-size: 1.15rem; color: var(--text-primary); display: flex; align-items: center; gap: 12px; letter-spacing: 0.01em; }
.logo svg { width: 30px; height: 30px; transition: transform var(--transition); }
.logo:hover svg { transform: scale(1.08); }

.nav-links { display: flex; align-items: center; gap: 36px; list-style: none; }
.nav-links a { font-size: 0.8rem; font-weight: 400; color: var(--text-muted); transition: color var(--transition); letter-spacing: 0.04em; position: relative; }
.nav-links li:not(:last-child) a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 1px; background: var(--accent); transition: width var(--transition); }
.nav-links li:not(:last-child) a:hover::after { width: 100%; }
.nav-links a:hover { color: var(--text-primary); }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 24px; font-family: var(--font-body); font-size: 0.8rem; font-weight: 500; border-radius: var(--radius); border: none; cursor: pointer; transition: all var(--transition); letter-spacing: 0.04em; }
.btn-primary { background: var(--accent); color: #080c14; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(74,143,217, 0.25); }
.btn-secondary { background: transparent; color: var(--text-primary); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-lg { padding: 14px 36px; font-size: 0.85rem; }

.mobile-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.mobile-toggle span { width: 22px; height: 1.5px; background: var(--text-primary); transition: all var(--transition); }

.hero { min-height: 100vh; display: flex; align-items: center; position: relative; overflow: hidden; padding-top: 80px; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 15% 45%, rgba(74,143,217, 0.07) 0%, transparent 55%), radial-gradient(ellipse at 85% 15%, rgba(74,143,217, 0.04) 0%, transparent 45%), radial-gradient(ellipse at 50% 90%, rgba(74,143,217, 0.03) 0%, transparent 50%); pointer-events: none; }
.hero::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(74,143,217, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(74,143,217, 0.04) 1px, transparent 1px); background-size: 80px 80px; mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%); pointer-events: none; }

.hero-scan { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-scan::before { content: ''; position: absolute; top: -100%; left: -50%; width: 200%; height: 2px; background: linear-gradient(90deg, transparent, rgba(74,143,217, 0.3), transparent); transform: rotate(25deg); animation: scanLine 6s ease-in-out infinite; }
@keyframes scanLine { 0% { top: -10%; } 100% { top: 110%; } }

.hero .container { position: relative; z-index: 1; }
.hero-content { max-width: 700px; }

.hero-badge { display: inline-flex; align-items: center; gap: 10px; font-size: 0.7rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin-bottom: 36px; padding: 8px 18px; border: 1px solid var(--border); border-radius: 2px; background: var(--bg-surface-2); opacity: 0; animation: fadeUp 0.7s var(--ease) 0.2s forwards; }
.hero-badge-dot { width: 5px; height: 5px; background: var(--accent); border-radius: 50%; animation: pulse 2.5s ease-in-out infinite; }
.hero h1 { margin-bottom: 28px; opacity: 0; animation: fadeUp 0.7s var(--ease) 0.35s forwards; }
.hero h1 .highlight { color: var(--accent); position: relative; }
.hero-description { font-size: 1.05rem; font-weight: 300; line-height: 1.9; color: var(--text-muted); max-width: 520px; margin-bottom: 44px; opacity: 0; animation: fadeUp 0.7s var(--ease) 0.5s forwards; }
.btn-group { display: flex; gap: 16px; flex-wrap: wrap; opacity: 0; animation: fadeUp 0.7s var(--ease) 0.65s forwards; }

.hero-stats { display: flex; gap: 56px; margin-top: 72px; padding-top: 40px; border-top: 1px solid var(--border-subtle); opacity: 0; animation: fadeUp 0.7s var(--ease) 0.8s forwards; }
.hero-stat-number { display: block; font-family: var(--font-display); font-size: 2rem; color: var(--text-primary); line-height: 1; margin-bottom: 8px; }
.hero-stat-label { font-size: 0.7rem; font-weight: 400; color: var(--text-muted); letter-spacing: 0.08em; text-transform: uppercase; }

.bg-surface { background: var(--bg-surface); }
.bg-surface::before { content: ''; position: absolute; top: 0; left: 10%; right: 10%; height: 1px; background: linear-gradient(90deg, transparent, var(--border), transparent); }

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

.service-card { background: var(--bg-surface-2); border: 1px solid var(--border-subtle); border-radius: var(--radius); padding: 36px 28px; transition: all var(--transition); position: relative; overflow: hidden; }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: 0; transition: opacity var(--transition); }
.service-card:hover { border-color: var(--border); background: var(--bg-surface-3); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(74,143,217, 0.1); }
.service-card:hover::before { opacity: 1; }

.card-icon { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: var(--accent-dim); border: 1px solid rgba(74,143,217, 0.1); border-radius: 8px; margin-bottom: 22px; transition: background var(--transition); }
.service-card:hover .card-icon { background: rgba(74,143,217, 0.14); }
.card-icon svg { width: 20px; height: 20px; stroke: var(--accent); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.service-card h3 { margin-bottom: 10px; font-size: 1.15rem; }
.service-card p { font-size: 0.88rem; font-weight: 300; line-height: 1.75; color: var(--text-muted); }

.service-card:nth-child(1) { transition-delay: 0s; }
.service-card:nth-child(2) { transition-delay: 0.06s; }
.service-card:nth-child(3) { transition-delay: 0.12s; }
.service-card:nth-child(4) { transition-delay: 0.18s; }
.service-card:nth-child(5) { transition-delay: 0.24s; }
.service-card:nth-child(6) { transition-delay: 0.3s; }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-content p { margin-bottom: 18px; font-weight: 300; line-height: 1.85; font-size: 0.95rem; }
.about-content p strong { color: var(--text-primary); font-weight: 500; }
.about-visual { position: relative; }

.about-visual-box { background: var(--bg-surface-2); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 48px 40px; position: relative; overflow: hidden; }
.about-visual-box::before { content: ''; position: absolute; top: -40%; right: -40%; width: 120%; height: 120%; background: radial-gradient(circle, rgba(74,143,217, 0.05) 0%, transparent 60%); pointer-events: none; }

.shield-icon { width: 100px; height: 100px; margin: 0 auto 36px; position: relative; }
.shield-icon svg { width: 100%; height: 100%; }
.shield-icon::after { content: ''; position: absolute; inset: -16px; border: 1px dashed rgba(74,143,217, 0.2); border-radius: 50%; animation: rotate 20s linear infinite; }
@keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; position: relative; z-index: 1; }
.about-stat { text-align: center; padding: 16px 8px; border: 1px solid var(--border-subtle); border-radius: var(--radius); background: var(--bg-surface-3); transition: border-color var(--transition); }
.about-stat:hover { border-color: var(--border); }
.about-stat-value { font-family: var(--font-display); font-size: 1.6rem; color: var(--accent); line-height: 1; margin-bottom: 6px; }
.about-stat-label { font-size: 0.72rem; color: var(--text-muted); letter-spacing: 0.04em; text-transform: uppercase; }

.features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.feature-item { display: flex; gap: 20px; padding: 28px; background: var(--bg-surface-2); border: 1px solid var(--border-subtle); border-radius: var(--radius); transition: all var(--transition); position: relative; }
.feature-item::before { content: ''; position: absolute; left: 0; top: 20%; bottom: 20%; width: 2px; background: var(--accent); opacity: 0; transition: opacity var(--transition); border-radius: 1px; }
.feature-item:hover { border-color: var(--border); background: var(--bg-surface-3); box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2); }
.feature-item:hover::before { opacity: 1; }

.feature-icon { flex-shrink: 0; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; margin-top: 2px; }
.feature-icon svg { width: 22px; height: 22px; stroke: var(--accent); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.feature-item h3 { font-size: 1.05rem; margin-bottom: 8px; }
.feature-item p { font-size: 0.88rem; font-weight: 300; color: var(--text-muted); line-height: 1.7; }

.cta-section { text-align: center; position: relative; }
.cta-section::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(74,143,217, 0.04) 0%, transparent 65%); pointer-events: none; }
.cta-section .container { position: relative; z-index: 1; }

.cta-box { background: var(--bg-surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 72px 56px; max-width: 680px; margin: 0 auto; position: relative; }
.cta-box::before, .cta-box::after { content: ''; position: absolute; width: 32px; height: 32px; border-color: var(--accent); border-style: solid; opacity: 0.4; }
.cta-box::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.cta-box::after { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }
.cta-box h2 { margin-bottom: 14px; }
.cta-box p { font-weight: 300; color: var(--text-muted); margin-bottom: 36px; font-size: 1rem; line-height: 1.8; }

.contact-form { display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; text-align: left; }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea { width: 100%; padding: 14px 18px; font-family: var(--font-body); font-size: 0.9rem; font-weight: 400; color: var(--text-primary); background: var(--bg-surface-3); border: 1px solid var(--border-subtle); border-radius: var(--radius); outline: none; transition: border-color var(--transition), box-shadow var(--transition); }
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--text-muted); }
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(74,143,217, 0.1); }
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form button { align-self: flex-start; margin: 0 auto; }

.contact-email { display: inline-flex; align-items: center; gap: 12px; font-size: 1rem; font-weight: 400; color: var(--accent); padding: 14px 36px; border: 1px solid var(--border); border-radius: var(--radius); transition: all var(--transition); letter-spacing: 0.02em; word-break: break-all; max-width: 100%; }
.contact-email:hover { background: var(--accent-dim); border-color: var(--accent); box-shadow: 0 0 24px rgba(74,143,217, 0.12); }
.contact-email svg { width: 16px; height: 16px; stroke: var(--accent); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

footer { padding: 36px 0; border-top: 1px solid var(--border-subtle); }
footer .container { display: flex; justify-content: space-between; align-items: center; }
footer p { font-size: 0.75rem; color: var(--text-muted); letter-spacing: 0.02em; }
footer a { color: var(--accent); transition: color var(--transition); }
footer a:hover { color: var(--accent-hover); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }

@media (max-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .about-grid { gap: 48px; }
    .hero-stats { gap: 36px; }
}

@media (max-width: 768px) {
    section { padding: 72px 0; }
    .mobile-toggle { display: flex; }
    .nav-links { position: fixed; top: 0; right: -100%; width: 280px; height: 100vh; background: var(--bg-surface-2); flex-direction: column; padding: 80px 32px 32px; gap: 24px; transition: right var(--transition); border-left: 1px solid var(--border-subtle); z-index: 101; box-shadow: -8px 0 32px rgba(0,0,0,0.3); }
    .nav-links.open { right: 0; }
    .nav-links a { font-size: 0.95rem; }
    .grid-3 { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .features-grid { grid-template-columns: 1fr; }
    .hero-stats { flex-wrap: wrap; gap: 24px; }
    .hero-stat { min-width: 100px; }
    .btn-group { flex-direction: column; }
    .btn-lg { text-align: center; justify-content: center; }
    .cta-box { padding: 48px 24px; }
    .contact-email { padding: 14px 20px; font-size: 0.85rem; }
    footer .container { flex-direction: column; gap: 10px; text-align: center; }
}
