/* apps/website/assets/css/app.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Light Theme Colors */
    --bg-main: #F8FAFC; /* Soft off-white */
    --bg-surface: #FFFFFF;
    
    /* Tangy Contrast Colors */
    --accent: #F97316; /* Vibrant Orange */
    --accent-hover: #EA580C;
    --accent-glow: rgba(249, 115, 22, 0.2);
    --accent-secondary: #0EA5E9; /* Electric Teal/Blue */
    
    /* Text */
    --text-primary: #0F172A; /* Slate 900 */
    --text-secondary: #475569; /* Slate 600 */
    --text-tertiary: #94A3B8; /* Slate 400 */
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px rgba(15, 23, 42, 0.05);
    
    /* Layout */
    --max-width: 1200px;
}

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

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

/* --- Animated Background Blobs --- */
.blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.6;
    pointer-events: none;
    animation: float 20s infinite ease-in-out alternate;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: rgba(249, 115, 22, 0.15); /* Orange */
    animation-delay: 0s;
}

.blob-2 {
    bottom: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: rgba(14, 165, 233, 0.15); /* Blue */
    animation-delay: -5s;
    animation-direction: alternate-reverse;
}

.blob-3 {
    top: 40%;
    left: 40%;
    width: 400px;
    height: 400px;
    background: rgba(168, 85, 247, 0.1); /* Purple tint */
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, 30px) scale(1.05); }
    100% { transform: translate(-30px, 50px) scale(0.95); }
}

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

.relative { position: relative; }
.z-10 { z-index: 10; }

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

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

/* --- Glassmorphism --- */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
}

.glass-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: var(--glass-shadow);
    border-radius: 20px;
}

/* --- Navigation --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 2.5rem;
    margin-top: 1.5rem;
    border-radius: 99px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: -0.5px;
}

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

.nav-links a:not(.btn-ghost) {
    color: var(--text-secondary);
    font-weight: 500;
}

.nav-links a:not(.btn-ghost):hover {
    color: var(--accent);
}

.btn-ghost {
    background: transparent;
    border: 1.5px solid var(--text-tertiary);
    color: var(--text-primary);
    padding: 0.6rem 1.75rem;
    border-radius: 99px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-ghost:hover {
    background: var(--text-primary);
    color: white;
    border-color: var(--text-primary);
}

/* --- Hero Section --- */
.hero {
    text-align: center;
    padding: 6rem 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto 4rem;
}

.version-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(249, 115, 22, 0.1);
    border: 1px solid rgba(249, 115, 22, 0.2);
    padding: 0.4rem 1.25rem;
    border-radius: 99px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 2rem;
}

.version-badge .pulse {
    width: 8px;
    height: 8px;
    background-color: var(--accent);
    border-radius: 50%;
    position: relative;
}

.version-badge .pulse::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background-color: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
    opacity: 0.5;
}

@keyframes pulse {
    0% { transform: scale(0.5); opacity: 0.8; }
    100% { transform: scale(2.5); opacity: 0; }
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--text-primary) 0%, #334155 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto 3rem;
    line-height: 1.7;
}

/* CTA */
.cta-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.btn-primary {
    background: var(--accent);
    color: #FFF;
    padding: 1.25rem 3rem;
    border-radius: 99px;
    font-size: 1.15rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 25px var(--accent-glow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(249, 115, 22, 0.3);
    color: #FFF;
}

.sys-req-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-tertiary);
    font-size: 0.9rem;
    font-weight: 500;
}

.sys-req {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.separator {
    opacity: 0.5;
}

/* --- Hero Mockup (CSS Drawing) --- */
.hero-mockup {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    perspective: 1000px;
}

.mockup-window {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255,255,255,0.4);
    transform: rotateX(5deg) scale(0.95);
    transition: transform 0.5s ease;
}

.hero-mockup:hover .mockup-window {
    transform: rotateX(0deg) scale(1);
}

.mockup-header {
    height: 32px;
    background: rgba(255,255,255,0.9);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 8px;
}

.mockup-header .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.dot.red { background: #FF5F56; }
.dot.yellow { background: #FFBD2E; }
.dot.green { background: #27C93F; }

.mockup-body {
    flex: 1;
    display: flex;
    background: rgba(248, 250, 252, 0.7);
}

.mockup-sidebar {
    width: 20%;
    border-right: 1px solid rgba(0,0,0,0.05);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: rgba(255,255,255,0.4);
}

.mockup-content {
    flex: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mockup-topbar {
    display: flex;
    justify-content: space-between;
}

.mockup-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.mockup-main-area {
    flex: 1;
    display: flex;
    gap: 16px;
}

.m-stat-card {
    height: 80px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.m-chart {
    flex: 2;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.m-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.m-list-item {
    height: 40px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.m-item {
    height: 12px;
    background: rgba(0,0,0,0.06);
    border-radius: 4px;
}
.w-full { width: 100%; }
.w-3-4 { width: 75%; }
.w-1-2 { width: 50%; }
.w-1-4 { width: 25%; }
.w-1-12 { width: 8.33%; }
.mt-auto { margin-top: auto; }
.rounded { border-radius: 50%; width: 32px; height: 32px; }

/* --- Trust / Benefits Section --- */
.trust {
    padding: 8rem 0 4rem;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.trust-item {
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    transition: transform 0.3s ease;
}

.trust-item:hover {
    transform: translateY(-5px);
}

.trust-icon {
    font-size: 2.5rem;
    background: var(--bg-main);
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.trust-item strong {
    font-size: 1.25rem;
    color: var(--text-primary);
}

.trust-item span {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.5;
}

/* --- Features Section --- */
.features {
    padding: 6rem 0;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 4rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.card {
    padding: 3rem 2.5rem;
}

.hover-lift {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

.card-icon-wrapper {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.1), rgba(249, 115, 22, 0.02));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(249, 115, 22, 0.2);
}

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

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 700;
}

.card p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
}

/* --- Footer --- */
footer {
    padding: 4rem 0 2rem;
    margin-top: 4rem;
    border-top: 1px solid rgba(0,0,0,0.05);
}

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

.footer-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: -0.5px;
}

.footer-legal {
    text-align: right;
    color: var(--text-tertiary);
    font-size: 0.9rem;
}

.footer-legal p {
    margin-bottom: 0.25rem;
}

/* --- Animations --- */
.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
    transform: translateY(30px);
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .hero h1 { font-size: 3.5rem; }
    .hero-mockup { display: none; } /* Hide mockup on smaller screens for simplicity */
    .footer-content { flex-direction: column; text-align: center; justify-content: center; }
    .footer-legal { text-align: center; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero h1 { font-size: 2.75rem; }
    .hero { padding: 4rem 0 2rem; }
    .trust { padding: 4rem 0; }
    .features { padding: 4rem 0; }
    .btn-primary { width: 100%; justify-content: center; }
}
