/* ===================================
   SonicSplit Website Styles
   Modern, minimal, macOS-inspired design
   =================================== */

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

:root {
    /* Colors */
    --primary: #0B5CFF;
    --primary-hover: #0047CC;
    --accent: #FF3B30;
    --success: #34C759;
    --warning: #FF9500;

    /* Grays */
    --bg-dark: #0A0A0A;
    --bg-darker: #050505;
    --card-bg: #1C1C1E;
    --card-border: rgba(255, 255, 255, 0.1);
    --text-primary: #FFFFFF;
    --text-secondary: #98989D;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #0B5CFF 0%, #00D4FF 100%);
    --gradient-accent: linear-gradient(135deg, #FF3B30 0%, #FF9500 100%);

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

    /* Typography */
    --font-system: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: "SF Mono", "Monaco", "Courier New", monospace;
}

body {
    font-family: var(--font-system);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* === Typography === */
h1 {
    font-size: 64px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
}

p {
    font-size: 18px;
    color: var(--text-secondary);
}

code {
    font-family: var(--font-mono);
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 14px;
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(11, 92, 255, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-large {
    padding: 20px 48px;
    font-size: 18px;
}

.btn svg {
    width: 20px;
    height: 20px;
}

.price {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    margin-left: 8px;
}

/* === Hero Section === */
.hero {
    padding: 120px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background:
        radial-gradient(circle at 20% 50%, rgba(11, 92, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 59, 48, 0.1) 0%, transparent 50%);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    border: 1px solid var(--card-border);
}

.hero-title {
    margin-bottom: 24px;
}

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

.hero-subtitle {
    font-size: 24px;
    margin-bottom: 40px;
    color: var(--text-secondary);
}

.highlight {
    color: var(--text-primary);
    font-weight: 600;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
}

.hero-features {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.feature-pill {
    background: rgba(52, 199, 89, 0.1);
    color: var(--success);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
}

/* === App Window Mockup === */
.app-window {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--card-border);
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.5);
}

.window-titlebar {
    background: rgba(255, 255, 255, 0.03);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--card-border);
}

.window-controls {
    display: flex;
    gap: 8px;
}

.window-controls span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #666;
}

.window-controls span:nth-child(1) { background: #FF5F57; }
.window-controls span:nth-child(2) { background: #FFBD2E; }
.window-controls span:nth-child(3) { background: #28CA42; }

.window-title {
    font-size: 14px;
    font-weight: 600;
    flex: 1;
    text-align: center;
}

.window-content {
    padding: 24px;
}

.focus-mode-toggle {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 149, 0, 0.1);
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.toggle-icon {
    font-size: 24px;
}

.toggle-text {
    flex: 1;
}

.toggle-label {
    font-weight: 600;
    font-size: 14px;
}

.toggle-desc {
    font-size: 12px;
    color: var(--text-secondary);
}

.toggle-switch {
    width: 44px;
    height: 26px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 13px;
    position: relative;
}

.toggle-switch.active {
    background: var(--warning);
}

.toggle-switch.active::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    top: 2px;
    right: 2px;
}

.app-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.app-row {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    padding: 12px;
    border-radius: 10px;
}

.app-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

.app-info {
    flex: 1;
}

.app-name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
}

.volume-slider {
    display: flex;
    align-items: center;
    gap: 12px;
}

.slider-track {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    position: relative;
}

.slider-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.volume-label {
    font-size: 12px;
    color: var(--text-secondary);
    min-width: 40px;
    text-align: right;
    font-weight: 600;
    font-family: var(--font-mono);
}

.mute-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.mute-btn:hover {
    opacity: 1;
}

/* === Sections === */
section {
    padding: var(--section-padding) 0;
}

.section-badge {
    display: inline-block;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

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

/* === Problem Section === */
.problem {
    background: var(--bg-darker);
}

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

.problem-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--card-border);
    text-align: center;
}

.problem-emoji {
    font-size: 64px;
    margin-bottom: 24px;
}

.problem-card h3 {
    margin-bottom: 16px;
}

/* === Features Section === */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

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

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

.highlight-card {
    background: linear-gradient(135deg, rgba(255, 149, 0, 0.1), rgba(255, 59, 48, 0.1));
    border-color: rgba(255, 149, 0, 0.3);
    position: relative;
}

.feature-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--gradient-accent);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 24px;
    display: block;
}

.feature-card h3 {
    margin-bottom: 16px;
}

.supported-apps {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.supported-apps span {
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
}

/* === Comparison Section === */
.comparison {
    background: var(--bg-darker);
}

.comparison-table {
    max-width: 900px;
    margin: 0 auto;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
}

thead {
    background: rgba(255, 255, 255, 0.05);
}

th, td {
    padding: 20px;
    text-align: left;
    border-bottom: 1px solid var(--card-border);
}

th {
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

td {
    font-size: 16px;
}

tr:last-child td {
    border-bottom: none;
}

td.highlight {
    background: rgba(11, 92, 255, 0.1);
    font-weight: 600;
}

/* === Pricing Section === */
.pricing-card {
    max-width: 500px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 48px;
    border-radius: 24px;
    border: 2px solid var(--card-border);
    text-align: center;
}

.pricing-header h3 {
    font-size: 32px;
    margin-bottom: 24px;
}

.price-tag {
    margin-bottom: 40px;
}

.price-amount {
    font-size: 64px;
    font-weight: 700;
    display: block;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-period {
    color: var(--text-secondary);
    font-size: 16px;
}

.pricing-features {
    list-style: none;
    margin-bottom: 40px;
    text-align: left;
}

.pricing-features li {
    padding: 12px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--card-border);
}

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

.pricing-note {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--card-border);
    color: var(--text-secondary);
    font-size: 14px;
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 64px;
}

.trust-badges .badge {
    color: var(--text-secondary);
    font-size: 14px;
}

/* === FAQ Section === */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.faq-item {
    background: var(--card-bg);
    padding: 32px;
    border-radius: 16px;
    border: 1px solid var(--card-border);
}

.faq-item h3 {
    margin-bottom: 16px;
    color: var(--primary);
}

.faq-item ul, .faq-item ol {
    margin-left: 24px;
    margin-top: 12px;
}

.faq-item li {
    margin-bottom: 8px;
}

/* === Final CTA === */
.final-cta {
    background: var(--bg-darker);
    text-align: center;
}

.final-cta h2 {
    margin-bottom: 24px;
}

.final-cta p {
    font-size: 20px;
    margin-bottom: 40px;
}

.guarantee {
    margin-top: 24px;
    color: var(--text-secondary);
    font-size: 14px;
}

/* === Footer === */
.footer {
    background: var(--bg-darker);
    padding: 80px 0 40px;
    border-top: 1px solid var(--card-border);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 64px;
    margin-bottom: 64px;
}

.footer-brand h3 {
    margin-bottom: 12px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.footer-column h4 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
    color: var(--text-secondary);
}

.footer-column a {
    display: block;
    color: var(--text-primary);
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.2s;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid var(--card-border);
    color: var(--text-secondary);
    font-size: 14px;
}

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

.social-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

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

/* === Legal Pages === */
.legal-page {
    padding: 120px 0;
    max-width: 800px;
    margin: 0 auto;
}

.legal-page h1 {
    font-size: 48px;
    margin-bottom: 16px;
}

.last-updated {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 48px;
}

.legal-page section {
    padding: 32px 0;
}

.legal-page h2 {
    font-size: 32px;
    margin-bottom: 24px;
    text-align: left;
}

.legal-page h3 {
    font-size: 20px;
    margin: 24px 0 16px;
}

.legal-page ul, .legal-page ol {
    margin-left: 24px;
    margin-top: 12px;
}

.legal-page li {
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.legal-page a {
    color: var(--primary);
    text-decoration: none;
}

.legal-page a:hover {
    text-decoration: underline;
}

/* === Responsive === */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }

    h1 {
        font-size: 48px;
    }

    h2 {
        font-size: 36px;
    }

    .hero .container {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .feature-grid,
    .problem-grid {
        grid-template-columns: 1fr;
    }

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

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

@media (max-width: 768px) {
    .hero-cta {
        flex-direction: column;
    }

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

    .comparison-table {
        overflow-x: scroll;
    }

    table {
        min-width: 600px;
    }
}
