/* Jeong Inc. Website & D³ Product Page Custom Design System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    --bg-main: #06070a;
    --bg-card: rgba(13, 16, 26, 0.6);
    --border-card: rgba(255, 255, 255, 0.08);
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    /* Elegant Gradients */
    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    --accent-indigo: #6366f1;
    --accent-pink: #ec4899;
    --grad-primary: linear-gradient(135deg, var(--accent-indigo), var(--accent-purple));
    --grad-text: linear-gradient(90deg, #a5b4fc, #c084fc, #f472b6);
    
    /* Layout Tokens */
    --max-width: 1100px;
    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Background Ambient Glows */
.ambient-glow-1 {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(99, 102, 241, 0) 70%);
    top: -200px;
    left: -100px;
    z-index: -1;
    pointer-events: none;
    animation: pulse 8s ease-in-out infinite alternate;
}

.ambient-glow-2 {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, rgba(139, 92, 246, 0) 70%);
    top: 600px;
    right: -100px;
    z-index: -1;
    pointer-events: none;
    animation: pulse 12s ease-in-out infinite alternate;
}

@keyframes pulse {
    0% { transform: translateY(0px) scale(1); }
    100% { transform: translateY(50px) scale(1.1); }
}

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

/* Glassmorphism Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    z-index: 100;
    background: rgba(6, 7, 10, 0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-card);
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.brand {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 22px;
    background: var(--grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    letter-spacing: -0.5px;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--text-primary);
}

/* Navbar Dropdown Menu Styling */
.dropdown {
    position: relative;
}

.dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.dropdown-trigger .arrow {
    font-size: 8px;
    transition: var(--transition);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(13, 16, 26, 0.95);
    border: 1px solid var(--border-card);
    border-radius: 12px;
    list-style: none;
    padding: 8px 0;
    min-width: 160px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown:hover .dropdown-trigger .arrow {
    transform: rotate(180deg);
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    text-align: left;
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

/* Hero Section */
.hero-section {
    padding-top: 160px;
    padding-bottom: 80px;
    text-align: center;
    position: relative;
}

.hero-tag {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 30px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 56px;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1.5px;
}

.hero-title span {
    background: var(--grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 36px auto;
    line-height: 1.6;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
}

.social-btn.linkedin {
    background: #0077b5;
    color: white;
}

.social-btn.linkedin:hover {
    background: #006396;
    transform: translateY(-2px);
}

.social-btn.github {
    background: #24292f;
    color: white;
    border: 1px solid rgba(255,255,255,0.1);
}

.social-btn.github:hover {
    background: #1c1f23;
    transform: translateY(-2px);
}

.social-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Sections & Grids */
.section {
    padding: 80px 0;
    border-top: 1px solid var(--border-card);
}

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

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 16px;
    max-width: 500px;
    margin: 0 auto;
}

/* D3 Product Showcase styling */
.d3-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.d3-media {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-card);
    background: #11131e;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    aspect-ratio: 16/10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.d3-media img {
    max-width: 160px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
    animation: float 6s ease-in-out infinite alternate;
}

@keyframes float {
    0% { transform: translateY(-5px); }
    100% { transform: translateY(5px); }
}

.d3-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-tag {
    align-self: flex-start;
    padding: 4px 12px;
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(139, 92, 246, 0.15));
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #93c5fd;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.d3-content h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 28px;
    font-weight: 700;
}

.d3-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 15px;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    align-self: flex-start;
    background: var(--grad-primary);
    color: white;
    padding: 14px 32px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
    transition: var(--transition);
}

.btn-download:hover {
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.5);
    transform: translateY(-2px);
}

.btn-download svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--border-radius);
    padding: 32px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.3);
    background: rgba(20, 24, 40, 0.8);
}

.feature-icon {
    font-size: 24px;
    margin-bottom: 20px;
    color: #a5b4fc;
}

.feature-card h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* Privacy Policy Box */
.privacy-box {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--border-radius);
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.privacy-content {
    max-height: 350px;
    overflow-y: auto;
    padding-right: 16px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
}

.privacy-content h3 {
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary);
    font-size: 16px;
    margin-top: 24px;
    margin-bottom: 8px;
}

.privacy-content p {
    margin-bottom: 16px;
}

.privacy-content ul {
    margin-left: 20px;
    margin-bottom: 16px;
}

.privacy-content li {
    margin-bottom: 8px;
}

/* Custom Scrollbar for Privacy Box */
.privacy-content::-webkit-scrollbar {
    width: 6px;
}

.privacy-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

.privacy-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.privacy-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Footer Section */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--border-card);
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

.footer p {
    margin-bottom: 8px;
}

/* Responsive Rules */
@media (max-width: 768px) {
    .navbar {
        height: 60px;
    }
    
    .nav-links {
        gap: 16px;
    }
    
    .hero-title {
        font-size: 38px;
    }
    
    .hero-subtitle {
        font-size: 15px;
    }
    
    .d3-showcase {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .d3-content {
        align-items: center;
        text-align: center;
    }
    
    .btn-download {
        align-self: center;
    }
    
    .privacy-box {
        padding: 24px;
    }
}

.nav-links a.active {
    color: var(--accent-indigo);
    font-weight: 600;
}

/* Sub-page Specific Layouts */
.subpage-container {
    padding-top: 140px;
    padding-bottom: 80px;
}

.privacy-page-box {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--border-radius);
    padding: 48px;
    max-width: 800px;
    margin: 0 auto;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.privacy-page-content {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.8;
}

.privacy-page-content h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 32px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.privacy-page-content h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    margin-top: 36px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.privacy-page-content p {
    margin-bottom: 20px;
}

.privacy-page-content ul {
    margin-left: 24px;
    margin-bottom: 20px;
}

.privacy-page-content li {
    margin-bottom: 10px;
}

/* Data Flow Diagram Styling */
.data-flow-container {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--border-radius);
    padding: 40px;
    margin: 48px 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.data-flow-title {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 32px;
    color: var(--text-primary);
}

.flow-chart {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    gap: 16px;
}

.flow-card {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
    max-width: 260px;
}

.flow-card:hover {
    border-color: rgba(99, 102, 241, 0.25);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.flow-card-icon {
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
}

.flow-card h5 {
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.flow-card p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.flow-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
}

.flow-arrow-line {
    width: 48px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-indigo), var(--accent-purple));
    position: relative;
}

.flow-arrow-line::after {
    content: '';
    position: absolute;
    right: 0;
    top: -3px;
    width: 8px;
    height: 8px;
    border-top: 2px solid var(--accent-purple);
    border-right: 2px solid var(--accent-purple);
    transform: rotate(45deg);
}

.flow-arrow span {
    font-size: 10px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .flow-chart {
        flex-direction: column;
        gap: 32px;
    }
    
    .flow-card {
        max-width: 100%;
        width: 100%;
    }
    
    .flow-arrow-line {
        width: 2px;
        height: 32px;
        background: linear-gradient(180deg, var(--accent-indigo), var(--accent-purple));
    }
    
    .flow-arrow-line::after {
        right: -3px;
        bottom: 0;
        top: auto;
        transform: rotate(135deg);
    }
}

/* CLI Typing Animation Styles */
.cli-title {
    font-family: 'Courier New', Courier, monospace;
    font-weight: 700;
    font-size: 48px;
    letter-spacing: -0.5px;
    background: linear-gradient(90deg, #10b981, #34d399); /* Green terminal vibe */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
    display: inline-block;
    text-align: left;
    margin: 0 auto 24px auto;
    max-width: 600px;
    width: 100%;
}

#cli-cursor {
    display: inline-block;
    width: 18px;
    height: 38px;
    margin-left: 4px;
    background: #10b981;
    vertical-align: middle;
}

#cli-cursor.blink {
    animation: cursor-blink 0.8s infinite;
}

@keyframes cursor-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@media (max-width: 768px) {
    .cli-title {
        font-size: 32px;
    }
    #cli-cursor {
        width: 12px;
        height: 24px;
    }
}
