/* --- Base Variables & Setup --- */
:root {
    /* Colors */
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --accent-primary: #0ea5e9;
    --accent-secondary: #6366f1;
    
    /* Layout */
    --max-width: 1200px;
    --nav-height: 80px;

    /* Glass */
    --glass-bg: rgba(255, 255, 255, 0.65); 
    --glass-border: rgba(255, 255, 255, 0.8);
    --glass-blur: blur(24px); 
    
    /* Shadows */
    --shadow-soft: 0 20px 40px -10px rgba(0, 0, 0, 0.05); 
    --shadow-glow: 0 0 30px rgba(14, 165, 233, 0.15);
    
    /* Transition */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .logo-text {
    font-family: 'Outfit', sans-serif;
}

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

ul {
    list-style: none;
}

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

/* --- Layout Utilities --- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 100px 0;
}

.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }

/* Typography */
.gradient-text {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* --- Components --- */
/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    border: 1px solid transparent;
    transition: var(--transition-fast);
}

.btn-sm {
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(14, 165, 233, 0.3);
}

.btn-secondary {
    background: var(--bg-secondary);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.btn-secondary:hover {
    background: rgba(14, 165, 233, 0.05);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Glass Panel (Modernized) */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

/* Subtle inner glow for glass panels */
.glass-panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255,255,255,1), rgba(255,255,255,0.4));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: var(--transition-medium);
}

.navbar.scrolled {
    background: rgba(248, 250, 252, 0.85); /* Light navbar */
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

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

.logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo-text .highlight {
    color: var(--accent-primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links li a:not(.btn) {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-primary);
    opacity: 0.8;
}

.nav-links li a:not(.btn):hover {
    opacity: 1;
    color: var(--accent-primary);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

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

/* --- Hero Section with Animated Mesh Gradient --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: var(--nav-height);
    overflow: hidden;
    background: var(--bg-primary);
}

.hero-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

/* Base glowing orbs */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.5; /* Good for light background */
    animation: drift 20s infinite alternate ease-in-out;
}

.orb-1 {
    top: -10%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: rgba(14, 165, 233, 0.4); /* Sky */
    animation-delay: 0s;
}

.orb-2 {
    bottom: -20%;
    right: -10%;
    width: 70vw;
    height: 70vw;
    background: rgba(99, 102, 241, 0.3); /* Indigo */
    animation-duration: 25s;
    animation-delay: -5s;
}

.orb-3 {
    top: 40%;
    left: 40%;
    width: 50vw;
    height: 50vw;
    background: rgba(16, 185, 129, 0.2); /* Emerald */
    animation-duration: 30s;
    animation-delay: -15s;
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(10%, -10%) scale(1.1); }
    100% { transform: translate(-5%, 15%) scale(0.9); }
}

/* Subtle grid overlay for texture */
.hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0;
    pointer-events: none;
}

.hero-container {
    position: relative;
    z-index: 1; /* Above backgrounds */
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    font-size: 5.5rem;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
    font-weight: 800;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

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

.about-card {
    transition: var(--transition-medium);
}

.about-card:hover {
    transform: translateY(-10px);
    border-color: rgba(14, 165, 233, 0.3);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
}

.icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(14, 165, 233, 0.1);
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.about-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

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

/* --- Products Section --- */
.flex-row {
    display: flex;
    gap: 4rem;
    align-items: center;
}

.featured-product {
    margin-bottom: 5rem;
    background: linear-gradient(to right, var(--glass-bg), rgba(255, 255, 255, 0.9));
}

.product-info {
    flex: 1;
}

.badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: rgba(14, 165, 233, 0.1);
    color: var(--accent-primary);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.product-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.product-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-list li svg {
    color: var(--accent-primary);
    flex-shrink: 0;
}

.product-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

.mockup-placeholder {
    position: relative;
    width: 300px;
    height: 600px;
    background: #e2e8f0;
    border-radius: 40px;
    border: 8px solid #cbd5e1;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.mockup-content {
    width: 100%;
    height: 100%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-mockup {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.placeholder-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: var(--transition-fast);
}

.placeholder-card:hover {
    border-color: rgba(14, 165, 233, 0.2);
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.05);
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-secondary);
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

/* --- Contact Section --- */
.contact-panel {
    display: flex;
    gap: 4rem;
}

.contact-info {
    flex: 1;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.detail-item svg {
    color: var(--accent-primary);
}

.contact-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
}

/* --- Footer --- */
.footer {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 3rem 0;
    background: var(--bg-secondary);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand {
    max-width: 300px;
}

.slogan {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

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

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

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

.footer-copyright {
    width: 100%;
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 1rem;
}

/* --- Animations --- */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .hero-title { font-size: 3.5rem; }
    .about-grid { grid-template-columns: repeat(2, 1fr); }
    .flex-row { flex-direction: column; }
    .contact-panel { flex-direction: column; gap: 2rem; }
    .mockup-placeholder { width: 280px; height: 560px; }
}

@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition-medium);
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    }

    .mobile-menu-btn { display: flex; }
    
    .hero-title { font-size: 2.8rem; }
    .about-grid { grid-template-columns: 1fr; }
    .products-grid { grid-template-columns: 1fr; }
    .hero-cta { flex-direction: column; }
    .footer-container { flex-direction: column; text-align: center; }
    .footer-brand { margin: 0 auto; }
}
