/* ═══════════════════════════════════════════
   Index Page - Compactura Homepage
   ═══════════════════════════════════════════ */

/* ─── Hero Section ─── */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
    padding: 0 6%;
    max-width: 100vw;
}

.hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(212, 68, 59, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    animation: heroPulse 15s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(27, 45, 62, 0.04) 0%, transparent 70%);
    border-radius: 50%;
    animation: heroPulse 18s ease-in-out infinite reverse;
}

@keyframes heroPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.7; }
}

.hero-text {
    max-width: 560px;
    z-index: 2;
    padding: 2rem 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.2rem;
    background: rgba(212, 68, 59, 0.08);
    border: 1px solid rgba(212, 68, 59, 0.15);
    border-radius: 60px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 2rem;
    animation: fadeSlideUp 0.6s ease 0.1s both;
}

.hero-badge .dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: blink 2s ease-in-out infinite;
}

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

.hero h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 4.3rem;
    font-weight: 600;
    line-height: 1.08;
    color: var(--primary);
    letter-spacing: -2px;
    margin-bottom: 1.5rem;
    animation: fadeSlideUp 0.7s ease 0.2s both;
}

.hero h1 em {
    font-style: italic;
    color: var(--accent);
}

.hero p {
    font-size: 1.25rem;
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    font-weight: 400;
    animation: fadeSlideUp 0.7s ease 0.35s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
    animation: fadeSlideUp 0.7s ease 0.5s both;
}

.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    height: 100%;
}

#hero-3d-canvas {
    width: 100%;
    height: 600px;
    cursor: grab;
    animation: fadeIn 1s ease 0.4s both;
}

#hero-3d-canvas:active {
    cursor: grabbing;
}

.hero-3d-label {
    position: absolute;
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--gray-light);
    letter-spacing: 1px;
    text-transform: uppercase;
    animation: fadeIn 1s ease 1s both;
}

.hero-3d-label svg {
    animation: rotate360 4s linear infinite;
}

@keyframes rotate360 {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ─── Product Intro / V2 Announcement ─── */
.v2-announce {
    padding: 8rem 6%;
    background: var(--white);
    position: relative;
}

.v2-announce-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.v2-header {
    text-align: center;
    margin-bottom: 5rem;
}

.v2-header .section-title {
    font-size: 3.5rem;
    max-width: 700px;
    margin: 0 auto 1rem;
}

.version-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 1rem;
    background: var(--primary);
    color: var(--white);
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

/* ─── Specs Infographic ─── */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 5rem;
}

.spec-card {
    background: var(--light);
    border-radius: var(--radius-lg);
    padding: 2.2rem 1.8rem;
    position: relative;
    overflow: hidden;
    transition: all var(--transition);
    border: 1px solid transparent;
}

.spec-card:hover {
    border-color: var(--border);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.spec-card .spec-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 1.4rem;
    font-size: 1.4rem;
}

.spec-card:nth-child(1) .spec-icon { background: rgba(212, 68, 59, 0.1); color: var(--accent); }
.spec-card:nth-child(2) .spec-icon { background: rgba(27, 45, 62, 0.08); color: var(--secondary); }
.spec-card:nth-child(3) .spec-icon { background: rgba(212, 68, 59, 0.1); color: var(--accent); }
.spec-card:nth-child(4) .spec-icon { background: rgba(27, 45, 62, 0.08); color: var(--secondary); }

.spec-value {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.7rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.spec-value span {
    font-size: 1.5rem;
    font-weight: 400;
}

.spec-label {
    font-size: 0.95rem;
    color: var(--gray);
    font-weight: 500;
    line-height: 1.4;
}

/* ─── Comparison Visual ─── */
.comparison-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    margin-bottom: 5rem;
}

.comparison-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
}

.comparison-card.v1 {
    background: var(--cream);
    border: 1px solid var(--border);
}

.comparison-card.v2 {
    background: var(--primary);
    color: var(--white);
}

.comparison-card .card-header {
    padding: 2rem 2rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.comparison-card .card-header h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.7rem;
    font-weight: 600;
}

.comparison-card .card-header .badge {
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.comparison-card.v1 .badge {
    background: rgba(0,0,0,0.06);
    color: var(--gray);
}

.comparison-card.v2 .badge {
    background: var(--accent);
    color: var(--white);
}

.comparison-list {
    padding: 1rem 2rem 2rem;
    list-style: none;
}

.comparison-list li {
    padding: 0.8rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    font-size: 1.05rem;
    line-height: 1.5;
    border-bottom: 1px solid rgba(128,128,128,0.1);
}

.comparison-list li:last-child {
    border-bottom: none;
}

.comparison-list .check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
    font-size: 0.8rem;
}

.comparison-card.v1 .check {
    background: rgba(0,0,0,0.06);
    color: var(--gray);
}

.comparison-card.v2 .check {
    background: rgba(212, 68, 59, 0.2);
    color: var(--accent-warm);
}

/* ─── How It Works / Fold Animation ─── */
.how-it-works {
    padding: 8rem 6% 6rem;
    background: var(--primary);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.how-it-works::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212,68,59,0.4), transparent);
}

.how-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.how-header {
    text-align: center;
    margin-bottom: 5rem;
}

.how-header .section-title {
    color: var(--white);
}

.how-header .section-subtitle {
    color: rgba(255,255,255,0.5);
    margin: 0 auto;
}

.fold-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.fold-step {
    text-align: center;
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    transition: all var(--transition);
    position: relative;
}

.fold-step:hover {
    background: rgba(255,255,255,0.07);
    transform: translateY(-4px);
}

.fold-step .step-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.6rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 1rem;
}

.fold-step .step-icon {
    font-size: 2.6rem;
    margin-bottom: 1.2rem;
    display: block;
}

.fold-step h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.fold-step p {
    font-size: 1.rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.6;
}

/* ─── Product Carousel / Teaser ─── */
.products-teaser {
    padding: 8rem 6%;
    background: var(--light);
}

.products-teaser-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.products-teaser .teaser-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 4rem;
}

.teaser-header .section-subtitle {
    margin-bottom: 0;
}

.product-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.product-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
    background: var(--white);
    border: 1px solid var(--border);
    position: relative;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.product-card .card-visual {
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-card:nth-child(1) .card-visual { background: linear-gradient(135deg, #f0ebe4, #e4ddd3); }
.product-card:nth-child(2) .card-visual { background: linear-gradient(135deg, #e4e8ed, #d3dae4); }
.product-card:nth-child(3) .card-visual { background: linear-gradient(135deg, #eee4e8, #e4d3da); }

.card-visual .product-emoji {
    font-size: 5.2rem;
    transition: transform var(--transition);
}

.product-card:hover .product-emoji {
    transform: scale(1.1) rotate(-3deg);
}

.card-visual .status-pill {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    padding: 0.3rem 0.8rem;
    border-radius: 60px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.status-pill.available {
    background: rgba(52, 168, 83, 0.12);
    color: #2d8f4e;
}

.status-pill.soon {
    background: rgba(212, 68, 59, 0.1);
    color: var(--accent);
}

.status-pill.dev {
    background: rgba(27, 45, 62, 0.08);
    color: var(--secondary);
}

.product-card .card-body {
    padding: 1.8rem;
}

.card-body h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.card-body p {
    font-size: 1rem;
    color: var(--gray);
    line-height: 1.6;
}

/* ─── Brand Banner ─── */
.brand-banner {
  padding: 6rem 6%;
  background: linear-gradient(#f7f6f3, 50%, #0f1923);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.brand-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.brand-banner h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.9rem;
    font-weight: 700;
    color: var(--light);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.6), 
        0 4px 15px rgba(0, 0, 0, 0.5),
        0 10px 30px rgba(0, 0, 0, 0.4);
}

.brand-banner p {
    color: var(--light);
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.brand-banner .btn-primary {
    background: var(--cream);
    color: #000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    position: relative;
    z-index: 1;
}

.brand-banner .btn-primary:hover {
    box-shadow: 0 14px 40px rgba(0,0,0,0.25);
	background: var(--light);
}

/* ─── Interactive Fold Controls ─── */
.fold-control-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.fold-slider-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.fold-slider-group label {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
}

input[type="range"].fold-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 200px;
    height: 4px;
    background: rgba(255,255,255,0.15);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

input[type="range"].fold-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 2px 8px rgba(212,68,59,0.4);
    cursor: pointer;
    transition: transform 0.2s ease;
}

input[type="range"].fold-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.fold-btn {
    padding: 0.6rem 1.4rem;
    border-radius: 60px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.05);
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--transition);
}

.fold-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.3);
}

.fold-btn.active {
    background: var(--accent);
    border-color: var(--accent);
}

/* ─── 3D Viewer in How It Works ─── */
.how-3d-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-top: 4rem;
}

#fold-3d-canvas {
    width: 100%;
    height: 450px;
    border-radius: var(--radius-lg);
    cursor: grab;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
}

#fold-3d-canvas:active {
    cursor: grabbing;
}

.fold-details {
    padding: 1rem 0;
}

#first-fold-details {
	margin-top: 3rem;
}

.fold-details h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.9rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    color: var(--white);
}

.fold-details p {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.fold-feature-list {
    list-style: none;
}

.fold-feature-list li {
    padding: 0.6rem 0;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.0rem;
    color: rgba(255,255,255,0.7);
}

.fold-feature-list li .feat-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}

/* ─── Desktop/Mobile visibility ─── */
.mobile-only { display: none; }
.desktop-only { display: block; }

/* ─── Mobile hero graphic ─── */
.mobile-hero-graphic {
    padding: 3rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.mobile-hero-icon {
    font-size: 4.1rem;
    line-height: 1;
}

.mobile-hero-tagline {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.mobile-hero-stat {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
}

.mobile-hero-stat .stat-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.1rem;
    font-weight: 700;
    color: var(--accent-warm);
    line-height: 1;
}

.mobile-hero-stat .stat-unit {
    font-size: 1.1rem;
    color: var(--gray);
}

/* ─── Mobile fold section ─── */
.mobile-fold-section {
    display: grid;
    gap: 2rem;
}

#America {
    color: var(--accent);
	text-shadow: 
		0 1px 3px rgba(0, 0, 0, 0.4),
		0 3px 9px rgba(0, 0, 0, 0.3);
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
    .desktop-only { display: none !important; }
    .mobile-only { display: block !important; }
    .mobile-fold-section { 
		display: grid !important; 
		margin-top: 3rem;
	}

    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-top: 120px;
        padding-bottom: 2rem;
    }

    .hero-text {
        text-align: center;
        max-width: 100%;
    }

    .hero h1 {
        font-size: 3.2rem;
    }

    .hero-buttons {
        justify-content: center;
    }

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

    .comparison-section {
        grid-template-columns: 1fr;
    }

    .fold-steps {
        grid-template-columns: 1fr;
    }

    .product-cards {
        grid-template-columns: 1fr;
    }

    .how-3d-section {
        grid-template-columns: 1fr;
    }

    .teaser-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
        letter-spacing: -1px;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .v2-header .section-title {
        font-size: 2.5rem;
    }

    .brand-banner h2 {
        font-size: 2.1rem;
    }

    .fold-control-bar {
        flex-direction: column;
        gap: 1rem;
    }

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

    .hero-buttons {
        flex-direction: column;
    }
}