/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
    background: var(--color-primary-bg);
    border: 1px solid var(--color-primary-border);
    position: relative;
    overflow: visible;
    padding-top: 120px; /* Account for absolute-positioned header */
    padding-bottom: 80px;
}

/* Background - No grid, just solid base per Figma */

/* Hero Decorations - Blue spots and triangles */
.hero-decorations {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

/* Blue gradient spots - Large soft circles per Figma */
.hero-spot {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(13, 110, 253, 0.25) 0%, rgba(13, 110, 253, 0.1) 40%, rgba(13, 110, 253, 0) 70%);
    filter: blur(60px);
}

/* Top-left large blob - extends outside viewport per Figma */
.hero-spot.spot-1 {
    width: 700px;
    height: 700px;
    top: -200px;
    left: -200px;
}

/* Bottom-right large blob - extends outside viewport per Figma */
.hero-spot.spot-2 {
    width: 700px;
    height: 700px;
    bottom: -100px;
    right: -250px;
}

/* Hide spot-3 - Figma only shows 2 blobs */
.hero-spot.spot-3 {
    display: none;
}

/* Blue triangles/arrows - positioned per Figma */
.hero-triangle {
    position: absolute;
    opacity: 0.8;
}

/* Top-left area - pointing right */
.hero-triangle.triangle-1 {
    top: 6%;
    left: 15%;
    transform: rotate(26deg);
}

/* Top-right - pointing left */
.hero-triangle.triangle-2 {
    top: 4%;
    right: 6%;
    transform: rotate(180deg);
}

/* Right side upper - pointing down-left */
.hero-triangle.triangle-3 {
    top: 18%;
    right: 12%;
    transform: rotate(270deg);
}

/* Left side - pointing right */
.hero-triangle.triangle-4 {
    top: 45%;
    left: 12%;
    transform: rotate(26deg);
}

/* Right side middle - pointing right */
.hero-triangle.triangle-5 {
    top: 47%;
    right: 5%;
    transform: rotate(47deg);
}

/* Left side lower - pointing right */
.hero-triangle.triangle-6 {
    top: 23%;
    right: 18%;
    transform: rotate(318deg);
}

/* Bottom-left - pointing right */
.hero-triangle.triangle-7 {
    bottom: 12%;
    left: 8%;
    transform: rotate(61deg);
}

/* Bottom-right - pointing down */
.hero-triangle.triangle-8 {
    bottom: 8%;
    right: 10%;
    transform: rotate(270deg);
}

/* White container behind product cards - Semi-transparent per Figma */
.product-stack-container {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 1);
    border-radius: 11px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
    position: relative;
    backdrop-filter: blur(10px);
}

.hero-content {
    text-align: center;
    padding: var(--spacing-3xl) 0;
    position: relative;
    z-index: 2;
}

/* Trust badges row */
.hero-badges {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: var(--spacing-xl);
    flex-wrap: wrap;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.75);
    padding: 5px 15px;
    border-radius: 67px;
}

.hero-badge span {
    font-size: 16px;
    font-weight: var(--font-medium);
    color: var(--color-text-muted);
}

.hero-badge .checkmark {
    font-weight: var(--font-bold);
    color: var(--color-primary);
    margin-right: 4px;
}

.hero-title {
    font-size: 48px;
    font-weight: var(--font-bold);
    color: var(--color-black);
    line-height: 60px;
    margin-bottom: var(--spacing-md);
}

.hero-title .highlight {
    color: var(--color-primary);
}

.hero-subtitle {
    font-size: 16px;
    font-weight: var(--font-medium);
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-xl);
}

.hero-ctas {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--spacing-3xl);
}

.btn-trial {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 8px 7px 8px 24px;
    gap: 32px;
    height: 54px;
}

.btn-trial .play-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.btn-trial .play-icon-hover {
    display: none;
}

.btn-trial:hover {
    background-color: #4c94ff;
    color: var(--color-white);
}

.btn-trial:hover .play-icon-default {
    display: none;
}

.btn-trial:hover .play-icon-hover {
    display: block;
}

.btn-browse {
    border: 2px solid #020100;
    color: #020100;
    background: transparent;
    gap: 20px;
    padding: 8px 22px;
    height: 54px;
}

.btn-browse .lightning-icon {
    width: 15px;
    height: 20px;
    flex-shrink: 0;
}

.btn-browse .lightning-hover {
    display: none;
}

.btn-browse:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-browse:hover .lightning-default {
    display: none;
}

.btn-browse:hover .lightning-hover {
    display: block;
}

/* Hero product showcase */
.hero-showcase {
    position: relative;
    margin-top: var(--spacing-2xl);
}

/* Feature tabs in hero */
.feature-tabs {
    display: flex;
    justify-content: center;
    gap: 0;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--color-white);
    border-radius: 11px;
    padding: 7px;
    width: fit-content;
    margin: 0 auto var(--spacing-xl);
}

.feature-tab {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 8px;
    border-radius: 8px;
    background: transparent;
    border: none;
    font-size: 16px;
    font-weight: var(--font-medium);
    color: var(--color-text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.feature-tab.active {
    background: var(--color-white);
    border: 1px solid var(--color-white);
    color: var(--color-primary);
}

.feature-tab svg {
    width: 20px;
    height: 20px;
}

.feature-tab svg.icon-flip {
    transform: scaleX(-1);
}

/* Product screenshots stack - Figma Design */
.product-stack {
    position: relative;
    max-width: 1003px;
    margin: 0 auto;
    height: 450px;
    display: flex;
    justify-content: center;
    overflow: visible;
}

.product-card {
    position: absolute;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    width: 733px;
    height: 349px;
    transform: skewX(5.652deg);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
}

.product-card img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* Card 1 - Keyword Tool (back/top-left) */
.product-card.card-1 {
    left: 50%;
    top: 0;
    margin-left: -420px;
    z-index: 1;
}

/* Card 2 - Semrush */
.product-card.card-2 {
    left: 50%;
    top: 25px;
    margin-left: -390px;
    z-index: 2;
}

.product-card.card-2 img {
    object-position: top;
}

/* Card 3 - Ahrefs */
.product-card.card-3 {
    left: 50%;
    top: 50px;
    margin-left: -360px;
    z-index: 3;
}

/* Card 4 - Keys.so (front/bottom-right) */
.product-card.card-4 {
    left: 50%;
    top: 75px;
    margin-left: -330px;
    z-index: 4;
}

/* Hover effects - cards fan out */
.product-stack:hover .product-card.card-1 {
    transform: skewX(5.652deg) translateX(-40px) translateY(-10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.product-stack:hover .product-card.card-2 {
    transform: skewX(5.652deg) translateX(-20px) translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.product-stack:hover .product-card.card-3 {
    transform: skewX(5.652deg) translateX(10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.product-stack:hover .product-card.card-4 {
    transform: skewX(5.652deg) translateX(30px) translateY(5px);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.3);
}

/* Individual card hover - enhance shadow only */
.product-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* Mockup window base */
.mockup-window {
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
}

.mockup-window.window-light {
    background: #fff;
}

.mockup-window.window-dark {
    background: #1a1f2e;
}

.mockup-dots {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.mockup-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.mockup-dots span:nth-child(1) { background: #ff5f57; }
.mockup-dots span:nth-child(2) { background: #ffbd2e; }
.mockup-dots span:nth-child(3) { background: #28c840; }

/* Keyword Tool Header */
.header-light {
    background: #fff;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.tool-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #374151;
}

.brand-arrow {
    color: #9ca3af;
}

.tool-nav {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: #6b7280;
}

.tool-action {
    margin-left: auto;
    font-size: 12px;
    color: var(--color-primary);
    font-weight: 500;
}

.content-light {
    background: #f9fafb;
    min-height: 60px;
}

.keyword-placeholder {
    height: 60px;
}

/* Semrush Header */
.header-semrush {
    background: #ff6422;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.semrush-logo {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-weight: 700;
    font-size: 13px;
}

.semrush-logo .logo-icon {
    font-size: 16px;
}

.semrush-search input {
    background: rgba(255,255,255,0.2);
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    color: #fff;
    font-size: 11px;
    width: 120px;
}

.semrush-search input::placeholder {
    color: rgba(255,255,255,0.7);
}

.semrush-nav {
    display: flex;
    gap: 12px;
    margin-left: auto;
    font-size: 11px;
    color: #fff;
}

.semrush-nav .nav-cta {
    background: #10b981;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 500;
}

.content-semrush {
    background: #fff;
    min-height: 40px;
}

.semrush-subnav {
    padding: 8px 12px;
    font-size: 11px;
    color: #6b7280;
    border-bottom: 1px solid #e5e7eb;
}

/* Ahrefs Header */
.header-ahrefs {
    background: #1e3a5f;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.ahrefs-logo {
    color: #fff;
    font-weight: 700;
    font-size: 14px;
}

.ahrefs-nav {
    display: flex;
    gap: 12px;
    font-size: 11px;
    color: rgba(255,255,255,0.7);
    overflow: hidden;
}

.ahrefs-nav span.active {
    color: #fff;
    border-bottom: 2px solid #ff6b35;
    padding-bottom: 2px;
}

.content-ahrefs {
    background: #fff;
    min-height: 40px;
}

/* Keys.so Card */
.header-keys {
    background: #1a1f2e;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid #2d3548;
}

.keys-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #10b981;
    font-weight: 600;
}

.keys-icon {
    font-size: 18px;
}

.keys-topnav {
    display: flex;
    gap: 16px;
    margin-left: auto;
    font-size: 12px;
    color: rgba(255,255,255,0.6);
}

.keys-user {
    color: rgba(255,255,255,0.6);
}

.content-keys {
    display: flex;
    background: #1a1f2e;
    min-height: 220px;
}

.keys-sidebar {
    width: 180px;
    background: #151923;
    padding: 16px 12px;
    border-right: 1px solid #2d3548;
}

.keys-sidebar .sidebar-section,
.keys-sidebar .sidebar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    font-size: 11px;
    color: rgba(255,255,255,0.6);
    border-radius: 6px;
    margin-bottom: 2px;
}

.keys-sidebar .sidebar-item.active {
    background: #2d3548;
    color: #fff;
}

.keys-sidebar .sidebar-divider {
    height: 1px;
    background: #2d3548;
    margin: 12px 0;
}

.keys-main {
    flex: 1;
    padding: 24px;
}

.keys-hero {
    text-align: center;
    margin-bottom: 24px;
}

.keys-hero h3 {
    font-size: 22px;
    font-weight: 600;
    background: linear-gradient(90deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.keys-hero p {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
}

.keys-search-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 16px;
    font-size: 11px;
    color: rgba(255,255,255,0.5);
}

.keys-search-tabs .tab.active {
    color: #fff;
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 4px;
}

.keys-search-bar {
    display: flex;
    gap: 8px;
    max-width: 500px;
    margin: 0 auto 20px;
}

.keys-search-bar input {
    flex: 1;
    background: #2d3548;
    border: 1px solid #3d4558;
    padding: 10px 14px;
    border-radius: 6px;
    color: #fff;
    font-size: 12px;
}

.keys-search-bar input::placeholder {
    color: rgba(255,255,255,0.4);
}

.keys-search-bar select {
    background: #2d3548;
    border: 1px solid #3d4558;
    padding: 10px;
    border-radius: 6px;
    color: #fff;
    font-size: 11px;
}

.keys-search-bar .search-btn {
    background: #10b981;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
}

.keys-brands {
    text-align: center;
    font-size: 10px;
    color: rgba(255,255,255,0.4);
}

.brand-logos {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.brand-logos .brand {
    color: rgba(255,255,255,0.5);
    font-size: 10px;
}

.keys-footer {
    background: #151923;
    padding: 8px 16px;
    display: flex;
    gap: 16px;
    font-size: 10px;
    color: rgba(255,255,255,0.4);
    border-top: 1px solid #2d3548;
}

/* ==========================================================================
   Keyword Tool Card Content
   ========================================================================== */

.keyword-content {
    padding: 16px;
}

.keyword-search-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.keyword-search-bar input {
    flex: 1;
    background: #fff;
    border: 1px solid #e5e7eb;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 11px;
    color: #374151;
}

.keyword-search-bar input::placeholder {
    color: #9ca3af;
}

.keyword-search-btn {
    background: #3b82f6;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
}

.keyword-results {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.keyword-result-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #f3f4f6;
}

.keyword-result-row .kw-text {
    flex: 1;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
}

.keyword-result-row .kw-volume {
    width: 40px;
    height: 8px;
    background: #dbeafe;
    border-radius: 4px;
}

.keyword-result-row .kw-diff {
    width: 30px;
    height: 8px;
    background: #dcfce7;
    border-radius: 4px;
}

/* ==========================================================================
   Semrush Card Layout with Sidebar
   ========================================================================== */

.semrush-layout {
    display: flex;
    min-height: 200px;
}

.semrush-sidebar {
    width: 140px;
    background: #f9fafb;
    border-right: 1px solid #e5e7eb;
    padding: 12px 8px;
}

.semrush-sidebar-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    font-size: 10px;
    color: #6b7280;
    border-radius: 4px;
    margin-bottom: 2px;
}

.semrush-sidebar-item:hover {
    background: #f3f4f6;
}

.sidebar-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.sidebar-dot.dot-blue { background: #3b82f6; }
.sidebar-dot.dot-orange { background: #f97316; }
.sidebar-dot.dot-green { background: #22c55e; }
.sidebar-dot.dot-purple { background: #8b5cf6; }
.sidebar-dot.dot-pink { background: #ec4899; }

.semrush-main {
    flex: 1;
    padding: 16px;
}

.semrush-placeholder-content {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #f3f4f6 0%, #e5e7eb 50%, #f3f4f6 100%);
    border-radius: 8px;
    min-height: 160px;
}

/* ==========================================================================
   Ahrefs Card Layout with Sidebar
   ========================================================================== */

.ahrefs-layout {
    display: flex;
    min-height: 240px;
}

.ahrefs-sidebar {
    width: 80px;
    background: #1e3a5f;
    padding: 12px 8px;
}

.ahrefs-sidebar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 4px;
    font-size: 9px;
    color: rgba(255,255,255,0.7);
    text-align: center;
    border-radius: 6px;
    margin-bottom: 2px;
    cursor: pointer;
}

.ahrefs-sidebar-item:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.sidebar-icon {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: block;
}

.sidebar-icon.icon-app { background: #3b82f6; }
.sidebar-icon.icon-ai { background: linear-gradient(135deg, #8b5cf6, #ec4899); }
.sidebar-icon.icon-traffic { background: #22c55e; }
.sidebar-icon.icon-market { background: #f97316; }
.sidebar-icon.icon-local { background: #06b6d4; }
.sidebar-icon.icon-content { background: #eab308; }
.sidebar-icon.icon-social { background: #ec4899; }
.sidebar-icon.icon-trends { background: #14b8a6; }
.sidebar-icon.icon-reports { background: #6366f1; }

.ahrefs-main {
    flex: 1;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.limit-info-text {
    font-size: 13px;
    color: #9ca3af;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Floating badges with blue dots */
.floating-badge {
    position: absolute;
    background: var(--color-white);
    border-radius: var(--radius-full);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    z-index: 20;
}

.floating-badge.badge-easy {
    top: 80px;
    right: 0;
}

.floating-badge.badge-private {
    bottom: 20px;
    left: -20px;
}

.badge-dot {
    width: 12px;
    height: 12px;
    background: var(--color-primary);
    border-radius: 50%;
    flex-shrink: 0;
}

.floating-badge span:last-child {
    font-size: 14px;
    font-weight: var(--font-semibold);
    color: var(--color-text);
    white-space: nowrap;
}

/* Image-based mockups (real screenshots) */
.mockup-images {
    position: relative;
    width: 100%;
    height: 500px;
    margin-top: 20px;
}

.mockup-image {
    position: absolute;
    border-radius: 12px;
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mockup-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Dashboard - main large image */
.mockup-image.mockup-dashboard {
    width: 75%;
    max-width: 700px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

/* Ahrefs - top right, overlapping */
.mockup-image.mockup-ahrefs {
    width: 45%;
    max-width: 420px;
    right: -5%;
    top: -10%;
    z-index: 3;
    transform: rotate(2deg);
}

/* Semrush - bottom left, overlapping */
.mockup-image.mockup-semrush {
    width: 50%;
    max-width: 460px;
    left: -8%;
    bottom: -15%;
    z-index: 1;
    transform: rotate(-3deg);
}

/* Hover effects */
.mockup-image:hover {
    z-index: 10;
    box-shadow: 0 30px 70px -15px rgba(0, 0, 0, 0.3);
}

.mockup-image.mockup-dashboard:hover {
    transform: translate(-50%, -50%) scale(1.02);
}

.mockup-image.mockup-ahrefs:hover {
    transform: rotate(0deg) scale(1.05);
}

.mockup-image.mockup-semrush:hover {
    transform: rotate(0deg) scale(1.05);
}

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

    .btn-trial,
    .btn-browse {
        width: 100%;
        max-width: 100%;
        justify-content: center;
        box-sizing: border-box;
        overflow: hidden;
        font-size: 14px;
        padding: 8px 16px;
        gap: 12px;
    }

    .btn-trial .play-icon {
        width: 28px;
        height: 28px;
    }

    .hero-decorations {
        display: none;
    }

    .product-stack-container {
        padding: 15px;
        border-radius: 16px;
    }

    .product-stack {
        height: 350px;
    }

    .product-card.card-1,
    .product-card.card-2,
    .product-card.card-3 {
        display: none;
    }

    .product-card.card-4 {
        width: 100%;
        left: 0;
        top: 0;
        margin-left: 0;
        transform: none;
    }

    .product-card.card-4 img {
        transform: none;
    }

    .floating-badge {
        display: none;
    }

    .keys-sidebar {
        display: none;
    }

    /* Image mockups responsive */
    .mockup-images {
        height: 300px;
    }

    .mockup-image.mockup-dashboard {
        width: 90%;
    }

    .mockup-image.mockup-ahrefs,
    .mockup-image.mockup-semrush {
        display: none;
    }
}

