@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #ec4899;
    --bg-color: #f8fafc;
    --card-bg: rgba(255, 255, 255, 0.7);
    --text-main: #0f172a;
    --text-muted: #64748b;
    --shadow-soft: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 20px 40px -10px rgba(79, 70, 229, 0.15);
    --border-color: rgba(255, 255, 255, 0.5);
    --glass-blur: blur(16px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
    scroll-behavior: smooth;
    /* Subtle background gradient blob */
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(79, 70, 229, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(236, 72, 153, 0.08), transparent 25%);
    background-attachment: fixed;
}

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

ul {
    list-style: none;
}

/* Typography */
h1, h2, h3, h4 {
    color: var(--text-main);
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

p {
    color: var(--text-muted);
}

/* Form Styles */
input, textarea, button {
    font-family: 'Outfit', sans-serif;
}

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

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

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

.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
    color: white;
}

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

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

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

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

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

.logo img {
    height: 48px;
    width: auto;
    transform: scale(2.5);
    transform-origin: left center;
}

.logo span {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.nav-links a {
    font-weight: 500;
    font-size: 1rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--text-main);
}

/* Hero Section */
.hero {
    padding: 10rem 0 6rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    animation: fadeUp 0.8s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: fadeUp 0.8s ease 0.2s forwards;
    opacity: 0;
    transform: translateY(30px);
}

.hero-btns {
    display: flex;
    gap: 1rem;
    animation: fadeUp 0.8s ease 0.4s forwards;
    opacity: 0;
    transform: translateY(30px);
}

.hero-image-wrap {
    position: relative;
    animation: float 6s ease-in-out infinite, fadeUp 0.8s ease 0.6s forwards;
    opacity: 0;
    transform: translateY(30px);
}

.hero-image {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    display: block;
    border-radius: 30px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.hero-deco {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
    filter: blur(60px);
    opacity: 0.4;
    z-index: -1;
}

.hero-deco-1 {
    width: 300px;
    height: 300px;
    top: -10%;
    right: -10%;
}

.hero-deco-2 {
    width: 200px;
    height: 200px;
    bottom: -10%;
    left: 10%;
}

/* Sections General */
.section {
    padding: 6rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-header p {
    font-size: 1.1rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    padding: 2.5rem 2rem;
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: left;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(79, 70, 229, 0.3);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(236, 72, 153, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.feature-icon svg {
    width: 30px;
    height: 30px;
}

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

/* How It Helps Section */
.helps-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.helps-image {
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    position: relative;
}

.helps-image img {
    width: 100%;
    display: block;
    height: auto;
}

.helps-content ul {
    margin-top: 2rem;
}

.helps-content li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.helps-content li svg {
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 4px;
}

/* App Screenshots */
.screenshot-grid {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding: 2rem 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
}

.screenshot-grid::-webkit-scrollbar {
    height: 8px;
}

.screenshot-grid::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 4px;
}

.screenshot-item {
    scroll-snap-align: center;
    flex: 0 0 calc(33.333% - 1.33rem);
    min-width: 250px;
    transition: transform 0.3s ease;
    display: flex;
    justify-content: center;
}

.screenshot-item:hover {
    transform: scale(1.03);
}

.screenshot-item img {
    max-height: 450px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
}

/* CTA Section */
.cta-section {
    position: relative;
    padding: 6rem 0;
    overflow: hidden;
}

.cta-box {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 30px;
    padding: 4rem 2rem;
    text-align: center;
    color: white;
    position: relative;
    box-shadow: 0 20px 40px rgba(79, 70, 229, 0.2);
}

.cta-box h2 {
    color: white;
}

.cta-box p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 500px;
    margin: 0 auto 2rem;
}

.cta-box .btn-outline {
    background: white;
    color: var(--primary);
    border-color: white;
}

.cta-box .btn-outline:hover {
    background: transparent;
    color: white;
}

/* Page Highlight Box (used on internal pages like delete_user.html) */
.page-highlight {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.06), rgba(236, 72, 153, 0.06));
    border-left: 4px solid var(--primary);
    border-radius: 0 12px 12px 0;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
}

.page-highlight-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.page-highlight-row:last-child {
    margin-bottom: 0;
}

.page-highlight-label {
    font-weight: 600;
    color: var(--text-main);
    flex-shrink: 0;
}

.page-highlight a {
    color: var(--primary);
    font-weight: 500;
}

.page-highlight a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background: #0f172a;
    color: white;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: #94a3b8;
    margin-top: 1rem;
    max-width: 300px;
}

.footer-title {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: white;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #94a3b8;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Internal Pages Container */
.page-header {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(236, 72, 153, 0.1));
    padding: 10rem 0 4rem;
    text-align: center;
    margin-bottom: 4rem;
}

.page-content {
    max-width: 800px;
    margin: 0 auto 6rem;
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
}

.page-content h2, .page-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.page-content p {
    margin-bottom: 1.5rem;
}

/* Contact Form */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 6rem;
}

.contact-info {
    padding-right: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-item-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(79, 70, 229, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.contact-form {
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.1);
    background: rgba(255,255,255,0.8);
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-content, .helps-wrap, .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .hero {
        text-align: center;
        padding-top: 8rem;
    }
    
    .hero-btns {
        justify-content: center;
    }

    .helps-content {
        order: -1;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: var(--glass-blur);
        padding: 2rem;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        clip-path: circle(0% at top right);
        transition: clip-path 0.5s ease-in-out;
        gap: 1.5rem;
    }

    .nav-links.active {
        clip-path: circle(150% at top right);
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .hero-text h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .screenshot-item {
        flex: 0 0 80%;
    }
}

/* App Mockup Styles */
.app-mockup {
    background: #ffffff;
    border-radius: 35px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15), 0 0 0 8px #f1f5f9;
    padding: 25px 20px;
    height: 500px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
}

.app-top-bar {
    width: 120px;
    height: 25px;
    background: #f1f5f9;
    border-radius: 0 0 15px 15px;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.app-header {
    margin-top: 25px;
    padding: 0 10px;
}

.app-header .greeting {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-main);
}

.app-header .date {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.insight-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.primary-card {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.03), rgba(236, 72, 153, 0.03));
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-main);
    text-align: center;
}

.circle-progress {
    width: 140px;
    margin: 0 auto 15px;
    position: relative;
}

.circular-chart {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    max-height: 200px;
}

.circle-bg {
    fill: none;
    stroke: #e2e8f0;
    stroke-width: 2.5;
}

.circle {
    fill: none;
    stroke: var(--primary);
    stroke-width: 2.5;
    stroke-linecap: round;
    animation: progress 2s ease-out forwards;
}

.percentage {
    fill: var(--text-main);
    font-family: inherit;
    font-size: 0.5em;
    font-weight: 700;
    text-anchor: middle;
}

@keyframes progress {
    0% { stroke-dasharray: 0, 100; }
}

.stats-row {
    display: flex;
    justify-content: space-between;
    text-align: center;
}

.stats-row .stat {
    display: flex;
    flex-direction: column;
}

.stats-row .val {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
}

.stats-row .lbl {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.insights-grid {
    display: flex;
    gap: 15px;
}

.insights-grid .mini {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
}

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

.mini .stat-info {
    display: flex;
    flex-direction: column;
}

.mini .val {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
}

.mini .lbl {
    font-size: 0.75rem;
    color: var(--text-muted);
}
