:root {
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --secondary: #06b6d4;
    --accent: #f472b6;
    --dark: #0f172a;
    --light: #f8fafc;
    --white: #ffffff;
    --gray: #64748b;
    --gradient-main: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
    --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius: 16px;
}

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

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul,
ol {
    list-style: none;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: var(--gradient-main);
    color: var(--white);
    box-shadow: 0 4px 14px 0 rgba(79, 70, 229, 0.39);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.23);
}

.btn-outline {
    border: 2px solid var(--white);
    color: var(--white);
    background: transparent;
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
}

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

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

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

/* Header */
header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    padding: 15px 0;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    color: var(--gray);
}

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

/* Hero Section */
.hero {
    background: var(--gradient-hero);
    color: var(--white);
    padding: 160px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.2) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.25rem;
    color: #cbd5e1;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* Core Idea */
.core-idea {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    margin-top: -60px;
    position: relative;
    z-index: 10;
    box-shadow: var(--shadow-lg);
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.core-idea h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.core-idea blockquote {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 20px;
    font-family: 'Outfit', sans-serif;
}

.core-idea ul {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.core-idea li {
    background: var(--light);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.95rem;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 8px;
}

.core-idea li::before {
    content: '✓';
    color: var(--secondary);
    font-weight: bold;
}

/* Pillars Grid Responsive */
.pillars-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 40px;
}

@media (min-width: 768px) {
    .pillars-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .pillars-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.pillar-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f1f5f9;
}

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

.pillar-header {
    padding: 20px;
    background: var(--light);
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.pillar-title {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.pillar-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.icon-1 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.icon-2 {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.icon-3 {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.icon-4 {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.pillar-body {
    padding: 25px;
}

.pillar-body p {
    color: var(--gray);
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.pillar-goal {
    margin-top: 20px;
    padding: 12px;
    background: #ecfdf5;
    color: #047857;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
}

/* Custom Details/Summary for Pillars */
details.custom-details summary {
    list-style: none;
    cursor: pointer;
}

details.custom-details summary::-webkit-details-marker {
    display: none;
}

.sub-section {
    margin-top: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.sub-section summary {
    padding: 12px 15px;
    background: #f8fafc;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px;
    transition: background 0.2s;
}

.sub-section summary:hover {
    background: #f1f5f9;
}

.sub-section summary::after {
    content: '+';
    font-size: 1.2rem;
    color: var(--gray);
}

.sub-section[open] summary::after {
    content: '-';
}

.sub-section-content {
    padding: 15px;
    border-top: 1px solid #e2e8f0;
}

.sub-section-content ul li {
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--gray);
    padding-left: 15px;
    position: relative;
}

.sub-section-content ul li::before {
    content: '•';
    color: var(--primary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Daily Loop */
.loop-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.loop-step {
    display: flex;
    gap: 20px;
    background: var(--white);
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 2;
    border-left: 5px solid var(--primary);
}

.loop-number {
    font-size: 2rem;
    font-weight: 700;
    color: #e2e8f0;
    line-height: 1;
    min-width: 50px;
}

.loop-content h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--dark);
}

.loop-content p {
    color: var(--gray);
    font-size: 0.95rem;
}

/* Categories */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.category-card {
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid #f1f5f9;
    font-weight: 600;
    color: var(--dark);
    transition: all 0.3s ease;
}

.category-card:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-3px);
}

/* Identity Shift */
.identity-shift {
    background: var(--dark);
    color: var(--white);
    border-radius: var(--radius);
    padding: 60px;
    text-align: center;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

.identity-shift::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(79, 70, 229, 0.2), rgba(6, 182, 212, 0.2));
    pointer-events: none;
}

.shift-arrow {
    font-size: 1.5rem;
    margin: 0 15px;
    color: var(--secondary);
}

.shift-text {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 30px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

/* Footer */
footer {
    background: var(--white);
    padding: 60px 0 30px;
    margin-top: 80px;
    border-top: 1px solid #e2e8f0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.footer-links h4 {
    margin-bottom: 20px;
    color: var(--dark);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--gray);
}

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

.copyright {
    text-align: center;
    color: var(--gray);
    padding-top: 30px;
    border-top: 1px solid #f1f5f9;
    font-size: 0.9rem;
}

/* Hamburger Menu Button */
.hamburger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger-menu span {
    width: 25px;
    height: 3px;
    background: var(--dark);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger-menu:hover span {
    background: var(--primary);
}

/* Mobile Sidebar */
.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100vh;
    background: var(--white);
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1002;
    transition: left 0.3s ease;
    overflow-y: auto;
}

.mobile-sidebar.active {
    left: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
    background: var(--light);
}

.sidebar-header .logo {
    font-size: 1.2rem;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray);
    cursor: pointer;
    padding: 5px;
    transition: all 0.3s ease;
}

.close-btn:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    padding: 20px 0;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 25px;
    color: var(--dark);
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.sidebar-link i {
    font-size: 1.2rem;
    color: var(--gray);
    width: 25px;
    transition: all 0.3s ease;
}

.sidebar-link:hover {
    background: var(--light);
    border-left-color: var(--primary);
    color: var(--primary);
}

.sidebar-link:hover i {
    color: var(--primary);
    transform: scale(1.1);
}

.sidebar-link.active {
    background: var(--light);
    border-left-color: var(--primary);
    color: var(--primary);
}

.sidebar-link.active i {
    color: var(--primary);
}

.sidebar-link.btn-link {
    margin: 10px 20px;
    background: var(--gradient-main);
    color: var(--white) !important;
    border-radius: 12px;
    border-left: none;
    justify-content: center;
    box-shadow: 0 4px 14px 0 rgba(79, 70, 229, 0.39);
}

.sidebar-link.btn-link i {
    color: var(--white);
}

.sidebar-link.btn-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.5);
    background: var(--gradient-main);
}

/* Sidebar Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

/* Active Link Styling */
.nav-links a.active {
    background: var(--primary);
    color: var(--white) !important;
    padding: 8px 16px;
    border-radius: 20px;
}

/* Ensure Get App button text is white */
header .btn-primary {
    color: #ffffff !important;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {

    /* Show hamburger menu on mobile */
    .hamburger-menu {
        display: flex;
    }

    /* Hide desktop navigation on mobile */
    .desktop-nav {
        display: none !important;
    }

    /* Adjust hero section for mobile */
    .hero h1 {
        font-size: 2.5rem;
    }

    .core-idea blockquote {
        font-size: 1.4rem;
    }

    .shift-text {
        flex-direction: column;
    }

    .shift-arrow {
        transform: rotate(90deg);
        margin: 10px 0;
    }
}

/* Tablet and Desktop - Keep desktop nav visible */
@media (min-width: 769px) {

    .mobile-sidebar,
    .sidebar-overlay {
        display: none !important;
    }
}

/* Logo Image Styles */
.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    color: var(--dark);
    font-size: 1.2rem;
    font-weight: 700;
}

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

.sidebar-header .logo-img {
    height: 35px;
}