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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #ffffff;
    background: linear-gradient(135deg, #131A36 0%, #152A4A 40%, #295F77 80%, #E97561 120%);
    background-size: 200% 200%;
    animation: GradientFlow 15s ease infinite;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Animations */
@keyframes GradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes Float {
    0% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-15px) scale(1.02); }
    100% { transform: translateY(0px) scale(1); }
}

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

/* Glassmorphism Utilities */
.glass-panel {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
}

/* Typography */
h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.text-gradient {
    background: linear-gradient(90deg, #FFFFFF 0%, #E6F3FF 50%, #FFD6C9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

/* Navbar */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    margin-bottom: 2rem;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-container img {
    height: 48px;
    width: 48px;
    border-radius: 12px;
}

.logo-container span {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.05em;
}

/* Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 4rem 0 6rem;
    animation: FadeInUp 1s ease-out forwards;
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    margin-bottom: 1.5rem;
    max-width: 800px;
}

.hero p {
    font-size: clamp(1.125rem, 2vw, 1.35rem);
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin-bottom: 3rem;
    font-weight: 400;
}

.hero-visual {
    position: relative;
    width: 280px;
    height: 280px;
    margin-top: 2rem;
    animation: Float 6s ease-in-out infinite;
}

.hero-visual img {
    width: 100%;
    height: 100%;
    border-radius: 60px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

/* Buttons */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: #131A36;
    background: linear-gradient(90deg, #FFFFFF, #E6F3FF);
    border: none;
    border-radius: 50px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

.cta-button svg {
    margin-right: 12px;
    height: 24px;
    width: 24px;
    fill: currentColor;
}

/* Features Section */
.features {
    padding: 4rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    padding: 2.5rem;
    text-align: left;
    transition: transform 0.3s ease, background 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    background: linear-gradient(135deg, #FFD6C9, #41EAD4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.05rem;
}

/* Footer & Compliance */
footer {
    margin-top: auto;
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

.legal-text {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    max-width: 600px;
    line-height: 1.5;
}

/* Standard Pages (Privacy Policy) */
.page-content {
    padding: 6rem 0;
    max-width: 800px;
}

.page-content h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.page-content h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #FFD6C9;
}

.page-content p, .page-content ul {
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
}

.page-content ul {
    padding-left: 2rem;
}

/* Insights Section */
.insights-section {
    padding: 4rem 0 2rem;
}

.insights-header {
    text-align: center;
    margin-bottom: 3rem;
}

.insights-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.insights-header p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.insight-card {
    display: flex;
    flex-direction: column;
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, background 0.3s ease;
    cursor: pointer;
}

.insight-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

.insight-card-badge {
    display: inline-block;
    align-self: flex-start;
    background: rgba(65, 234, 212, 0.15);
    color: #41EAD4;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.insight-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    color: #fff;
}

.insight-card p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.95rem;
    line-height: 1.6;
    flex: 1;
}

.insight-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.insight-date {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
}

.insight-read-more {
    color: #41EAD4;
    font-size: 0.85rem;
    font-weight: 600;
    transition: color 0.2s;
}

.insight-card:hover .insight-read-more {
    color: #fff;
}

/* AI Search Experience */
.search-container {
    display: flex;
    max-width: 800px;
    margin: 0 auto 3rem auto;
    gap: 1rem;
    padding: 0 1rem;
}

.search-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.2);
    color: #fff;
    font-size: 1.1rem;
    font-family: inherit;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.search-input:focus {
    outline: none;
    background: rgba(0, 0, 0, 0.4);
    border-color: #41EAD4;
    box-shadow: 0 0 15px rgba(65, 234, 212, 0.2);
}

.search-btn {
    padding: 0 2rem;
    border-radius: 50px;
    border: none;
    background: linear-gradient(90deg, #41EAD4, #295F77);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(65, 234, 212, 0.3);
}

.search-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

#search-results {
    max-width: 800px;
    margin: 0 auto 4rem auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 0 1rem;
}

.search-result-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(65, 234, 212, 0.3);
    border-radius: 16px;
    padding: 1.5rem;
    animation: FadeInUp 0.5s ease-out forwards;
}

.search-result-card h4 {
    color: #41EAD4;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.search-result-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* AI Blue Link Results */
.blue-link-result {
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    animation: FadeInUp 0.5s ease-out forwards;
}

.blue-link-result:last-child {
    border-bottom: none;
}

.result-title {
    display: block;
    font-size: 1.35rem;
    font-weight: 600;
    color: #41EAD4;
    text-decoration: none;
    margin-bottom: 0.3rem;
    transition: color 0.2s, text-decoration 0.2s;
}

.result-title:hover {
    color: #fff;
    text-decoration: underline;
}

.result-url {
    font-size: 0.85rem;
    color: #A3D9A5;
    margin-bottom: 0.75rem;
    font-family: monospace;
}

.result-snippet {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
}

/* AI Overview & Highlights */
.highlight {
    background: rgba(65, 234, 212, 0.25);
    color: #fff;
    border-radius: 3px;
    padding: 0 4px;
    font-weight: 600;
}

.ai-overview {
    background: linear-gradient(135deg, rgba(65, 234, 212, 0.05), rgba(41, 95, 119, 0.15));
    border: 1px solid rgba(65, 234, 212, 0.4);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    animation: FadeInUp 0.6s ease-out forwards;
}

.ai-overview-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: #41EAD4;
    font-weight: 700;
    font-size: 1.25rem;
}

.ai-overview-header img {
    height: 28px;
    width: 28px;
    border-radius: 8px;
}

.ai-overview-content {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* Responsive */
@media (max-width: 768px) {
    .search-container {
        flex-direction: column;
    }
    .search-btn {
        padding: 1rem 2rem;
    }
    .hero { padding: 2rem 0 4rem; }
    .footer-content { flex-direction: column; text-align: center; }
}
