/* ===== CSS Variables ===== */
:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-tertiary: #1a1a1a;
    --bg-card: #141414;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
    --accent: #ffffff;
    --accent-dim: rgba(255, 255, 255, 0.1);
    --border: rgba(255, 255, 255, 0.1);
    --gradient-start: #ffffff;
    --gradient-end: #666666;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    --transition: 0.3s ease;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

ul {
    list-style: none;
}

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

/* ===== Utility Classes ===== */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-tag {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-primary);
}

.btn-primary:hover {
    background: var(--text-secondary);
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background: var(--accent-dim);
    border-color: var(--text-secondary);
}

.btn-full {
    width: 100%;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

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

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

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

.nav-cta {
    padding: 10px 20px;
    font-size: 0.875rem;
    font-weight: 500;
    background: var(--text-primary);
    color: var(--bg-primary);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.nav-cta:hover {
    background: var(--text-secondary);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: var(--accent-dim);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 480px;
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 48px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
}

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

/* Hero Visual - Space Theme */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 600px;
}

.space-scene {
    position: relative;
    width: 600px;
    height: 600px;
}

/* Stars */
.stars {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.star {
    position: absolute;
    background: #ffffff;
    border-radius: 50%;
    animation: twinkle 2s ease-in-out infinite;
}

.star-1 { width: 3px; height: 3px; top: 8%; left: 12%; animation-delay: 0s; }
.star-2 { width: 2px; height: 2px; top: 22%; left: 88%; animation-delay: 0.3s; }
.star-3 { width: 4px; height: 4px; top: 4%; left: 55%; animation-delay: 0.6s; }
.star-4 { width: 2px; height: 2px; top: 38%; left: 8%; animation-delay: 0.9s; }
.star-5 { width: 3px; height: 3px; top: 65%; left: 92%; animation-delay: 1.2s; }
.star-6 { width: 2px; height: 2px; top: 78%; left: 18%; animation-delay: 1.5s; }
.star-7 { width: 3px; height: 3px; top: 12%; left: 72%; animation-delay: 0.2s; }
.star-8 { width: 2px; height: 2px; top: 52%; left: 3%; animation-delay: 0.8s; }
.star-9 { width: 4px; height: 4px; top: 28%; left: 32%; animation-delay: 1.1s; }
.star-10 { width: 2px; height: 2px; top: 85%; left: 78%; animation-delay: 0.4s; }
.star-11 { width: 3px; height: 3px; top: 42%; left: 62%; animation-delay: 1.4s; }
.star-12 { width: 2px; height: 2px; top: 18%; left: 98%; animation-delay: 0.7s; }
.star-13 { width: 3px; height: 3px; top: 70%; left: 45%; animation-delay: 1.0s; }
.star-14 { width: 2px; height: 2px; top: 55%; left: 82%; animation-delay: 0.5s; }
.star-15 { width: 3px; height: 3px; top: 92%; left: 35%; animation-delay: 1.3s; }

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* Planets base styles */
.planet {
    position: absolute;
    animation: float 8s ease-in-out infinite;
}

.planet-glow {
    position: absolute;
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Main planet with ring (top left - purple Saturn) */
.planet-main {
    top: 8%;
    left: 8%;
    width: 120px;
    height: 120px;
}

.planet-main .planet-body {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5b4b9e 0%, #7b6bbd 50%, #4a3a8e 100%);
    position: absolute;
    top: 10px;
    left: 10px;
    box-shadow:
        inset -15px -10px 30px rgba(0, 0, 0, 0.4),
        0 0 50px rgba(107, 90, 167, 0.5);
}

.planet-main .planet-ring {
    position: absolute;
    top: 45px;
    left: -10px;
    width: 140px;
    height: 35px;
    border: 3px solid rgba(150, 140, 190, 0.4);
    border-radius: 50%;
    transform: rotateX(70deg);
}

.planet-main .planet-glow {
    top: 0;
    left: 0;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(107, 90, 167, 0.3) 0%, transparent 70%);
}

/* Orange/yellow planet (top right) */
.planet-orange {
    top: 12%;
    right: 15%;
    width: 45px;
    height: 45px;
    animation-delay: 1s;
}

.planet-orange .planet-body {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffcc00 0%, #ff9900 50%, #ff6600 100%);
    box-shadow:
        inset -8px -6px 20px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(255, 153, 0, 0.6);
}

.planet-orange .planet-glow {
    top: -5px;
    left: -5px;
    width: 55px;
    height: 55px;
    background: radial-gradient(circle, rgba(255, 153, 0, 0.4) 0%, transparent 70%);
}

/* Pink planet (bottom right) */
.planet-pink {
    bottom: 20%;
    right: 12%;
    width: 55px;
    height: 55px;
    animation-delay: 2s;
}

.planet-pink .planet-body {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b8a 0%, #ff3366 50%, #cc2952 100%);
    box-shadow:
        inset -10px -8px 25px rgba(0, 0, 0, 0.3),
        0 0 35px rgba(255, 107, 138, 0.5);
}

.planet-pink .planet-glow {
    top: -5px;
    left: -5px;
    width: 65px;
    height: 65px;
    background: radial-gradient(circle, rgba(255, 107, 138, 0.4) 0%, transparent 70%);
}

/* Small blue planet (middle left) */
.planet-blue {
    top: 45%;
    left: 5%;
    width: 25px;
    height: 25px;
    animation-delay: 3s;
}

.planet-blue .planet-body {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4a90d9 0%, #2e6eb3 100%);
    box-shadow:
        inset -5px -4px 12px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(74, 144, 217, 0.4);
}

/* Tiny purple planet */
.planet-tiny {
    bottom: 35%;
    left: 25%;
    width: 18px;
    height: 18px;
    animation-delay: 4s;
}

.planet-tiny .planet-body {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #9b6bbd 0%, #7b4b9e 100%);
    box-shadow:
        inset -4px -3px 10px rgba(0, 0, 0, 0.3),
        0 0 15px rgba(155, 107, 189, 0.4);
}

/* Orbit Container */
.orbit-container {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 480px;
    height: 480px;
    transform: translate(-50%, -50%);
}

.orbit-path {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px dashed rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    transform: rotateX(65deg);
}

/* Orbiting items */
.orbit-item {
    position: absolute;
    top: 50%;
    left: 50%;
}

.orbit-appstore {
    animation: orbit 25s linear infinite;
}

.orbit-googleplay {
    animation: orbit 25s linear infinite;
    animation-delay: -12.5s;
}

/* Store icons */
.orbit-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
    animation: counterRotate 25s linear infinite;
    margin: -30px 0 0 -30px;
}

.orbit-appstore .orbit-icon {
    animation-delay: 0s;
}

.orbit-googleplay .orbit-icon {
    animation-delay: -12.5s;
}

.orbit-icon svg {
    width: 30px;
    height: 30px;
    color: #ffffff;
}

@keyframes orbit {
    0% {
        transform: rotate(0deg) translateX(220px) rotate(0deg);
    }
    100% {
        transform: rotate(360deg) translateX(220px) rotate(-360deg);
    }
}

@keyframes counterRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(-360deg); }
}

/* ===== Apps Section ===== */
.apps-section {
    padding: 120px 0;
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

/* App Carousel */
.app-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.carousel-arrow {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.carousel-arrow:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
}

.carousel-arrow svg {
    width: 28px;
    height: 28px;
}

.carousel-track-container {
    overflow: hidden;
    width: 100%;
    max-width: 1000px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.app-slide {
    min-width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease;
}

.app-slide.active {
    opacity: 1;
    visibility: visible;
}

.app-showcase {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 60px;
    align-items: center;
    padding: 60px;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
}

.app-info-side {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.app-icon-large {
    width: 90px;
    height: 90px;
    border-radius: 20px;
    margin-bottom: 28px;
    object-fit: cover;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.app-info-side h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.app-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
}

.app-store-buttons {
    display: flex;
    gap: 16px;
    flex-direction: row;
}

.store-btn-large {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 28px;
    background: #000;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: var(--transition);
    white-space: nowrap;
}

.store-btn-large:hover {
    background: #1a1a1a;
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.store-btn-large svg {
    width: 32px;
    height: 32px;
    color: #fff;
    flex-shrink: 0;
}

.store-btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.store-btn-small {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.2;
}

.store-btn-big {
    font-size: 1.375rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.2;
    white-space: nowrap;
}

.app-screens-side {
    position: relative;
    height: 480px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-frame-large {
    width: 180px;
    height: 380px;
    background: #1a1a1a;
    border-radius: 28px;
    padding: 6px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
    position: absolute;
    z-index: 3;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.phone-frame-large.phone-back-left {
    transform: translate(calc(-50% - 100px), -50%) scale(0.9);
    z-index: 1;
    opacity: 0.6;
}

.phone-frame-large.phone-back-right {
    transform: translate(calc(-50% + 100px), -50%) scale(0.9);
    z-index: 2;
    opacity: 0.6;
}

.phone-screen-large {
    width: 100%;
    height: 100%;
    background: #0a0a0a;
    border-radius: 28px;
    overflow: hidden;
}

.screenshot-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Carousel Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.4);
}

.carousel-dot.active {
    background: var(--accent);
    width: 32px;
    border-radius: 6px;
}

/* ===== About Section ===== */
.about-section {
    padding: 120px 0;
    background: var(--bg-primary);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-content h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    line-height: 1.2;
}

.about-content p {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.7;
}

.about-features {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.feature {
    display: flex;
    gap: 16px;
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-dim);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    color: var(--text-primary);
}

.feature-text h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.feature-text p {
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* About Visual - Code Card */
.about-visual {
    display: flex;
    justify-content: center;
}

.about-card {
    width: 100%;
    max-width: 450px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-card-header {
    display: flex;
    gap: 8px;
    padding: 16px 20px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border);
}

.card-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-muted);
}

.card-dot:nth-child(1) { background: #ff5f56; }
.card-dot:nth-child(2) { background: #ffbd2e; }
.card-dot:nth-child(3) { background: #27ca40; }

.about-card-content {
    padding: 24px;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Mono', monospace;
    font-size: 0.875rem;
    line-height: 1.8;
}

.code-line {
    white-space: nowrap;
}

.code-line.indent {
    padding-left: 24px;
}

.code-keyword {
    color: #c678dd;
}

.code-var {
    color: #e5c07b;
}

.code-prop {
    color: #61afef;
}

.code-string {
    color: #98c379;
}

/* ===== Contact Section ===== */
.contact-section {
    padding: 120px 0;
    background: var(--bg-secondary);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-info h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    line-height: 1.2;
}

.contact-info > p {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.7;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    gap: 16px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-dim);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    color: var(--text-primary);
}

.contact-item h4 {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.contact-item a,
.contact-item p {
    font-size: 1rem;
    color: var(--text-primary);
    margin: 0;
}

.contact-item a:hover {
    color: var(--text-secondary);
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 40px;
    border: 1px solid var(--border);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
    padding: 14px 18px;
    font-size: 1rem;
    font-family: inherit;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--text-secondary);
    background: var(--bg-secondary);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

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

/* Letter Animation */
.contact-animation-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
}

.letter-animation {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.envelope {
    position: relative;
    width: 200px;
    height: 140px;
    cursor: pointer;
}

.envelope-back {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2a2a3e 0%, #1a1a2e 100%);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.envelope-front {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 70%;
    background: linear-gradient(180deg, #3a3a4e 0%, #2a2a3e 100%);
    border-radius: 0 0 8px 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: none;
    z-index: 2;
}

.envelope-flap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: linear-gradient(180deg, #4a4a5e 0%, #3a3a4e 100%);
    clip-path: polygon(0 0, 50% 100%, 100% 0);
    transform-origin: top center;
    transition: transform 0.4s ease;
    z-index: 3;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.envelope:hover .envelope-flap {
    transform: rotateX(180deg);
}

.letter {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 160px;
    height: 100px;
    background: #f5f5f5;
    border-radius: 4px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 1;
    transition: transform 0.4s ease 0.1s;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.envelope:hover .letter {
    transform: translateX(-50%) translateY(-50px);
}

.letter-line {
    height: 8px;
    background: linear-gradient(90deg, #ccc 0%, #ddd 100%);
    border-radius: 4px;
}

.letter-line.short {
    width: 60%;
}

.send-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
}

/* ===== Footer ===== */
.footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border);
    padding: 64px 0 32px;
}

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

.footer-main {
    display: flex;
    justify-content: space-between;
    margin-bottom: 48px;
}

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.9375rem;
    color: var(--text-muted);
    max-width: 280px;
}

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

.footer-col h4 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col a {
    font-size: 0.9375rem;
    color: var(--text-muted);
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

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

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }

    .hero-content {
        order: 1;
    }

    .hero-visual {
        display: none;
    }

    .hero-description {
        margin: 0 auto 32px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-content,
    .contact-info {
        text-align: center;
    }

    .about-features {
        align-items: center;
    }

    .feature {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .contact-details {
        align-items: center;
    }

    .contact-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-main {
        flex-direction: column;
        gap: 48px;
        text-align: center;
    }

    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-links {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .section-container {
        padding: 0 20px;
    }

    .nav-links {
        display: none;
    }

    .nav-cta {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .apps-section,
    .about-section,
    .contact-section {
        padding: 80px 0;
    }

    .section-header {
        margin-bottom: 48px;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .section-header p {
        font-size: 1.0625rem;
    }

    /* Carousel responsive - 768px */
    .app-carousel {
        gap: 20px;
    }

    .carousel-arrow {
        width: 44px;
        height: 44px;
    }

    .carousel-arrow svg {
        width: 22px;
        height: 22px;
    }

    .app-showcase {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 30px;
    }

    .app-info-side {
        align-items: center;
        text-align: center;
    }

    .app-screens-side {
        height: 420px;
    }

    .phone-frame-large {
        width: 180px;
        height: 380px;
        border-radius: 30px;
    }

    .phone-frame-large.phone-back-left {
        transform: translate(calc(-50% - 100px), -50%) scale(0.88);
    }

    .phone-frame-large.phone-back-right {
        transform: translate(calc(-50% + 100px), -50%) scale(0.88);
    }

    .phone-screen-large {
        border-radius: 24px;
    }

    .app-store-buttons {
        justify-content: center;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .contact-form-wrapper {
        padding: 24px;
    }

    .footer-links {
        gap: 48px;
    }
}

@media (max-width: 480px) {
    .section-container {
        padding: 0 16px;
    }

    .hero {
        padding: 100px 0 40px;
    }

    .hero-container {
        padding: 0 16px;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 6px 12px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 24px;
        justify-content: space-around;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .section-header p {
        font-size: 1rem;
        padding: 0 8px;
    }

    .apps-section,
    .about-section,
    .contact-section {
        padding: 60px 0;
    }

    /* Carousel responsive - 480px */
    .app-carousel {
        gap: 12px;
        flex-direction: column;
    }

    .carousel-arrow {
        width: 40px;
        height: 40px;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
    }

    .carousel-arrow-left {
        left: 5px;
    }

    .carousel-arrow-right {
        right: 5px;
    }

    .carousel-arrow svg {
        width: 20px;
        height: 20px;
    }

    .app-showcase {
        padding: 20px;
        gap: 30px;
    }

    .app-icon-large {
        width: 64px;
        height: 64px;
        border-radius: 14px;
    }

    .app-info-side h3 {
        font-size: 1.5rem;
    }

    .app-description {
        font-size: 1rem;
        margin-bottom: 24px;
    }

    .app-screens-side {
        height: 300px;
    }

    .phone-frame-large {
        width: 130px;
        height: 270px;
        border-radius: 22px;
        padding: 5px;
    }

    .phone-frame-large.phone-back-left {
        transform: translate(calc(-50% - 70px), -50%) scale(0.85);
    }

    .phone-frame-large.phone-back-right {
        transform: translate(calc(-50% + 70px), -50%) scale(0.85);
    }

    .phone-screen-large {
        border-radius: 18px;
    }

    .app-store-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        width: 100%;
    }

    .store-btn-large {
        padding: 12px 20px;
        gap: 12px;
        width: 100%;
        justify-content: flex-start;
    }

    .store-btn-large svg {
        width: 28px;
        height: 28px;
    }

    .store-btn-small {
        font-size: 0.55rem;
    }

    .store-btn-big {
        font-size: 1.125rem;
    }

    .carousel-dots {
        margin-top: 24px;
    }

    .about-card {
        max-width: 100%;
    }

    .about-card-content {
        padding: 16px;
        font-size: 0.75rem;
        overflow-x: auto;
    }

    .code-line {
        white-space: pre;
    }

    .code-line.indent {
        padding-left: 16px;
    }

    .contact-animation-wrapper {
        padding: 40px 20px;
    }

    .envelope {
        width: 160px;
        height: 110px;
    }

    .letter {
        width: 130px;
        height: 80px;
        padding: 12px;
    }

    .send-text {
        font-size: 1rem;
    }

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

/* Extra small devices (< 375px) */
@media (max-width: 375px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .app-info-side h3 {
        font-size: 1.75rem;
    }

    .app-description {
        font-size: 0.9375rem;
    }

    .app-icon-large {
        width: 56px;
        height: 56px;
        border-radius: 12px;
    }

    .phone-frame-large {
        width: 110px;
        height: 230px;
    }

    .phone-frame-large.phone-back-left {
        transform: translate(calc(-50% - 60px), -50%) scale(0.82);
    }

    .phone-frame-large.phone-back-right {
        transform: translate(calc(-50% + 60px), -50%) scale(0.82);
    }

    .app-screens-side {
        height: 250px;
    }
}
