/* 
  My Digital Well - Stylesheet
  Design System based on the app's dark, calm aesthetic.
*/

:root {
    /* Color Palette */
    --bg-main: #131720;
    --bg-surface: #1E2532;
    --bg-app: #151A22; /* Matches the dark background in screenshot */
    --accent-teal: #4FD1C5; /* Mint green/teal */
    --accent-teal-hover: #3EB3A7;
    
    --text-primary: #FFFFFF;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    
    --border-color: rgba(255, 255, 255, 0.08);
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-bg-hover: rgba(255, 255, 255, 0.06);
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    
    /* Transitions */
    --transition-smooth: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 160px; /* Offset for fixed navigation bar */
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

/* Typography Utilities */
h1 {
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

h2.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 48px;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
}

p {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-align: center;
}

.btn-primary {
    background-color: var(--accent-teal);
    color: #0A0F16;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(79, 209, 197, 0.2);
}

.btn-primary:hover {
    background-color: var(--accent-teal-hover);
    box-shadow: 0 6px 20px rgba(79, 209, 197, 0.3);
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    background-color: var(--card-bg);
    border-color: var(--accent-teal);
}

/* Navbar */
.navbar {
    padding: 24px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(19, 23, 32, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

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

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

.logo-icon {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 50%;
}

.logo-icon.small {
    width: 48px;
    height: 48px;
}

.brand-name {
    font-weight: 800;
    letter-spacing: -0.03em;
    font-size: 2.2rem;
    background: linear-gradient(135deg, #FFFFFF 30%, var(--accent-teal) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent; /* Fallback */
    line-height: 1.1;
}

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

.nav-links a:not(.btn) {
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.nav-links a:not(.btn):hover {
    color: var(--accent-teal);
}

/* Hero Section */
.hero {
    padding-top: 140px;
    padding-bottom: 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

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

.hero-text p {
    margin-bottom: 40px;
    max-width: 480px;
}

/* App Mockup UI (Recreating the screenshot) */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.app-mockup {
    background-color: var(--bg-app);
    width: 380px;
    min-height: 520px;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
    padding: 20px;
    transform: rotateY(-5deg) rotateX(2deg);
    transition: var(--transition-smooth);
}

@keyframes borderPulse {
    0% { box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(79, 209, 197, 0.3); }
    50% { box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6), 0 0 0 3px rgba(79, 209, 197, 0.9); }
    100% { box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(79, 209, 197, 0.3); }
}

.app-mockup:hover, .app-mockup:focus-within {
    transform: rotateY(0deg) rotateX(0deg) translateY(-10px);
    /* Apply a continuous pulsing animation instead of a static border */
    animation: borderPulse 2s infinite ease-in-out;
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    color: var(--text-muted);
}

.app-icons-left, .app-icons-right {
    display: flex;
    gap: 12px;
}

.app-title {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    font-weight: 500;
}

/* Circular Timer */
.timer-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
    flex-grow: 1;
}

.circular-progress {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    /* Using conic-gradient to simulate the progress bar. 
       Teal from 0 to ~15%, dark grey for the rest */
    background: conic-gradient(var(--accent-teal) 0deg 45deg, #2A3241 45deg 360deg);
    display: flex;
    justify-content: center;
    align-items: center;
}

.inner-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background-color: var(--bg-app);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.timer-label {
    color: var(--accent-teal);
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    font-weight: 600;
    margin-bottom: 4px;
}

.timer-value {
    font-size: 3.5rem;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1;
}

/* Divider */
.divider {
    height: 1px;
    background-color: var(--border-color);
    width: 100%;
    margin-bottom: 20px;
}

/* Stats Section within Mockup */
.stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.stats-label {
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    font-weight: 500;
}

.screen-time-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.screen-time-val {
    color: var(--accent-teal);
    font-size: 1.1rem;
    font-weight: 600;
}

/* Stat Cards inside mockup */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.stat-card:hover {
    background-color: var(--card-bg-hover);
    border-color: var(--accent-teal);
}

.active-card {
    background-color: rgba(255, 255, 255, 0.05);
}

.stat-val {
    font-size: 0.95rem;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 2px;
}

.stat-name {
    font-size: 0.5rem;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

/* Mockup Footer */
.app-footer {
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    color: var(--text-muted);
}

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

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px 30px;
    transition: var(--transition-smooth);
}

.feature-card:hover {
    transform: translateY(-5px);
    background: var(--card-bg-hover);
    border-color: rgba(79, 209, 197, 0.3);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background-color: rgba(79, 209, 197, 0.1);
    border-radius: 12px;
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.feature-icon::after {
    content: '';
    width: 24px;
    height: 24px;
    background-color: var(--accent-teal);
    border-radius: 4px;
    /* Adding a glow */
    box-shadow: 0 0 15px rgba(79, 209, 197, 0.5);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

/* Footer */
.site-footer {
    padding: 60px 0 40px;
    border-top: 1px solid var(--border-color);
}

.site-footer .brand-name {
    font-size: 0.875rem;
}

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

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

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

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

.copyright {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Icons styling for mockup (using simple CSS shapes) */
.icon-gear, .icon-minimize, .icon-pin, .icon-dash, .icon-close {
    width: 12px;
    height: 12px;
    display: inline-block;
    border: 1px solid var(--text-muted);
    border-radius: 50%;
}
.icon-minimize { border-radius: 2px; }
.icon-pin { border-radius: 50% 50% 0 50%; transform: rotate(45deg); }
.icon-dash { height: 2px; border: none; background: var(--text-muted); margin-top: 5px; }
.icon-close { 
    position: relative; 
    border: none;
}
.icon-close::before, .icon-close::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 1px;
    background: var(--text-muted);
    top: 5px;
    left: 0;
}
.icon-close::before { transform: rotate(45deg); }
.icon-close::after { transform: rotate(-45deg); }

/* Download Section */
.download-section {
    padding: 100px 0;
    background-color: var(--bg-main);
    border-top: 1px solid var(--border-color);
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.125rem;
    text-align: center;
    max-width: 600px;
    margin: -32px auto 16px;
}

.download-version {
    color: var(--text-secondary);
    font-size: 0.95rem;
    text-align: center;
    margin: 0 auto 60px;
    opacity: 0.85;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1050px;
    margin: 0 auto;
}

.download-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    transition: var(--transition-smooth);
}

.download-card:hover {
    transform: translateY(-8px);
    background: var(--card-bg-hover);
    border-color: rgba(79, 209, 197, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(79, 209, 197, 0.05);
}


.os-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 24px;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.download-card:hover .os-icon {
    color: var(--accent-teal);
    background-color: rgba(79, 209, 197, 0.08);
    border-color: rgba(79, 209, 197, 0.3);
    box-shadow: 0 0 15px rgba(79, 209, 197, 0.15);
}


.svg-icon {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

.download-card h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.download-meta {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 28px;
    flex-grow: 1;
}

.btn-download {
    width: 100%;
    margin-bottom: 16px;
}

.file-info {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }
    
    .hero-text p {
        margin: 0 auto 40px;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .download-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    .features-grid, .download-grid {
        grid-template-columns: 1fr;
    }

    .download-grid {
        max-width: 400px;
    }
    
    .nav-links {
        display: none; /* simple mobile hide for now */
    }
}

/* Content Page Styles (e.g. Privacy Policy) */
.content-page {
    padding-top: 180px;
    padding-bottom: 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.content-container {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 60px 48px;
    max-width: 800px;
    width: 100%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.content-container h1 {
    font-size: 3rem;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #FFFFFF 30%, var(--accent-teal) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    font-weight: 700;
}

.last-updated {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    display: block;
}

.content-container h2 {
    font-size: 1.5rem;
    margin-top: 36px;
    margin-bottom: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.content-container p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.content-container ul {
    margin-bottom: 24px;
    padding-left: 20px;
}

.content-container li {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .content-page {
        padding-top: 140px;
        padding-bottom: 60px;
    }
    
    .content-container {
        padding: 40px 24px;
    }
    
    .content-container h1 {
        font-size: 2.25rem;
    }
}

/* Checksum & Download Items styling */
.download-options {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.download-item {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.checksum-box {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.72rem;
    color: var(--text-secondary);
    margin-top: 8px;
    width: 100%;
    transition: var(--transition-smooth);
}

.download-item:hover .checksum-box {
    border-color: rgba(79, 209, 197, 0.2);
    background: rgba(255, 255, 255, 0.04);
}

.checksum-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.checksum-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-copy-hash {
    background: none;
    border: none;
    color: var(--accent-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-copy-hash:hover {
    color: var(--accent-teal-hover);
    background: rgba(79, 209, 197, 0.1);
}

.hash-label {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.65rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hash-value {
    font-family: 'Courier New', Courier, monospace;
    background: rgba(0, 0, 0, 0.25);
    padding: 4px 8px;
    border-radius: 4px;
    color: var(--text-secondary);
    width: 100%;
    word-break: break-all;
    text-align: left;
    line-height: 1.3;
}

.hash-link {
    color: var(--accent-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    border-radius: 4px;
    transition: var(--transition-smooth);
}

.hash-link:hover {
    color: var(--accent-teal-hover);
    background: rgba(79, 209, 197, 0.1);
}

.svg-icon-mini {
    width: 14px;
    height: 14px;
    fill: currentColor;
}
