/* ==========================================================================
   Smart Kommunity - Official Website Stylesheet
   Modern PropTech / Community Management Design System
   Color Palette: Ocean Blue (#0284C7 / #0369A1), Slate (#0F172A / #334155), Clean White
   ========================================================================== */

:root {
    --primary: #0284c7;
    --primary-hover: #0369a1;
    --primary-light: #38bdf8;
    --primary-bg: #f0f9ff;
    --primary-border: #bae6fd;
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;
    --surface: #ffffff;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 14px rgba(2, 132, 199, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 12px 30px -4px rgba(2, 132, 199, 0.12), 0 8px 16px -4px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 45px -10px rgba(15, 23, 42, 0.15), 0 10px 20px -5px rgba(2, 132, 199, 0.08);
}

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

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--slate-900);
    background: var(--slate-50);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

/* ==========================================================================
   Navigation & Header
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.3s ease;
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

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

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--slate-900);
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.brand-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.25);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--slate-600);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.35rem;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
    box-shadow: 0 6px 16px rgba(2, 132, 199, 0.35);
    transform: translateY(-1px);
}

.btn-secondary {
    background: white;
    color: var(--slate-700);
    border: 1px solid var(--slate-200);
}

.btn-secondary:hover {
    background: var(--slate-100);
    color: var(--slate-900);
    border-color: var(--slate-300);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--slate-800);
    cursor: pointer;
    padding: 0.5rem;
}

/* Mobile Nav Menu Drawer */
.mobile-nav-menu {
    position: fixed;
    top: 72px;
    right: -300px;
    width: 280px;
    height: calc(100vh - 72px);
    background: white;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
}

.mobile-nav-menu.open {
    right: 0;
}

.nav-overlay {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(2px);
    z-index: 998;
}

.nav-overlay.open {
    display: block;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    padding-top: 140px;
    padding-bottom: 70px;
    background: radial-gradient(circle at 50% 0%, #e0f2fe 0%, #f8fafc 70%);
    text-align: center;
    position: relative;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: white;
    border: 1px solid var(--primary-border);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-hover);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}

.hero-headline {
    font-size: 3.25rem;
    font-weight: 850;
    line-height: 1.15;
    letter-spacing: -0.035em;
    color: var(--slate-900);
    max-width: 900px;
    margin: 0 auto 1.5rem auto;
}

.hero-headline span {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subhead {
    font-size: 1.25rem;
    color: var(--slate-600);
    max-width: 680px;
    margin: 0 auto 2.25rem auto;
    line-height: 1.6;
}

.hero-cta-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3.5rem;
    flex-wrap: wrap;
}

/* ==========================================================================
   Hero Showcase Composite Frame (Laptop + Phones)
   ========================================================================== */
.hero-mockup-stage {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* MacBook / Web Browser Frame */
.browser-mockup {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--slate-200);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    position: relative;
}

.browser-header {
    background: #0f172a;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

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

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

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.browser-address-bar {
    flex: 1;
    max-width: 480px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    padding: 0.25rem 0.85rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-family: inherit;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.browser-content {
    background: #f8fafc;
    line-height: 0;
}

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

/* Floating Mobile Mockups overlapping hero */
.floating-phones {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: -80px;
    position: relative;
    z-index: 10;
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
}

/* Smartphone Mockup Frame */
.phone-mockup {
    background: #0f172a;
    border: 8px solid #0f172a;
    border-radius: 36px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2), 0 8px 16px rgba(2, 132, 199, 0.15);
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease;
}

.phone-mockup:hover {
    transform: translateY(-8px);
}

.phone-notch {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 16px;
    background: #0f172a;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    z-index: 20;
}

.phone-screen {
    border-radius: 28px;
    overflow: hidden;
    background: white;
    line-height: 0;
}

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

/* ==========================================================================
   Impact Metrics Bar
   ========================================================================== */
.metrics-section {
    padding: 3rem 0;
    background: white;
    border-top: 1px solid var(--slate-200);
    border-bottom: 1px solid var(--slate-200);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    text-align: center;
}

.metric-item {
    padding: 1rem;
}

.metric-value {
    font-size: 2.25rem;
    font-weight: 850;
    color: var(--primary-hover);
    letter-spacing: -0.03em;
    margin-bottom: 0.25rem;
}

.metric-label {
    font-size: 0.925rem;
    font-weight: 600;
    color: var(--slate-600);
}

/* ==========================================================================
   Interactive 3-Pillar Product Showcase
   ========================================================================== */
.showcase-section {
    padding: 5rem 0;
}

.section-badge {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    background: var(--primary-bg);
    color: var(--primary-hover);
    border: 1px solid var(--primary-border);
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.45rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--slate-900);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--slate-600);
    max-width: 650px;
    margin: 0 auto 3rem auto;
    text-align: center;
}

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

/* Continuous Feature Showcase Blocks */
.feature-showcase-block {
    padding: 4.5rem 0;
    border-bottom: 1px solid var(--slate-100);
}

.feature-showcase-block:first-of-type {
    padding-top: 1rem;
}

.feature-showcase-block:last-child {
    border-bottom: none;
    padding-bottom: 1rem;
}

@media (min-width: 992px) {
    .feature-showcase-block.reversed .feature-content {
        order: 2;
    }
    .feature-showcase-block.reversed .feature-visual {
        order: 1;
    }
}

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

.showcase-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 1.75rem;
}

.feature-list-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.feature-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--primary-bg);
    color: var(--primary-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    border: 1px solid var(--primary-border);
}

.feature-item-content h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 0.25rem;
}

.feature-item-content p {
    font-size: 0.925rem;
    color: var(--slate-600);
    margin: 0;
}

/* ==========================================================================
   Security & Legal Shield Section
   ========================================================================== */
.security-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.security-section .section-title {
    color: white;
}

.security-section .section-subtitle {
    color: #94a3b8;
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.security-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all 0.3s ease;
}

.security-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-light);
    transform: translateY(-4px);
}

.security-icon {
    font-size: 2.25rem;
    margin-bottom: 1.25rem;
}

.security-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.75rem;
}

.security-card p {
    color: #94a3b8;
    font-size: 0.925rem;
    line-height: 1.6;
}

.security-card a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.security-card a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   FAQ Accordion Section
   ========================================================================== */
.faq-section {
    padding: 5rem 0;
    background: white;
}

.faq-accordion-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-accordion-item {
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.2s ease;
}

.faq-accordion-item.open {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-sm);
}

.faq-question-btn {
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: white;
    border: none;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--slate-900);
    cursor: pointer;
}

.faq-question-btn:hover {
    color: var(--primary);
}

.faq-arrow {
    font-size: 0.85rem;
    transition: transform 0.25s ease;
}

.faq-accordion-item.open .faq-arrow {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-answer-body {
    display: none;
    padding: 0 1.5rem 1.25rem 1.5rem;
    color: var(--slate-600);
    font-size: 0.95rem;
    line-height: 1.7;
}

.faq-accordion-item.open .faq-answer-body {
    display: block;
}

/* ==========================================================================
   CTA Demo Section
   ========================================================================== */
.cta-section {
    padding: 5rem 0;
    background: radial-gradient(circle at 50% 50%, #0284c7 0%, #0369a1 100%);
    color: white;
    text-align: center;
}

.cta-box {
    max-width: 750px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.65rem;
    font-weight: 850;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.15rem;
    color: #e0f2fe;
    margin-bottom: 2.25rem;
}

/* ==========================================================================
   Site Footer
   ========================================================================== */
.site-footer {
    background: #090d16;
    color: #94a3b8;
    padding: 4.5rem 0 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3.5rem;
}

.footer-brand h3 {
    color: white;
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 0.85rem;
}

.footer-brand p {
    font-size: 0.925rem;
    line-height: 1.6;
    max-width: 320px;
}

.footer-col h4 {
    color: white;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1.25rem;
}

.footer-links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links-list a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.925rem;
    transition: color 0.2s ease;
}

.footer-links-list a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.875rem;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ==========================================================================
   Legal & Inner Documentation Pages Layout
   ========================================================================== */
.inner-page-header {
    padding-top: 120px;
    padding-bottom: 2.5rem;
    background: white;
    border-bottom: 1px solid var(--slate-200);
}

.inner-page-content {
    padding: 3rem 0;
}

.inner-article-box {
    background: white;
    padding: 3rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--slate-200);
    box-shadow: var(--shadow-sm);
    max-width: 860px;
    margin: 0 auto;
}

.inner-article-box h1 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--slate-900);
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
}

.inner-article-box h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--slate-900);
    margin-top: 2.25rem;
    margin-bottom: 0.85rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--slate-200);
}

.inner-article-box h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary-hover);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.inner-article-box p {
    color: var(--slate-600);
    margin-bottom: 1.15rem;
}

.inner-article-box ul, .inner-article-box ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.inner-article-box li {
    color: var(--slate-600);
    margin-bottom: 0.5rem;
}

.info-alert-box {
    background: var(--primary-bg);
    border: 1px solid var(--primary-border);
    padding: 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
    color: var(--slate-700);
}

.info-alert-box strong {
    color: var(--primary-hover);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 992px) {
    .desktop-nav {
        display: none;
    }
    .nav-actions .btn {
        display: none;
    }
    .menu-toggle {
        display: block;
    }
    .hero-headline {
        font-size: 2.45rem;
    }
    .floating-phones {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin-top: 2rem;
    }
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .showcase-grid-2col {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .security-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}
