/* ========================================
   SODALYTE — Dark Editorial Design
   ======================================== */

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

html {
    scroll-behavior: auto;
}

body {
    font-family: 'JSans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #0a0a0c;
    color: #f5f5f5;
    line-height: 1.6;
    overflow-x: hidden;
}

.font-serif,
h1.font-serif,
h2.font-serif,
h3.font-serif {
    font-family: 'BSSR', Georgia, serif !important;
    font-weight: 400;
    letter-spacing: -0.02em;
}

.font-serif-alt {
    font-family: 'BSSR', Georgia, serif;
    font-weight: 400;
    letter-spacing: -0.02em;
}

em.font-serif-alt {
    font-style: italic;
}

/* ========================================
   Navigation
   ======================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.25rem 0;
    background: rgba(10, 10, 12, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'JSans', sans-serif;
    font-size: 1.5rem;
    font-weight: 500;
    color: #f5f5f5;
    text-decoration: none;
    letter-spacing: -0.02em;
}

/* Hamburger Menu Toggle */
.menu-toggle {
    width: 32px;
    height: 24px;
    position: relative;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10000;
    padding: 0;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: #f5f5f5;
    position: absolute;
    left: 0;
    transition: all 0.3s cubic-bezier(0.76, 0, 0.24, 1);
    pointer-events: none;
}

.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.menu-toggle span:nth-child(3) { bottom: 0; }

.menu-toggle.active span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* Full Screen Menu Overlay - Studio Olimpo Style */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #0a0a0c;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    display: none;
}

.menu-overlay.active {
    pointer-events: auto;
    display: flex;
}

.menu-overlay-inner {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 8rem 4rem 4rem;
}

.menu-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 4rem;
}

.menu-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 4rem;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
}

.menu-label {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #6a6a70;
    margin-bottom: 2rem;
}

.menu-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.menu-link {
    font-family: 'BSSR', Georgia, serif;
    font-size: clamp(3.5rem, 7vw, 6rem);
    font-weight: 400;
    color: #f5f5f5;
    text-decoration: none;
    line-height: 1.1;
    display: flex;
    align-items: baseline;
    gap: 1.5rem;
    opacity: 0;
    transform: translateX(-60px);
    transition: color 0.3s;
}

.menu-link-number {
    font-family: 'JSans', sans-serif;
    font-size: 0.875rem;
    color: #6a6a70;
    letter-spacing: 0.05em;
    transition: color 0.3s;
    min-width: 1.5rem;
}

.menu-link:hover {
    color: #c9a86c;
}

.menu-link:hover .menu-link-number {
    color: #c9a86c;
}

.menu-link-cta {
    color: #c9a86c;
}

.menu-link-cta .menu-link-number {
    color: #c9a86c;
}

.menu-description {
    font-size: 1.125rem;
    color: #9a9aa0;
    line-height: 1.7;
    max-width: 400px;
    min-height: 120px;
}

.menu-footer {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.875rem;
    color: #6a6a70;
    opacity: 0;
    transition: opacity 0.5s ease 0.5s;
}

.menu-overlay.active .menu-footer {
    opacity: 1;
}

.menu-footer a {
    color: #9a9aa0;
    text-decoration: none;
    transition: color 0.3s;
}

.menu-footer a:hover {
    color: #c9a86c;
}

.menu-legal-links {
    display: flex;
    gap: 1.5rem;
}

@media (max-width: 900px) {
    .menu-overlay-inner {
        grid-template-columns: 1fr;
        padding: 7rem 2rem 2rem;
    }
    .menu-right {
        display: none;
    }
    .menu-left {
        padding-right: 0;
    }
    .menu-link {
        font-size: clamp(2rem, 8vw, 3rem);
    }
}

/* ========================================
   Hero
   ======================================== */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    padding: 10rem 4rem 6rem;
    max-width: 1600px;
    margin: 0 auto;
    align-items: center;
}

.hero-content {
    padding-right: 2rem;
}

.hero-label {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #c9a86c;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(3rem, 5vw, 5rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.hero-title-sans {
    font-family: 'JSans', sans-serif;
    font-weight: 500;
}

.hero-title-serif {
    font-family: 'BSSR', Georgia, serif;
    font-weight: 400;
    font-style: italic;
    letter-spacing: -0.02em;
}

.text-gold {
    color: #c9a86c;
}

.section-title-regular {
    font-family: 'JSans', sans-serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: #9a9aa0;
    max-width: 400px;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero-visual {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.5);
}

.hero-visual img {
    width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   Narrative
   ======================================== */
.narrative {
    padding: 10rem 4rem;
    background: #121216;
}

.narrative-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.narrative-line {
    font-family: 'JSans', sans-serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.narrative-line-regular {
    font-weight: 400;
}

.narrative-line.italic {
    font-family: 'BSSR', Georgia, serif;
    font-style: italic;
    font-weight: 400;
    color: #c9a86c;
}

.narrative-body {
    margin-top: 2.5rem;
    font-size: 1.125rem;
    color: #9a9aa0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* ========================================
   Features
   ======================================== */
.features {
    padding: 8rem 4rem;
}

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

.section-label {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #c9a86c;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-family: 'JSans', sans-serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.feature-cards {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1400px;
    margin: 0 auto;
}

.feature-card {
    background: #1a1a20;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    overflow: hidden;
    width: 340px;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s;
}

.feature-card:hover {
    transform: translateY(-8px) rotate(var(--hover-rotation)) !important;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.4);
}

.card-image {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.feature-card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 1.75rem;
}

.card-content h3 {
    font-family: 'JSans', sans-serif;
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.card-content p {
    font-size: 0.875rem;
    color: #9a9aa0;
    line-height: 1.6;
}

/* ========================================
   Zigzag Sections
   ======================================== */
.calendar-section,
.habits-section,
.focus-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    padding: 8rem 4rem;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.habits-section {
    direction: rtl;
}

.habits-section > * {
    direction: ltr;
}

.calendar-visual,
.habits-visual,
.focus-visual {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.5);
}

.calendar-visual img,
.habits-visual img,
.focus-visual img {
    width: 100%;
    height: auto;
    display: block;
}

.calendar-content h2,
.habits-content h2,
.focus-content h2 {
    font-family: 'JSans', sans-serif;
    font-weight: 700;
    font-size: clamp(1.75rem, 2.5vw, 2.5rem);
    letter-spacing: -0.02em;
    margin: 1rem 0 1.5rem;
    line-height: 1.2;
}

.calendar-content p,
.habits-content p,
.focus-content p {
    color: #9a9aa0;
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.7;
}

.feature-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.feature-list li {
    font-size: 0.875rem;
    color: #f5f5f5;
    padding-left: 1.25rem;
    position: relative;
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #c9a86c;
}

.modes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.mode {
    background: #1a1a20;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 1.25rem;
}

.mode strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.mode span {
    font-size: 0.8rem;
    color: #9a9aa0;
}

/* ========================================
   Accessibility
   ======================================== */
.accessibility {
    padding: 8rem 4rem;
    background: #121216;
}

.accessibility-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.accessibility-header h2 {
    font-family: 'JSans', sans-serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 1rem 0 1.25rem;
}

.accessibility-intro {
    font-size: 1.125rem;
    color: #9a9aa0;
    line-height: 1.7;
}

.accessibility-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    max-width: 1100px;
    margin: 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.accessibility-cell {
    padding: 2.5rem;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.3s;
}

.accessibility-cell:hover {
    background: rgba(255, 255, 255, 0.02);
}

.accessibility-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 1.25rem;
}

.accessibility-icon svg {
    width: 28px;
    height: 28px;
    stroke: #c9a86c;
}

.accessibility-cell h4 {
    font-family: 'JSans', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.accessibility-cell p {
    font-size: 0.875rem;
    color: #9a9aa0;
    line-height: 1.6;
}

/* ========================================
   Details
   ======================================== */
.details {
    padding: 8rem 4rem;
}

.details-header {
    text-align: center;
    margin-bottom: 4rem;
}

.details-header h2 {
    font-family: 'JSans', sans-serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 1rem 0 1.25rem;
}

.details-intro {
    font-size: 1.125rem;
    color: #9a9aa0;
    line-height: 1.7;
    max-width: 500px;
    margin: 0 auto;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.detail-item h4 {
    font-family: 'JSans', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.detail-item p {
    font-size: 0.875rem;
    color: #9a9aa0;
    line-height: 1.6;
}

.footer {
    padding: 6rem 4rem 3rem;
    background: #0a0a0c;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-cta {
    text-align: center;
    margin-bottom: 5rem;
}

.footer-label {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #c9a86c;
    margin-bottom: 1rem;
}

.footer-title {
    font-family: 'BSSR', Georgia, serif;
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 400;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.footer-meta {
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: #6a6a70;
}

.footer-logo {
    text-align: center;
    padding: 4rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 2rem;
    overflow: hidden;
}

.footer-logo span {
    font-family: 'JSans', Georgia, serif;
    font-size: clamp(3.5rem, 22vw, 34rem);
    font-weight: 400;
    color: rgb(128, 128, 128);
    line-height: 1;
    letter-spacing: -0.03em;
    display: block;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    font-size: 0.875rem;
    color: #6a6a70;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #9a9aa0;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #c9a86c;
}

/* ========================================
   Buttons (Character Stagger)
   ======================================== */
.btn-animate-chars {
    color: #0a0a0c;
    background: transparent;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 100px;
    overflow: hidden;
    cursor: pointer;
    white-space: nowrap;
}

.btn-animate-chars__bg {
    background: #c9a86c;
    position: absolute;
    inset: 0;
    border-radius: 100px;
    z-index: 0;
    transition: inset 0.5s cubic-bezier(0.625, 0.05, 0, 1);
}

.btn-animate-chars:hover .btn-animate-chars__bg {
    inset: 0.125em;
}

.btn-animate-chars__text {
    position: relative;
    z-index: 1;
    display: inline-flex;
    overflow: hidden;
}

.btn-animate-chars span span {
    display: inline-block;
    text-shadow: 0 1.3em currentColor;
    transform: translateY(0);
    transition: transform 0.6s cubic-bezier(0.625, 0.05, 0, 1);
}

.btn-animate-chars:hover span span {
    transform: translateY(-1.3em);
}

.btn-large {
    padding: 1.125rem 2.25rem;
    font-size: 1rem;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-content {
        padding-right: 0;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-visual {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .calendar-section,
    .habits-section,
    .focus-section {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .habits-section {
        direction: ltr;
    }
    
    .accessibility-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .details-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero,
    .narrative,
    .features,
    .calendar-section,
    .habits-section,
    .focus-section,
    .accessibility,
    .details,
    .footer {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .feature-cards {
        flex-direction: column;
        align-items: center;
    }
    
    .accessibility-grid,
    .details-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-list,
    .modes {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
