:root {
    --bg-color: #000000;
    --text-primary: #ffffff;
    --text-secondary: #86868b;
    --accent-blue: #2997ff;
    --accent-purple: #bf5af2;
    --card-bg: #151516;
    --card-border: rgba(255, 255, 255, 0.1);
    --gradient-text: linear-gradient(90deg, #2997ff 0%, #bf5af2 50%, #ff375f 100%);
    --glow: 0 0 80px rgba(41, 151, 255, 0.15);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    overflow-x: hidden;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Animated Background Orbs */
.background-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.4;
    animation: float 20s infinite alternate;
}
.orb-1 { width: 600px; height: 600px; background: #0044ff; top: -10%; right: -10%; }
.orb-2 { width: 500px; height: 500px; background: #9900ff; bottom: 0%; left: -10%; animation-delay: -5s; }

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-50px, 50px) rotate(20deg); }
}

/* Nav */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
    padding: 12px 0;
}

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

.logo { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    font-weight: 700; 
    font-size: 1.3rem; 
    letter-spacing: -0.5px; 
}
.nav-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--text-secondary); font-size: 0.9rem; transition: 0.3s; }
.nav-links a:hover { color: #fff; }
.btn-primary { background: #fff; color: #000 !important; padding: 8px 18px; border-radius: 20px; font-weight: 600; }

/* Hero */
.hero {
    padding: 160px 0 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0px; 
}

/* Hero Elements Spacing */
.pill-badge {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

.hero-brand {
    margin-bottom: 40px;
}

.hero-logo-icon {
    width: 90px;
    height: 90px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

.dot { width: 6px; height: 6px; background: #00ff00; border-radius: 50%; box-shadow: 0 0 10px #00ff00; }

.hero h1 {
    font-size: 5rem;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 24px;
}

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
}

/* Device Mockups (Universal Phone Style) */
.device-mockup {
    background: #000;
    border: 8px solid #333;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    width: 100%;
    height: 100%;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.device-mockup img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.device-mockup:hover {
    transform: translateY(10px);
}

.device-mockup.landscape {
    border-width: 8px 12px;
    border-radius: 20px;
}

.device-mockup.small-mockup {
    border-width: 6px;
    border-radius: 20px;
}


/* Phone Frame (Hero Specific) */
.hero-visual {
    position: relative;
    width: 320px;
    height: 640px;
    margin-top: 60px;
}

.phone-frame {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 48px;
    border: 12px solid #2a2a2a;
    box-shadow: 0 40px 100px rgba(0,0,0,0.5);
    overflow: hidden;
    position: relative;
    z-index: 2;
}

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

.float-widget {
    position: absolute;
    width: 180px;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    z-index: 3;
    transition: transform 0.3s ease;
}

.float-widget:hover { transform: scale(1.05) !important; }

.widget-health { top: 100px; left: -140px; }
.widget-calendar { bottom: 100px; right: -140px; }
.float-widget img { width: 100%; border-radius: 24px; }

/* AI Section */
.ai-section { padding: 100px 0; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 3rem; margin-bottom: 16px; }
.section-header p { font-size: 1.2rem; color: var(--text-secondary); }

.ai-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.ai-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, border-color 0.3s;
    display: flex;
    flex-direction: column;
}

.ai-card:hover { transform: translateY(-5px); border-color: rgba(255,255,255,0.3); }

/* Layouts for AI Cards */
.large-card { grid-column: span 2; min-height: 550px; }
.small-card { min-height: 550px; }
.medium-card { grid-column: span 3; min-height: 500px; flex-direction: row; align-items: center; }

.card-content { padding: 30px; z-index: 2; flex-shrink: 0; }
.card-content h3 { font-size: 1.8rem; margin-bottom: 10px; }
.card-content p { color: var(--text-secondary); }

.card-image-container {
    flex-grow: 1;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    padding: 0 40px 0 40px; 
    align-items: flex-end; 
}

.medium-card .card-image-container {
    height: 100%;
    align-items: center; 
    padding: 40px;
}

/* Bento Grid */
.bento-section { padding: 100px 0; }
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 400px); /* Reduced height for summary cards */
    gap: 24px;
}

.bento-item {
    background: var(--card-bg);
    border-radius: 30px;
    border: 1px solid var(--card-border);
    overflow: hidden;
    position: relative;
    transition: 0.3s;
    display: flex;
    flex-direction: column; 
    cursor: default;
}

/* Expandable Card Styles (Interactive) */
.expandable-card {
    cursor: pointer;
}
.expandable-card:hover {
    transform: scale(1.02);
    border-color: var(--accent-blue);
}

.bento-text { 
    padding: 24px;
    z-index: 5;
    background: transparent;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.bento-text h3 { margin-bottom: 8px; font-size: 1.4rem; }
.bento-text p { font-size: 0.95rem; color: var(--text-secondary); flex-grow: 1; }

.tap-hint {
    margin-top: auto;
    color: var(--accent-blue);
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 6px;
}
.tap-hint::after { content: "→"; }

.bento-icon-wrapper {
    position: absolute;
    bottom: -20px;
    right: -20px;
    font-size: 8rem;
    opacity: 0.1;
    transform: rotate(-10deg);
}

/* Specific Bento Adjustments */
.tasks-box { grid-column: span 2; }
.habits-box { grid-column: span 2; }
.milestone-box { grid-column: span 2; }
.focus-box { grid-column: span 1; }
.journal-box { grid-column: span 1; }

/* Adjust icons for smaller boxes */
.focus-box .bento-icon-wrapper, .journal-box .bento-icon-wrapper {
    font-size: 6rem; /* Smaller icon for smaller card */
    bottom: -10px;
    right: -10px;
}


/* MODAL OVERLAY STYLES */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #1c1c1e;
    width: 90%;
    max-width: 500px; /* Phone width + padding */
    height: 90vh;
    border-radius: 40px;
    position: relative;
    transform: scale(0.9);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    font-size: 1.2rem;
    color: white;
    backdrop-filter: blur(5px);
}

.modal-header {
    padding: 40px 30px 20px 30px;
    text-align: center;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent);
}
.modal-header h3 { font-size: 2rem; margin-bottom: 10px; }
.modal-header p { color: var(--text-secondary); }

.modal-body {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 40px 40px 40px;
}

.modal-phone {
    width: 100%;
    height: 100%;
    background: #000;
    border: 8px solid #333;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.modal-phone img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* Backup Section */
.backup-section { padding: 100px 0; background: linear-gradient(to bottom, transparent, rgba(20,20,20,1)); }
.split-layout { display: flex; align-items: center; gap: 80px; }
.split-content { flex: 1; }
.split-image { flex: 1; display: flex; justify-content: center; }

.icon-glow { font-size: 3rem; margin-bottom: 24px; text-shadow: 0 0 30px rgba(0, 255, 0, 0.5); }
.check-list { list-style: none; margin-top: 30px; }
.check-list li { margin-bottom: 16px; display: flex; align-items: center; gap: 12px; color: #ddd; }
.check-list li::before { content: "✓"; color: #00ff00; font-weight: bold; }

.angled { transform: rotate(-5deg); border-color: #444; }

/* Wall of Screens */
.wall-section { padding: 80px 0; overflow: hidden; background: #000; }
.wall-section h2 { text-align: center; margin-bottom: 50px; font-size: 2.5rem; }

.marquee-wrapper { width: 100%; overflow: hidden; white-space: nowrap; mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); }
.marquee { display: inline-flex; gap: 30px; animation: scroll 60s linear infinite; }
.marquee img { height: 450px; border-radius: 20px; opacity: 0.6; transition: 0.3s; }
.marquee img:hover { opacity: 1; transform: scale(1.05); }

@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Footer */
.final-cta { padding: 120px 0; text-align: center; position: relative; }
.glow-bg { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 400px; height: 400px; background: radial-gradient(circle, rgba(41, 151, 255, 0.2), transparent 70%); z-index: -1; }
footer { border-top: 1px solid #222; padding: 40px 0; color: #666; font-size: 0.9rem; }
.footer-logo-group { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }

/* Responsive */
@media (max-width: 1024px) {
    .hero h1 { font-size: 3.5rem; }
    .hero .container { gap: 40px; }
    .float-widget { display: none; }
    .bento-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
    .bento-item { grid-column: auto !important; height: auto; min-height: 250px; }
    .ai-grid { grid-template-columns: 1fr; }
    .large-card, .medium-card, .small-card { grid-column: auto; height: auto; min-height: 400px; }
    .split-layout { flex-direction: column; text-align: center; }
    .check-list { display: inline-block; text-align: left; }
    .medium-card { flex-direction: column; }
    .medium-card .card-image-container { padding: 0 20px 20px; }
}
