:root {
    --primary-pink: #FFB6C6;
    --primary-pink-semi: rgba(255, 182, 198, 0.4);
    --purple-accent: #8E44AD;
    --gold-accent: #D4AF37; 
    --text-dark: #2C3E50;
    --text-light: #596A7D;
    --white: #FFFFFF;
    --glass-bg: rgba(255, 255, 255, 0.25);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px 0 rgba(142, 68, 173, 0.15);
}

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

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

h1, h2, h3, h4, h5, h6, .logo span, .footer-brand span {
    font-family: 'Playfair Display', serif;
}

/* Background Parallax */
.parallax-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('../assets/castle_bg.png');
    background-size: cover;
    background-position: center bottom;
    z-index: -1;
    transition: transform 0.1s ease-out;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 100;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 1rem 5%;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: var(--glass-shadow);
}

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

.logo i {
    color: var(--gold-accent);
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    margin: 0 1.5rem;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

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

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

.nav-links a:hover {
    color: var(--purple-accent);
}

.btn-primary, .btn-secondary, .btn-login {
    text-decoration: none;
    border: none;
    border-radius: 30px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
}

.btn-login {
    color: var(--text-dark);
    background: transparent;
    margin-right: 1rem;
}

.btn-login:hover {
    color: var(--purple-accent);
}

.lang-select {
    background: transparent;
    border: none;
    color: var(--text-dark);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    margin-right: 1.5rem;
    cursor: pointer;
    outline: none;
    transition: color 0.3s ease;
}

.lang-select:hover {
    color: var(--purple-accent);
}

.lang-select option {
    background: var(--white);
    color: var(--text-dark);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-pink), var(--purple-accent));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(142, 68, 173, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(142, 68, 173, 0.4);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-secondary {
    background: var(--glass-bg);
    backdrop-filter: blur(5px);
    border: 1px solid var(--primary-pink);
    color: var(--purple-accent);
}

.btn-secondary:hover {
    background: var(--white);
}

/* Sections */
section {
    padding: 6rem 5%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--purple-accent);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* Hero Section */
.hero {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-top: 10rem;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    text-shadow: 0 2px 10px rgba(255,255,255, 0.5);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.floating-card {
    width: 600px;
    max-width: 100%;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 20px 40px rgba(142, 68, 173, 0.4));
}

@keyframes float {
    0% { transform: translateY(0px) rotateX(5deg) rotateY(-5deg); }
    50% { transform: translateY(-20px) rotateX(-5deg) rotateY(10deg); }
    100% { transform: translateY(0px) rotateX(5deg) rotateY(-5deg); }
}

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

.feature-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(142, 68, 173, 0.2);
    background: rgba(255, 255, 255, 0.6);
}

.feature-icon {
    font-size: 3rem;
    color: var(--gold-accent);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--purple-accent);
}

/* Showcase */
.showcase-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 4rem;
    box-shadow: var(--glass-shadow);
}

.showcase-text {
    flex: 1;
    padding-right: 4rem;
}

.showcase-tab {
    padding: 1.5rem;
    border-left: 4px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.showcase-tab:hover {
    opacity: 0.8;
}

.showcase-tab.active {
    border-left-color: var(--primary-pink);
    opacity: 1;
}

.showcase-tab h3 {
    font-size: 1.5rem;
    color: var(--purple-accent);
    margin-bottom: 0.5rem;
}

.showcase-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

.mockup-phone {
    width: 300px;
    height: 600px;
    background: #fff;
    border-radius: 40px;
    padding: 10px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 8px solid var(--text-dark);
}

.mockup-frame {
    width: 100%;
    height: 100%;
    border-radius: 30px;
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    overflow: hidden;
    position: relative;
    background: #FAF5F8;
    display: flex;
    flex-direction: column;
}

.app-header {
    padding: 2rem 1.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.app-balance {
    text-align: center;
    padding: 1rem;
}

.app-balance p {
    font-size: 0.8rem;
    color: var(--text-light);
}

.app-balance h2 {
    font-size: 2rem;
    color: var(--purple-accent);
}

.app-card-preview {
    margin: 1rem;
    height: 160px;
    background: linear-gradient(135deg, #2C3E50, #1A252F);
    border-radius: 15px;
    padding: 1.5rem;
    color: white;
    position: relative;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border: 1px solid var(--gold-accent);
}

.app-card-logo {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    font-style: italic;
    font-weight: 700;
}

.app-actions {
    display: flex;
    justify-content: space-around;
    padding: 1.5rem;
}

.app-actions button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: var(--primary-pink-semi);
    color: var(--purple-accent);
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(255, 182, 198, 0.5);
}

.app-transactions {
    background: white;
    border-radius: 20px 20px 0 0;
    padding: 1.5rem;
    height: 100%;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.05);
}

.app-tx {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.txn-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #f1f2f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--purple-accent);
}

.txn-details h4 {
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
}

.txn-details p {
    font-size: 0.75rem;
    color: var(--text-light);
}

.txn-amount {
    margin-left: auto;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Design System */
.ds-content {
    background: var(--glass-bg);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
}

.palette-row, .typography-row {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.color-swatch {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 150px;
}

.color-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: var(--swatch);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.color-swatch p {
    text-align: center;
    font-weight: 500;
}

.typo-block {
    flex: 1;
    background: rgba(255, 255, 255, 0.5);
    padding: 2rem;
    border-radius: 15px;
}

.typo-block h1 {
    font-size: 4rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.inter-typo h1 {
    font-family: 'Inter', sans-serif;
}

/* Footer */
footer {
    background: rgba(255, 255, 255, 0.8);
    padding: 4rem 5% 1rem;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.footer-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--purple-accent);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-light);
    margin: 0 1rem;
    transition: color 0.3s;
}

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

.footer-social a {
    color: var(--text-dark);
    font-size: 1.5rem;
    margin-left: 1rem;
    transition: color 0.3s;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0,0,0,0.1);
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }

/* Responsive */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 8rem;
    }
    .hero-cta {
        justify-content: center;
        margin-bottom: 3rem;
    }
    .showcase-container {
        flex-direction: column;
        gap: 3rem;
        padding: 2rem;
    }
    .showcase-text {
        padding-right: 0;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .hero-title {
        font-size: 3rem;
    }
    .floating-card {
        width: 100%;
    }
    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }
}
