/* 
  Clickk Landing Page - Premium Dark UI / Glassmorphism
*/

:root {
    /* Color Palette - Premium Dark */
    --bg-base: #0a0a0c;
    --bg-surface: rgba(255, 255, 255, 0.03);
    --bg-surface-hover: rgba(255, 255, 255, 0.08);
    
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.4);

    --accent-primary: #6366f1; /* Indigo */
    --accent-secondary: #a855f7; /* Purple */
    --accent-gradient: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

    /* Spacing & Sizes */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    --transition-fast: 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
    background-color: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    /* subtle noise texture can be added here if an asset is available, using a solid color for now */
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(3rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.5rem; }

p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    font-weight: 400;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* Layout Containers */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Blurred Background Elements (Lights) */
.bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.5;
    animation: float 20s infinite ease-in-out alternate;
}

.shape-1 {
    width: 40vw;
    height: 40vw;
    background: rgba(99, 102, 241, 0.15); /* Indigo */
    top: -10vw;
    left: -10vw;
}

.shape-2 {
    width: 30vw;
    height: 30vw;
    background: rgba(168, 85, 247, 0.15); /* Purple */
    bottom: 20%;
    right: -5vw;
    animation-delay: -5s;
}

.shape-3 {
    width: 25vw;
    height: 25vw;
    background: rgba(236, 72, 153, 0.1); /* Pink */
    top: 40%;
    left: 20%;
    animation-delay: -10s;
}

/* Glassmorphism Panel Utility */
.glass-panel {
    background: var(--bg-surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: var(--radius-lg);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 24px 0;
    transition: padding var(--transition-smooth), background-color var(--transition-smooth), backdrop-filter var(--transition-smooth);
}

.navbar.scrolled {
    padding: 16px 0;
    background-color: rgba(10, 10, 12, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.25rem;
    font-weight: 700;
}

.logo i {
    color: var(--accent-primary);
    font-size: 1.5rem;
}

nav {
    display: flex;
    gap: 32px;
}

nav a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-secondary);
}

nav a:hover {
    color: var(--text-primary);
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-primary-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-xl);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
    border: none;
    outline: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-base);
}

.btn-primary i {
    font-size: 1.25rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.2);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--bg-surface);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--bg-surface-hover);
    transform: translateY(-2px);
}

.btn-primary-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.btn-primary-outline:hover {
    border-color: var(--text-secondary);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.875rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px; /* Offset for navbar */
    position: relative;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-primary);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid rgba(99, 102, 241, 0.2);
    margin-bottom: 24px;
}

.hero-subtitle {
    margin-bottom: 40px;
    font-size: 1.25rem;
    max-width: 480px;
}

.hero-subtitle strong {
    color: var(--text-primary);
}

.cta-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Phone Mockup */
.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.phone-mockup {
    width: 300px;
    height: 600px;
    background: #000;
    border-radius: 48px;
    padding: 12px;
    box-shadow: 0 0 0 2px #333, inset 0 0 0 4px #1a1a1a, 0 24px 48px rgba(0,0,0,0.5);
    position: relative;
    z-index: 2;
    transform: rotateY(-15deg) rotateX(5deg);
    transition: transform var(--transition-smooth);
}

.phone-mockup:hover {
    transform: rotateY(-5deg) rotateX(2deg) translateY(-10px);
}

.screen {
    width: 100%;
    height: 100%;
    background: var(--bg-base);
    border-radius: 36px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255,255,255,0.05);
}

.mockup-content {
    padding: 24px 16px 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    background: var(--bg-base);
}

.mockup-top-logo {
    color: var(--accent-primary);
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 16px;
    padding-left: 4px;
}

.mockup-summary-card {
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 16px;
}

.summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.summary-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.summary-total {
    font-weight: 700;
    color: #3b82f6;
    font-size: 1.1rem;
}

.summary-pills {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}
.summary-pills::-webkit-scrollbar { display: none; }

.pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    background: rgba(255,255,255,0.05);
}

/* Base dot style */
.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}
.dot.green { background: #10b981; }
.dot.purple { background: #8b5cf6; }
.dot.yellow { background: #f59e0b; }
.dot.blue { background: #3b82f6; }

/* Colors for specific pills */
.pill-purple { color: #c4b5fd; background: rgba(139, 92, 246, 0.15); }
.pill-yellow { color: #fde68a; background: rgba(245, 158, 11, 0.15); }
.pill-blue { color: #bfdbfe; background: rgba(59, 130, 246, 0.15); }

.mockup-category-select {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--bg-surface);
    border-radius: 20px;
    padding: 10px 16px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0 auto 20px;
    width: fit-content;
    border: 1px solid var(--glass-border);
}

.mockup-category-select i { font-size: 1rem; }
.mockup-category-select .divider { color: var(--glass-border); }
.mockup-category-select span:last-child {
    font-weight: 600;
    color: var(--text-primary);
}

.mockup-section-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 12px;
    padding-left: 4px;
}

.mockup-grid-3x3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.grid-btn {
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 16px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.icon-bg {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.icon-bg.bg-purple { background: rgba(139, 92, 246, 0.2); color: #c4b5fd; }
.icon-bg.bg-yellow { background: rgba(245, 158, 11, 0.2); color: #fde68a; }
.icon-bg.bg-blue { background: rgba(59, 130, 246, 0.2); color: #bfdbfe; }
.icon-bg.bg-orange { background: rgba(249, 115, 22, 0.2); color: #fdba74; }
.icon-bg.bg-green { background: rgba(16, 185, 129, 0.2); color: #a7f3d0; }
.icon-bg.bg-pink { background: rgba(236, 72, 153, 0.2); color: #fbcfe8; }
.icon-bg.bg-cyan { background: rgba(6, 182, 212, 0.2); color: #a5f3fc; }
.icon-bg.bg-red { background: rgba(239, 68, 68, 0.2); color: #fca5a5; }
.icon-bg.bg-gray { background: rgba(156, 163, 175, 0.2); color: #e5e7eb; }

.grid-btn span {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
}

.mockup-tab-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: rgba(20, 20, 20, 0.9);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-radius: 0 0 36px 36px;
    padding: 0 8px 10px;
}

.tab-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
}

.tab-item i {
    font-size: 1.5rem;
}

.tab-item.active {
    background: rgba(139, 92, 246, 0.15);
    color: #c4b5fd;
    padding: 8px 12px;
    border-radius: 20px;
}

/* Floating Elements around Hero */
.floating-card {
    position: absolute;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 3;
    animation: float 6s ease-in-out infinite alternate;
}

.fl-1 {
    top: 20%;
    right: -40px;
    animation-delay: -2s;
}

.fl-2 {
    bottom: 30%;
    left: -60px;
}

.fl-icon {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-secondary);
}

.fl-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.floating-card strong {
    font-size: 1rem;
}


/* Features Bento */
.features {
    padding: 120px 0;
}

.section-header.center {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 64px;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(240px, auto);
    gap: 24px;
}

.bento-item {
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    position: relative;
}

.interactive-card {
    transition: transform var(--transition-smooth), border-color var(--transition-fast), background var(--transition-smooth);
}

.interactive-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,255,255,0.2);
    background: var(--bg-surface-hover);
}

/* Background Gradients for Bento Items on hover for premium feel */
.interactive-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at top right, rgba(99,102,241,0.1), transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-smooth);
    z-index: 0;
}
.interactive-card:hover::before { opacity: 1; }

.bento-content {
    position: relative;
    z-index: 1;
}

.bento-large {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-has-visual {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bento-visual-onetouch {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 32px;
}

.onetouch-mockup {
    display: flex;
    gap: 16px;
    background: var(--bg-surface);
    padding: 24px;
    border-radius: 32px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2), inset 0 2px 20px rgba(255,255,255,0.02);
    transform: rotateX(15deg) rotateY(-10deg) rotateZ(5deg);
    transition: transform var(--transition-smooth);
}

.onetouch-mockup:hover {
    transform: rotateX(5deg) rotateY(0deg) rotateZ(0deg) scale(1.05);
}

.onetouch-mockup .grid-btn {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0;
}

.onetouch-mockup .icon-bg {
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
}

.active-press {
    animation: pressCycle 3s infinite;
}

.pointer-icon {
    position: absolute;
    bottom: -20px;
    right: -20px;
    font-size: 2.5rem;
    color: #fff;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.8));
    animation: pointerMove 3s infinite;
    z-index: 2;
}

.ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200%;
    height: 200%;
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    animation: rippleEffect 3s infinite;
}

@keyframes pressCycle {
    0%, 40%, 100% { transform: scale(1); background: var(--bg-surface); }
    50% { transform: scale(0.9); background: rgba(255,255,255,0.1); }
    60% { transform: scale(1); background: var(--bg-surface); }
}

@keyframes pointerMove {
    0%, 20% { transform: translate(30px, 30px); opacity: 0; }
    30%, 40% { transform: translate(0, 0); opacity: 1; }
    50% { transform: translate(0, 0) scale(0.9); opacity: 1; }
    60%, 80% { transform: translate(0, 0); opacity: 1; }
    90%, 100% { transform: translate(30px, 30px); opacity: 0; }
}

@keyframes rippleEffect {
    0%, 45% { width: 40px; height: 40px; opacity: 0; border-width: 4px; }
    50% { width: 40px; height: 40px; opacity: 1; border-width: 4px; }
    70%, 100% { width: 120px; height: 120px; opacity: 0; border-width: 1px; }
}

.bento-wide {
    grid-column: span 3;
}

.bento-icon {
    width: 56px;
    height: 56px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.bento-item h3 {
    margin-bottom: 12px;
}

.bento-item p {
    font-size: 1rem;
    margin-bottom: 0;
}

.bento-row {
    display: flex;
    align-items: center;
    gap: 48px;
}

.bento-row .text-area {
    flex: 1;
}

.bento-row .visual-area {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

/* Simple Pulse Animation */
.pulse-ring {
    width: 64px;
    height: 64px;
    background: var(--accent-primary);
    border-radius: 50%;
    position: relative;
}

.pulse-ring::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
    animation: pulse 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}


/* Bottom CTA */
.cta-section {
    padding: 64px 0 120px;
}

.cta-box {
    padding: 64px 32px;
    text-align: center;
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);
    border-radius: 40px;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(99,102,241,0.2) 0%, transparent 60%);
    pointer-events: none;
}

.cta-box p {
    margin-bottom: 32px;
}

.center-btns {
    justify-content: center;
}

/* Footer */
footer {
    border-top: 1px solid var(--glass-border);
    padding: 80px 0 40px;
    background: rgba(0,0,0,0.2);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 48px;
    margin-bottom: 64px;
}

.footer-brand p {
    margin-top: 16px;
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    gap: 64px;
}

.link-col h4 {
    font-size: 1rem;
    margin-bottom: 24px;
}

.link-col a {
    display: block;
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 12px;
}

.link-col a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding-top: 32px;
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-20px) rotate(10deg); }
}

@keyframes pulse {
    0% { transform: scale(0.5); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* Reveal Animation Default State */
.target-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.target-reveal.is-revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-subtitle {
        margin: 0 auto 40px;
    }
    
    .cta-group {
        justify-content: center;
    }
    
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .bento-large, .bento-wide {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    nav, .navbar .btn-primary-outline {
        display: none; /* simple mobile: hide nav items */
    }
    
    .bento-grid {
        grid-template-columns: 1fr;
    }
    
    .bento-large, .bento-wide {
        grid-column: span 1;
        grid-row: auto;
    }
    
    .bento-row {
        flex-direction: column;
        gap: 24px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 32px;
    }

    .floating-card {
        display: none; /* Hide floating cards on small screens for cleaner look */
    }
}
