/* =====================================================
   MINI POSTMAN - Landing Page Styles
   A premium, dark-themed website for the app
   ===================================================== */

/* --- CSS Custom Properties (Design Tokens) --- */
:root {
    /* Colors */
    --bg-primary: #06060b;
    --bg-secondary: #0c0c14;
    --bg-card: rgba(15, 15, 25, 0.7);
    --bg-card-hover: rgba(25, 25, 40, 0.8);
    --bg-glass: rgba(255, 255, 255, 0.03);
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);

    /* Text */
    --text-primary: #f0f0f5;
    --text-secondary: #8a8a9a;
    --text-tertiary: #5a5a6a;

    /* Accent - Orange/Amber */
    --accent-primary: #f59e0b;
    --accent-secondary: #f97316;
    --accent-glow: rgba(245, 158, 11, 0.15);
    --accent-glow-strong: rgba(245, 158, 11, 0.3);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #f59e0b 0%, #f97316 50%, #ef4444 100%);
    --gradient-secondary: linear-gradient(135deg, #818cf8 0%, #a78bfa 50%, #c084fc 100%);
    --gradient-card: linear-gradient(135deg, rgba(245, 158, 11, 0.05) 0%, rgba(249, 115, 22, 0.02) 100%);

    /* HTTP Method Colors */
    --color-get: #22c55e;
    --color-post: #3b82f6;
    --color-put: #eab308;
    --color-delete: #ef4444;

    /* Spacing */
    --section-padding: 120px;
    --container-max: 1200px;

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Shadows */
    --shadow-card: 0 4px 30px rgba(0, 0, 0, 0.3);
    --shadow-card-hover: 0 8px 50px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 60px rgba(245, 158, 11, 0.1);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* --- Animated Background --- */
.bg-grid {
    position: fixed;
    inset: 0;
    z-index: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
}

.bg-glow-1 {
    width: 600px;
    height: 600px;
    background: rgba(245, 158, 11, 0.06);
    top: -200px;
    right: -100px;
    animation: floatGlow 15s ease-in-out infinite;
}

.bg-glow-2 {
    width: 500px;
    height: 500px;
    background: rgba(139, 92, 246, 0.04);
    bottom: -150px;
    left: -100px;
    animation: floatGlow 20s ease-in-out infinite reverse;
}

.bg-glow-3 {
    width: 400px;
    height: 400px;
    background: rgba(249, 115, 22, 0.04);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: floatGlow 18s ease-in-out infinite 5s;
}

@keyframes floatGlow {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.6; }
    33% { transform: translate(30px, -20px) scale(1.1); opacity: 0.8; }
    66% { transform: translate(-20px, 30px) scale(0.9); opacity: 0.5; }
}

/* Particles */
.particles {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--accent-primary);
    border-radius: 50%;
    opacity: 0;
    animation: particleFade 6s ease-in-out infinite;
}

@keyframes particleFade {
    0%, 100% { opacity: 0; transform: translateY(0) scale(0.5); }
    50% { opacity: 0.4; transform: translateY(-40px) scale(1); }
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.4s var(--ease-out);
    backdrop-filter: blur(0px);
}

.navbar.scrolled {
    padding: 10px 0;
    background: rgba(6, 6, 11, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.2rem;
    transition: opacity 0.3s;
}

.nav-logo:hover {
    opacity: 0.8;
}

.nav-logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 36px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.3s;
    position: relative;
}

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

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

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

.nav-cta {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--gradient-primary);
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #000;
    transition: transform 0.3s var(--ease-spring), box-shadow 0.3s;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(245, 158, 11, 0.3);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 60px 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--accent-glow);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--accent-primary);
    margin-bottom: 24px;
    animation: fadeInUp 0.8s var(--ease-out);
}

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

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

.hero-title {
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s var(--ease-out) 0.1s both;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-alt {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 500px;
    margin-bottom: 36px;
    animation: fadeInUp 0.8s var(--ease-out) 0.2s both;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    animation: fadeInUp 0.8s var(--ease-out) 0.3s both;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s var(--ease-spring);
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #000;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(245, 158, 11, 0.35);
}

.btn-ghost {
    background: var(--bg-glass);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.btn-large {
    padding: 18px 36px;
    font-size: 1.05rem;
    border-radius: 16px;
}

.hero-stats {
    display: flex;
    gap: 48px;
    animation: fadeInUp 0.8s var(--ease-out) 0.4s both;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.82rem;
    color: var(--text-tertiary);
    font-weight: 500;
}

/* Hero Visual / Phone Mockup */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    animation: fadeInUp 1s var(--ease-out) 0.4s both;
}

.phone-mockup {
    position: relative;
}

.phone-frame {
    width: 300px;
    background: #111118;
    border-radius: 40px;
    padding: 12px;
    border: 2px solid rgba(255, 255, 255, 0.08);
    box-shadow: 
        0 0 0 1px rgba(255, 255, 255, 0.03),
        0 30px 80px rgba(0, 0, 0, 0.6),
        0 0 100px rgba(245, 158, 11, 0.05);
    position: relative;
    z-index: 2;
}

.phone-notch {
    width: 100px;
    height: 28px;
    background: #111118;
    border-radius: 0 0 20px 20px;
    margin: 0 auto;
    position: relative;
    z-index: 3;
}

.phone-screen {
    background: #0d0d15;
    border-radius: 30px;
    overflow: hidden;
    aspect-ratio: 9/19;
    position: relative;
}

/* App Preview inside Phone */
.app-preview {
    padding: 12px;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 11px;
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 4px;
    border-bottom: 1px solid var(--border-subtle);
}

.app-title-bar {
    font-weight: 700;
    font-size: 14px;
}

.app-settings {
    opacity: 0.5;
}

.app-url-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
}

.method-badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
}

.method-get { background: rgba(34, 197, 94, 0.15); color: var(--color-get); }
.method-post { background: rgba(59, 130, 246, 0.15); color: var(--color-post); }
.method-put { background: rgba(234, 179, 8, 0.15); color: var(--color-put); }
.method-delete { background: rgba(239, 68, 68, 0.15); color: var(--color-delete); }

.url-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-body-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.section-title-bar {
    font-weight: 600;
    font-size: 11px;
    color: var(--text-secondary);
}

.code-block {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 6px;
    padding: 8px 10px;
    border: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    line-height: 1.5;
}

.code-key { color: #7dd3fc; }
.code-string { color: #fbbf24; }
.code-number { color: #a78bfa; }
.code-bracket { color: var(--text-secondary); }

.app-send-btn {
    padding: 8px;
    background: var(--gradient-primary);
    color: #000;
    font-weight: 700;
    font-size: 11px;
    text-align: center;
    border-radius: 8px;
    letter-spacing: 0.5px;
    animation: sendBtnPulse 3s ease-in-out infinite;
}

@keyframes sendBtnPulse {
    0%, 100% { box-shadow: none; }
    50% { box-shadow: 0 0 20px rgba(245, 158, 11, 0.3); }
}

.app-response {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.response-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-badge {
    padding: 2px 8px;
    background: rgba(34, 197, 94, 0.15);
    color: var(--color-get);
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
}

.response-time {
    font-size: 10px;
    color: var(--text-tertiary);
    font-family: 'JetBrains Mono', monospace;
}

.code-block-response {
    opacity: 0.8;
}

/* Floating Cards */
.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(15, 15, 25, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    z-index: 3;
    box-shadow: var(--shadow-card);
    animation: float 6s ease-in-out infinite;
}

.card-1 {
    top: 60px;
    right: -40px;
    animation-delay: 0s;
}

.card-2 {
    bottom: 120px;
    left: -50px;
    animation-delay: 2s;
}

.card-3 {
    bottom: 60px;
    right: -30px;
    animation-delay: 4s;
    color: var(--accent-primary);
}

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

/* --- Sections Common --- */
.section-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

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

.section-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--accent-glow);
    border: 1px solid rgba(245, 158, 11, 0.15);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 550px;
    margin: 0 auto;
    line-height: 1.7;
}

/* --- Features Section --- */
.features {
    position: relative;
    z-index: 1;
    padding: var(--section-padding) 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    padding: 36px 30px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    transition: all 0.4s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.4s;
}

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

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    margin-bottom: 20px;
    transition: transform 0.4s var(--ease-spring);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.feature-icon-http { background: rgba(245, 158, 11, 0.1); color: var(--accent-primary); }
.feature-icon-curl { background: rgba(139, 92, 246, 0.1); color: #a78bfa; }
.feature-icon-headers { background: rgba(59, 130, 246, 0.1); color: #60a5fa; }
.feature-icon-response { background: rgba(34, 197, 94, 0.1); color: #4ade80; }
.feature-icon-history { background: rgba(236, 72, 153, 0.1); color: #f472b6; }
.feature-icon-timeout { background: rgba(6, 182, 212, 0.1); color: #22d3ee; }

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* --- Screenshots Section --- */
.screenshots {
    position: relative;
    z-index: 1;
    padding: var(--section-padding) 0;
    background: linear-gradient(180deg, transparent 0%, rgba(245, 158, 11, 0.02) 50%, transparent 100%);
}

.screenshots-carousel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    align-items: start;
}

.screenshot-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.screenshot-item h3 {
    font-size: 1.15rem;
    font-weight: 700;
}

.screenshot-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.screenshot-frame {
    perspective: 1000px;
}

/* CSS Screenshot Phones */
.screenshot-phone {
    width: 260px;
    background: #111118;
    border-radius: 32px;
    padding: 8px;
    border: 2px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 60px rgba(245, 158, 11, 0.03);
    transition: all 0.5s var(--ease-out);
    overflow: hidden;
}

.screenshot-item:hover .screenshot-phone {
    transform: translateY(-10px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 80px rgba(245, 158, 11, 0.06);
}

.sp-notch {
    width: 80px;
    height: 22px;
    background: #111118;
    border-radius: 0 0 16px 16px;
    margin: 0 auto;
}

.sp-screen {
    background: #0d0d15;
    border-radius: 24px 24px 0 0;
    padding: 8px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 380px;
}

.sp-app-bar {
    font-weight: 700;
    font-size: 13px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-subtle);
}

.sp-url-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    border: 1px solid var(--border-subtle);
}

.sp-method {
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 9px;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    flex-shrink: 0;
}

.sp-get { background: rgba(34, 197, 94, 0.15); color: var(--color-get); }
.sp-post { background: rgba(59, 130, 246, 0.15); color: var(--color-post); }
.sp-put { background: rgba(234, 179, 8, 0.15); color: var(--color-put); }
.sp-delete { background: rgba(239, 68, 68, 0.15); color: var(--color-delete); }

.sp-url {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sp-section-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-top: 4px;
}

.sp-kv-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 4px;
    font-size: 9px;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-secondary);
}

.sp-code {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 6px;
    padding: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    line-height: 1.6;
    border: 1px solid var(--border-subtle);
}

.sp-code-curl {
    font-size: 8px;
    line-height: 1.5;
}

.c-br { color: var(--text-secondary); }
.c-k { color: #7dd3fc; }
.c-s { color: #fbbf24; }
.c-cmd { color: var(--color-get); font-weight: 600; }

.sp-btn-send {
    padding: 7px;
    background: var(--gradient-primary);
    color: #000;
    font-weight: 700;
    font-size: 10px;
    text-align: center;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

.sp-btn-parse {
    margin-top: 4px;
}

.sp-response-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
}

.sp-status {
    padding: 2px 6px;
    background: rgba(34, 197, 94, 0.15);
    color: var(--color-get);
    border-radius: 3px;
    font-size: 9px;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
}

.sp-time {
    font-size: 9px;
    color: var(--text-tertiary);
    font-family: 'JetBrains Mono', monospace;
}

.sp-nav-bar {
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    background: #111118;
    border-radius: 0 0 24px 24px;
}

.sp-nav-item {
    font-size: 9px;
    color: var(--text-tertiary);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.sp-nav-active {
    color: var(--accent-primary);
}

/* History items in screenshot */
.history-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
    border: 1px solid var(--border-subtle);
}

.hi-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.hi-url {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hi-meta {
    font-size: 8px;
    color: var(--text-tertiary);
}

.hi-ok { color: var(--color-get); }
.hi-err { color: var(--color-delete); }

/* Parsed results */
.parsed-result {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pr-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 9px;
}

.pr-label {
    color: var(--text-tertiary);
    font-size: 8px;
    text-transform: uppercase;
    min-width: 40px;
}

.pr-val {
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent-primary);
    font-size: 9px;
}

/* --- Tech Stack Section --- */
.tech {
    position: relative;
    z-index: 1;
    padding: var(--section-padding) 0;
}

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

.tech-card {
    padding: 36px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s var(--ease-out);
}

.tech-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
}

.tech-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    background: var(--bg-glass);
    border-radius: 18px;
    border: 1px solid var(--border-subtle);
    transition: transform 0.4s var(--ease-spring);
}

.tech-card:hover .tech-icon {
    transform: scale(1.1);
}

.tech-icon-text {
    font-size: 24px;
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tech-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.tech-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* --- Download / CTA Section --- */
.download {
    position: relative;
    z-index: 1;
    padding: var(--section-padding) 0;
}

.download-card {
    position: relative;
    padding: 80px 60px;
    background: var(--gradient-card);
    border: 1px solid rgba(245, 158, 11, 0.1);
    border-radius: 32px;
    text-align: center;
    overflow: hidden;
}

.download-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 300px;
    background: radial-gradient(ellipse, rgba(245, 158, 11, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.download-content {
    position: relative;
    z-index: 1;
}

.download-content h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.download-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.download-actions {
    margin-bottom: 24px;
}

.download-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.meta-dot {
    color: var(--text-tertiary);
}

/* --- Contact Section --- */
.contact {
    position: relative;
    z-index: 1;
    padding: var(--section-padding) 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.contact-card {
    padding: 36px 30px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    transition: all 0.4s var(--ease-out);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.contact-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
}

.contact-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    transition: transform 0.4s var(--ease-spring);
}

.contact-card:hover .contact-icon {
    transform: scale(1.1);
}

.contact-icon-email { background: rgba(245, 158, 11, 0.1); color: var(--accent-primary); }
.contact-icon-phone { background: rgba(34, 197, 94, 0.1); color: #4ade80; }
.contact-icon-feedback { background: rgba(139, 92, 246, 0.1); color: #a78bfa; }

.contact-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
}

.contact-card p {
    color: var(--text-secondary);
    font-size: 0.92rem;
}

.contact-arrow {
    position: absolute;
    top: 36px;
    right: 30px;
    font-size: 1.3rem;
    color: var(--text-tertiary);
    transition: all 0.3s var(--ease-out);
}

.contact-card:hover .contact-arrow {
    color: var(--accent-primary);
    transform: translateX(4px);
}

/* --- Footer --- */
.footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border-subtle);
    padding: 64px 0 32px;
}

.footer-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-logo {
    width: 48px;
    height: 48px;
    border-radius: 14px;
}

.footer-brand h3 {
    font-size: 1.2rem;
    font-weight: 700;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    max-width: 300px;
}

.footer-links-group h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.footer-links-group ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links-group a {
    font-size: 0.88rem;
    color: var(--text-secondary);
    transition: color 0.3s;
}

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

.footer-bottom {
    border-top: 1px solid var(--border-subtle);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 0.82rem;
    color: var(--text-tertiary);
}

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

/* Scroll-based reveal animations */
.feature-card,
.tech-card,
.contact-card,
.screenshot-item {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.feature-card.visible,
.tech-card.visible,
.contact-card.visible,
.screenshot-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays for grid items */
.feature-card:nth-child(1), .tech-card:nth-child(1), .contact-card:nth-child(1), .screenshot-item:nth-child(1) { transition-delay: 0.05s; }
.feature-card:nth-child(2), .tech-card:nth-child(2), .contact-card:nth-child(2), .screenshot-item:nth-child(2) { transition-delay: 0.10s; }
.feature-card:nth-child(3), .tech-card:nth-child(3), .contact-card:nth-child(3), .screenshot-item:nth-child(3) { transition-delay: 0.15s; }
.feature-card:nth-child(4), .tech-card:nth-child(4) { transition-delay: 0.20s; }
.feature-card:nth-child(5) { transition-delay: 0.25s; }
.feature-card:nth-child(6) { transition-delay: 0.30s; }

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-description {
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 36px;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(6, 6, 11, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        border-bottom: 1px solid var(--border-subtle);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-cta {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-title {
        font-size: clamp(2.2rem, 8vw, 3.5rem);
    }

    .hero-stats {
        gap: 24px;
        flex-wrap: wrap;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .screenshots-carousel {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .download-card {
        padding: 48px 24px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .phone-frame {
        width: 260px;
    }

    .floating-card {
        display: none;
    }
}
