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

:root {
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-card: #111111;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-tertiary: #707070;
    --accent-blue: #0070f3;
    --accent-blue-hover: #3291ff;
    --border-color: #222222;
    --hover-bg: #1a1a1a;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 
                 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', 
                 sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

#three-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

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

/* Header */
.header {
    background-color: rgba(0, 0, 0, 0.8);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.2s ease;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
}

.logo a {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.3px;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.logo a:hover {
    color: var(--accent-blue);
}

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

.nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
    position: relative;
}

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

.nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-blue);
    transition: width 0.3s ease;
}

.nav a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    padding: 140px 0 100px;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero #three-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 112, 243, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 112, 243, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(48px, 8vw, 80px);
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -2px;
    color: var(--text-primary);
    line-height: 1.1;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(20px, 2.5vw, 28px);
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 24px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-description {
    font-size: clamp(16px, 1.8vw, 20px);
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 48px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 40px;
    margin: 60px auto 48px;
    max-width: 700px;
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.stat-number {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    color: var(--accent-blue);
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 48px;
}

.btn-hero {
    background-color: var(--accent-blue);
    color: var(--text-primary);
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--accent-blue);
}

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

.btn-hero-secondary {
    background-color: transparent;
    color: var(--text-primary);
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border-color);
}

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

/* Apps Section */
.apps-section {
    padding: 100px 0;
    background-color: var(--bg-secondary);
    position: relative;
}

.apps-section .section-title {
    text-align: center;
    margin-bottom: 60px;
    font-size: clamp(36px, 5vw, 48px);
    font-weight: 700;
    letter-spacing: -1px;
    color: var(--text-primary);
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.app-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: inherit;
}

.app-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--accent-blue);
    box-shadow: 0 20px 40px rgba(0, 112, 243, 0.2);
    background-color: var(--hover-bg);
}

.app-icon {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 8px;
    transition: transform 0.3s ease;
}

.app-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 20px;
}

.app-card:hover .app-icon {
    transform: scale(1.1) rotate(5deg);
}

.icon-chatzysmart {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-chatzysmart svg {
    width: 100%;
    height: 100%;
}

.app-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.app-name {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.app-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.app-note {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: -4px;
}

.app-action {
    margin-top: 12px;
}

.btn-get,
.btn-download {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--accent-blue);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
    box-shadow: var(--shadow-sm);
    pointer-events: none;
}

.app-card:hover .btn-get,
.app-card:hover .btn-download {
    background-color: var(--accent-blue);
    color: var(--text-primary);
    border-color: var(--accent-blue);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-get:active,
.btn-download:active {
    transform: translateY(0);
}

.btn-download {
    color: var(--accent-blue);
}

.btn-download svg {
    width: 16px;
    height: 16px;
}

/* About Section */
.about-section {
    padding: 100px 0;
    background-color: var(--bg-primary);
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    margin-bottom: 32px;
    text-align: center;
    letter-spacing: -1px;
    color: var(--text-primary);
}

.about-text {
    font-size: 18px;
    color: var(--text-secondary);
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

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

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.footer-section h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

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

.footer-section a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 8px;
    transition: color 0.2s ease;
}

.footer-section a:hover {
    color: var(--accent-blue);
}

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

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 8px;
}

.footer-address {
    color: var(--text-tertiary);
    font-size: 12px;
}

/* Page Content Styles (for legal pages) */
.page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 120px 24px 80px;
}

.page-content h1 {
    font-size: clamp(36px, 6vw, 48px);
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -1px;
    color: var(--text-primary);
}

.page-content h2 {
    font-size: 24px;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.page-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin-top: 32px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.page-content p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.page-content ul,
.page-content ol {
    margin-left: 24px;
    margin-bottom: 16px;
}

.page-content li {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 8px;
}

.page-content a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

.page-content a:hover {
    color: var(--accent-blue-hover);
    text-decoration: underline;
}

.page-content .last-updated {
    color: var(--text-tertiary);
    font-size: 14px;
    font-style: italic;
    margin-bottom: 32px;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    font-family: inherit;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--bg-card);
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(0, 112, 243, 0.1);
}

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

.btn-submit {
    background-color: var(--accent-blue);
    color: var(--text-primary);
    border: none;
    padding: 12px 32px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

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

.btn-submit:active {
    transform: translateY(0);
}

.contact-info {
    margin-top: 48px;
    padding: 32px;
    background-color: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.contact-info h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.contact-info p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.8;
}

/* Parallax Effects */
.parallax-section {
    position: relative;
    will-change: transform;
}

.parallax-item {
    will-change: transform;
    transition: transform 0.1s ease-out;
}

/* Scroll Animations */
.app-card,
.section-title,
.about-text {
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.app-card.animate-in,
.section-title.animate-in,
.about-text.animate-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

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

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.app-card {
    animation: fadeIn 0.6s ease-out;
}

.app-card:nth-child(1) { animation-delay: 0.1s; }
.app-card:nth-child(2) { animation-delay: 0.2s; }
.app-card:nth-child(3) { animation-delay: 0.3s; }
.app-card:nth-child(4) { animation-delay: 0.4s; }
.app-card:nth-child(5) { animation-delay: 0.5s; }

/* Selection */
::selection {
    background-color: rgba(0, 112, 243, 0.4);
    color: var(--text-primary);
}

::-moz-selection {
    background-color: rgba(0, 112, 243, 0.4);
    color: var(--text-primary);
}

/* Responsive Design for Grid */
@media (min-width: 768px) {
    .apps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .header .container {
        padding: 20px 24px;
    }
}

@media (min-width: 1024px) {
    .apps-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .app-name {
        font-size: 22px;
    }

    .app-description {
        font-size: 15px;
    }
}

@media (max-width: 767px) {
    .apps-grid {
        grid-template-columns: 1fr;
    }
    
    .app-card {
        padding: 24px;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-hero,
    .btn-hero-secondary {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}