/* Skrin Landing - Premium SEO-Optimized Design */

:root {
    --bg-primary: #09090b;
    --bg-secondary: #111113;
    --bg-tertiary: #18181b;
    --bg-elevated: #1f1f23;
    --text-primary: #fafafa;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --accent: #10b981;
    --accent-hover: #059669;
    --border: #27272a;
    --border-subtle: #1f1f23;
}

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

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

body {
    font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ═══════════════════════════════════════════════════════════════
   HEADER & NAVIGATION
   ═══════════════════════════════════════════════════════════════ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(9, 9, 11, 0.8);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
}

.nav {
    max-width: 1140px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 17px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

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

.btn-nav {
    padding: 10px 20px;
    background: var(--accent);
    color: #000 !important;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.2s, transform 0.2s;
}

.btn-nav:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

/* ═══════════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════════ */

.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 120px 24px 80px;
    max-width: 1300px;
    margin: 0 auto;
}

.hero-content {
    max-width: 540px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 28px;
}

.pulse {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.9); }
}

.hero h1 {
    font-size: clamp(40px, 5vw, 56px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.025em;
    margin-bottom: 24px;
}

.highlight {
    background: linear-gradient(135deg, var(--accent) 0%, #0ea5e9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent; /* Fallback for Firefox */
}

.hero-desc {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 36px;
}

/* Waitlist Form */
.waitlist-form {
    margin-bottom: 16px;
}

.input-group {
    display: flex;
    gap: 10px;
}

.input-group input {
    flex: 1;
    padding: 16px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-group input::placeholder {
    color: var(--text-muted);
}

.input-group input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.input-group button {
    padding: 16px 28px;
    background: var(--accent);
    border: none;
    border-radius: 10px;
    color: #000;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, transform 0.15s;
}

.input-group button:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.input-group button:active {
    transform: translateY(0);
}

.form-note {
    font-size: 14px;
    color: var(--text-muted);
}

.form-note strong {
    color: var(--text-secondary);
}

.success-message {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 10px;
    color: var(--accent);
    font-size: 14px;
}

.success-message.show {
    display: flex;
}

/* Hero Visual - App Preview */
.hero-visual {
    display: flex;
    justify-content: center;
}

.app-preview {
    width: 100%;
    max-width: 620px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: visible;
    box-shadow: 
        0 0 0 1px rgba(255,255,255,0.03),
        0 25px 50px -12px rgba(0,0,0,0.5),
        0 0 80px -20px rgba(16, 185, 129, 0.15);
}

.preview-bar {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border);
}

.dots {
    display: flex;
    gap: 6px;
}

.dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
}

.preview-title {
    flex: 1;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
}

.spacer {
    width: 52px;
}

.preview-body {
    display: grid;
    grid-template-columns: 160px 1fr;
    background: var(--bg-secondary);
    border-radius: 0 0 16px 16px;
    overflow: hidden;
}

.preview-sidebar {
    padding: 20px 16px;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.color-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.color-btn {
    aspect-ratio: 1;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.15s ease;
}

.color-btn:hover {
    border-color: rgba(255, 255, 255, 0.3);
}

.color-btn.active {
    border-color: var(--text-primary);
}

.slider {
    width: 100%;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    border: none;
    outline: none;
}

.slider::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: var(--text-primary);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: var(--text-primary);
    border-radius: 50%;
    cursor: grab;
    border: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.slider::-moz-range-track {
    background: var(--border);
    height: 6px;
    border-radius: 3px;
}

.slider::-ms-thumb {
    width: 16px;
    height: 16px;
    background: var(--text-primary);
    border-radius: 50%;
    cursor: grab;
    border: none;
}

.slider::-ms-track {
    background: var(--border);
    height: 6px;
    border-radius: 3px;
    border: none;
    color: transparent;
}

.preview-canvas {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    min-height: 340px;
    background: radial-gradient(ellipse at center, var(--bg-tertiary) 0%, var(--bg-primary) 100%);
}

/* Shadow layer - not used, shadow is on card via box-shadow */
.layer-shadow {
    display: none !important;
}

/* Card - gradient background */
.layer-card {
    padding: 24px;
    background: linear-gradient(135deg, #0D9488 0%, #0284C7 100%);
    border-radius: 12px;
}

/* Layer 3: Inset - dark frame inside card */
.layer-inset {
    background: transparent;
    border-radius: 8px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.layer-inset.visible {
    background: rgba(0, 0, 0, 0.2);
}

/* Layer 4: Screenshot - fixed size */
.layer-screenshot {
    width: 180px;
    flex-shrink: 0;
    background: var(--bg-secondary);
    border-radius: 0;
    overflow: hidden;
}

.mock-titlebar {
    height: 24px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border);
}

.mock-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mock-line {
    height: 10px;
    background: var(--border);
    border-radius: 5px;
}

/* ═══════════════════════════════════════════════════════════════
   SOCIAL PROOF
   ═══════════════════════════════════════════════════════════════ */

.social-proof {
    padding: 40px 24px;
    text-align: center;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.social-proof p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.logos {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.logos span {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    opacity: 0.7;
}

/* ═══════════════════════════════════════════════════════════════
   DEMO SECTION
   ═══════════════════════════════════════════════════════════════ */

.demo-section {
    padding: 100px 24px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.demo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.demo-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.demo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px -12px rgba(0, 0, 0, 0.4);
}

.demo-visual {
    aspect-ratio: 4/3;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gif-placeholder {
    width: 100%;
    height: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    gap: 16px;
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-primary) 100%);
}

.gif-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--accent);
    background: rgba(16, 185, 129, 0.1);
    border: 1px dashed rgba(16, 185, 129, 0.3);
    padding: 6px 12px;
    border-radius: 6px;
    letter-spacing: 0.02em;
}

.step-icon {
    display: flex;
    align-items: center;
    gap: 6px;
}

.step-icon kbd {
    padding: 8px 12px;
    background: var(--bg-elevated);
    border: 1px solid #3f3f46;
    border-radius: 6px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.step-icon kbd.accent {
    background: var(--accent);
    border-color: var(--accent);
    color: #000;
}

.step-icon .palette,
.step-icon .share {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 24px;
}

.demo-info {
    padding: 24px;
}

.step-num {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 8px;
    display: block;
}

.demo-info h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.demo-info p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════
   FEATURES SECTION
   ═══════════════════════════════════════════════════════════════ */

.features {
    padding: 100px 24px;
    background: var(--bg-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.feature {
    padding: 32px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.feature:hover {
    border-color: rgba(16, 185, 129, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.25);
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: 12px;
    margin-bottom: 20px;
    color: var(--text-secondary);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-icon svg {
    transition: transform 0.3s ease;
}

/* Effect 1: Breathing - soft rhythmic pulse like breathing */
.effect-pulse:hover .feature-icon {
    background: linear-gradient(135deg, var(--accent) 0%, #0ea5e9 100%);
    color: #000;
    animation: breathing 2s ease-in-out infinite;
}

@keyframes breathing {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.12); opacity: 0.9; }
}

/* Effect 2: Rainbow flow - smooth gradient cycling */
.effect-gradient:hover .feature-icon {
    background: linear-gradient(135deg, #f97316, #ec4899, #8b5cf6, #0ea5e9, #10b981, #f97316);
    background-size: 400% 400%;
    color: #000;
    animation: rainbowFlow 3s ease infinite;
}

@keyframes rainbowFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Effect 3: Orbit - icon gently rotates back and forth */
.effect-rotate:hover .feature-icon {
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    color: #000;
    animation: orbit 2.5s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

@keyframes orbit {
    0%, 100% { transform: rotate(0deg) scale(1.05); }
    25% { transform: rotate(15deg) scale(1.08); }
    75% { transform: rotate(-15deg) scale(1.08); }
}

/* Effect 4: Float - icon floats up and down smoothly */
.effect-bounce:hover .feature-icon {
    background: linear-gradient(135deg, var(--accent) 0%, #0ea5e9 100%);
    color: #000;
    animation: float 2s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1.05); }
    50% { transform: translateY(-6px) scale(1.08); }
}

/* Effect 5: Glow pulse - breathing glow effect */
.effect-glow:hover .feature-icon {
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    color: #000;
    animation: glowPulse 1.8s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { 
        box-shadow: 0 0 15px rgba(14, 165, 233, 0.4), 0 0 30px rgba(14, 165, 233, 0.2);
        transform: scale(1.05);
    }
    50% { 
        box-shadow: 0 0 25px rgba(14, 165, 233, 0.7), 0 0 50px rgba(14, 165, 233, 0.4);
        transform: scale(1.1);
    }
}

/* Effect 6: Wiggle - playful continuous wiggle */
.effect-shake:hover .feature-icon {
    background: linear-gradient(135deg, var(--accent) 0%, #22d3ee 100%);
    color: #000;
    animation: wiggle 1.5s ease-in-out infinite;
}

@keyframes wiggle {
    0%, 100% { transform: rotate(0deg) scale(1.05); }
    20% { transform: rotate(-5deg) scale(1.07); }
    40% { transform: rotate(5deg) scale(1.07); }
    60% { transform: rotate(-3deg) scale(1.06); }
    80% { transform: rotate(3deg) scale(1.06); }
}

.feature h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 10px;
}

.feature p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════
   HOW IT WORKS
   ═══════════════════════════════════════════════════════════════ */

.how-it-works {
    padding: 100px 24px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.step {
    text-align: center;
}

.step-number {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: #000;
    font-size: 18px;
    font-weight: 700;
    border-radius: 50%;
    margin-bottom: 24px;
}

.step h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.step p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.step kbd {
    display: inline-block;
    padding: 4px 8px;
    background: var(--bg-elevated);
    border: 1px solid #3f3f46;
    border-radius: 4px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-primary);
}

.step kbd.accent {
    background: var(--accent);
    border-color: var(--accent);
    color: #000;
}

/* ═══════════════════════════════════════════════════════════════
   CTA SECTION
   ═══════════════════════════════════════════════════════════════ */

.cta {
    padding: 100px 24px;
    background: var(--bg-secondary);
}

.cta-box {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 60px 40px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.cta-box h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
}

.cta-box > p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.cta-form {
    max-width: 400px;
    margin: 0 auto 24px;
}

.cta-form .input-group {
    flex-direction: column;
    gap: 12px;
}

.cta-form button {
    width: 100%;
}

.cta-features {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */

.footer {
    padding: 48px 24px;
    border-top: 1px solid var(--border);
}

.footer-content {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.footer-brand .logo {
    margin-bottom: 8px;
}

.footer-brand p {
    font-size: 14px;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

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

.footer-bottom {
    max-width: 1140px;
    margin: 0 auto;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .input-group {
        max-width: 420px;
        margin: 0 auto;
    }
    
    .form-note {
        text-align: center;
    }
    
    .preview-body {
        grid-template-columns: 1fr;
    }
    
    .preview-sidebar {
        border-right: none;
        border-bottom: 1px solid var(--border);
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .sidebar-section {
        min-width: 120px;
    }
}

@media (max-width: 768px) {
    .nav-links a:not(.btn-nav) {
        display: none;
    }
    
    .hero {
        padding-top: 100px;
    }
    
    .demo-grid,
    .features-grid,
    .steps {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .logos {
        gap: 24px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
}

/* ═══════════════════════════════════════════════════════════════
   ANIMATIONS - Simple and smooth
   ═══════════════════════════════════════════════════════════════ */

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-content > * {
    animation: fadeIn 0.5s ease-out forwards;
    opacity: 0;
}

.hero-content .badge { animation-delay: 0s; }
.hero-content h1 { animation-delay: 0.05s; }
.hero-content .hero-desc { animation-delay: 0.1s; }
.hero-content .waitlist-form { animation-delay: 0.15s; }
.hero-content .form-note { animation-delay: 0.2s; }

.hero-visual {
    animation: fadeIn 0.6s ease-out 0.15s forwards;
    opacity: 0;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
}