@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=DM+Serif+Display:ital@0;1&display=swap');

/* ==========================================================================
   Base Styles & Variables (Odextra Studio Theme)
   ========================================================================== */
:root {
    --bg-primary: #f6f6f6;
    --bg-secondary: #ffffff;
    --text-primary: #1f3130;
    --text-secondary: #506767;
    --accent-primary: #1f3130;
    --accent-secondary: #f8d0b3;
    --card-border: rgba(31, 49, 48, 0.1);
    --font-heading: 'DM Serif Display', serif;
    --font-body: 'DM Sans', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
    /* Custom Cursor */
}

/* Hide cursor on links since we have a custom one */
a,
button,
input {
    cursor: none;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */
h1,
h2,
h3,
h4,
.btn {
    font-family: var(--font-heading);
    font-weight: normal;
    /* DM Serif Display looks best normal */
}

.text-center {
    text-align: center;
}

.hidden {
    display: none !important;
}

.text-accent {
    color: var(--accent-secondary);
}

.text-italic {
    font-style: italic;
}

/* ==========================================================================
   Custom Cursor
   ========================================================================== */
.cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent-primary);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
}

.cursor-outline {
    width: 30px;
    height: 30px;
    border: 1px solid rgba(31, 49, 48, 0.5);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9998;
    transition: width 0.2s, height 0.2s, background-color 0.2s, border-color 0.2s;
}

.cursor-outline.hovering {
    width: 50px;
    height: 50px;
    background-color: rgba(31, 49, 48, 0.05);
    border-color: transparent;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    padding: 1.5rem 0;
    background: rgba(246, 246, 246, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--card-border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    text-decoration: none;
    font-size: 1.5rem;
    font-family: var(--font-heading);
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--text-primary);
}

.btn-primary {
    background-color: var(--accent-primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid var(--accent-primary);
    font-family: var(--font-body);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--accent-primary);
}

.btn-outline {
    background-color: transparent;
    color: var(--accent-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid var(--card-border);
    font-family: var(--font-body);
}

.btn-outline:hover {
    background-color: var(--bg-secondary);
    border-color: var(--accent-primary);
}

/* ==========================================================================
   Hero Section - Clean Studio Design
   ========================================================================== */
.hero {
    padding: 8rem 0 4rem;
    text-align: center;
    position: relative;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--card-border);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-label {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--bg-primary);
    border: 1px solid var(--card-border);
    border-radius: 30px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

/* ==========================================================================
   Alternating SaaS Showcase Section
   ========================================================================== */
.showcase-section {
    padding: 8rem 0;
    background-color: var(--bg-primary);
}

.saas-row {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 8rem;
}

.saas-row:last-child {
    margin-bottom: 0;
}

/* Reverse layout for alternating rows */
.saas-row.row-reverse {
    flex-direction: row-reverse;
}

.saas-content {
    flex: 1;
    padding: 2rem;
}

.saas-visual {
    flex: 1.2;
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(31, 49, 48, 0.08);
    background-color: var(--bg-secondary);
    border: 1px solid var(--card-border);
}

/* Mac OS Window Styling */
.mac-window {
    background-color: var(--bg-secondary);
    border-radius: 24px;
    overflow: hidden;
    width: 100%;
}

.mac-header {
    height: 40px;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    border-bottom: 1px solid var(--card-border);
}

.mac-dots {
    display: flex;
    gap: 8px;
}

.mac-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.mac-dot.close {
    background-color: #ff5f56;
}

.mac-dot.min {
    background-color: #ffbd2e;
}

.mac-dot.max {
    background-color: #27c93f;
}

.mac-body {
    position: relative;
    padding-top: 60%;
    /* Aspect ratio placeholder */
    background-color: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mac-body img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.saas-visual:hover .mac-body img {
    transform: scale(1.02);
}

.placeholder-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--text-secondary);
    opacity: 0.3;
}

/* SaaS Content Styling */
.saas-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.saas-category {
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-secondary);
}

.saas-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #27c93f;
    background: rgba(39, 201, 63, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #27c93f;
    border-radius: 50%;
    box-shadow: 0 0 10px #27c93f;
}

.saas-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.saas-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.saas-features {
    list-style: none;
    margin-bottom: 2.5rem;
}

.saas-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 1rem;
    font-size: 1rem;
    color: var(--text-primary);
}

.saas-features i {
    color: var(--accent-primary);
    font-size: 1.25rem;
    margin-top: 2px;
}

.saas-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.125rem;
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-primary);
    text-decoration: none;
    padding-bottom: 4px;
    border-bottom: 2px solid var(--accent-primary);
    transition: var(--transition);
}

.saas-cta:hover {
    gap: 15px;
    color: var(--text-secondary);
    border-color: var(--text-secondary);
}

/* ==========================================================================
   Filter/Categories (Optional for Top of Showcase)
   ========================================================================== */
.filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.filter-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--card-border);
    color: var(--text-secondary);
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    font-weight: 500;
    transition: var(--transition);
    font-family: var(--font-body);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}

/* ==========================================================================
   Insights/Blog Layout 
   ========================================================================== */
.insights-section {
    padding: 6rem 0;
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--card-border);
}

.section-header {
    margin-bottom: 4rem;
    text-align: center;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--text-primary);
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.insight-card {
    background: var(--bg-primary);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 2rem;
    transition: var(--transition);
}

.insight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(31, 49, 48, 0.05);
}

.insight-date {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    display: block;
}

.insight-title {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: var(--bg-primary);
    border-top: 1px solid var(--card-border);
    padding: 4rem 0 2rem;
    text-align: center;
}

.footer-content {
    margin-bottom: 3rem;
}

.footer h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--card-border);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 991px) {

    .saas-row,
    .saas-row.row-reverse {
        flex-direction: column;
        gap: 2rem;
    }

    .saas-content {
        padding: 0;
    }

    .saas-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* Add mobile menu later if needed */
    }

    .hero {
        padding: 6rem 0 3rem;
    }

    .insights-grid {
        grid-template-columns: 1fr;
    }
}