/* RingPhone Clap – Product site styles */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark: #0c1222;
    --bg-card: #141c2e;
    --bg-card-hover: #1a2540;
    --accent: #10b981;
    --accent-soft: rgba(16, 185, 129, 0.15);
    --cyan: #22d3ee;
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.08);
    --gradient-hero: linear-gradient(145deg, #0f172a 0%, #1e293b 40%, #0c1222 100%);
    --gradient-accent: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    --font: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius: 16px;
    --radius-lg: 24px;
    --shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    --transition: 0.25s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    line-height: 1.6;
    color: var(--text);
    background: var(--bg-dark);
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(12, 18, 34, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    font-size: 1.25rem;
}

.logo-img {
    height: 40px;
    width: auto;
    display: block;
}

.logo-text {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color var(--transition);
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    position: relative;
    border-radius: 8px;
}

.nav-toggle::before,
.nav-toggle::after {
    content: '';
    position: absolute;
    left: 10px;
    right: 10px;
    height: 2px;
    background: var(--text);
    border-radius: 1px;
    transition: transform var(--transition);
}

.nav-toggle::before {
    top: 14px;
}

.nav-toggle::after {
    bottom: 14px;
}

.nav-toggle[aria-expanded="true"]::before {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"]::after {
    transform: translateY(-6px) rotate(-45deg);
}

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 64px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 60%;
    height: 80%;
    background: radial-gradient(ellipse, var(--accent-soft) 0%, transparent 70%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.hero-content {
    max-width: 520px;
}

.hero-title {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.hero-tagline {
    font-size: 1.25rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 16px;
}

.hero-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 28px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 280px;
    position: relative;
}

.hero-img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transform: scale(0.85);
    transform-origin: center;
}

.hero-img[style*="display: none"] + .hero-placeholder,
.hero-visual .hero-placeholder:only-child {
    display: flex;
}

.hero-placeholder {
    display: none;
    width: 200px;
    height: 200px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

.hero-placeholder-icon {
    font-size: 4rem;
    opacity: 0.6;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: transform var(--transition), box-shadow var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--gradient-accent);
    color: #0c1222;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(16, 185, 129, 0.35);
}

.btn-outline {
    color: var(--text);
    border-color: var(--border);
    background: transparent;
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1rem;
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.section-lead {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

/* Features grid */
.section-features {
    background: var(--bg-card);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.feature-card {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    font-size: 2.25rem;
    margin-bottom: 16px;
    display: block;
}

.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text);
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.65;
}

.feature-card p strong {
    color: var(--text);
}

/* Screenshots */
.section-screenshots {
    background: var(--bg-dark);
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-top: 32px;
}

.screenshot-item {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-card);
    transition: transform var(--transition), box-shadow var(--transition);
    min-height: 200px;
}

.screenshot-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

.screenshot-item img {
    width: 100%;
    height: auto;
    display: block;
    vertical-align: top;
}

.screenshot-item.no-img {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.screenshot-item.no-img img {
    display: none;
}

.screenshot-item.no-img::after {
    content: 'Screenshot';
}

/* Controls list */
.section-controls {
    background: var(--bg-dark);
}

.controls-list {
    list-style: none;
    max-width: 480px;
    margin: 0 auto;
}

.controls-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 10px;
    font-weight: 500;
    transition: border-color var(--transition), background var(--transition);
}

.controls-list li:hover {
    background: var(--bg-card-hover);
    border-color: rgba(16, 185, 129, 0.25);
}

.control-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}

/* CTA */
.section-cta {
    background: linear-gradient(145deg, #1a2540 0%, #0f172a 100%);
    border-top: 1px solid var(--border);
}

.cta-inner {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    margin-bottom: 12px;
}

.cta-text {
    color: var(--text-muted);
    margin-bottom: 12px;
    line-height: 1.7;
}

.cta-email {
    margin-bottom: 24px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.cta-email a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.cta-email a:hover {
    text-decoration: underline;
}

.cta-inner .btn-large {
    display: inline-block;
}

/* Footer */
.footer {
    padding: 24px 0;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-copy {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-dark);
        flex-direction: column;
        padding: 20px;
        gap: 8px;
        border-bottom: 1px solid var(--border);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
    }

    .nav-links.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-links a {
        display: block;
        padding: 12px 0;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        max-width: none;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-img {
        max-width: 250px;
    }

    .hero-visual {
        min-height: 200px;
    }

    .hero-placeholder {
        width: 160px;
        height: 160px;
    }

    .hero-placeholder-icon {
        font-size: 3rem;
    }

    .screenshots-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .section {
        padding: 56px 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .screenshots-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

::selection {
    background: var(--accent);
    color: var(--bg-dark);
}
