:root {
    --bg-color: #050505;
    --terminal-bg: #0a0a0a;
    --text-main: #e0e0e0;
    --text-muted: #888888;
    --accent-red: #cc0000;
    --accent-red-hover: #ff1a1a;
    --accent-red-glow: rgba(204, 0, 0, 0.4);
    --font-terminal: 'Share Tech Mono', monospace;
    --font-body: 'Inter', sans-serif;
    --border-color: #333333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, .terminal-text {
    font-family: var(--font-terminal);
}

.text-red { color: var(--accent-red); }
.text-muted { color: var(--text-muted); }

/* Layouts */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

/* Terminal UI */
.terminal-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.terminal-box {
    background-color: var(--terminal-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 2rem;
    width: 100%;
    max-width: 700px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8), inset 0 0 10px rgba(204, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

/* CRT Scanline Effect */
.terminal-box::before {
    content: " ";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    z-index: 2;
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
}

.terminal-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.terminal-header .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    color: var(--accent-red);
    text-shadow: 0 0 5px var(--accent-red-glow);
}

.terminal-header .channel {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.typewriter-text {
    overflow: hidden;
    white-space: pre-wrap;
    margin-bottom: 1.5rem;
    font-family: var(--font-terminal);
    color: var(--text-main);
}

.cursor {
    display: inline-block;
    width: 8px;
    height: 1.2em;
    background-color: var(--accent-red);
    animation: blink 1s step-end infinite;
    vertical-align: bottom;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.question-title {
    font-size: 1.5rem;
    color: var(--accent-red);
    margin: 2rem 0 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.question-text {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Buttons */
.btn {
    display: block;
    width: 100%;
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
    padding: 1rem;
    margin-bottom: 1rem;
    text-align: left;
    font-family: var(--font-terminal);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    border-color: var(--accent-red);
    color: var(--accent-red);
    background-color: rgba(204, 0, 0, 0.05);
    box-shadow: 0 0 15px var(--accent-red-glow);
    padding-left: 1.5rem;
}

.btn-primary {
    background-color: rgba(204, 0, 0, 0.1);
    border-color: var(--accent-red);
    color: var(--accent-red);
    text-align: center;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 2rem;
}

.btn-primary:hover {
    background-color: var(--accent-red);
    color: #fff;
}

/* Sales Page */
.sales-page {
    display: none; /* Shown by JS later */
}

.hero-section {
    text-align: center;
    padding: 7rem 4rem;
    background: radial-gradient(circle at center, rgba(204, 0, 0, 0.18) 0%, var(--bg-color) 65%);
}

.tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border: 1px solid var(--accent-red);
    color: var(--accent-red);
    font-family: var(--font-terminal);
    font-size: 0.8rem;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.headline {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-transform: uppercase;
    background: linear-gradient(to right, #fff, #888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subheadline {
    font-size: 1.5rem;
    color: var(--accent-red);
    margin-bottom: 2rem;
    font-family: var(--font-terminal);
}

.hero-text {
    max-width: 600px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.content-section {
    padding: 5rem 4rem;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

@media (max-width: 768px) {
    .content-section {
        padding: 3rem 1.5rem;
    }
}

.content-section h2 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 1.5rem;
}

.highlight-box {
    border-left: 4px solid var(--accent-red);
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    font-style: italic;
}

.benefits-list {
    list-style: none;
    margin-bottom: 3rem;
}

.benefits-list li {
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
}

.benefits-list li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--accent-red);
    font-family: var(--font-terminal);
    font-weight: bold;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.book-card {
    background: #111;
    border: 1px solid var(--border-color);
    padding: 1rem;
    text-align: center;
    transition: transform 0.3s;
}

.book-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-red);
}

.book-cover {
    width: 100%;
    aspect-ratio: 2/3;
    background: #222;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #333;
    font-family: var(--font-terminal);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.book-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
}

.book-author {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Helpers */
.hidden { display: none !important; }

/* ── iPhone Carousel Mockup ── */
.iphone-carousel-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4rem 2rem;
    gap: 2rem;
    background: radial-gradient(ellipse at center, rgba(204,0,0,0.08) 0%, transparent 70%);
    margin: 2rem 0;
}

.iphone-mockup {
    position: relative;
    width: 300px;
    height: 615px;
    background: #1c1c1e;
    border-radius: 50px;
    border: 10px solid #2c2c2e;
    box-shadow:
        0 0 0 2px #555,
        0 40px 80px rgba(0,0,0,0.85),
        0 0 60px rgba(204,0,0,0.2),
        inset 0 0 20px rgba(0,0,0,0.5);
    overflow: hidden;
    flex-shrink: 0;
}

/* Dynamic Island / Notch */
.iphone-notch {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 22px;
    background: #0a0a0a;
    border-radius: 20px;
    z-index: 10;
}

/* Screen area */
.iphone-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% - 20px);
    overflow: hidden;
    border-radius: 34px;
}

.iphone-slides {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.iphone-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.iphone-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Home bar */
.iphone-home-bar {
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: rgba(255,255,255,0.3);
    border-radius: 4px;
}

/* Dots */
.iphone-dots {
    display: flex;
    gap: 8px;
}

.iphone-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #444;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.iphone-dot.active {
    background: var(--accent-red);
    transform: scale(1.3);
}

/* Testimonial Carousel */
.testimonials-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1.5rem;
    padding-bottom: 1rem;
    margin-top: 2rem;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-red) var(--terminal-bg);
}
.testimonials-grid::-webkit-scrollbar {
    height: 6px;
}
.testimonials-grid::-webkit-scrollbar-thumb {
    background-color: var(--accent-red);
    border-radius: 10px;
}
.testimonials-grid::-webkit-scrollbar-track {
    background: var(--terminal-bg);
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 8px;
    position: relative;
    flex: 0 0 350px;
    scroll-snap-align: center;
}
.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 4rem;
    color: var(--accent-red-glow);
    font-family: serif;
}
.testimonial-quote {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.author-avatar {
    width: 40px;
    height: 40px;
    background: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-terminal);
    font-weight: bold;
}
.author-info h4 { margin: 0; color: #fff; }
.author-info span { font-size: 0.8rem; color: var(--accent-red); }

/* Map Tags */
.tags-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    margin-top: 2rem;
}
.map-tag {
    background: rgba(204, 0, 0, 0.05);
    border: 1px solid var(--accent-red-glow);
    color: var(--text-main);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all 0.3s;
}
.map-tag:hover {
    background: var(--accent-red);
    color: #fff;
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}
@media (min-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr 1fr;
    }
}
.pricing-card {
    background: #0a0a0a;
    border: 1px solid var(--border-color);
    padding: 2.5rem 2rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    position: relative;
}
.pricing-card h3 {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 0.5rem;
}
.pricing-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}
.price {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 2rem;
    font-family: var(--font-terminal);
}
.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
}
.pricing-features li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.5rem;
}
.pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-red);
}
.pricing-card.premium {
    border-color: var(--accent-red);
    box-shadow: 0 0 30px rgba(204, 0, 0, 0.1);
    transform: scale(1.02);
}
.recommended-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-red);
    color: #fff;
    padding: 0.2rem 1rem;
    font-size: 0.7rem;
    font-weight: bold;
    border-radius: 20px;
    letter-spacing: 1px;
}

/* FAQ Section */
.faq-section {
    max-width: 800px !important;
}
.faq-list {
    margin-top: 2rem;
}
.faq-item {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1rem;
}
.faq-question {
    width: 100%;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.1rem;
    text-align: left;
    padding: 1rem 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: inherit;
    font-weight: bold;
    transition: color 0.3s;
}
.faq-question:hover {
    color: var(--accent-red);
}
.faq-icon {
    font-size: 1.5rem;
    color: var(--accent-red);
    transition: transform 0.3s;
}
.faq-item.active .faq-icon {
    transform: rotate(45deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease;
}
.faq-item.active .faq-answer {
    max-height: 600px; /* arbitrary large enough value */
    padding-bottom: 1.5rem;
}
.faq-answer p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Trust Badges */
.trust-section {
    padding: 4rem 2rem !important;
    background: #050505;
}
.trust-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}
@media (min-width: 768px) {
    .trust-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
.trust-badge {
    background: #111;
    border: 1px solid #222;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.trust-badge:hover {
    transform: translateY(-5px);
    border-color: var(--accent-red);
    box-shadow: 0 10px 30px rgba(204,0,0,0.1);
}
.trust-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px rgba(204,0,0,0.4));
}
.trust-badge h4 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    font-family: var(--font-terminal);
}
.trust-badge p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}
