/* ========================================
   Skreenr Landing Page
   ======================================== */

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

:root {
    --red: #f03e3e;
    --red-glow: rgba(240, 62, 62, 0.3);
    --bg: #0a0a0a;
    --bg-elevated: #141414;
    --bg-card: #1a1a1a;
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    --text: #f0f0f0;
    --text-secondary: #9e9e9e;
    --text-tertiary: #6b6b6b;
    --radius: 12px;
    --radius-lg: 20px;
    --max-w: 1100px;
}

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: var(--red);
    color: #fff;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}
.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 24px var(--red-glow);
    background: #e03535;
}
.btn-sm { padding: 7px 16px; font-size: 0.85rem; border-radius: 8px; }
.btn-lg { padding: 14px 32px; font-size: 1.05rem; border-radius: 12px; }
.btn-full { width: 100%; justify-content: center; }

/* --- Promo Banner --- */
.promo-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 101;
    background: linear-gradient(90deg, #f03e3e, #d63030);
    color: #fff;
    text-align: center;
    padding: 8px 24px;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}
.promo-banner code {
    background: rgba(255,255,255,0.2);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}
.promo-cta {
    background: #fff;
    color: var(--red);
    padding: 4px 14px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.8rem;
    transition: transform 0.15s;
    white-space: nowrap;
}
.promo-cta:hover { transform: translateY(-1px); }

/* --- Nav --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    backdrop-filter: blur(20px) saturate(1.6);
    -webkit-backdrop-filter: blur(20px) saturate(1.6);
    background: rgba(10, 10, 10, 0.75);
    border-bottom: 1px solid var(--border);
}
.nav-with-banner { top: 36px; }
.nav-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.15rem;
}
.nav-icon { width: 28px; height: 28px; }
.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.nav-links a:hover { color: var(--text); }
.lang-switch {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.03em;
    transition: border-color 0.2s, color 0.2s;
}
.lang-switch:hover { border-color: var(--border-hover); color: var(--text); }

/* --- Hero --- */
.hero {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 176px 24px 80px;
    text-align: center;
}
.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 100px;
    border: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 28px;
    background: var(--bg-elevated);
}
.hero h1 {
    font-size: clamp(2.4rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}
.text-gradient {
    background: linear-gradient(135deg, var(--red) 0%, #ff6b6b 50%, #ffa07a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-sub {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 540px;
    margin: 0 auto 36px;
    line-height: 1.7;
}
.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-bottom: 64px;
}
.hero-meta {
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

/* --- App Preview --- */
.hero-preview {
    perspective: 1200px;
    max-width: 680px;
    margin: 0 auto;
}
.preview-window {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow:
        0 4px 24px rgba(0,0,0,0.4),
        0 0 80px rgba(240, 62, 62, 0.06);
    transform: rotateX(2deg);
    transition: transform 0.4s ease;
}
.preview-window:hover { transform: rotateX(0); }
.preview-titlebar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }
.preview-title {
    margin-left: 8px;
    font-size: 0.82rem;
    color: var(--text-tertiary);
    font-weight: 500;
}
.preview-content {
    display: flex;
    min-height: 320px;
}
.preview-sidebar {
    width: 180px;
    border-right: 1px solid var(--border);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.preview-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    cursor: default;
}
.preview-tab.active {
    background: rgba(240, 62, 62, 0.12);
    color: var(--red);
}
.preview-main {
    flex: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.preview-source {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.9rem;
}
.preview-source-icon { color: var(--text-secondary); }
.preview-badge {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--text-tertiary);
    font-family: "SF Mono", "Fira Code", monospace;
    background: rgba(255,255,255,0.04);
    padding: 3px 8px;
    border-radius: 6px;
}
.preview-settings {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.preview-setting {
    display: flex;
    justify-content: space-between;
    padding: 10px 14px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.8rem;
}
.preview-setting span:first-child { color: var(--text-tertiary); }
.preview-value { color: var(--text); font-weight: 500; }
.preview-record-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    border: none;
    border-radius: var(--radius);
    background: var(--red);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: default;
    margin-top: auto;
}
.record-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fff;
    animation: pulse-dot 1.5s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* --- Sections --- */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 56px;
}
.section-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 14px;
}
.section-header p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* --- Features --- */
.features {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 100px 24px;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.feature-card {
    padding: 32px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}
.feature-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 18px;
    color: var(--red);
}
.feature-icon svg { width: 100%; height: 100%; }
.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.feature-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* --- Comparison --- */
.comparison {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 80px 24px 100px;
}
.comparison-table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.comparison-table th,
.comparison-table td {
    padding: 14px 24px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}
.comparison-table th {
    background: var(--bg-card);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-secondary);
}
.comparison-table th.highlight {
    color: var(--red);
    font-size: 0.95rem;
}
.comparison-table td:first-child {
    text-align: left;
    font-weight: 500;
    color: var(--text-secondary);
}
.comparison-table td.highlight {
    background: rgba(240, 62, 62, 0.04);
}
.comparison-table tr:last-child td { border-bottom: none; }
.check { color: #28c840; font-weight: 700; font-size: 1.1rem; }
.cross { color: var(--text-tertiary); font-size: 1rem; }

/* --- Pricing --- */
.pricing {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 100px 24px;
}
.pricing-cards {
    display: flex;
    justify-content: center;
}
.pricing-card {
    max-width: 420px;
    width: 100%;
    padding: 40px 36px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--red), #ff6b6b);
}
.pricing-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 16px;
}
.pricing-price {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
    margin-bottom: 6px;
}
.price-amount {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
}
.price-decimal {
    font-size: 2rem;
    font-weight: 700;
}
.price-currency {
    font-size: 1.6rem;
    font-weight: 700;
    margin-top: 8px;
    color: var(--text-secondary);
}
.pricing-promo {
    margin-bottom: 8px;
}
.pricing-promo-badge {
    display: inline-block;
    background: linear-gradient(90deg, rgba(240, 62, 62, 0.15), rgba(240, 62, 62, 0.08));
    border: 1px solid rgba(240, 62, 62, 0.25);
    color: #ff6b6b;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 8px;
}
.pricing-period {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    margin-bottom: 32px;
}
.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 36px;
}
.pricing-features li {
    padding: 9px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding-left: 28px;
    position: relative;
}
.pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #28c840;
    font-weight: 700;
}
.pricing-features li:last-child { border-bottom: none; }

/* --- FAQ --- */
.faq {
    max-width: 700px;
    margin: 0 auto;
    padding: 80px 24px 100px;
}
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.2s;
}
.faq-item[open] { border-color: var(--border-hover); }
.faq-item summary {
    padding: 18px 22px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.faq-item summary::after {
    content: '+';
    font-size: 1.3rem;
    color: var(--text-tertiary);
    transition: transform 0.2s;
}
.faq-item[open] summary::after {
    transform: rotate(45deg);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p {
    padding: 0 22px 18px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* --- CTA --- */
.cta {
    text-align: center;
    padding: 100px 24px;
    background: linear-gradient(180deg, transparent 0%, rgba(240, 62, 62, 0.03) 100%);
}
.cta h2 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}
.cta p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 32px;
}
.cta-meta {
    display: block;
    margin-top: 16px;
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

/* --- Footer --- */
.footer {
    border-top: 1px solid var(--border);
    padding: 40px 24px;
}
.footer-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}
.footer-icon { width: 22px; height: 22px; }
.footer-links {
    display: flex;
    gap: 24px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}
.footer-links a:hover { color: var(--text); }
.footer-copy {
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

/* --- Legal Pages --- */
.legal {
    max-width: 740px;
    margin: 0 auto;
    padding: 140px 24px 100px;
}
.legal h1 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 8px;
}
.legal-updated {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    margin-bottom: 48px;
}
.legal h2 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 12px;
    color: var(--text);
}
.legal h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 8px;
    color: var(--text);
}
.legal p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}
.legal a {
    color: var(--red);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.legal a:hover {
    color: #ff6b6b;
}

/* --- Success Page --- */
.success-page {
    max-width: 600px;
    margin: 0 auto;
    padding: 160px 24px 80px;
    text-align: center;
}
.success-icon { margin-bottom: 24px; }
.success-page h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 12px;
}
.success-sub {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 36px;
}
.success-download { margin-bottom: 48px; }
.success-steps {
    text-align: left;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    margin-bottom: 32px;
}
.success-steps h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 16px;
}
.success-steps ol {
    list-style: none;
    counter-reset: steps;
    padding: 0;
}
.success-steps li {
    counter-increment: steps;
    padding: 10px 0 10px 36px;
    position: relative;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
}
.success-steps li:last-child { border-bottom: none; }
.success-steps li::before {
    content: counter(steps);
    position: absolute;
    left: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(240, 62, 62, 0.12);
    color: var(--red);
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 10px;
}
.success-steps li strong { color: var(--text); }
.success-help { color: var(--text-tertiary); font-size: 0.85rem; }
.success-help a { color: var(--red); }
.success-receipt { margin-top: 8px; }

/* --- Responsive --- */
@media (max-width: 768px) {
    .features-grid { grid-template-columns: 1fr; }
    .preview-content { flex-direction: column; }
    .preview-sidebar {
        width: 100%;
        flex-direction: row;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
    .preview-settings { grid-template-columns: 1fr; }
    .nav-links a:not(.btn) { display: none; }
    .promo-banner { font-size: 0.75rem; padding: 6px 12px; gap: 8px; }
    .nav-with-banner { top: 32px; }
    .footer-inner { flex-direction: column; text-align: center; }
    .comparison-table th,
    .comparison-table td { padding: 10px 12px; font-size: 0.8rem; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2rem; }
    .pricing-card { padding: 28px 20px; }
    .price-amount { font-size: 3rem; }
}
