:root {
    --color-primary: #1a1f2e;
    --color-secondary: #2d3548;
    --color-accent: #c9a961;
    --color-accent-light: #e4d4a8;
    --color-text: #1a1f2e;
    --color-text-light: #5a6681;
    --color-bg: #fafbfc;
    --color-white: #ffffff;
    --color-border: #e1e5eb;
    --color-success: #2d7a4f;
    --color-error: #c7304a;
    
    --font-display: 'Cormorant Garamond', serif;
    --font-body: 'DM Sans', sans-serif;
    
    --shadow-sm: 0 2px 8px rgba(26, 31, 46, 0.04);
    --shadow-md: 0 4px 16px rgba(26, 31, 46, 0.08);
    --shadow-lg: 0 8px 32px rgba(26, 31, 46, 0.12);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Decorations */
.bg-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(var(--color-border) 1px, transparent 1px),
        linear-gradient(90deg, var(--color-border) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.3;
    animation: gridFloat 60s linear infinite;
}

@keyframes gridFloat {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

.bg-gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    animation: orbFloat 20s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(225deg, var(--color-secondary), var(--color-primary));
    bottom: -100px;
    left: -100px;
    animation-delay: -10s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, -50px) scale(1.1); }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    position: relative;
    z-index: 1;
}

/* Header */
.header {
    padding: 24px 0;
    background: rgba(250, 251, 252, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
    animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    color: var(--color-accent);
    transition: var(--transition);
}

.logo-section:hover .logo-icon {
    transform: rotate(90deg);
}

.logo-text {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--color-primary);
}

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

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text-light);
    text-decoration: none;
    position: relative;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-accent);
}

/* Main Content */
.main-content {
    padding: 80px 0;
}

/* Hero Section */
.hero-section {
    text-align: center;
    margin-bottom: 80px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
    color: var(--color-primary);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 100px;
    margin-bottom: 24px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 64px;
    font-weight: 600;
    line-height: 1.1;
    color: var(--color-primary);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

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

/* Search Section */
.search-section {
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.search-container {
    max-width: 700px;
    margin: 0 auto;
}

.search-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 12px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.search-form {
    margin-bottom: 20px;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    background: var(--color-white);
    border: 2px solid var(--color-border);
    border-radius: 16px;
    padding: 8px 8px 8px 20px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.search-input-wrapper:focus-within {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 4px rgba(201, 169, 97, 0.1), var(--shadow-md);
}

.search-icon {
    width: 24px;
    height: 24px;
    color: var(--color-text-light);
    margin-right: 12px;
    stroke-width: 2;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    font-family: var(--font-body);
    color: var(--color-text);
    background: transparent;
}

.search-input::placeholder {
    color: var(--color-text-light);
}

.search-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: var(--transition);
}

.search-button:hover {
    background: var(--color-secondary);
    transform: translateX(2px);
}

.arrow-icon {
    width: 16px;
    height: 16px;
    transition: var(--transition);
}

.search-button:hover .arrow-icon {
    transform: translateX(4px);
}

.search-suggestions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.suggestion-label {
    font-size: 14px;
    color: var(--color-text-light);
}

.suggestion-tag {
    padding: 8px 16px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-body);
}

.suggestion-tag:hover {
    border-color: var(--color-accent);
    background: linear-gradient(135deg, rgba(201, 169, 97, 0.1), rgba(228, 212, 168, 0.1));
    transform: translateY(-2px);
}

/* Stats Section */
.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.stat-card {
    background: var(--color-white);
    padding: 40px 32px;
    border-radius: 16px;
    border: 1px solid var(--color-border);
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

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

.stat-value {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-light);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Modal */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 31, 46, 0.6);
    backdrop-filter: blur(8px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    max-width: 700px;
    width: 90%;
    max-height: 85vh;
    background: var(--color-white);
    border-radius: 24px;
    box-shadow: 0 24px 64px rgba(26, 31, 46, 0.2);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.modal-content {
    position: relative;
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
    border: none;
    background: var(--color-bg);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
}

.modal-close svg {
    width: 20px;
    height: 20px;
    color: var(--color-text);
    stroke-width: 2;
}

.modal-close:hover {
    background: var(--color-border);
    transform: rotate(90deg);
}

.modal-body {
    padding: 48px;
    max-height: 85vh;
    overflow-y: auto;
}

/* Product Display Styles */
.product-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--color-border);
}

.product-code {
    display: inline-block;
    padding: 6px 14px;
    background: var(--color-bg);
    color: var(--color-text-light);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    border-radius: 6px;
    margin-bottom: 12px;
}

.product-name {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 12px;
    line-height: 1.2;
}

.product-type {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
    color: var(--color-primary);
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    letter-spacing: 0.05em;
}

.product-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.detail-item {
    padding: 20px;
    background: var(--color-bg);
    border-radius: 12px;
    border: 1px solid var(--color-border);
}

.detail-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-light);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.detail-value {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-primary);
}

.detail-value.success {
    color: var(--color-success);
}

.detail-value.high-risk {
    color: var(--color-error);
}

.detail-value.medium-risk {
    color: var(--color-accent);
}

.product-description {
    margin-bottom: 24px;
}

.description-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.description-text {
    font-size: 16px;
    color: var(--color-text-light);
    line-height: 1.7;
}

/* No Results Display */
.no-results {
    text-align: center;
    padding: 60px 32px;
}

.no-results-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    color: var(--color-text-light);
    opacity: 0.5;
}

.no-results-title {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.no-results-message {
    font-size: 16px;
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: 8px;
}

.query-executed {
    display: inline-block;
    margin-top: 16px;
    padding: 12px 24px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 14px;
    color: var(--color-text);
}

.query-text {
    font-weight: 600;
    color: var(--color-accent);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .hero-title {
        font-size: 42px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .nav {
        display: none;
    }
    
    .product-details {
        grid-template-columns: 1fr;
    }
    
    .modal-body {
        padding: 32px 24px;
    }
    
    .product-name {
        font-size: 28px;
    }
    
    .s