/* Base Styles */
:root {
    --foreground-rgb: 255, 255, 255;
    --background-start-rgb: 0, 0, 0;
    --background-end-rgb: 10, 30, 30;
    
    --emerald-50: #ecfdf5;
    --emerald-100: #d1fae5;
    --emerald-200: #a7f3d0;
    --emerald-300: #6ee7b7;
    --emerald-400: #34d399;
    --emerald-500: #10b981;
    --emerald-600: #059669;
    --emerald-700: #047857;
    --emerald-800: #065f46;
    --emerald-900: #064e3b;
    
    --teal-50: #f0fdfa;
    --teal-100: #ccfbf1;
    --teal-200: #99f6e4;
    --teal-300: #5eead4;
    --teal-400: #2dd4bf;
    --teal-500: #14b8a6;
    --teal-600: #0d9488;
    --teal-700: #0f766e;
    --teal-800: #115e59;
    --teal-900: #134e4a;
    
    --cyan-50: #ecfeff;
    --cyan-100: #cffafe;
    --cyan-200: #a5f3fc;
    --cyan-300: #67e8f9;
    --cyan-400: #22d3ee;
    --cyan-500: #06b6d4;
    --cyan-600: #0891b2;
    --cyan-700: #0e7490;
    --cyan-800: #155e75;
    --cyan-900: #164e63;
    
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    --black: #000000;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: var(--white);
    background: linear-gradient(to bottom, var(--black), rgb(10, 30, 30));
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.hidden {
    display: none !important;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1rem;
}

.text-center {
    text-align: center;
}

.gradient-text {
    background: linear-gradient(to right, var(--emerald-400), var(--teal-400));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
    border: none;
}

.btn svg {
    margin-left: 0.5rem;
}

.btn-primary {
    background: linear-gradient(to right, var(--emerald-500), var(--teal-500));
    color: var(--white);
}

.btn-primary:hover {
    background: linear-gradient(to right, var(--emerald-600), var(--teal-600));
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--gray-500);
    color: var(--gray-300);
}

.btn-outline:hover {
    border-color: var(--gray-400);
    color: var(--white);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.25rem;
}

.btn-full {
    width: 100%;
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid var(--gray-700);
    color: var(--emerald-400);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-icon:hover {
    border-color: var(--emerald-500);
    color: var(--emerald-300);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transition: all 0.3s ease;
    padding: 1.25rem 0;
}

.navbar.scrolled {
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    padding: 0.75rem 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--emerald-400), var(--teal-400));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-decoration: none;
}

.nav-desktop {
    display: none;
}

.nav-link {
    color: var(--gray-300);
    text-decoration: none;
    margin-left: 2rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--white);
}

.mobile-menu-btn {
    background: transparent;
    border: none;
    color: var(--gray-300);
    cursor: pointer;
}

.mobile-menu {
    display: none;
    background-color: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(8px);
    padding: 1rem 0;
}

.mobile-menu.active {
    display: block;
}

.nav-mobile {
    display: flex;
    flex-direction: column;
}

.nav-mobile .nav-link {
    margin: 0.5rem 0;
    padding: 0.5rem 0;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--gray-300);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}

.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    animation: bounce 2s infinite;
    color: var(--gray-400);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

/* About Section */
.about {
    padding: 5rem 0;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.125rem;
    color: var(--gray-300);
}

.divider {
    width: 6rem;
    height: 0.25rem;
    background: linear-gradient(to right, var(--emerald-500), var(--teal-500));
    margin: 1rem auto 2rem;
}

.features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.feature-card {
    background-color: rgba(17, 24, 39, 0.5);
    backdrop-filter: blur(8px);
    padding: 2rem;
    border-radius: 0.75rem;
    border: 1px solid var(--gray-800);
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.1);
}

.feature-icon {
    margin-bottom: 1.5rem;
}

.icon-heart {
    color: var(--emerald-400);
}

.icon-refresh {
    color: var(--teal-400);
}

.icon-globe {
    color: var(--cyan-400);
}

.feature-card h3 {
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--gray-400);
}

/* How It Works */
.how-it-works {
    padding: 5rem 0;
    position: relative;
}

.how-it-works::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, var(--gray-900), var(--black));
    opacity: 0.7;
    z-index: -1;
}

.steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

.step-card {
    background-color: rgba(17, 24, 39, 0.5);
    backdrop-filter: blur(8px);
    padding: 2rem;
    border-radius: 0.75rem;
    border: 1px solid var(--gray-800);
    text-align: center;
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.1);
}

.step-number {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(to right, var(--emerald-500), var(--teal-500));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.step-number-teal {
    background: linear-gradient(to right, var(--teal-500), var(--cyan-500));
}

.step-number-cyan {
    background: linear-gradient(to right, var(--cyan-500), var(--emerald-500));
}

.step-number span {
    font-size: 1.5rem;
    font-weight: 700;
}

.step-card h3 {
    margin-bottom: 1rem;
}

.step-card p {
    color: var(--gray-400);
}

/* Calculator Section */
.calculator {
    padding: 5rem 0;
    background-color: rgba(0, 0, 0, 0.7);
}

.calculator-container {
    background-color: rgba(17, 24, 39, 0.5);
    backdrop-filter: blur(8px);
    padding: 2rem;
    border-radius: 0.75rem;
    border: 1px solid var(--gray-800);
    max-width: 800px;
    margin: 0 auto;
}

.calculator-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.calculator-header h3 {
    margin-bottom: 0;
}

.error-message {
    background-color: rgba(185, 28, 28, 0.3);
    border: 1px solid #b91c1c;
    color: #fecaca;
    padding: 0.75rem;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
}

.calculator-inputs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    color: var(--gray-300);
    margin-bottom: 0.5rem;
}

.input-group input,
.input-group select {
    width: 100%;
    background-color: rgba(17, 24, 39, 0.5);
    border: 1px solid var(--gray-700);
    border-radius: 0.375rem;
    padding: 0.75rem;
    color: var(--white);
    font-size: 1rem;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: var(--emerald-500);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.arrow-container {
    display: flex;
    justify-content: center;
    margin: 1rem 0;
}

.arrow-circle {
    background-color: rgba(17, 24, 39, 0.5);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--emerald-400);
}

.result-container {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: rgba(6, 78, 59, 0.2);
    border: 1px solid var(--emerald-800);
    border-radius: 0.375rem;
}

.result-container p {
    color: var(--gray-300);
    margin-bottom: 0.5rem;
}

.result-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.result-from,
.result-to {
    font-size: 1.25rem;
    font-weight: 700;
}

.result-symbol {
    color: var(--emerald-400);
    margin-left: 0.25rem;
}

.result-timestamp {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: 1rem;
    margin-bottom: 0;
}

/* Stats Section */
.stats {
    padding: 4rem 0;
    background: linear-gradient(to right, rgba(6, 78, 59, 0.2), rgba(19, 78, 74, 0.2));
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.stat-card {
    background-color: rgba(17, 24, 39, 0.5);
    backdrop-filter: blur(8px);
    padding: 2rem;
    border-radius: 0.75rem;
    border: 1px solid var(--gray-800);
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.1);
}

.stat-card h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.stat-card p {
    color: var(--gray-400);
    font-size: 1.25rem;
    margin-bottom: 0;
}

/* Testimonials */
.testimonials {
    padding: 5rem 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.testimonial-card {
    background-color: rgba(17, 24, 39, 0.5);
    backdrop-filter: blur(8px);
    padding: 2rem;
    border-radius: 0.75rem;
    border: 1px solid var(--gray-800);
    text-align: center;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.1);
}

.testimonial-avatar {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1.5rem;
    border: 2px solid var(--emerald-500);
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-quote {
    color: var(--gray-300);
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-card h4 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.testimonial-role {
    color: var(--emerald-400);
    font-size: 0.875rem;
    margin-bottom: 0;
}

/* CTA Section */
.cta {
    padding: 5rem 0;
    background: linear-gradient(to right, rgba(6, 78, 59, 0.3), rgba(19, 78, 74, 0.3));
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta-content p {
    font-size: 1.25rem;
    color: var(--gray-300);
    margin-bottom: 2rem;
}

/* Security Section */
.security {
    padding: 4rem 0;
    background-color: rgba(0, 0, 0, 0.7);
}

.security-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.security-content h2 {
    margin-bottom: 1rem;
}

.security-content p {
    color: var(--gray-300);
    margin-bottom: 1.5rem;
}

.security-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.icon-shield {
    color: var(--emerald-400);
}

.security-image {
    position: relative;
}

.image-glow {
    position: absolute;
    top: -1rem;
    left: -1rem;
    right: -1rem;
    bottom: -1rem;
    background: linear-gradient(to right, rgba(16, 185, 129, 0.2), rgba(20, 184, 166, 0.2));
    border-radius: 0.75rem;
    filter: blur(20px);
}

.security-image img {
    position: relative;
    width: 100%;
    border-radius: 0.75rem;
    z-index: 1;
}

/* Footer */
.footer {
    padding: 3rem 0 1.5rem;
    background-color: var(--black);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-about p {
    color: var(--gray-400);
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    color: var(--gray-400);
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--emerald-400);
}

.footer-links h4,
.footer-contact h4 {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-links ul,
.footer-contact ul {
    list-style: none;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--emerald-400);
}

.footer-contact li {
    color: var(--gray-400);
}

.footer-bottom {
    border-top: 1px solid var(--gray-800);
    padding-top: 1.5rem;
    text-align: center;
}

.footer-bottom p {
    color: var(--gray-500);
    margin-bottom: 0.5rem;
}

.footer-love {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

/* Media Queries */
@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
    
    .calculator-inputs {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 768px) {
    h1 {
        font-size: 4rem;
    }
    
    .nav-desktop {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: none;
    }
    
    .features {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .steps {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .security-grid {
        flex-direction: row;
    }
    
    .security-content {
        width: 50%;
    }
    
    .security-image {
        width: 50%;
    }
    
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    h1 {
        font-size: 4.5rem;
    }
    
    .hero-content p {
        font-size: 1.5rem;
    }
}

/* Animations */
@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.animate-gradient {
    background-size: 200% 200%;
    animation: gradient 5s ease infinite;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #111;
}

::-webkit-scrollbar-thumb {
    background: #10b981;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0d9668;
}