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

:root {
    --bg-primary: #0a0a0a;
    --text-primary: #ffffff;
    --text-secondary: #a3a3a3;
    --accent: #87ff46;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    padding: 60px 20px;
    position: relative;
}

/* Close Button */
.close-button {
    position: fixed;
    top: 20px;
    right: 20px;
    color: var(--accent);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-button:hover {
    transform: scale(1.1) rotate(90deg);
    opacity: 0.8;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

/* Logo */
.logo-section {
    margin-bottom: 15px;
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

.logo {
    max-width: 120px;
    height: auto;
}

/* Headline */
.headline {
    font-size: clamp(34px, 5.6vw, 67px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 15px;
    letter-spacing: -0.02em;
    opacity: 0;
    animation: fadeIn 0.8s ease 0.2s forwards;
}

/* Copy */
.copy {
    max-width: 700px;
    margin: 0 auto 60px;
    opacity: 0;
    animation: fadeIn 0.8s ease 0.4s forwards;
}

.copy p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.copy-accent {
    font-size: clamp(1.25rem, 3vw, 2rem) !important;
    font-weight: 300;
    color: var(--accent) !important;
    letter-spacing: 0.02em;
}

/* Feature Cards */
.feature-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 60px;
    text-align: left;
    opacity: 0;
    animation: fadeIn 0.8s ease 0.5s forwards;
}

.feature-card {
    background-color: #1a1a1a;
    border: 1px solid #262626;
    border-radius: 8px;
    padding: 1.38rem;
}

.feature-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.feature-card-description {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Trust Line */
.trust-line {
    display: inline-block;
    background-color: var(--accent);
    color: #0a0a0a;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.6rem 1.5rem;
    border-radius: 100px;
    margin-bottom: 60px;
    letter-spacing: 0.01em;
}

/* Disclaimer */
.disclaimer {
    font-size: 0.75rem;
    color: #525252;
    text-align: center;
    margin-top: 2rem;
    line-height: 1.6;
}

/* Carousel */
.carousel-section {
    margin-bottom: 80px;
    padding: 0 48px;
    opacity: 0;
    animation: fadeIn 0.8s ease 0.6s forwards;
}

.carousel-track {
    position: relative;
    display: flex;
    justify-content: center;
}

/* Individual slide */
.carousel-slide {
    display: none;
    opacity: 0;
    align-items: center;
    justify-content: center;
    gap: 40px;
    transition: opacity 0.45s ease;
}

.carousel-slide.active {
    display: flex;
    opacity: 1;
}

/* Left: copy */
.slide-copy {
    flex: 0 0 300px;
    min-width: 0;
    text-align: left;
}

.slide-headline {
    font-size: clamp(1rem, 1.6vw, 1.4rem);
    font-weight: 300;
    color: var(--text-primary);
    line-height: 1.35;
    letter-spacing: -0.01em;
    margin-bottom: 16px;
}

.slide-body {
    font-size: 13px;
    line-height: 1.65;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.slide-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.slide-list li {
    font-size: 13px;
    color: var(--text-secondary);
    padding-left: 16px;
    position: relative;
    line-height: 1.55;
}

.slide-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--accent);
}

.slide-body strong {
    color: var(--text-primary);
    font-weight: 600;
}

.slide-disclaimer {
    font-size: 11px;
    color: #555;
    line-height: 1.6;
    margin-top: 16px;
    font-style: italic;
}

/* Right: phone */
.slide-phone {
    flex-shrink: 0;
    width: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-phone-img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 24px 48px rgba(0,0,0,0.5));
}

/* Dots */
.carousel-dots {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot:hover {
    background: rgba(255,255,255,0.4);
}

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

/* Mobile: stack phone top, copy below */
@media (max-width: 680px) {
    .carousel-section {
        padding: 0 20px;
    }

    .carousel-slide.active {
        flex-direction: column-reverse;
        gap: 28px;
    }

    .slide-copy {
        flex: 1;
    }

    .slide-phone {
        width: 220px;
    }

}

/* CTA Section */
.cta-section {
    max-width: 500px;
    margin: 0 auto;
    opacity: 0;
    animation: fadeIn 0.8s ease 0.8s forwards;
}

.form-headline {
    color: var(--accent);
    font-size: 1.5rem;
    font-weight: 400;
    text-align: center;
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
}

.email-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
    align-items: center;
}

.email-input {
    width: 100%;
    max-width: 400px;
    padding: 0.75rem 2rem;
    font-size: 16px;
    background: transparent;
    border: 2px solid #ffffff;
    border-radius: 50px;
    color: var(--text-primary);
    font-family: inherit;
    transition: all 0.3s ease;
}

.email-input::placeholder {
    color: rgba(255,255,255,0.6);
}

.email-input:focus {
    outline: none;
    border-color: var(--accent);
    background: transparent;
}

.cta-button {
    padding: 0.75rem 2rem;
    font-size: 16px;
    font-weight: 400;
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    white-space: nowrap;
    /* Also used on <a> (Arken Invest link-out), so reset anchor styling */
    display: inline-block;
    text-decoration: none;
}

.cta-button:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg-primary);
    transform: translateY(-2px);
}

.cta-button:active {
    transform: translateY(0);
}

.form-message {
    padding: 16px;
    border-radius: 8px;
    font-size: 14px;
    display: none;
}

.form-message.success {
    display: block;
    background: rgba(34,197,94,0.1);
    border: 1px solid rgba(34,197,94,0.3);
    color: #22c55e;
}

.form-message.error {
    display: block;
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.3);
    color: #ef4444;
}

/* Offer Text */
.offer-text {
    margin-top: 30px;
    text-align: center;
}

.offer-description {
    font-size: 14px;
    line-height: 1.6;
    color: var(--accent);
    max-width: 450px;
    margin: 0 auto;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* App Store CTA */
.cta-section {
    max-width: 500px;
    margin: 0 auto 80px;
    opacity: 0;
    animation: fadeIn 0.8s ease 0.8s forwards;
    text-align: center;
}

.cta-headline {
    color: var(--accent);
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 0.75rem;
    letter-spacing: 0.05em;
}

.cta-available {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.app-store-link {
    display: inline-block;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.app-store-link:hover {
    transform: translateY(-2px);
    opacity: 0.85;
}

.app-store-badge {
    height: 56px;
    width: auto;
}

/* FAQ Section */
.faq-section {
    max-width: 1080px;
    margin: 0 auto 80px;
    text-align: left;
}

.faq-section-title {
    font-size: clamp(1.25rem, 3vw, 2rem) !important;
    font-weight: 300 !important;
    color: var(--accent) !important;
    text-align: center;
    margin-bottom: 0.75rem;
    letter-spacing: 0.02em;
}

.faq-section-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
    line-height: 1.7;
}

.faq-group {
    margin-bottom: 56px;
}

.faq-group-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #262626;
}

/* Card grid */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.faq-card {
    position: relative;
    background: #111;
    border: 1px solid #1e1e1e;
    border-radius: 8px;
    padding: 22px 22px 48px;
    height: 200px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
    outline: none;
}

.faq-card:hover {
    border-color: #2e2e2e;
    background: #141414;
}

.faq-card:focus-visible {
    border-color: var(--accent);
}

.faq-card-num {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.12em;
    display: block;
    margin-bottom: 8px;
}

.faq-card-question {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.faq-card-preview {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.65;
}

.faq-card-fade {
    position: absolute;
    bottom: 36px;
    left: 0;
    right: 0;
    height: 72px;
    background: linear-gradient(to bottom, transparent, #111111);
    pointer-events: none;
}

.faq-card:hover .faq-card-fade {
    background: linear-gradient(to bottom, transparent, #141414);
}

.faq-card-cta {
    position: absolute;
    bottom: 18px;
    left: 22px;
    font-size: 11px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Panel overlay */
.faq-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.faq-overlay.is-open {
    opacity: 1;
    pointer-events: all;
}

/* Slide-in panel */
.faq-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(540px, 100vw);
    background: #0d0d0d;
    border-left: 1px solid #1e1e1e;
    z-index: 201;
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.faq-panel.is-open {
    transform: translateX(0);
}

.faq-panel-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 28px 28px 24px;
    border-bottom: 1px solid #1a1a1a;
    flex-shrink: 0;
}

.faq-panel-header-text {
    flex: 1;
}

.faq-panel-num {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.12em;
    display: block;
    margin-bottom: 6px;
}

.faq-panel-title {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.45;
    letter-spacing: -0.01em;
}

.faq-panel-close {
    flex-shrink: 0;
    background: none;
    border: none;
    cursor: pointer;
    color: #555;
    padding: 0;
    display: flex;
    align-items: center;
    transition: color 0.2s ease;
    margin-top: 2px;
}

.faq-panel-close:hover {
    color: var(--text-primary);
}

.faq-panel-close svg {
    width: 18px;
    height: 18px;
}

.faq-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 28px;
    -webkit-overflow-scrolling: touch;
}

/* Longform content inside panel */
.faq-short {
    font-size: 15px;
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: 28px;
    padding: 16px 20px;
    background: #111111;
    border-left: 2px solid var(--accent);
    border-radius: 0 6px 6px 0;
}

.faq-longform {
    font-size: 14px;
    line-height: 1.75;
    color: #8a8a8a;
}

.faq-longform h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 20px 0 8px;
    letter-spacing: -0.01em;
}

.faq-longform p {
    margin-bottom: 14px;
    color: #8a8a8a;
}

.faq-longform ul,
.faq-longform ol {
    margin: 8px 0 14px 20px;
}

.faq-longform li {
    margin-bottom: 6px;
    color: #8a8a8a;
}

.faq-longform table {
    width: 100%;
    border-collapse: collapse;
    margin: 14px 0;
    font-size: 13px;
}

.faq-longform th {
    text-align: left;
    padding: 8px 12px;
    background: #1a1a1a;
    color: var(--text-primary);
    font-weight: 600;
    border-bottom: 1px solid #262626;
}

.faq-longform td {
    padding: 8px 12px;
    border-bottom: 1px solid #1a1a1a;
    color: #8a8a8a;
}

.faq-arken-note {
    margin-top: 20px;
    padding: 14px 16px;
    background: #111;
    border: 1px solid #262626;
    border-radius: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    font-style: italic;
}

/* Tablet: 2 columns */
@media (max-width: 900px) {
    .faq-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile: 1 column + bottom sheet panel */
@media (max-width: 580px) {
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .faq-card {
        height: auto;
        min-height: 140px;
    }

    .faq-panel {
        width: 100vw;
        top: auto;
        bottom: 0;
        height: 92vh;
        border-left: none;
        border-top: 1px solid #1e1e1e;
        border-radius: 12px 12px 0 0;
        transform: translateY(100%);
    }

    .faq-panel.is-open {
        transform: translateY(0);
    }
}

/* Mobile */
@media (max-width: 640px) {
    body {
        padding: 40px 16px;
    }

    .logo {
        max-width: 100px;
    }

    .headline {
        margin-bottom: 30px;
    }

    .copy {
        margin-bottom: 60px;
    }

    .copy p {
        font-size: 15px;
    }

    .phone-frame {
        max-width: 280px;
    }

    .feature-cards {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .cta-button {
        width: 100%;
    }
}
