/* PerfoScan.ai Portal - Dark Premium Theme */
/* Typography: Barlow Condensed / Barlow (Sports/Athletic) */

:root {
    /* Background layers (from logo) */
    --bg-deep: #060d1a;
    --bg-base: #0a1628;
    --bg-elevated: #0f1f3a;
    --bg-card: rgba(15, 31, 58, 0.6);

    /* Accent colors (from logo) */
    --accent-cyan: #00d4ff;
    --accent-orange: #ff6b35;
    --accent-cyan-dim: #0099cc;
    --accent-orange-dim: #cc5528;

    /* Glow effects */
    --glow-cyan: rgba(0, 212, 255, 0.15);
    --glow-orange: rgba(255, 107, 53, 0.15);
    --glow-cyan-strong: rgba(0, 212, 255, 0.4);

    /* Text */
    --text-primary: #ffffff;
    --text-secondary: #b0c4de;
    --text-muted: #6b8299;

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-bg-hover: rgba(255, 255, 255, 0.08);

    /* Status colors */
    --accent-green: #00e676;
    --accent-red: #ff5252;
    --green-bg: rgba(0, 230, 118, 0.1);
    --red-bg: rgba(255, 82, 82, 0.1);

    /* Layout */
    --border-radius: 16px;
    --border-radius-sm: 8px;
    --border-radius-lg: 24px;
    --shadow-soft: 0 4px 30px rgba(0, 0, 0, 0.3);
    --shadow-strong: 0 8px 40px rgba(0, 0, 0, 0.5);
    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.15s ease;
}

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

html {
    scroll-behavior: smooth;
}

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

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Barlow Condensed', 'Barlow', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
}

h2 {
    font-size: clamp(1.6rem, 4vw, 2.8rem);
    margin-bottom: 1rem;
}

h3 {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
}

p {
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    font-weight: 400;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================ */
/* HEADER                                       */
/* ============================================ */
.header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 12px 0;
    background: rgba(6, 13, 26, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(6, 13, 26, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo img {
    height: 40px;
    width: 40px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.logo-text {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}

/* Navigation */
.nav-links {
    display: flex;
    gap: 28px;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-cyan);
    transition: var(--transition);
}

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

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
    line-height: 1;
}

.mobile-menu-btn svg {
    width: 24px;
    height: 24px;
}

/* Language Selector */
.language-selector {
    position: relative;
}

.language-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--text-primary);
    padding: 7px 14px;
    cursor: pointer;
    font-size: 0.9rem;
    font-family: inherit;
    transition: var(--transition);
}

.language-btn:hover,
.language-selector.open .language-btn {
    background: var(--glass-bg-hover);
    border-color: rgba(255, 255, 255, 0.15);
}

.language-btn:focus-visible {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 3px;
}

.language-btn .dropdown-arrow {
    font-size: 0.7rem;
    transition: var(--transition);
}

.language-selector.open .dropdown-arrow {
    transform: rotate(180deg);
}

.language-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    list-style: none;
    background: var(--bg-elevated);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    padding: 8px;
    min-width: 200px;
    max-height: 70vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: var(--transition);
    z-index: 1200;
}

.language-dropdown.drop-up {
    top: auto;
    bottom: calc(100% + 10px);
}

.language-dropdown.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.language-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.language-option:hover,
.language-option:focus-visible {
    background: var(--glass-bg-hover);
    color: var(--text-primary);
    outline: none;
}

.language-option[aria-selected="true"] {
    background: rgba(0, 212, 255, 0.15);
    color: var(--accent-cyan);
}

.flag {
    width: 16px;
    height: 12px;
    object-fit: cover;
    border-radius: 2px;
    vertical-align: middle;
    position: relative;
    top: 1px;
}

.language-option .flag {
    width: 16px;
    height: 12px;
}

.language-label {
    white-space: nowrap;
}

.lang-text {
    display: inline;
}

/* ============================================ */
/* HERO SECTION                                 */
/* ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, #060d1a 0%, #0a1628 30%, #0f1f3a 60%, #0a1628 100%);
}

/* Animated background orbs */
.hero::before,
.hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: floatOrb 8s ease-in-out infinite;
}

.hero::before {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-cyan) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.hero::after {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-orange) 0%, transparent 70%);
    bottom: -50px;
    left: -100px;
    animation-delay: -4s;
}

@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 15px) scale(0.95); }
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 1;
}

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

.hero-content h1 {
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--text-primary) 60%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content .tagline {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
    text-transform: none;
    font-family: 'Barlow', sans-serif;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}

.hero-app-badge {
    margin-top: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-app-badge a {
    display: inline-block;
    transition: var(--transition);
}

.hero-app-badge a:hover {
    transform: scale(1.05);
}

.hero-app-badge img {
    height: 48px;
    width: auto;
}

/* Hero Phones Composition */
.hero-phones {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 520px;
    perspective: 1000px;
    width: 100%;
}

.phone-mockup {
    position: relative;
    flex-shrink: 0;
    background: #1a1a2e;
    border-radius: 32px;
    padding: 8px;
    border: 2px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.5),
        0 0 40px var(--glow-cyan),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.phone-mockup img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
    display: block;
}

/* Hero phone composition */
.phone-main {
    width: 240px;
    z-index: 3;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.phone-main:hover {
    transform: translateY(-8px);
}

.phone-back-left {
    position: absolute;
    width: 200px;
    left: 10%;
    z-index: 2;
    transform: rotate(-8deg) translateX(-20px) translateY(20px);
    opacity: 0.7;
    filter: brightness(0.8);
}

.phone-back-right {
    position: absolute;
    width: 200px;
    right: 10%;
    z-index: 2;
    transform: rotate(8deg) translateX(20px) translateY(20px);
    opacity: 0.7;
    filter: brightness(0.8);
}

/* ============================================ */
/* BUTTONS                                      */
/* ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-family: 'Barlow', sans-serif;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

.btn-primary {
    background: var(--accent-orange);
    color: var(--text-primary);
    box-shadow: 0 4px 20px var(--glow-orange);
}

.btn-primary:hover {
    background: #ff7f4f;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--glass-border);
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    background: rgba(0, 212, 255, 0.08);
}

.btn-subscribe {
    background: var(--accent-cyan);
    color: var(--bg-deep);
    font-weight: 700;
}

.btn-subscribe:hover {
    background: #33ddff;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--glow-cyan);
}

.btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* ============================================ */
/* SECTIONS                                     */
/* ============================================ */
.section {
    padding: 100px 0;
    position: relative;
}

.section-alt {
    background: var(--bg-base);
}

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

.section-header h2 {
    color: var(--text-primary);
    margin-bottom: 16px;
}

.section-header h2 .accent {
    color: var(--accent-cyan);
}

.section-header p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    text-transform: none;
    font-family: 'Barlow', sans-serif;
}

/* ============================================ */
/* AI COACHING DEMO                             */
/* ============================================ */
.coaching-demo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 48px;
}

.demo-card {
    background: linear-gradient(145deg, rgba(12, 20, 40, 0.8), rgba(8, 14, 28, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--border-radius-lg);
    padding: 32px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.demo-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.demo-card-header h3 {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: 1.15rem;
    text-transform: none;
    letter-spacing: 0;
    color: var(--text-primary);
}

.demo-card-sub {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 20px;
}

/* Score grid */
.score-grid {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.score-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 130px;
    height: 130px;
    border-radius: var(--border-radius);
    border: 2px solid var(--accent-orange);
    background: rgba(255, 107, 53, 0.08);
    flex-shrink: 0;
}

.score-value {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 2.8rem;
    line-height: 1;
}

.score-label {
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--accent-orange);
    margin-top: 6px;
    line-height: 1.2;
    padding: 0 8px;
}

.score-orange { color: var(--accent-orange); }
.score-red { color: var(--accent-red); }
.score-green { color: var(--accent-green); }
.score-cyan { color: var(--accent-cyan); }

.score-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.metric-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.025);
    text-align: center;
    transition: var(--transition);
}

.metric-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 212, 255, 0.15);
}

.metric-name {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.metric-value {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 1.6rem;
    line-height: 1.1;
}

.metric-weight {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Feedback tags */
.feedback-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.feedback-tag {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.tag-critical {
    background: rgba(255, 82, 82, 0.15);
    color: var(--accent-red);
    border: 1px solid rgba(255, 82, 82, 0.3);
}

.tag-high {
    background: rgba(255, 152, 0, 0.15);
    color: #ff9800;
    border: 1px solid rgba(255, 152, 0, 0.3);
}

/* Feedback list */
.feedback-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.feedback-item {
    padding: 16px 18px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-left: 3px solid transparent;
    background: rgba(255, 255, 255, 0.02);
    transition: var(--transition);
}

.feedback-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.feedback-item.severity-critical {
    border-left-color: var(--accent-red);
    background: rgba(255, 82, 82, 0.04);
}

.feedback-item.severity-high {
    border-left-color: #ff9800;
    background: rgba(255, 152, 0, 0.03);
}

.feedback-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.severity-badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.severity-badge.badge-critical {
    background: var(--accent-red);
    color: var(--text-primary);
}

.severity-badge.badge-high {
    background: #ff9800;
    color: var(--bg-deep);
}

.feedback-category {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

.feedback-text {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 4px;
}

.feedback-range {
    color: var(--text-muted);
    font-size: 0.78rem;
}

/* SEO content */
.coaching-seo {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.coaching-seo p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

@media (max-width: 992px) {
    .coaching-demo {
        grid-template-columns: 1fr;
    }
}

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

    .score-metrics {
        grid-template-columns: repeat(2, 1fr);
        width: 100%;
    }

    .demo-card {
        padding: 20px 16px;
    }
}

/* ============================================ */
/* FEATURES GRID                                */
/* ============================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 36px 28px;
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition);
    text-align: center;
}

.feature-card:hover {
    background: var(--glass-bg-hover);
    border-color: rgba(0, 212, 255, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3), 0 0 20px var(--glow-cyan);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(255, 107, 53, 0.1));
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    color: var(--accent-cyan);
    stroke: var(--accent-cyan);
}

.feature-card h3 {
    color: var(--text-primary);
    margin-bottom: 12px;
    text-transform: none;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

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

/* ============================================ */
/* HOW IT WORKS                                 */
/* ============================================ */
.steps-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    position: relative;
}

.steps-container::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 15%;
    right: 15%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), var(--accent-orange), transparent);
    opacity: 0.3;
}

.step {
    text-align: center;
    padding: 24px;
    position: relative;
}

.step-number {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-orange));
    color: var(--bg-deep);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    font-family: 'Barlow Condensed', sans-serif;
    margin: 0 auto 20px;
    position: relative;
    z-index: 1;
}

.step h3 {
    color: var(--text-primary);
    margin-bottom: 12px;
    text-transform: none;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
}

.step p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ============================================ */
/* TECHNIQUE COMPARISON                         */
/* ============================================ */
.technique-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.technique-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.technique-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
}

.technique-card.good {
    border-color: rgba(0, 230, 118, 0.3);
}

.technique-card.wrong {
    border-color: rgba(255, 82, 82, 0.3);
}

.technique-card img {
    width: 100%;
    height: auto;
    display: block;
}

.technique-card-content {
    padding: 24px;
}

.technique-card.good .technique-card-content h3 {
    color: var(--accent-green);
}

.technique-card.wrong .technique-card-content h3 {
    color: var(--accent-red);
}

.technique-card-content h3 {
    text-transform: none;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    margin-bottom: 8px;
}

.technique-card-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.technique-badge {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.badge-good {
    background: var(--green-bg);
    color: var(--accent-green);
}

.badge-warning {
    background: var(--red-bg);
    color: var(--accent-red);
}

/* ============================================ */
/* APP SHOWCASE                                 */
/* ============================================ */
.app-showcase {
    overflow: hidden;
}

.app-screenshots {
    margin-bottom: 64px;
}

.screenshots-carousel {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 20px 0 40px;
    scrollbar-width: none;
}

.screenshots-carousel::-webkit-scrollbar {
    display: none;
}

.screenshot-item {
    flex: 0 0 auto;
    scroll-snap-align: center;
}

.screenshot-item .phone-mockup {
    width: 220px;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.4),
        0 0 30px var(--glow-cyan);
    transition: var(--transition);
}

.screenshot-item .phone-mockup:hover {
    transform: translateY(-8px);
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.5),
        0 0 40px var(--glow-cyan-strong);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--glass-border);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.carousel-dot.active {
    background: var(--accent-cyan);
    width: 24px;
    border-radius: 4px;
}

/* App features list */
.app-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.app-features-visual {
    display: flex;
    justify-content: center;
}

.app-features-visual .phone-mockup {
    width: 260px;
}

.app-features {
    list-style: none;
}

.app-features li {
    padding: 14px 0;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: flex-start;
    gap: 14px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.app-features li:last-child {
    border-bottom: none;
}

.app-features li strong {
    color: var(--text-primary);
}

.check-icon {
    width: 22px;
    height: 22px;
    min-width: 22px;
    background: var(--green-bg);
    border: 1px solid rgba(0, 230, 118, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-green);
    font-size: 0.75rem;
    margin-top: 2px;
}

.app-store-badge {
    margin-top: 32px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.app-store-badge a {
    display: inline-block;
    transition: var(--transition);
}

.app-store-badge a:hover {
    transform: scale(1.05);
}

.app-store-badge img {
    height: 48px;
    width: auto;
    filter: brightness(0.9);
}

.app-store-badge img:hover {
    filter: brightness(1);
}

/* ============================================ */
/* ABOUT SECTION                                */
/* ============================================ */
.about-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 1.05rem;
    line-height: 1.7;
}

.about-text p:last-child {
    margin-bottom: 0;
}

/* ============================================ */
/* NEWSLETTER                                   */
/* ============================================ */
.newsletter {
    text-align: center;
}

.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.newsletter-form input[type="email"] {
    flex: 1;
    min-width: 250px;
    padding: 14px 24px;
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-size: 1rem;
    font-family: 'Barlow', sans-serif;
    transition: var(--transition);
    background: var(--glass-bg);
    color: var(--text-primary);
}

.newsletter-form input[type="email"]::placeholder {
    color: var(--text-muted);
}

.newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 20px var(--glow-cyan);
}

.newsletter-message {
    width: 100%;
    padding: 14px;
    border-radius: var(--border-radius-sm);
    margin-top: 20px;
    display: none;
    font-size: 0.95rem;
}

.newsletter-message.success {
    background: var(--green-bg);
    color: var(--accent-green);
    border: 1px solid rgba(0, 230, 118, 0.2);
    display: block;
}

.newsletter-message.error {
    background: var(--red-bg);
    color: var(--accent-red);
    border: 1px solid rgba(255, 82, 82, 0.2);
    display: block;
}

/* ============================================ */
/* FOOTER                                       */
/* ============================================ */
.footer {
    background: var(--bg-deep);
    border-top: 1px solid var(--glass-border);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.footer-brand img {
    height: 36px;
}

.footer-brand-text {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.footer-section p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-section h4 {
    margin-bottom: 20px;
    font-size: 1rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--accent-cyan);
}

.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding-top: 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

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

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.stagger > *:nth-child(1) { transition-delay: 0s; }
.stagger > *:nth-child(2) { transition-delay: 0.08s; }
.stagger > *:nth-child(3) { transition-delay: 0.16s; }
.stagger > *:nth-child(4) { transition-delay: 0.24s; }
.stagger > *:nth-child(5) { transition-delay: 0.32s; }
.stagger > *:nth-child(6) { transition-delay: 0.40s; }

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(6, 13, 26, 0.3);
    border-radius: 50%;
    border-top-color: var(--bg-deep);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================ */
/* HERO LOGIN CARD                              */
/* ============================================ */
.hero-right-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

.hero-login-card {
    background: rgba(15, 25, 50, 0.7);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--border-radius);
    padding: 28px 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 80px rgba(0,212,255,0.04);
    width: 100%;
    max-width: 400px;
}

.hero-login-card h2 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.3rem;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 4px;
    letter-spacing: 0.02em;
}

.hero-login-subtitle {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 18px;
}

.login-social {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
}

.login-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
    padding: 9px 10px;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--text-primary);
    font-family: 'Barlow', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.login-social-btn:hover {
    background: var(--glass-bg-hover);
    border-color: rgba(255,255,255,0.15);
}

.login-social-btn svg { flex-shrink: 0; }

.login-social-hint {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.72rem;
    margin-bottom: 14px;
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    color: var(--text-muted);
    font-size: 0.78rem;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--glass-border);
}

.hero-login-card .form-group { margin-bottom: 10px; }

.hero-login-card .form-label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 4px;
}

.hero-login-card .form-input {
    width: 100%;
    padding: 9px 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    font-family: 'Barlow', sans-serif;
    font-size: 0.88rem;
    transition: var(--transition);
    box-sizing: border-box;
}

.hero-login-card .form-input:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(0,212,255,0.12);
}

.hero-login-card .form-input::placeholder { color: var(--text-muted); }

.hero-login-card .form-error {
    color: #ff4d6a;
    font-size: 0.82rem;
    margin-bottom: 8px;
    display: none;
}

.hero-login-card .form-error.visible { display: block; }

.login-submit {
    width: 100%;
    justify-content: center;
    margin-top: 4px;
}

.login-submit .btn-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: loginSpin 0.6s linear infinite;
}

@keyframes loginSpin { to { transform: rotate(360deg); } }

.login-footer-text {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-top: 14px;
}

.login-footer-text a {
    color: var(--accent-cyan);
    text-decoration: none;
}

.login-footer-text a:hover { text-decoration: underline; }

/* ============================================ */
/* RESPONSIVE - TABLET                          */
/* ============================================ */
@media (max-width: 992px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

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

    .hero-app-badge {
        text-align: center;
        justify-content: center;
    }

    .hero-phones {
        height: 400px;
    }

    .hero-login-card {
        max-width: 460px;
    }

    .login-social { flex-direction: column; }

    .phone-back-left,
    .phone-back-right {
        display: none;
    }

    .phone-main {
        width: 220px;
    }

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

    .app-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .app-features-visual {
        order: -1;
    }

    .steps-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .steps-container::before {
        display: none;
    }

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

/* ============================================ */
/* RESPONSIVE - MOBILE                          */
/* ============================================ */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(6, 13, 26, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 20px;
        gap: 4px;
        text-align: center;
        border-bottom: 1px solid var(--glass-border);
    }

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

    .nav-links a {
        display: block;
        padding: 12px;
        border-radius: var(--border-radius-sm);
    }

    .nav-links a:hover {
        background: var(--glass-bg-hover);
    }

    .nav-links a::after {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .header nav {
        gap: 10px;
    }

    .language-selector {
        margin-left: auto;
    }

    .lang-text {
        display: none;
    }

    .language-dropdown {
        right: 0;
        left: auto;
    }

    .section {
        padding: 64px 0;
    }

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

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input[type="email"],
    .newsletter-form button {
        width: 100%;
    }

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

    .screenshot-item .phone-mockup {
        width: 180px;
    }
}

/* ============================================ */
/* RESPONSIVE - SMALL MOBILE                    */
/* ============================================ */
@media (max-width: 480px) {
    .hero {
        padding: 100px 0 60px;
    }

    .hero-phones {
        height: 340px;
    }

    .phone-main {
        width: 200px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .feature-card {
        padding: 28px 20px;
    }

    .step {
        padding: 16px 8px;
    }

    .screenshot-item .phone-mockup {
        width: 160px;
    }
}

/* ============================================ */
/* REDUCED MOTION                               */
/* ============================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .fade-in {
        opacity: 1;
        transform: none;
    }

    html {
        scroll-behavior: auto;
    }
}

/* ============================================ */
/* FAQ (homepage) + GUIDES                      */
/* ============================================ */
.faq-list {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-sm);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.faq-item[open],
.faq-item:hover {
    border-color: rgba(0, 212, 255, 0.35);
    background: var(--glass-bg-hover);
}

.faq-item summary {
    cursor: pointer;
    list-style: none;
    padding: 18px 52px 18px 22px;
    position: relative;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.6rem;
    line-height: 1;
    color: var(--accent-cyan);
    transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
    content: '–';
}

.faq-item .faq-answer {
    padding: 0 22px 20px;
    color: var(--text-secondary);
    font-family: 'Barlow', sans-serif;
    line-height: 1.65;
}

.faq-item .faq-answer a { color: var(--accent-cyan); }

/* Guides */
.guide-hero {
    padding: 140px 0 40px;
}

.breadcrumbs {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 18px;
    font-family: 'Barlow', sans-serif;
}

.breadcrumbs a { color: var(--text-secondary); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent-cyan); }
.breadcrumbs span { margin: 0 8px; }

.guide-article {
    max-width: 780px;
    margin: 0 auto;
    font-family: 'Barlow', sans-serif;
}

.guide-article h1 {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    line-height: 1.1;
    margin-bottom: 18px;
}

.guide-meta {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 28px;
}

.guide-intro {
    font-size: 1.2rem;
    color: var(--text-primary);
    line-height: 1.6;
    border-left: 3px solid var(--accent-cyan);
    padding-left: 18px;
    margin-bottom: 40px;
}

.guide-article h2 {
    margin: 44px 0 14px;
    font-size: 1.9rem;
}

.guide-article h3 {
    margin: 26px 0 10px;
    font-size: 1.35rem;
    text-transform: none;
}

.guide-article p,
.guide-article li {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 14px;
}

.guide-article ul,
.guide-article ol {
    padding-left: 22px;
    margin-bottom: 18px;
}

.guide-article a { color: var(--accent-cyan); }

.guide-takeaways {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 24px 28px;
    margin: 44px 0;
}

.guide-takeaways h2 { margin-top: 0; font-size: 1.5rem; }

.guide-cta {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.08), rgba(255, 107, 53, 0.08));
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 32px;
    margin: 56px 0 40px;
    text-align: center;
}

.guide-cta h2 { margin-top: 0; }
.guide-cta p { max-width: 560px; margin: 0 auto 22px; }

.guide-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.guide-card {
    display: block;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 26px;
    text-decoration: none;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.guide-card:hover {
    border-color: rgba(0, 212, 255, 0.4);
    transform: translateY(-3px);
}

.guide-card h3 { color: var(--text-primary); margin-bottom: 10px; text-transform: none; }
.guide-card p { color: var(--text-secondary); font-family: 'Barlow', sans-serif; line-height: 1.55; }
.guide-card .guide-card-more { color: var(--accent-cyan); font-size: 0.9rem; margin-top: 12px; display: inline-block; }

.guide-related {
    margin: 40px 0;
}
.guide-related h2 { font-size: 1.5rem; margin-bottom: 14px; }

/* Contacts section */
.contacts-card {
    max-width: 640px;
    margin: 0 auto;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 36px 32px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.contacts-text {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-family: 'Barlow', sans-serif;
}
.contacts-list { margin: 0; }
.contacts-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid var(--glass-border);
}
.contacts-row dt {
    font-family: 'Barlow Condensed', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.contacts-row dd { margin: 0; color: var(--text-primary); font-family: 'Barlow', sans-serif; }
.contacts-row dd a { color: var(--accent-cyan); text-decoration: none; }
.contacts-row dd a:hover { text-decoration: underline; }
@media (max-width: 480px) {
    .contacts-row { grid-template-columns: 1fr; gap: 4px; }
}
