/* 
 * Tosss Payments Clone - Modern Fintech UI/UX 
 * Concept: Clean, trustworthy, fast, with generous spacing and soft glassmorphism.
 */

/* ==========================================================================
   CSS Variables & Reset
   ========================================================================== */
   :root {
    /* Color Palette */
    --primary: #3182f6;
    --primary-hover: #1b64da;
    --primary-light: #e8f3ff;
    
    --secondary: #f2f4f6;
    --secondary-hover: #e5e8eb;
    
    --text-display: #191f28;
    --text-heading: #333d4b;
    --text-body: #4e5968;
    --text-muted: #8b95a1;
    
    --bg-main: #ffffff;
    --bg-sub: #f9fafb;
    --bg-glass: rgba(255, 255, 255, 0.7);
    
    --border: #e5e8eb;
    --border-light: #f2f4f6;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 12px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 24px 48px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 40px rgba(49, 130, 246, 0.2);
    
    /* Radii */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-smooth: 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', sans-serif;
    color: var(--text-body);
    background-color: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-display);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, #8a2be2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-body);
    margin-bottom: 3rem;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    outline: none;
    text-decoration: none;
}

.btn:active {
    transform: scale(0.97);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    border-radius: var(--radius-md);
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background-color: var(--primary);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 4px 12px rgba(49, 130, 246, 0.3);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--text-heading);
}

.btn-secondary:hover {
    background-color: var(--secondary-hover);
    transform: translateY(-2px);
}

.btn-text {
    background-color: transparent;
    color: var(--text-body);
}

.btn-text:hover {
    color: var(--text-display);
    background-color: var(--secondary);
}

.btn-shadow {
    box-shadow: var(--shadow-md);
}

/* ==========================================================================
   Navigation (Glassmorphism)
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 72px;
    background-color: var(--bg-glass);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    z-index: 100;
    transition: all var(--transition-smooth);
    border-bottom: 1px solid transparent;
}

.nav-container {
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-display);
    letter-spacing: -0.03em;
}

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

.nav-links a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-heading);
}

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

.nav-actions {
    display: flex;
    gap: 0.5rem;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    padding: 160px 24px 100px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--bg-main);
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(49, 130, 246, 0.15) 0%, rgba(255,255,255,0) 70%);
    filter: blur(60px);
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin-bottom: 4rem;
    animation: fadeUp 0.8s ease-out forwards;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    color: var(--text-body);
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Hero Dashboard Mockup */
.hero-dashboard-mockup {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 800px;
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    overflow: hidden;
    animation: fadeUp 1s ease-out 0.2s forwards, float 6s ease-in-out infinite;
    opacity: 0;
}

.mockup-header {
    height: 48px;
    background-color: var(--bg-sub);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background-color: #ff5f56; }
.dot.yellow { background-color: #ffbd2e; }
.dot.green { background-color: #27c93f; }

.mockup-body {
    padding: 40px;
    height: 300px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: linear-gradient(to bottom, var(--bg-main) 0%, var(--bg-sub) 100%);
}

.mockup-chart {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    width: 100%;
    height: 100%;
    justify-content: space-between;
}

.chart-bar {
    flex: 1;
    background: linear-gradient(to top, var(--primary) 0%, #60a5fa 100%);
    border-radius: 8px 8px 0 0;
    transform-origin: bottom;
    animation: growBar 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
    transform: scaleY(0);
}

.chart-bar:nth-child(1) { animation-delay: 0.5s; }
.chart-bar:nth-child(2) { animation-delay: 0.6s; }
.chart-bar:nth-child(3) { animation-delay: 0.7s; }
.chart-bar:nth-child(4) { animation-delay: 0.8s; }
.chart-bar:nth-child(5) { animation-delay: 0.9s; }
.chart-bar:nth-child(6) { animation-delay: 1.0s; }

/* ==========================================================================
   Calculator Section
   ========================================================================== */
.calculator-section {
    padding: 120px 24px;
    background-color: var(--bg-sub);
}

.calc-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.calc-text {
    flex: 1;
}

.calc-card {
    flex: 1;
    background: var(--bg-main);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

.calc-input-group {
    margin-bottom: 24px;
}

.calc-input-group label {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 8px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    border-bottom: 2px solid var(--border);
    transition: border-color var(--transition-fast);
}

.input-wrapper:focus-within {
    border-bottom-color: var(--primary);
}

#calc-amount-input {
    width: 100%;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-display);
    border: none;
    background: transparent;
    padding: 12px 0;
    outline: none;
}

#calc-amount-input::placeholder {
    color: var(--border);
}

.input-wrapper .currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-display);
    margin-left: 8px;
}

.calc-result-group {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px dashed var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.result-label {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-body);
}

.result-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.result-value .currency {
    font-size: 1.25rem;
    color: var(--text-display);
}

/* ==========================================================================
   Features Section
   ========================================================================== */
.features {
    padding: 120px 24px;
    background-color: var(--bg-main);
    text-align: center;
}

.section-header {
    max-width: 800px;
    margin: 0 auto;
}

.feature-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    background-color: var(--bg-sub);
    padding: 48px 32px;
    border-radius: var(--radius-lg);
    text-align: left;
    transition: all var(--transition-smooth);
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-md);
    background-color: var(--bg-main);
    border-color: var(--border-light);
}

.feature-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 24px;
    position: relative;
}

.feature-icon-wrapper::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: inherit;
    filter: blur(16px);
    z-index: -1;
    opacity: 0.6;
}

.blue-glow {
    background-color: rgba(49, 130, 246, 0.1);
}
.blue-glow::after { background-color: var(--primary); }

.green-glow {
    background-color: rgba(39, 201, 63, 0.1);
}
.green-glow::after { background-color: #27c93f; }

.purple-glow {
    background-color: rgba(138, 43, 226, 0.1);
}
.purple-glow::after { background-color: #8a2be2; }

.feature-card-title {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--text-display);
}

.feature-card-desc {
    color: var(--text-body);
    font-size: 1rem;
    line-height: 1.6;
}

/* ==========================================================================
   CTA Banner
   ========================================================================== */
.cta-banner {
    padding: 100px 24px;
    background: linear-gradient(135deg, var(--bg-sub) 0%, var(--primary-light) 100%);
    text-align: center;
}

.banner-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-banner .section-title {
    margin-bottom: 2.5rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: var(--bg-main);
    padding: 80px 24px 40px;
    border-top: 1px solid var(--border);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4rem;
}

.footer-brand {
    flex: 1;
    min-width: 250px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    gap: 4rem;
}

.link-column h4 {
    font-size: 1rem;
    color: var(--text-heading);
    margin-bottom: 1.5rem;
}

.link-column a {
    display: block;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    font-size: 0.9375rem;
}

.link-column a:hover {
    color: var(--primary);
}

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

@keyframes growBar {
    from {
        opacity: 0;
        transform: scaleY(0);
    }
    to {
        opacity: 1;
        transform: scaleY(1);
    }
}

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

/* ==========================================================================
   Responsive Design (Mobile/Tablet)
   ========================================================================== */
@media (max-width: 1024px) {
    .calc-container {
        flex-direction: column;
        text-align: center;
    }
    .calc-card {
        width: 100%;
        max-width: 600px;
    }
    .calc-input-group label {
        text-align: left;
    }
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .navbar .nav-links {
        display: none; /* Hide nav links on mobile */
    }
    
    .hero {
        padding-top: 120px;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 2rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 2rem;
    }
    
    .mockup-body {
        height: 200px;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .nav-actions #login-btn {
        display: none; /* Keep interface super clean on tiny screens */
    }
    .calc-card {
        padding: 24px;
    }
    .result-value {
        font-size: 1.5rem;
    }
}
```