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

:root {
    --primary-blue: #3B82F6;
    --primary-green: #10B981;
    --gradient: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    --text-primary: #1F2937;
    --text-secondary: #6B7280;
    --background: #FFFFFF;
    --background-alt: #F9FAFB;
    --border: #E5E7EB;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-lg: rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-primary);
    background-color: var(--background);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

header.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 20px;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* Hero Section */
.hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 50%, #DBEAFE 100%);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.5;
}

/* Search Box Styles */
.search-form {
    margin: 40px 0 20px;
}

.search-box {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border-radius: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.search-box:focus-within {
    border-color: var(--primary-blue);
    box-shadow: 0 10px 40px rgba(59, 130, 246, 0.2);
}

.search-input {
    flex: 1;
    padding: 20px 30px;
    border: none;
    outline: none;
    font-size: 18px;
    color: var(--text-primary);
    background: transparent;
}

.search-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.search-button {
    padding: 0 30px;
    background: var(--gradient);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-button:hover {
    opacity: 0.9;
}

.search-button svg {
    width: 24px;
    height: 24px;
}

.search-description {
    text-align: center;
    color: var(--text-secondary);
    font-size: 16px;
    margin: 20px 0 40px;
    opacity: 0.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn-primary, .btn-secondary {
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--primary-blue);
    border: 2px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--primary-blue);
    background: #F0F9FF;
}

.btn-large {
    padding: 18px 48px;
    font-size: 18px;
}

/* Shield Animation */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.shield-container {
    position: relative;
    width: 240px;
    height: 240px;
}

.shield-icon {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 20px 40px rgba(59, 130, 246, 0.2));
    animation: float 3s ease-in-out infinite;
}

.shield-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    animation: pulse 3s ease-in-out infinite;
}

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

@keyframes pulse {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.1); }
}

/* Features Section */
.features {
    padding: 100px 0;
    background: var(--background);
}

.features h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 60px;
    color: var(--text-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.feature-card {
    background: white;
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    margin-bottom: 24px;
}

.feature-card h3 {
    font-size: 24px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

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

/* Example Searches Section */
.example-searches {
    padding: 100px 0;
    background: var(--background-alt);
}

.example-searches h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 60px;
}

.search-examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.search-example {
    background: white;
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.search-example:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.example-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.search-example h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.example-queries {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.example-queries span {
    background: var(--background-alt);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    color: var(--text-secondary);
    font-family: monospace;
}

.try-search-cta {
    text-align: center;
}

.try-search-cta p {
    margin-bottom: 20px;
    color: var(--text-secondary);
    font-size: 16px;
}

/* How It Works Section */
.how-it-works {
    padding: 100px 0;
    background: var(--background);
}

.how-it-works h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 60px;
    color: var(--text-primary);
}

.toggle-demo {
    background: white;
    border-radius: 24px;
    padding: 60px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.demo-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.demo-text h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.demo-text p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.demo-text ul {
    list-style: none;
    margin: 20px 0;
}

.demo-text li {
    padding: 10px 0;
    color: var(--text-secondary);
}

.demo-text li strong {
    color: var(--text-primary);
}

/* Browser Mockup */
.browser-mockup {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.browser-bar {
    background: #F3F4F6;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.browser-dots {
    display: flex;
    gap: 8px;
}

.browser-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #D1D5DB;
}

.browser-dots span:first-child { background: #EF4444; }
.browser-dots span:nth-child(2) { background: #F59E0B; }
.browser-dots span:nth-child(3) { background: #10B981; }

.browser-address {
    flex: 1;
    background: white;
    padding: 8px 16px;
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 14px;
}

.search-results-preview {
    padding: 20px;
}

/* Search Results Preview Styles */
.search-bar-preview {
    display: flex;
    align-items: center;
    background: #F3F4F6;
    border-radius: 50px;
    padding: 12px 20px;
    margin-bottom: 20px;
    gap: 16px;
}

.search-bar-preview input {
    flex: 1;
    background: white;
    border: none;
    padding: 10px 16px;
    border-radius: 30px;
    font-size: 14px;
    color: var(--text-primary);
}

.safe-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    color: #10B981;
    font-weight: 500;
    white-space: nowrap;
}

.results-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.search-result {
    padding: 16px;
    background: #F9FAFB;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.search-result h4 {
    color: var(--primary-blue);
    font-size: 16px;
    margin-bottom: 4px;
    font-weight: 600;
}

.result-url {
    color: #10B981;
    font-size: 13px;
    margin-bottom: 8px;
}

.result-desc {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
}

.filtered-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 8px;
    font-size: 13px;
    color: var(--primary-blue);
}

.extension-popup {
    margin: 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 24px;
    max-width: 280px;
}

.popup-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 18px;
}

.popup-toggle {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 32px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #CBD5E1;
    transition: .4s;
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background: var(--gradient);
}

input:checked + .toggle-slider:before {
    transform: translateX(28px);
}

.toggle-label {
    font-weight: 500;
    color: var(--text-primary);
}

.popup-status {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #F0F9FF;
    border-radius: 8px;
    font-size: 14px;
}

.status-icon {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #CBD5E1;
    transition: background 0.3s ease;
}

.status-icon.active {
    background: var(--primary-green);
}

/* Installation Section */
.installation {
    padding: 100px 0;
    background: var(--background);
}

.installation h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 60px;
    color: var(--text-primary);
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.step {
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 24px;
}

.step h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.step p {
    color: var(--text-secondary);
    line-height: 1.5;
}

.install-cta {
    text-align: center;
}

.install-note {
    margin-top: 16px;
    color: var(--text-secondary);
    font-size: 14px;
}

/* Privacy Section */
.privacy {
    padding: 100px 0;
    background: var(--background-alt);
}

.privacy h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 60px;
    color: var(--text-primary);
}

.privacy-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
    font-size: 18px;
    color: var(--text-secondary);
}

.privacy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.privacy-card {
    background: white;
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--border);
}

.privacy-card h3 {
    font-size: 24px;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.privacy-card ul {
    list-style: none;
}

.privacy-card li {
    padding: 8px 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 24px;
}

.privacy-card li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-green);
    font-weight: bold;
}

.privacy-statement {
    background: white;
    padding: 60px;
    border-radius: 16px;
    max-width: 900px;
    margin: 0 auto;
}

.privacy-statement h3 {
    font-size: 28px;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.privacy-statement p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}

/* Footer */
footer {
    background: var(--text-primary);
    color: white;
    padding: 60px 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 20px;
}

.footer-links {
    display: flex;
    gap: 40px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-copyright {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 40px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .search-box {
        max-width: 100%;
    }
    
    .demo-content {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 30px;
    }
    
    .search-examples-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .search-input {
        padding: 16px 24px;
        font-size: 16px;
    }
    
    .search-button {
        padding: 0 24px;
    }
    
    .features {
        padding: 60px 0;
    }
    
    .features h2 {
        font-size: 28px;
        margin-bottom: 40px;
    }
    
    .steps {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .privacy-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .toggle-demo {
        padding: 40px 20px;
    }
    
    .privacy-statement {
        padding: 40px 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-content h1 {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .btn-primary, .btn-secondary {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .feature-card {
        padding: 30px 20px;
    }
    
    .footer-links {
        flex-wrap: wrap;
        gap: 20px;
        text-align: center;
    }
}

/* Minimal Homepage Styles */
.minimal-homepage {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #FFFFFF 0%, #F0F9FF 50%, #E0F2FE 100%);
}

.search-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    margin-top: -10vh; /* Slightly above center */
}

.search-logo {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 48px;
}

.search-logo h1 {
    font-size: 32px;
    font-weight: 400;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.minimal-search-form {
    width: 100%;
    max-width: 584px;
}

.minimal-search-box {
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 0 8px 0 20px;
    box-shadow: 0 2px 5px 1px rgba(64, 60, 67, 0.16);
    transition: box-shadow 0.3s ease;
}

.minimal-search-box:hover,
.minimal-search-box:focus-within {
    box-shadow: 0 2px 8px 1px rgba(64, 60, 67, 0.24);
}

.search-icon {
    flex-shrink: 0;
}

.minimal-search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    font-size: 16px;
    font-family: inherit;
    color: var(--text-primary);
}

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

.minimal-search-button {
    background: var(--gradient);
    border: none;
    color: white;
    padding: 8px 24px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.minimal-search-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.search-tagline {
    margin-top: 24px;
    color: var(--text-secondary);
    font-size: 14px;
}

.minimal-footer {
    padding: 40px 20px;
    text-align: center;
}

.minimal-footer .footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
}

.minimal-footer .footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.minimal-footer .footer-links a:hover {
    color: var(--primary-blue);
}

/* Minimal homepage mobile responsive */
@media (max-width: 768px) {
    .search-logo h1 {
        font-size: 24px;
    }
    
    .minimal-search-box {
        padding: 0 4px 0 16px;
    }
    
    .minimal-search-input {
        font-size: 14px;
        padding: 10px 12px;
    }
    
    .minimal-search-button {
        padding: 6px 16px;
        font-size: 13px;
    }
}