@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800;900&display=swap');

/* Color Variables & Styling Tokens */
:root {
    --brand: #00a884;
    --brand-dark: #008f70;
    --brand-light: #e6f6f3;
    --brand-rgb: 0, 168, 132;
    
    --accent: #007185;
    --accent-dark: #005a6a;
    
    --bg: #f7f9fa;
    --panel: #ffffff;
    --panel-soft: #f1f3f4;
    --text: #1c1e21;
    --text-muted: #5f6368;
    --border: #dadde1;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.1);
    
    --danger: #dc3545;
    --success: #28a745;
    --radius: 12px;
    --radius-round: 30px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--text);
    font-weight: 700;
}

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

a:hover {
    color: var(--brand-dark);
}

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

/* Base Layout Shell */
.app-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: var(--transition);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--text);
}

.logo-img {
    height: 38px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-link {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 5px 0;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--brand);
    transition: var(--transition);
}

.nav-link.active::after,
.nav-link:hover::after {
    width: 100%;
}

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

.hamburger-btn {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text);
}

/* Custom Standard Premium Buttons */
.btn-primary {
    background: var(--brand);
    color: white !important;
    padding: 10px 24px;
    border-radius: var(--radius-round);
    font-weight: 600;
    font-size: 0.92rem;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(0, 168, 132, 0.2);
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--brand-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 168, 132, 0.35);
}

.btn-secondary {
    background: transparent;
    color: var(--text) !important;
    border: 1.5px solid var(--border);
    padding: 10px 24px;
    border-radius: var(--radius-round);
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: var(--panel-soft);
    border-color: var(--text-muted);
    transform: translateY(-2px);
}

/* Page Outer Section Wraps */
.router-view-container {
    min-height: calc(100vh - 350px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

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

/* Hero Section */
.hero-wrapper {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    align-items: center;
}

.hero-tagline {
    display: inline-block;
    background: var(--brand-light);
    color: var(--brand-dark);
    padding: 6px 16px;
    border-radius: var(--radius-round);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-headline {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 20px;
    font-weight: 900;
    letter-spacing: -1px;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 35px;
    line-height: 1.65;
}

.hero-ctas {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.hero-features-list {
    display: flex;
    gap: 20px;
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 500;
}

.hero-features-list span i {
    color: var(--brand);
    margin-right: 5px;
}

.hero-graphic {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-illustration {
    width: 100%;
    max-width: 440px;
    filter: drop-shadow(0 20px 50px rgba(0,0,0,0.12));
    border-radius: 24px;
    border: 6px solid var(--panel);
}

/* Grid layout details */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

/* Feature Cards */
.feature-card {
    background: var(--panel);
    border-radius: var(--radius);
    padding: 40px 30px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--brand);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: var(--brand-light);
    color: var(--brand);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 25px;
}

.card-title {
    font-size: 1.35rem;
    margin-bottom: 12px;
}

.card-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Documentations / Help Center Page */
.guide-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    align-items: start;
}

.guide-sidebar {
    position: sticky;
    top: 100px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    max-height: calc(100vh - 150px);
    overflow-y: auto;
}

.guide-search-wrapper {
    margin-bottom: 25px;
    position: relative;
}

.guide-search-input {
    width: 100%;
    padding: 12px 15px 12px 40px;
    border: 1px solid var(--border);
    border-radius: 8px;
    outline: none;
    font-size: 0.9rem;
    background: var(--bg);
    color: var(--text);
    transition: var(--transition);
}

.guide-search-input:focus {
    border-color: var(--brand);
    background: var(--panel);
    box-shadow: 0 0 0 3px rgba(0, 168, 132, 0.15);
}

.guide-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.sidebar-category-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 12px;
    margin-top: 20px;
}

.sidebar-category-title:first-of-type {
    margin-top: 0;
}

.sidebar-link {
    display: block;
    padding: 8px 12px;
    border-radius: 6px;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 4px;
}

.sidebar-link:hover,
.sidebar-link.active {
    background: var(--brand-light);
    color: var(--brand-dark);
}

/* Documentation Content Detail styling */
.guide-content-panel {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 50px;
}

.doc-title {
    font-size: 2.2rem;
    margin-bottom: 16px;
    font-weight: 800;
}

.doc-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 20px;
}

.doc-heading {
    font-size: 1.4rem;
    margin-top: 35px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.doc-heading i {
    color: var(--brand);
}

.step-list {
    list-style: none;
    margin-bottom: 30px;
}

.step-item {
    position: relative;
    padding-left: 45px;
    margin-bottom: 20px;
    font-size: 0.98rem;
}

.step-item::before {
    content: attr(data-step);
    position: absolute;
    left: 0;
    top: 2px;
    width: 28px;
    height: 28px;
    background: var(--brand);
    color: white;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.tip-box {
    background: var(--brand-light);
    border-left: 4px solid var(--brand);
    padding: 20px;
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: 25px 0;
    font-size: 0.95rem;
}

.tip-box strong {
    color: var(--brand-dark);
    display: block;
    margin-bottom: 5px;
}

.faq-accordion {
    margin-top: 30px;
}

.faq-item {
    border-bottom: 1px solid var(--border);
    padding: 18px 0;
}

.faq-question {
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 10px;
    display: none;
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-question::after {
    content: '+';
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--brand);
}

.faq-item.active .faq-question::after {
    content: '−';
}

/* Contact forms section style */
.contact-container {
    max-width: 700px;
    margin: 0 auto;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
}

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

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    outline: none;
    font-size: 0.95rem;
    font-family: inherit;
    background: var(--bg);
    color: var(--text);
    transition: var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--brand);
    background: var(--panel);
    box-shadow: 0 0 0 3px rgba(0, 168, 132, 0.15);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

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

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

.form-group.has-error .form-error {
    display: block;
}

/* Download Version Cards */
.download-hero {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px auto;
}

.platform-badge {
    background: var(--panel-soft);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
}

.release-notes-panel {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    margin-top: 50px;
}

.release-version-block {
    border-bottom: 1px solid var(--border);
    padding: 25px 0;
}

.release-version-block:last-of-type {
    border-bottom: none;
}

.release-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.release-version {
    font-size: 1.25rem;
    font-weight: 700;
}

.release-date {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.release-list {
    padding-left: 20px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.release-list li {
    margin-bottom: 6px;
}

/* Web App Access View styles */
.webapp-access-panel {
    max-width: 650px;
    margin: 0 auto;
    text-align: center;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 60px 40px;
    box-shadow: var(--shadow);
}

.webapp-title {
    font-size: 2.2rem;
    margin-bottom: 16px;
}

/* Legalese formatting styling */
.legalese-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 50px;
}

.legalese-container h3 {
    font-size: 2rem;
    margin-bottom: 25px;
}

.legalese-container h4 {
    font-size: 1.25rem;
    margin-top: 30px;
    margin-bottom: 12px;
}

.legalese-container p {
    margin-bottom: 15px;
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.65;
}

.legalese-container ul {
    margin-left: 25px;
    margin-bottom: 20px;
    color: var(--text-muted);
    font-size: 0.98rem;
}

.legalese-container ul li {
    margin-bottom: 6px;
}

/* Footer Section styling */
.app-footer {
    background: #0f171c;
    color: #8f969b;
    padding: 60px 20px 30px 20px;
    border-top: 1px solid #202c33;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr repeat(3, 0.9fr);
    gap: 40px;
    border-bottom: 1px solid #202c33;
    padding-bottom: 40px;
    margin-bottom: 30px;
}

.footer-brand h4 {
    color: white;
    font-weight: 800;
    margin-bottom: 15px;
}

.footer-logo {
    height: 32px;
    width: auto;
    filter: brightness(0) invert(1);
    margin-bottom: 15px;
}

.footer-desc {
    font-size: 0.88rem;
    line-height: 1.6;
}

.footer-column h5 {
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: #8f969b;
    font-size: 0.88rem;
}

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

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.footer-socials a {
    color: #8f969b;
    font-size: 1.1rem;
}

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

/* Scroll to Top Utility */
.app-scroll-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--brand);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 1000;
    pointer-events: none;
}

.app-scroll-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Animations Definition */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.4s ease-out forwards;
}

/* Responsive Layout Breakpoints */
@media (max-width: 1024px) {
    .hero-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .hero-headline {
        font-size: 2.8rem;
    }
    .hero-ctas {
        justify-content: center;
    }
    .hero-features-list {
        justify-content: center;
    }
    .hero-graphic {
        order: -1;
    }
    .hero-illustration {
        max-width: 320px;
    }
    .grid-3 {
        grid-template-columns: 1fr 1fr;
    }
    .guide-container {
        grid-template-columns: 1fr;
    }
    .guide-sidebar {
        position: static;
        max-height: none;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--panel);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        box-shadow: var(--shadow);
    }
    
    .nav-menu.open {
        display: flex;
    }
    
    .hamburger-btn {
        display: block;
    }
    
    .header-actions {
        display: none;
    }
    
    .grid-3, .grid-2 {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .guide-content-panel {
        padding: 25px;
    }
    
    .doc-title {
        font-size: 1.75rem;
    }
    
    .contact-container {
        padding: 25px;
    }
}
