/* Design System & Variables */
:root {
    /* Colors - Light Mode */
    --primary: #0F172A;
    --primary-light: #1E293B;
    --accent: #0EA5E9;
    --accent-hover: #0284C7;
    --bg-body: #F8FAFC;
    --bg-card: #FFFFFF;
    --text-main: #334155;
    --text-heading: #0F172A;
    --text-muted: #64748B;
    --border: #E2E8F0;
    --success: #22C55E;
    --warning: #F59E0B;
    --error: #EF4444;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);

    /* Layout */
    --container-width: 1200px;
    --header-height: 80px;
}

/* Dark Mode Variables */
body.dark-mode {
    --primary: #0EA5E9;
    --primary-light: #38BDF8;
    --bg-body: #0F172A;
    --bg-card: #1E293B;
    --text-main: #94A3B8;
    --text-heading: #F8FAFC;
    --text-muted: #64748B;
    --border: #334155;
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.3);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    transition: background-color var(--transition-base), color var(--transition-base);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-heading);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

button, input, select, textarea {
    font-family: inherit;
    border: none;
    outline: none;
}

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

.text-teal {
    color: var(--accent);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--accent);
    color: white;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--border);
    color: var(--text-heading);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn.full-width {
    width: 100%;
}

/* Header */
.sticky-header {
    height: var(--header-height);
    background-color: var(--bg-card);
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-heading);
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.logo-icon {
    font-size: 1.8rem;
    color: var(--accent);
}

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

.nav-links a {
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-heading);
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

#theme-toggle {
    background: transparent;
    cursor: pointer;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: var(--transition-base);
}

#theme-toggle:hover {
    background-color: var(--bg-body);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: transparent;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--text-heading);
    transition: var(--transition-base);
}

/* Sections Base */
.section {
    padding: 100px 0;
    display: none; /* Hidden by default for SPA */
}

.section.active-section {
    display: block;
    animation: fadeIn 0.6s ease-out;
}

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

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

.section-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Hero Section */
#home {
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
}

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

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 24px;
}

.hero-tagline {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.search-container {
    margin-bottom: 40px;
    max-width: 600px;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 20px;
    font-size: 1.2rem;
    color: var(--text-muted);
}

#hero-search {
    width: 100%;
    padding: 18px 20px 18px 55px;
    border-radius: 12px;
    background-color: var(--bg-card);
    border: 2px solid var(--border);
    font-size: 1.1rem;
    color: var(--text-heading);
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
}

#hero-search:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15);
}

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

.hero-image {
    width: 100%;
    height: auto;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    animation: float 6s ease-in-out infinite;
}

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

.image-skeleton {
    width: 100%;
    aspect-ratio: 16/10;
    background: linear-gradient(90deg, var(--border) 25%, var(--bg-body) 50%, var(--border) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 20px;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* FAQ Section */
.faq-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 10px 20px;
    border-radius: 30px;
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    cursor: pointer;
    font-weight: 500;
    color: var(--text-main);
    transition: var(--transition-base);
}

.filter-tab:hover, .filter-tab.active {
    background-color: var(--accent);
    color: white;
    border-color: var(--accent);
}

.faq-search-bar {
    max-width: 500px;
    margin: 0 auto 40px;
}

#faq-search {
    width: 100%;
    padding: 12px 20px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background-color: var(--bg-card);
    color: var(--text-heading);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: var(--transition-base);
}

.faq-question {
    width: 100%;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    cursor: pointer;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-heading);
}

.faq-answer {
    max-height: 0;
    padding: 0 24px;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    color: var(--text-muted);
}

.faq-item.active {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding-bottom: 24px;
}

.faq-item.active .chevron {
    transform: rotate(180deg);
}

.chevron {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.highlight {
    background-color: rgba(14, 165, 233, 0.2);
    color: var(--text-heading);
    padding: 0 2px;
    border-radius: 2px;
}

/* Status Page */
.status-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    border-radius: 12px;
    margin-bottom: 40px;
    font-weight: 600;
}

.status-banner.operational {
    background-color: rgba(34, 197, 94, 0.1);
    color: var(--success);
    border: 1px solid var(--success);
}

.status-banner.degraded {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--warning);
    border: 1px solid var(--warning);
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.status-card {
    background-color: var(--bg-card);
    padding: 24px;
    border-radius: 16px;
    border: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status-info h3 {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.status-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.status-indicator {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot-green { background-color: var(--success); box-shadow: 0 0 10px var(--success); }
.dot-yellow { background-color: var(--warning); box-shadow: 0 0 10px var(--warning); }
.dot-red { background-color: var(--error); box-shadow: 0 0 10px var(--error); }

.status-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: flex-start;
}

.contact-details {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-item .icon {
    width: 50px;
    height: 50px;
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.5rem;
}

.contact-item h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.contact-form-card {
    background-color: var(--bg-card);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-heading);
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background-color: var(--bg-body);
    color: var(--text-heading);
    transition: var(--transition-base);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--accent);
    background-color: var(--bg-card);
}

.error-msg {
    color: var(--error);
    font-size: 0.8rem;
    margin-top: 4px;
    display: none;
}

.form-group.invalid input, .form-group.invalid select, .form-group.invalid textarea {
    border-color: var(--error);
}

.form-group.invalid .error-msg {
    display: block;
}

.file-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 2px dashed var(--border);
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-muted);
}

.file-name-preview {
    font-size: 0.9rem;
    color: var(--accent);
    margin-top: 8px;
}

.form-success {
    text-align: center;
    padding: 20px 0;
}

.success-icon {
    width: 60px;
    height: 60px;
    background-color: var(--success);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
}

/* Footer */
.footer {
    background-color: var(--bg-card);
    padding: 80px 0 40px;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand p {
    margin-top: 20px;
    color: var(--text-muted);
}

.footer-links h4, .footer-social h4 {
    margin-bottom: 24px;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a:hover {
    color: var(--accent);
}

.social-icons {
    display: flex;
    gap: 16px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background-color: var(--bg-body);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.2rem;
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Floating Help Button */
.floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transition: var(--transition-base);
}

.floating-btn:hover {
    transform: scale(1.1);
    background-color: var(--accent-hover);
}

/* Privacy Policy Styles */
.policy-content {
    background-color: var(--bg-card);
    padding: 60px;
    border-radius: 20px;
    border: 1px solid var(--border);
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: var(--text-main);
    line-height: 1.7;
}

.policy-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.policy-content h2 {
    font-size: 2rem;
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--text-heading);
}

.policy-content h3 {
    font-size: 1.5rem;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--text-heading);
}

.policy-content h4 {
    font-size: 1.2rem;
    margin-top: 25px;
    margin-bottom: 10px;
    color: var(--text-heading);
}

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

.policy-content ul {
    margin-bottom: 30px;
    padding-left: 20px;
    list-style: disc;
}

.policy-content ul li {
    margin-bottom: 15px;
}

.policy-content .last-updated {
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 40px;
}

/* Delete Instructions Styles */
.delete-instructions {
    margin: 40px 0;
}

.step-card {
    display: flex;
    gap: 20px;
    background-color: var(--bg-body);
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
    transition: var(--transition-base);
}

.step-card:hover {
    transform: translateX(10px);
    border-color: var(--accent);
}

.step-num {
    background-color: var(--accent);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    flex-shrink: 0;
}

.step-text h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--text-heading);
}

.step-text p {
    margin-bottom: 0;
    font-size: 1rem;
}

.text-error {
    color: var(--error);
}

.notice-box {
    background-color: rgba(245, 158, 11, 0.1);
    border-left: 4px solid var(--warning);
    padding: 20px;
    border-radius: 4px 12px 12px 4px;
    margin: 40px 0;
}

.notice-box p {
    margin-bottom: 0;
    color: var(--text-main);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-visual {
        order: -1;
    }

    .hero-ctas, .search-container {
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* Hide on mobile initially */
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
