@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@600;700;800&display=swap');

:root {
    --primary: #FF6B00;
    --primary-hover: #E65F00;
    --background: #F8FAF0; /* Slightly warm light background */
    --surface: #ffffff;
    --text-main: #1A1A1B;
    --text-muted: #64748B;
    --border: rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, .heading {
    font-family: 'Outfit', sans-serif;
    line-height: 1.2;
}

/* --- Preloader --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #ffffff;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s cubic-bezier(0.77, 0, 0.175, 1), visibility 0.8s;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

/* SVG Logo Styles */
.logo-path {
}

.logo-divider {
    transform-origin: center;
}

.logo-text {
    opacity: 0;
}

/* --- Ambient Animated Background Canvas --- */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

/* --- Layout & Utilities --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 4rem; /* Increased padding to prevent touching edges horizontally */
}

section {
    padding: 10rem 0; /* Increased vertical space between sections */
}

.flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.grid { display: grid; }
.gap-1 { gap: 1rem; }

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 14px rgba(255, 107, 0, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.4);
}

.btn-outline {
    background-color: rgba(0,0,0,0.03);
    color: var(--text-main);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    background-color: rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

/* --- Navigation --- */
header {
    position: sticky;
    top: 2rem;
    left: 2rem;
    right: 2rem;
    z-index: 1000;
    padding: 0.5rem;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin: 0 auto;
    max-width: 1200px; /* Align with container */
    width: calc(100% - 4rem);
    opacity: 0;
    transform: translateY(-20px);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.25rem;
}

.logo svg {
    height: 40px;
    width: auto;
}

/* Override svg internal animations in header so it shows up statically */
header .logo-path {
    stroke-dashoffset: 0 !important;
}
header .logo-star,
header .logo-pixel,
header .logo-text {
    opacity: 1 !important;
}
header .logo-divider {
    stroke-dashoffset: 0 !important;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: var(--transition);
}

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

/* --- Hero Section --- */
.hero {
    text-align: center;
    padding: 12rem 0 8rem;
    position: relative;
}

.hero-content {
    opacity: 0;
    transform: translateY(30px);
}

.hero .badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 107, 0, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 4.5rem;
    letter-spacing: -2px;
    margin-bottom: 1.5rem;
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 3rem;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* --- About Section --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem; /* Increased space between about text and grid */
    align-items: center;
}

.about-text {
    opacity: 0;
    transform: translateY(30px);
}

.about-text h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
}

.about-text h2 span {
    color: var(--primary);
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.stat-card {
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-card h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

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

/* --- Apps Store Section --- */
.apps-header {
    text-align: center;
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateY(30px);
}

.apps-header h2 {
    font-size: 3.5rem;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem; /* Increased gap between cards */
}

.app-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 2.5rem;
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(50px);
    display: flex;
    flex-direction: column;
}

.app-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(255, 107, 0, 0.2);
}

.app-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 107, 0, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.app-tag {
    position: absolute;
    top: 2.5rem;
    right: 2.5rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.app-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.app-card .desc-highlight {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

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

.app-btns {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto; /* Push buttons to the bottom */
}

/* --- Founder Section --- */
.founder-box {
    background: #1E293B;
    color: white;
    border-radius: 32px;
    padding: 5rem 4rem; /* Increased padding inside founder card */
    display: flex;
    gap: 6rem; /* Increased gap inside founder card components */
    align-items: center;
    opacity: 0;
    transform: translateY(40px);
}

.founder-box .btn-outline {
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.05);
}

.founder-box .btn-outline:hover {
    color: var(--primary);
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
}

.founder-img {
    flex-shrink: 0;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid rgba(255, 107, 0, 0.5);
}

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

.founder-info h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.founder-info .role {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.founder-info blockquote {
    font-size: 1.25rem;
    font-style: italic;
    border-left: 4px solid var(--primary);
    padding-left: 1.5rem;
    margin: 2rem 0;
    color: #E2E8F0;
}

/* --- Contact Section --- */
.contact-card {
    background: var(--surface);
    padding: 5rem;
    border-radius: 32px;
    text-align: center;
    border: 1px solid var(--border);
    max-width: 900px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(40px);
}

.contact-card h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.contact-input-group {
    display: flex;
    max-width: 500px;
    margin: 3rem auto 0;
    background: #f1f5f9;
    padding: 0.5rem;
    border-radius: 100px;
}

.contact-input-group input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0 1.5rem;
    outline: none;
    font-family: inherit;
}

@media (max-width: 768px) {
    .hero h1 { font-size: 3rem; }
    .about-grid { grid-template-columns: 1fr; }
    .founder-box { flex-direction: column; text-align: center; padding: 2rem; }
    .nav-links { display: none; }
}
