/* CSS Design System: Nordic Frost Theme */

/* Variables - Themes Definition */
:root {
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Dark Mode (Default) */
.theme-dark {
    --bg-main: #0b0f19; /* Deep Space Navy */
    --bg-header: rgba(11, 15, 25, 0.7);
    --bg-card: rgba(22, 30, 49, 0.45);
    --bg-card-hover: rgba(22, 30, 49, 0.7);
    --bg-terminal: #05070c;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.16);
    --text-primary: #f8fafc; /* Snow White */
    --text-secondary: #94a3b8; /* Cool Slate */
    --accent-blue: #3b82f6; /* Ocean Blue */
    --accent-blue-rgb: 59, 130, 246;
    --accent-cyan: #06b6d4; /* Vibrant Ice Cyan */
    --accent-cyan-rgb: 6, 182, 212;
    --accent-crimson: #f43f5e; /* Rose Warning */
    --accent-emerald: #10b981; /* Success Green */
    --shadow-main: rgba(0, 0, 0, 0.4);
    --gradient-hero: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    --screenshot-bg: rgba(255, 255, 255, 0.02);
}

/* Light Mode */
.theme-light {
    --bg-main: #f8fafc; /* Ice White */
    --bg-header: rgba(248, 250, 252, 0.75);
    --bg-card: rgba(255, 255, 255, 0.7);
    --bg-card-hover: rgba(255, 255, 255, 0.95);
    --bg-terminal: #0f172a;
    --border-color: rgba(15, 23, 42, 0.08);
    --border-hover: rgba(15, 23, 42, 0.15);
    --text-primary: #0f172a; /* Deep Navy */
    --text-secondary: #64748b; /* Muted Slate */
    --accent-blue: #1d4ed8; /* Strong Ocean Blue */
    --accent-blue-rgb: 29, 78, 216;
    --accent-cyan: #0891b2; /* Darker Cyan */
    --accent-cyan-rgb: 8, 145, 178;
    --accent-crimson: #dc2626; /* Warning Red */
    --accent-emerald: #059669; /* Success Green */
    --shadow-main: rgba(15, 23, 42, 0.06);
    --gradient-hero: linear-gradient(135deg, #1d4ed8 0%, #0891b2 100%);
    --screenshot-bg: rgba(15, 23, 42, 0.02);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: -0.02em;
}

a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: var(--transition-smooth);
}

/* Material Symbols Utilities */
.material-symbols-outlined {
    font-size: 20px;
    vertical-align: middle;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Container */
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.small-container {
    max-width: 800px;
}

/* Headers */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--bg-header);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 19px;
    letter-spacing: -0.03em;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header-nav a {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

.header-nav a:hover {
    color: var(--text-primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
}

.btn-icon {
    font-size: 18px;
}

.btn-primary {
    background-color: var(--accent-blue);
    color: #ffffff !important;
}

.btn-primary:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--accent-blue-rgb), 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--bg-card);
    transform: translateY(-2px);
    border-color: var(--border-hover);
}

/* Theme Toggle Button */
.btn-theme-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
    color: var(--text-primary);
}

.btn-theme-toggle:hover {
    background-color: var(--bg-card);
    border-color: var(--border-hover);
    transform: scale(1.05);
}

.btn-theme-toggle span {
    font-size: 20px;
}

.theme-dark .theme-icon-light { display: block; }
.theme-dark .theme-icon-dark { display: none; }
.theme-light .theme-icon-light { display: none; }
.theme-light .theme-icon-dark { display: block; }

/* Hero Section */
.hero-section {
    padding-top: 140px;
    padding-bottom: 60px;
    text-align: center;
    background: radial-gradient(circle at top, rgba(var(--accent-blue-rgb), 0.08) 0%, transparent 60%);
}

.hero-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

.hero-icon-container {
    margin-bottom: 20px;
    display: inline-flex;
    justify-content: center;
}

.hero-app-icon {
    width: 96px;
    height: 96px;
    border-radius: 22px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.theme-light .hero-app-icon {
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.15);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.hero-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 30px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 13px;
    color: var(--accent-cyan);
    margin-bottom: 20px;
}

.hero-title {
    font-size: 46px;
    line-height: 1.15;
    margin-bottom: 20px;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.hero-subtitle {
    color: var(--text-secondary);
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 32px;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.hero-ctas {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* Glassmorphism Styles */
.panel-glass, .card-glass {
    background-color: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 8px 32px var(--shadow-main);
    transition: var(--transition-smooth);
}

/* About Section */
.about-section {
    padding: 40px 0;
}

.about-card {
    padding: 40px;
    text-align: left;
}

.about-card h2 {
    font-size: 28px;
    margin-bottom: 20px;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-paragraph {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.about-paragraph:last-of-type {
    margin-bottom: 0;
}

.about-paragraph strong {
    color: var(--text-primary);
}

/* Showcase Section */
.showcase-section {
    padding: 80px 0;
}

.showcase-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 100px;
}

.showcase-row {
    display: flex;
    align-items: center;
    gap: 60px;
}

.showcase-row:nth-child(even) {
    flex-direction: row-reverse;
}

.screenshot-column {
    flex: 1.1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.details-column {
    flex: 0.9;
}

.showcase-screenshot {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.theme-light .showcase-screenshot {

}

.screenshot-menu {
    max-width: 260px;
}

.showcase-screenshot:hover {
    transform: translateY(-4px);
}

.details-column h3 {
    font-size: 26px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.showcase-desc {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 24px;
    line-height: 1.6;
}

.pane-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pane-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--text-secondary);
}

.pane-list li span {
    line-height: 1.4;
}

.check-icon {
    color: var(--accent-emerald);
    font-size: 18px;
    margin-top: 1px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .showcase-container {
        gap: 60px;
    }
    .showcase-row, .showcase-row:nth-child(even) {
        flex-direction: column;
        gap: 30px;
    }
    .screenshot-column, .details-column {
        flex: none;
        width: 100%;
    }
}

/* Features Section */
.features-section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 34px;
    margin-bottom: 12px;
    font-weight: 700;
}

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

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

.feature-card {
    padding: 32px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    border-color: var(--border-hover);
    background-color: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px var(--shadow-main);
}

.feature-icon {
    margin-bottom: 20px;
    background-color: var(--bg-main);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    color: var(--accent-cyan);
}

.feature-icon span {
    font-size: 24px;
}

.feature-card h3 {
    font-size: 19px;
    margin-bottom: 12px;
}

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

/* How to Use Tab System */
.how-to-use-section {
    padding: 80px 0;
}

.tab-container {
    overflow: hidden;
}

.tab-headers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-bottom: 1px solid var(--border-color);
}

.tab-header {
    background: transparent;
    border: none;
    padding: 16px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.tab-header:hover {
    color: var(--text-primary);
}

.tab-header.active {
    color: var(--accent-blue);
    border-bottom: 2px solid var(--accent-blue);
}

.tab-contents {
    padding: 32px;
}

.tab-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-panel.active {
    display: block;
}

.tab-desc {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 16px;
}

/* Step list */
.step-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.step-list li {
    font-size: 14px;
    position: relative;
    padding-left: 36px;
    color: var(--text-secondary);
}

.step-list li strong {
    font-family: var(--font-heading);
    color: var(--text-primary);
}

.step-list li::before {
    position: absolute;
    left: 0;
    top: 2px;
    width: 22px;
    height: 22px;
    background-color: var(--accent-blue);
    border-radius: 50%;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
}

.step-list li:nth-child(1)::before { content: '1'; }
.step-list li:nth-child(2)::before { content: '2'; }
.step-list li:nth-child(3)::before { content: '3'; }

/* Code Blocks */
.code-block-wrapper {
    background-color: var(--bg-terminal);
    color: #e2e8f0;
    padding: 16px 20px;
    border-radius: 8px;
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    border: 1px solid var(--border-color);
}

.code-block-wrapper pre {
    overflow-x: auto;
    white-space: pre;
    flex: 1;
}

.code-block-wrapper code {
    font-family: inherit;
}

.btn-copy {
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 500;
    transition: var(--transition-smooth);
    user-select: none;
}

.btn-copy:hover {
    background-color: rgba(255, 255, 255, 0.12);
}

.btn-copy.copied {
    background-color: var(--accent-emerald);
    border-color: var(--accent-emerald);
    color: #ffffff;
}

/* Margin helpers */
.margin-top-sm { margin-top: 8px; }
.margin-bottom-sm { margin-bottom: 8px; }

.term-green {
    color: #34d399;
}

/* Privacy Section */
.privacy-section {
    padding: 60px 0;
}

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

.privacy-card {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

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

.privacy-icon {
    font-size: 28px;
    color: var(--accent-cyan);
}

.privacy-card h3 {
    font-size: 20px;
    font-weight: 600;
}

.privacy-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* Footers */
.app-footer {
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-card);
    text-align: center;
}

.app-footer p {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

.footer-subtext {
    font-size: 12px !important;
    color: var(--text-secondary);
    opacity: 0.8;
    margin-top: 6px;
    font-weight: 400 !important;
}

.font-size-xs {
    font-size: 11px !important;
}

/* Responsive Breakpoints */
@media (max-width: 820px) {
    .hero-title {
        font-size: 34px;
    }
    
    .showcase-layout {
        grid-template-columns: 1fr;
        padding: 24px;
        gap: 24px;
    }

    .screenshot-pane {
        min-height: auto;
    }

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