/* CSS Reset & Variables */
:root {
    --bg-charcoal: #121212;
    --surface-grey: #1E1E1E;
    --primary-blue: #40C4FF;
    --text-white: #E0E0E0;
    --text-grey: #BDBDBD;
    --active-green: #4CAF50;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;

    --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(64, 196, 255, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-charcoal);
    color: var(--text-white);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Animations */
@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotateY(-12deg) rotateX(5deg);
    }

    50% {
        transform: translateY(-20px) rotateY(-10deg) rotateX(2deg);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(64, 196, 255, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(64, 196, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(64, 196, 255, 0);
    }
}

@keyframes gradient-move {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes spin-slow {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-blue);
    color: #000;
    padding: 14px 28px;
    border-radius: 50px;
    border: none;
    font-weight: 800;
    font-family: var(--font-heading);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy */
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 10px 25px rgba(64, 196, 255, 0.5);
}

.btn-glow {
    background: linear-gradient(45deg, var(--primary-blue), #00E5FF, var(--primary-blue));
    background-size: 200% 200%;
    color: #000;
    padding: 14px 28px;
    border-radius: 50px;
    border: none;
    font-weight: 800;
    font-family: var(--font-heading);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    animation: gradient-move 3s ease infinite, pulse 2s infinite;
    transition: transform 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn-glow:hover {
    transform: scale(1.05);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-blue);
    padding: 12px 24px;
    border-radius: 50px;
    border: 2px solid var(--primary-blue);
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    margin-left: 16px;
    transition: background 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(64, 196, 255, 0.1);
}

/* Navigation */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: rgba(18, 18, 18, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-blue);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a:not(.btn-primary) {
    color: var(--text-grey);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:not(.btn-primary):hover {
    color: var(--primary-blue);
}

/* Hero Section */
.hero {
    padding-top: 140px;
    padding-bottom: 80px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Background ambient glow */
.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(64, 196, 255, 0.08) 0%, rgba(18, 18, 18, 0) 70%);
    border-radius: 50%;
    z-index: -1;
    animation: pulse 5s infinite alternate;
    /* Breathing background */
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 16px;
}

.highlight {
    color: var(--primary-blue);
    background: linear-gradient(120deg, rgba(64, 196, 255, 0.2) 0%, rgba(18, 18, 18, 0) 100%);
    padding: 0 8px;
    border-radius: 4px;
}

.tagline {
    font-size: 1.1rem;
    color: var(--text-grey);
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.description {
    font-size: 1.1rem;
    color: var(--text-white);
    margin-bottom: 32px;
    opacity: 0.9;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
    perspective: 1000px;
    /* Enhanced 3D depth */
}

/* CSS Phone Mockup */
.phone-mockup {
    width: 300px;
    height: 600px;
    background: #000;
    /* Bezel */
    border-radius: 40px;
    border: 6px solid #2a2a2a;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), inset 0 0 10px rgba(255, 255, 255, 0.1);
    overflow: hidden;
    /* Base transform */
    transform: rotateY(-12deg) rotateX(5deg);
    /* Float animation */
    animation: float 6s ease-in-out infinite;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-image:hover .phone-mockup {
    /* Pause float on hover for interaction, or enhance? Let's just flatten it for clarity */
    animation-play-state: paused;
    transform: rotateY(0) rotateX(0) scale(1.05);
}

.phone-screen {
    padding: 24px 20px;
    height: 100%;
    /* App Background Gradient */
    background: linear-gradient(180deg, #1E1E1E 0%, #121212 100%);
    display: flex;
    flex-direction: column;
}

.screen-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    margin-top: 10px;
}

.user-greeting {
    font-family: var(--font-heading);
    color: var(--text-white);
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.25;
}

.avatar-circle {
    width: 40px;
    height: 40px;
    background: var(--primary-blue);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(64, 196, 255, 0.3);
    position: relative;
}

.avatar-circle::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
}

.screen-cards {
    margin-bottom: 24px;
}

.vitals-card {
    background: linear-gradient(135deg, #2C2C2C, #252525);
    padding: 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    /* Subtle pulse on call to action area */
    animation: pulse 4s infinite;
}

.quote {
    font-style: italic;
    color: var(--text-grey);
    font-size: 0.9rem;
    display: block;
    text-align: center;
}

.screen-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(2, 1fr);
    gap: 16px;
    flex: 1;
}

.grid-item {
    background: #252525;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.grid-item:hover {
    transform: translateY(-5px);
    background: #333;
    border-color: var(--primary-blue);
}

.grid-icon {
    font-size: 28px;
    color: var(--text-grey);
    transition: color 0.3s;
}

.item-active .grid-icon {
    color: var(--primary-blue);
}

.grid-item .year-label {
    color: var(--text-grey);
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--font-heading);
}

.item-active {
    background: rgba(30, 30, 30, 1);
    border: 1px solid rgba(64, 196, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.item-active::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(64, 196, 255, 0.05), transparent 70%);
}

.item-active .year-label {
    color: var(--text-white);
}

.ring {
    width: 40px;
    height: 40px;
    border: 3px solid var(--primary-blue);
    border-radius: 50%;
    border-right-color: transparent;
    transform: rotate(45deg);
    position: absolute;
    top: 8px;
    right: 8px;
    opacity: 0.3;
}

.item-active .ring {
    opacity: 1;
    animation: spin-slow 4s linear infinite;
    /* Spin the ring */
}

/* Move ring to background/corner or redesign as requested? 
   User asked for icons in dashboard. I put icons centrally. 
   Let's adjust the ring to be a subtle progress indicator around the icon or separate.
   Current design: Icon + Text centered. Ring overlay.
*/

.grid-item .ring {
    position: absolute;
    /* Keep it absolute but maybe larger to encompass? */
    width: 100%;
    height: 100%;
    border: 2px solid transparent;
    border-top-color: var(--primary-blue);
    border-radius: 18px;
    /* Square-ish ring matching card */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transform: none;
    opacity: 0;
    pointer-events: none;
}

.item-active .ring {
    opacity: 0.5;
    animation: none;
    /* simple border instead of spin for the card shape */
    border: 2px solid var(--primary-blue);
    box-shadow: 0 0 10px var(--primary-blue);
}


.disabled-ring {
    border-color: #444;
}

.screen-nav {
    height: 5px;
    width: 40%;
    background: rgba(255, 255, 255, 0.2);
    margin: 20px auto 5px;
    border-radius: 10px;
}

/* Core Philosophy & Rest of Site */
.philosophy {
    padding: 100px 0;
    background-color: #171717;
    /* Slight variation */
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.card {
    background: var(--surface-grey);
    padding: 32px;
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, border-color 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(64, 196, 255, 0.5);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.active-card {
    background: linear-gradient(145deg, var(--surface-grey), #252525);
    border: 1px solid rgba(76, 175, 80, 0.3);
    /* Green hint for Focus Mode */
}

.active-card:hover {
    border-color: #4CAF50;
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.2);
}

.icon-box {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.icon-box .material-icons-round {
    font-size: 32px;
    color: var(--primary-blue);
}

.active-card .icon-box .material-icons-round {
    color: var(--active-green);
}

.card h3 {
    margin-bottom: 16px;
    font-size: 1.5rem;
}

.card p {
    color: var(--text-grey);
    font-size: 1rem;
}

/* Features Section */
.features {
    padding: 120px 0;
}

.feature-row {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 100px;
}

.feature-row.reverse {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;
}

.feature-text h3 {
    font-size: 2rem;
    margin-bottom: 24px;
}

.feature-text p {
    color: var(--text-grey);
    margin-bottom: 24px;
    font-size: 1.1rem;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 1.05rem;
}

.feature-list .material-icons-round {
    color: var(--primary-blue);
}

.feature-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

/* Visual Mockups in CSS (since we want simple shapes) */
.ui-card-mockup,
.focus-mode-toggle {
    background: var(--surface-grey);
    border-radius: 24px;
    padding: 32px;
    width: 300px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.5s ease;
}

.ui-card-mockup:hover,
.focus-mode-toggle:hover {
    transform: scale(1.05) rotate(2deg);
}

.mock-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    margin-bottom: 16px;
    border-radius: 12px;
    transition: background 0.3s;
}

.mock-row:hover {
    background: rgba(64, 196, 255, 0.1);
}

.mock-icon {
    color: var(--primary-blue);
}

.focus-mode-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 300px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.focus-mode-toggle .brain-icon {
    font-size: 80px;
    color: var(--active-green);
    margin-bottom: 24px;
    filter: drop-shadow(0 0 15px rgba(76, 175, 80, 0.4));
    transition: transform 0.5s ease;
    animation: pulse 2s infinite;
    /* Always pulsing brain */
}

.focus-mode-toggle:hover .brain-icon {
    transform: scale(1.2);
}

/* Footer */
footer {
    background: #0f0f0f;
    padding: 80px 0 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 48px;
}

.footer-brand h4 {
    color: var(--primary-blue);
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.footer-brand p {
    color: var(--text-grey);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text-grey);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--primary-blue);
}

.copyright {
    text-align: center;
    color: #555;
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* simple mobile hide for now */
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .cta-group {
        justify-content: center;
        display: flex;
    }

    .feature-row {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .feature-row.reverse {
        flex-direction: column;
    }

    .feature-list li {
        justify-content: center;
    }
}