:root {
    --bg-color: #020617;
    /* Slate 950 from index.html */
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --primary: #FF9933;
    /* Deep Saffron */
    --secondary: #138808;
    /* India Green */
    --accent: #87CEEB;
    /* Sky Blue */
    --highlight: #FFD700;
    /* Yellow */
    --accent-glow: rgba(135, 206, 235, 0.3);
    --card-bg: rgba(30, 41, 59, 0.5);
    /* Gradient: Deep Saffron -> Yellow -> India Green */
    --gradient-text: linear-gradient(to right, #FF9933, #FFD700, #138808);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Subtle background glow from index.html */
body::before {
    content: '';
    position: fixed;
    top: -20%;
    left: -10%;
    width: 50%;
    height: 50%;
    /* Deep Saffron glow */
    background: radial-gradient(circle, rgba(255, 153, 51, 0.15), transparent 70%);
    z-index: -1;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    bottom: -20%;
    right: -10%;
    width: 50%;
    height: 50%;
    /* India Green glow */
    background: radial-gradient(circle, rgba(19, 136, 8, 0.1), transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header --- */
header {
    padding: 30px 0 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 150px;
    width: auto;
    object-fit: contain;
}

/* --- Hero --- */
.hero {
    padding: 50px 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 25px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.hero h1 span {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.3rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px auto;
}

/* --- SpendWise Specific Hero --- */
.hero-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.app-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(135, 206, 235, 0.2);
    object-fit: cover;
}

.app-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-main);
}

/* --- Buttons --- */
.btn-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--accent);
    color: #0f172a;
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px var(--accent-glow);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px var(--accent-glow);
    filter: brightness(1.1);
}

.btn.secondary {
    background-color: transparent;
    border: 2px solid var(--text-muted);
    color: var(--text-main);
    box-shadow: none;
}

.btn.secondary:hover {
    border-color: var(--text-main);
}

/* --- Products Section --- */
#products {
    padding: 10px 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 60px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.product-card {
    background: var(--card-bg);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 153, 51, 0.3);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.03) 50%, transparent 60%);
    transform: translateX(-100%);
    transition: 0.6s;
}

.product-card:hover::before {
    transform: translateX(100%);
}

.product-icon {
    font-size: 3rem;
    margin-bottom: 25px;
    display: block;
}

.product-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-main);
}

.product-desc {
    color: var(--text-muted);
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.learn-more {
    color: var(--primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.learn-more::after {
    content: '→';
    transition: 0.2s;
}

.product-card:hover .learn-more::after {
    transform: translateX(5px);
}

/* --- Features (SpendWise) --- */
.features {
    padding: 10px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid;
    border-color: rgba(255, 153, 51, 0.3);
    transition: 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 153, 51, 0.3);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 20px;
    display: inline-block;
}

h3 {
    margin-bottom: 10px;
    font-size: 1.25rem;
}

p.sm {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* --- Footer --- */
footer {
    padding: 80px 0 40px;
    text-align: center;
    color: var(--text-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 50px;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }

    .hero {
        padding: 80px 0;
    }
}

/* --- Contact Form --- */
.contact-card {
    background: var(--card-bg);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px;
    max-width: 600px;
    margin: 0 auto;
    backdrop-filter: blur(10px);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    padding: 12px 16px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(135, 206, 235, 0.1);
}

.form-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 10px;
}