/* Base Styles — tokens loaded from design/ableten-design-tokens.css */

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

body {
    font-family: var(--font-family);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--ableten-page-bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header — Bridge-style: sparse top level, dropdowns, one CTA */
header {
    background-color: white;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 64px;
    padding: 0 28px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    text-decoration: none;
    color: var(--text-color);
    flex-shrink: 0;
}

.logo img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    padding: 4px;
}

.nav-toggle {
    display: none;
    margin-left: auto;
    background: none;
    border: 1px solid var(--ableten-border-neutral);
    border-radius: var(--ableten-radius-md);
    font: inherit;
    font-size: 0.85rem;
    padding: 6px 10px;
    cursor: pointer;
    color: var(--text-color);
}

.site-nav {
    display: flex;
    align-items: stretch;
    gap: 2px;
    flex: 1;
    justify-content: flex-start;
    font-size: 0.9rem;
    margin-left: 20px;
    align-self: stretch;
}

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
    align-self: stretch;
}

.nav-trigger {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    font: inherit;
    color: var(--ableten-ink-muted);
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 6px;
    white-space: nowrap;
    height: 100%;
}

.nav-trigger:hover,
.nav-item.is-open .nav-trigger,
.nav-trigger[aria-current="true"] {
    color: var(--text-color);
}

.nav-chevron {
    display: block;
    opacity: 0.55;
    pointer-events: none;
}

.nav-panel {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 280px;
    padding: 10px 8px 8px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    box-shadow: 0 16px 48px rgba(17, 17, 17, 0.1);
    z-index: 20;
}

.nav-panel::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -12px;
    height: 12px;
}

.nav-panel--end {
    left: auto;
    right: 0;
}

.nav-item.is-open .nav-panel,
.nav-item:focus-within .nav-panel {
    display: block;
}

@media (hover: hover) and (pointer: fine) {
    .nav-item:hover .nav-panel {
        display: block;
    }
}

.nav-panel-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-color);
}

a.nav-panel-item:hover {
    background: var(--ableten-surface-muted);
}

.nav-panel-title {
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-panel-desc {
    font-size: 0.75rem;
    line-height: 1.4;
    color: var(--ableten-ink-muted);
}

.nav-panel-item.is-soon {
    opacity: 0.5;
    cursor: default;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    align-self: stretch;
}

.header-login-link,
.header-register-link {
    text-decoration: none;
    font-size: 0.9rem;
}

.header-login-link {
    color: var(--ableten-ink-muted);
    padding: 8px 12px;
}

.header-login-link:hover {
    color: var(--text-color);
}

.header-register-link {
    margin-left: 6px;
}

.header-register-link:hover {
    filter: brightness(0.98);
}

/* Hero Section */
.hero {
    background-color: var(--ableten-page-bg);
    padding: 60px 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 12px;
    font-weight: 400;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.45;
    max-width: 36em;
    margin: 0 auto 16px;
    color: inherit;
    opacity: 0.92;
}

.hero-seo {
    font-size: 1rem;
    line-height: 1.5;
    max-width: 42em;
    margin: 0 auto 28px;
    color: inherit;
    opacity: 0.88;
}

/* Visible to crawlers & screen readers, not on-screen layout */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.hero-actions {
    display: inline-flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 8px;
}

.hero-actions .cta-button {
    margin-top: 0;
    text-align: center;
}

.hero-image {
    position: relative;
    width: 100%;
    margin: 40px auto;
    max-width: 960px;
    padding: 0 20px;
}

.hero-video-wrap {
    position: relative;
    width: 100%;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    z-index: 2;
    background: #000;
}

.hero-video {
    display: block;
    max-width: 100%;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
}

.hero-image .download-funnel {
    position: absolute;
    left: -100px;
    top: 1%;
    transform: translateY(-50%);
    width: 160px;
    z-index: 1;
}

.hero-image .squiggle {
    position: absolute;
    right: -60px;
    top: 74%;
    transform: translateY(-50%);
    width: 140px;
    z-index: 1;
}

.video-transcript {
    max-width: 720px;
    margin: 24px auto 0;
    text-align: left;
    font-size: 0.95rem;
}

.watch-demo-link {
    margin-top: 16px;
    font-size: 0.95rem;
}

.watch-demo-link a {
    color: inherit;
    text-decoration: underline;
}

.video-transcript summary {
    cursor: pointer;
    text-decoration: underline;
    list-style: none;
    text-align: center;
}

.video-transcript summary::-webkit-details-marker {
    display: none;
}

.video-transcript-body {
    margin-top: 12px;
    line-height: 1.6;
}

.video-transcript-body p + p {
    margin-top: 12px;
}

.video-transcript a,
.feature a,
.faq-item a {
    color: inherit;
}

/* Watch page (video indexing) */
.watch-page {
    background-color: var(--ableten-page-bg);
}

.watch-main {
    padding: 48px 20px 64px;
    max-width: 960px;
}

.watch-main h1 {
    font-size: 2rem;
    font-weight: 500;
    text-align: center;
    margin-bottom: 12px;
    line-height: 1.25;
}

.watch-intro {
    text-align: center;
    max-width: 40em;
    margin: 0 auto 28px;
    font-size: 1.05rem;
    line-height: 1.5;
}

.watch-player-wrap {
    width: 100%;
    margin: 0 auto 28px;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    background: #000;
}

.watch-player {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.watch-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
}

.watch-transcript {
    background: white;
    border-radius: 8px;
    padding: 24px 28px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.watch-transcript h2 {
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 16px;
}

.watch-transcript-body {
    font-size: 0.95rem;
    line-height: 1.65;
}

.watch-transcript-body p + p {
    margin-top: 14px;
}

@media (max-width: 768px) {
    .watch-main {
        padding-top: 32px;
    }

    .watch-main h1 {
        font-size: 1.5rem;
    }

    .watch-transcript {
        padding: 20px;
    }
}

/* Value prop / use cases */
.value-prop {
    padding: 64px 0;
    background-color: var(--ableten-surface);
    text-align: center;
}

.value-prop .container {
    max-width: 720px;
}

.value-prop h2 {
    font-size: 1.35rem;
    font-weight: 500;
    margin-bottom: 20px;
    line-height: 1.35;
}

.value-prop-lead {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 32px;
    opacity: 0.92;
}

.value-prop-use-cases {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 12px;
    padding: 0;
}

.value-prop-use-cases li {
    font-size: 0.9rem;
    padding: 8px 14px;
    border: 1px solid var(--ableten-border-mint);
    border-radius: 999px;
    background-color: var(--ableten-mint);
}

.value-prop-use-cases a {
    color: inherit;
}

.value-prop-use-cases a:hover {
    text-decoration: underline;
}

/* Features Section */
.features {
    padding: 80px 0;
    text-align: center;
    background-color: var(--ableten-page-bg);
}

.features .container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}

.feature {
    padding: 20px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature-icon {
    width: 80px;
    margin-bottom: 20px;
}

.feature-screenshot-wrap {
    width: 100%;
    max-width: 400px;
    margin-top: 20px;
}

.feature-screenshot {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 800 / 500;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.feature h2 {
    font-size: 1.125rem;
    margin-bottom: 16px;
    font-weight: 500;
    line-height: 1.35;
}

.feature p {
    font-size: 0.95rem;
    line-height: 1.55;
}

/* FAQ Section */
.faq {
    padding: 80px 0;
    background-color: white;
    text-align: center;
}

.faq .container {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 20px;
}

.faq h2 {
    margin-bottom: 40px;
    font-weight: 400;
}

.faq-list {
    text-align: left;
}

.faq-item + .faq-item {
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.faq-item h3 {
    font-size: 1.05rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.faq-item p {
    line-height: 1.55;
    font-size: 0.95rem;
}

/* Testimonials Section */
.testimonials {
    background-color: var(--ableten-mint);
    padding: 80px 0;
    text-align: center;
}

.testimonials-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.testimonial {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 50px 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.testimonial-content {
    display: flex;
    align-items: center;
    gap: 40px;
    width: 100%;
    justify-content: center;
}

.quote-box {
    flex: 1;
    text-align: left;
    background: white;
    padding: 30px;
    border: 1px solid var(--ableten-border);
    border-radius: var(--ableten-radius-lg);
    position: relative;
    max-width: 500px;
    box-shadow: 4px 4px 0 rgba(58, 53, 102, 0.1);
}

.quote-box::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 4px;
    left: 4px;
    border: 1px solid var(--ableten-border-neutral);
    border-radius: var(--ableten-radius-lg);
    z-index: -1;
}

.quote {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.5;
}

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

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.author-info {
    text-align: left;
}

.author-info .name {
    font-weight: 500;
}

.author-info .title {
    font-size: 0.9rem;
    color: #666;
}

.testimonial-image {
    flex: 1;
    max-width: 500px;
}

.testimonial-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
}

/* CTA Section */
.cta {
    padding: 100px 20px;
    text-align: center;
    position: relative;
    background-color: var(--ableten-page-bg);
    overflow: hidden;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.cta h2 {
    font-family: var(--font-family);
    font-size: 2.5rem;
    margin-bottom: 16px;
    font-weight: 400;
}

.cta p {
    font-family: var(--font-family);
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.scribble {
    position: absolute;
    z-index: 1;
}

.scribble.left {
    left: 15%;
    top: 20%;
    width: 80px;
}

.scribble.right {
    right: 15%;
    top: 20%;
    width: 80px;
}

.center-blob {
    position: absolute;
    left: 50%;
    bottom: -50px;
    transform: translateX(-50%);
    width: 300px;
    z-index: 1;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 2;
}

.underline-link {
    position: re;
    color: var(--text-color);
    text-decoration: underline;
    font-size: 1.1rem;
    font-family: var(--font-family);
}

/* Buttons — layout; tactile look from .ableten-btn in design/ableten-components.css */
.cta-button {
    display: inline-flex;
    margin-top: 20px;
    text-decoration: none;
    text-align: center;
}

.secondary-button {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: underline;
    color: var(--text-color);
}

.primary-button {
    display: inline-flex;
    text-decoration: none;
}

/* Footer */
footer {
    background: #000;
    color: white;
    padding: 50px 0 80px 0;
}

footer a {
    color: white;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-col h2 {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.55;
    margin-bottom: 12px;
}

.footer-col a,
.footer-col span {
    display: block;
    padding: 4px 0;
    font-size: 0.9rem;
}

.footer-soon {
    opacity: 0.4;
}

/* IA hub pages */
.ia-hub {
    padding: 64px 0 80px;
}

.ia-hub .container {
    max-width: 960px;
}

.ia-hub-kicker {
    display: inline-block;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 12px;
    opacity: 0.85;
}

.ia-hub h1 {
    font-size: 2rem;
    font-weight: 400;
    line-height: 1.25;
    margin-bottom: 12px;
}

.ia-hub-lead {
    font-size: 1.05rem;
    line-height: 1.55;
    max-width: 40em;
    margin-bottom: 40px;
    opacity: 0.9;
}

.ia-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.ia-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: white;
    border: 1px solid var(--ableten-border, #1a1a1a);
    border-radius: 6px;
    padding: 24px;
    text-decoration: none;
    color: inherit;
    text-align: left;
}

a.ia-card:hover {
    filter: brightness(0.98);
}

.ia-card h2 {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.ia-card p {
    font-size: 0.95rem;
    line-height: 1.5;
    flex: 1;
}

.ia-card-meta {
    margin-top: 16px;
    font-size: 0.8rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    opacity: 0.7;
}

.ia-card--soon {
    background: transparent;
    opacity: 0.75;
}

.feature[id] {
    scroll-margin-top: 88px;
}

/* Responsive Design */
@media (max-width: 900px) {
    .footer-grid,
    .ia-card-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 560px) {
    .footer-grid,
    .ia-card-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    header {
        flex-wrap: wrap;
        padding: 10px 12px;
        row-gap: 0;
    }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
    }

    .site-nav,
    .header-actions {
        display: none;
        flex-basis: 100%;
        flex-direction: column;
        align-items: stretch;
        margin: 0;
        padding: 8px 0 4px;
    }

    header.nav-open .site-nav,
    header.nav-open .header-actions {
        display: flex;
    }

    .nav-item {
        width: 100%;
        align-self: stretch;
        display: block;
    }

    .nav-trigger {
        width: 100%;
        height: auto;
        justify-content: space-between;
        padding: 10px 8px;
    }

    .nav-panel {
        position: static;
        display: none;
        min-width: 0;
        box-shadow: none;
        border: none;
        padding: 0 0 8px 8px;
    }

    .nav-panel::before {
        display: none;
    }

    .nav-item.is-open .nav-panel,
    .nav-item:focus-within .nav-panel {
        display: block;
    }

    @media (hover: hover) and (pointer: fine) {
        .nav-item:hover .nav-panel {
            display: none;
        }

        .nav-item.is-open:hover .nav-panel {
            display: block;
        }
    }

    .header-login-link {
        padding: 10px 8px;
    }

    .header-register-link {
        margin: 8px 8px 4px;
        align-self: flex-start;
    }

    .logo {
        margin-left: 0;
    }

    .features .container {
        grid-template-columns: 1fr;
    }

    .faq {
        padding: 60px 0;
    }

    .hero {
        padding: 40px 0 48px;
    }

    .hero h1 {
        font-size: 2rem;
        padding: 0 4px;
    }

    .hero-subtitle {
        font-size: 1rem;
        padding: 0 4px;
        margin-bottom: 12px;
    }

    .hero-seo {
        font-size: 0.95rem;
        padding: 0 4px;
        margin-bottom: 24px;
    }

    .video-transcript {
        padding: 0 4px;
    }

    .hero .cta-button {
        margin-top: 0;
    }

    .hero-image {
        margin: 28px auto 0;
        padding: 0;
        max-width: none;
    }

    .hero-image .download-funnel,
    .hero-image .squiggle {
        display: none;
    }

    .hero-video-wrap {
        width: 100%;
        border-radius: 6px;
    }

    .hero-video {
        object-fit: contain;
        background: #000;
    }

    .testimonial {
        flex-direction: column;
    }
    
    .testimonial-content {
        flex-direction: column;
    }
    
    .testimonial-image {
        display: none;
    }
    
    .quote-box {
        width: 100%;
        max-width: 100%;
    }

    .cta h2 {
        font-size: 2rem;
    }
    
    .scribble {
        width: 60px;
    }
    
    .center-blob {
        position:relative;
        width: 200px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 32px 0 40px;
    }

    .hero h1 {
        font-size: 1.65rem;
        line-height: 1.25;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .hero-video-wrap {
        border-radius: 4px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }
}

/* Add back the dots navigation */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #CCC;
    cursor: pointer;
}

.dot.active {
    background: #666;
}

/* Add multiple wobble variations */
@keyframes wobble1 {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(-4deg); }
    75% { transform: rotate(4deg); }
    100% { transform: rotate(0deg); }
}

@keyframes wobble2 {
    0% { transform: rotate(0deg); }
    35% { transform: rotate(5deg); }
    85% { transform: rotate(-5deg); }
    100% { transform: rotate(0deg); }
}

@keyframes wobble3 {
    0% { transform: rotate(0deg); }
    45% { transform: rotate(-3deg); }
    65% { transform: rotate(3deg); }
    100% { transform: rotate(0deg); }
}

/* Apply wobble to homepage feature icons only (not wedge landing placeholders) */
.feature-icon[src$=".svg"]:nth-of-type(3n+1) {
    animation: wobble1 3.5s ease-in-out infinite;
}

.feature-icon[src$=".svg"]:nth-of-type(3n+2) {
    animation: wobble2 2.8s ease-in-out infinite;
}

.feature-icon[src$=".svg"]:nth-of-type(3n+3) {
    animation: wobble3 3.2s ease-in-out infinite;
}

.feature-icon[src$=".svg"]:hover {
    animation-play-state: paused;
}
