:root {
    --bg-color: #05070a;
    --text-color: #ffffff;
    --text-muted: #94a3b8;
    --primary-gradient: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%);
    --spark-gradient: linear-gradient(135deg, #ff0080 0%, #ff8c00 100%);
    --card-bg: rgba(255, 255, 255, 0.05);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 700;
}

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

/* Header */
header {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(5, 7, 10, 0.8);
    border-bottom: 1px solid var(--glass-border);
}

/* Brand Logo-PNG Styling */
.logo-img {
    filter: drop-shadow(0 0 10px rgba(58, 123, 213, 0.4));
    transition: transform 0.3s ease;
}

.hero-brand-img {
    height: 100px;
    width: auto;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.2));
    animation: floatIso 4s ease-in-out infinite, imageGlow 3s ease-in-out infinite alternate;
}

@keyframes floatIso {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes imageGlow {
    from {
        filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.1));
    }

    to {
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.5));
    }
}

.logo-flex {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: opacity 0.3s;
}

nav a:hover {
    opacity: 0.7;
}

.lang-selector {
    background: #0f172a;
    color: white;
    border: 1px solid var(--glass-border);
    padding: 0.3rem 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    outline: none;
}

.lang-selector option {
    background: #0f172a;
    color: white;
}

/* Hero Section with Dot Grid Backdrop */
.hero {
    padding-top: 140px;
    padding-bottom: 80px;
    text-align: center;
    background-color: var(--bg-color);
    background-image:
        radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 0);
    background-size: 30px 30px;
    position: relative;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle,
            rgba(0, 210, 255, 0.15) 0%,
            rgba(58, 123, 213, 0.1) 30%,
            rgba(168, 85, 247, 0.05) 60%,
            transparent 80%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    filter: blur(80px);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.8s ease;
}

.hero:hover .hero-glow {
    opacity: 1;
}

.hero-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(58, 123, 213, 0.1);
    border: 1px solid rgba(58, 123, 213, 0.3);
    border-radius: 20px;
    color: #00d2ff;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 300px;
    background: linear-gradient(to top, var(--bg-color), transparent);
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(58, 123, 213, 0.05), transparent 70%);
    animation: pulse 10s infinite alternate;
    z-index: 0;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.3;
    }

    100% {
        transform: scale(1.1);
        opacity: 0.6;
    }
}

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

.hero-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    gap: 4rem;
}

.hero-text {
    flex: 2;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.phone-code-mockup {
    width: 280px;
    height: 580px;
    background: #050505;
    border: 10px solid #1a1a1a;
    border-radius: 46px;
    padding: 3rem 1.2rem;
    position: relative;
    box-shadow:
        0 40px 100px rgba(0, 0, 0, 0.7),
        0 0 60px rgba(0, 255, 128, 0.1),
        inset 0 0 15px rgba(255, 255, 255, 0.03);
    animation: float 8s ease-in-out infinite;
}

/* Hardware Buttons */
.phone-buttons {
    position: absolute;
    right: -13px;
    top: 100px;
    z-index: 5;
}

.btn-power,
.btn-vol {
    width: 3px;
    background: #1a1a1a;
    border-radius: 0 4px 4px 0;
    margin-bottom: 20px;
}

.btn-power {
    height: 40px;
}

.btn-vol {
    height: 80px;
}

/* Mirror buttons on the left and slightly inset for shadow */
.phone-code-mockup::after {
    content: '';
    position: absolute;
    left: -10px;
    top: 120px;
    width: 3px;
    height: 60px;
    background: #1a1a1a;
    border-radius: 4px 0 0 4px;
}

/* Glass Reflection Overlay - More realistic */
.phone-code-mockup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(115deg,
            rgba(255, 255, 255, 0.08) 0%,
            transparent 40%,
            rgba(255, 255, 255, 0.02) 41%,
            transparent 100%);
    pointer-events: none;
    z-index: 10;
    border-radius: 36px;
}

.phone-code-header {
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 15px;
    left: 0;
    right: 0;
    z-index: 11;
    gap: 15px;
}

.phone-speaker {
    width: 40px;
    height: 4px;
    background: #1a1a1a;
    border-radius: 2px;
}

.phone-camera {
    width: 8px;
    height: 8px;
    background: #1a1a1a;
    border-radius: 50%;
    box-shadow: inset 0 0 2px rgba(255, 255, 255, 0.2);
}

.phone-code-content {
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.65rem;
    line-height: 2;
    height: 100%;
    position: relative;
    mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
    overflow: hidden;
    background: #000;
    border-radius: 32px;
}

.code-scroll-container {
    animation: codeScrollHuman 30s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

@keyframes codeScrollHuman {

    0%,
    10% {
        transform: translateY(0);
    }

    45%,
    55% {
        transform: translateY(-30%);
    }

    90%,
    100% {
        transform: translateY(-50%);
    }
}

.kotlin-code {
    color: #4ade80;
    text-align: left;
    white-space: pre;
    padding: 1.5rem 0.5rem;
}

.typing-cursor {
    display: inline-block;
    width: 6px;
    height: 12px;
    background: #4ade80;
    margin-right: 4px;
    vertical-align: middle;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.kotlin-code span.keyword {
    color: #22c55e;
    font-weight: bold;
}

.kotlin-code span.class {
    color: #facc15;
}

.kotlin-code span.type {
    color: #3b82f6;
}

.kotlin-code span.string {
    color: #ef4444;
}

.kotlin-code span.comment {
    color: #64748b;
    font-style: italic;
}

.kotlin-code span.func {
    color: #a855f7;
}

.kotlin-code span.annotation {
    color: #ec4899;
}

.kotlin-code span.val {
    color: #94a3b8;
}

.kotlin-code span.property {
    color: #e2e8f0;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(-1deg);
    }

    50% {
        transform: translateY(-15px) rotate(1deg);
    }
}

.hero h1 {
    font-size: 4rem;
    max-width: 800px;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero p {
    color: var(--text-muted);
    font-size: 1.25rem;
    max-width: 500px;
    margin-bottom: 2.5rem;
}

.cta-group {
    display: flex;
    justify-content: flex-start;
    gap: 1rem;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.4);
}

.btn-primary:hover {
    box-shadow: 0 0 35px rgba(0, 210, 255, 0.6);
}

.btn-secondary {
    border: 1px solid var(--glass-border);
    color: white;
    background: var(--glass-bg);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Philosophy */
.philosophy {
    padding: 60px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.philosophy h2 {
    font-size: 2.5rem;
}

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

.card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: 16px;
    transition: border-color 0.3s;
}

.card-title-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.card .icon {
    font-size: 2rem;
    line-height: 1;
}

.card h3 {
    margin: 0;
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Spark Section */
.spark-showcase {
    padding: 100px 0;
    background: radial-gradient(circle at top right, rgba(255, 0, 128, 0.1), transparent);
}

.spark-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.spark-content h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.spark-content .subtitle {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    color: var(--text-muted);
}

.spark-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.feat-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--glass-bg);
    padding: 1rem;
    border-radius: 8px;
    font-weight: 500;
}

.download-btns {
    display: flex;
    gap: 1rem;
}

.mockup-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup-tilted {
    perspective: 2000px;
    margin: 2rem 0;
}

.phone-inner {
    width: 280px;
    height: 580px;
    background: #000;
    border-radius: 36px;
    border: 8px solid #1a1a1a;
    transform: rotateY(-20deg) rotateX(10deg) rotateZ(5deg);
    box-shadow:
        -30px 40px 80px rgba(0, 0, 0, 0.9),
        inset 0 0 20px rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.phone-inner:hover {
    transform: rotateY(-10deg) rotateX(5deg) rotateZ(2deg) scale(1.02);
}

.phone-screen-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background-color: #05070a;
}

.phone-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 1.5s ease,
        filter 1.5s ease;
}

.phone-screen.active {
    transform: translateX(0) scale(1);
    opacity: 1;
    z-index: 2;
    filter: blur(0);
}

.phone-screen.exit {
    transform: translateX(100%) scale(0.85);
    opacity: 0;
    z-index: 1;
    filter: blur(8px);
}

.phone-screen.enter {
    transform: translateX(-100%) scale(1.15);
    opacity: 0;
    z-index: 3;
    filter: blur(8px);
}

.screenshot-gallery {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.mini-screenshot {
    width: 150px;
    height: 300px;
    border-radius: 12px;
    position: absolute;
    background-size: cover;
    background-position: center;
    z-index: -1;
    opacity: 0.6;
}

.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.spark-badge {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    z-index: 10;
}

.spark-privacy-link {
    display: inline-block;
    margin-top: 1.5rem;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.spark-privacy-link:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Footer */
footer {
    padding: 100px 0 40px;
    border-top: 1px solid var(--glass-border);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: radial-gradient(circle at bottom right, rgba(0, 210, 255, 0.05), transparent 40%);
}

.contact-card {
    max-width: 600px;
    margin: 0 auto;
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.contact-card h2 {
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 2.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: white;
    font-family: var(--font-main);
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #00d2ff;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.2);
}

.contact-form textarea {
    resize: none;
}

/* Mobile Responsive */
@media (max-width: 968px) {
    .contact-card {
        padding: 2rem;
        margin: 0 1rem;
    }

    .contact-card h2 {
        font-size: 1.8rem;
    }

    .logo-img {
        display: none;
    }

    .grid-3,
    .spark-grid,
    .hero-flex {
        grid-template-columns: 1fr;
        flex-direction: column;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero {
        padding-top: 130px;
    }

    .hero-brand-intro {
        margin-bottom: 3rem;
    }

    .spark-features {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        display: none;
    }

    .cta-group {
        justify-content: center;
    }

    .nav-links {
        display: none;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}