/* Apple-Style Minimalist Theme */
:root {
    --bg-body: #ffffff;
    --bg-alt: #f5f5f7;
    --text-main: #1d1d1f;
    --text-muted: #86868b;
    --accent-blue: #0071e3;
    --accent-dark-blue: #004e92;
    --accent-green: #50c878;
    --border-light: #d2d2d7;

    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    --container-width: 980px;
    --nav-height: 48px;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.47059;
    font-weight: 400;
    letter-spacing: -0.022em;
    /* Apple tightness */
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
    font-weight: 600;
    letter-spacing: -0.03em;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.container-narrow {
    max-width: 680px;
}

.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 2rem;
}

/* Navigation */
.apple-nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 999;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-content {
    max-width: var(--container-width);
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.nav-logo {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-main);
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.nav-logo:hover {
    opacity: 1;
}

.nav-menu {
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav-menu a {
    color: var(--text-main);
    font-size: 12px;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.nav-menu a:hover {
    opacity: 1;
}

.nav-btn-small {
    background: var(--text-main);
    color: white !important;
    padding: 6px 14px;
    border-radius: 999px;
    font-weight: 500;
}

/* Hero */
.hero-apple {
    padding-top: 120px;
    padding-bottom: 60px;
    text-align: center;
    background: var(--bg-body);
}

.hero-content h1 {
    font-size: 56px;
    line-height: 1.07143;
    margin-bottom: 16px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-dark-blue), var(--accent-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-sub {
    font-size: 24px;
    line-height: 1.2;
    font-weight: 400;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    margin-bottom: 50px;
}

.btn-apple {
    background: var(--accent-blue);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 999px;
    font-size: 17px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.btn-apple:hover {
    background: #0077ed;
    transform: scale(1.02);
}

.link-apple {
    color: var(--accent-blue);
    font-size: 17px;
    text-decoration: none;
}

.link-apple:hover {
    text-decoration: underline;
}

.apple-logo-img {
    max-width: 140px;
    margin: 0 auto;
    filter: drop-shadow(0 10px 20px rgba(0, 113, 227, 0.3));
    animation: breathe 4s infinite ease-in-out;
}

@keyframes breathe {

    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 10px 20px rgba(0, 113, 227, 0.3));
    }

    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 15px 30px rgba(80, 200, 120, 0.4));
    }
}

/* Dark Section */
.section-dark {
    background: #000;
    color: #86868b;
    padding: 150px 0;
    text-align: center;
}

.section-heading-lg {
    color: #f5f5f7;
    font-size: 48px;
    line-height: 1.1;
    margin-bottom: 30px;
}

.text-white {
    color: #fff;
}

.section-text-lg {
    font-size: 21px;
    max-width: 580px;
    margin: 0 auto 20px;
    line-height: 1.4;
}

/* Light Section Grid */
.section-light {
    background: var(--bg-alt);
    padding: 100px 0;
}

.grid-apple {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 400px;
    gap: 20px;
}

.card-apple {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.card-apple:hover {
    transform: scale(1.01);
}

.card-large {
    grid-column: 1 / -1;
    min-height: 300px;
    align-items: flex-start;
}

.card-content h3 {
    font-size: 28px;
    color: var(--text-main);
    margin-bottom: 10px;
}

.card-content p {
    color: var(--text-muted);
    font-size: 17px;
    max-width: 400px;
}

.card-eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards;
}

.fade-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.fade-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    animation-delay: 0.2s;
    transition-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.4s;
    transition-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.6s;
    transition-delay: 0.3s;
}

.delay-4 {
    animation-delay: 0.8s;
    transition-delay: 0.4s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Quote */
.section-quote {
    padding: 100px 0;
    text-align: center;
}

.quote-text {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 20px;
}

.quote-author {
    color: var(--text-muted);
    font-style: italic;
}

/* Modal Refresh */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-overlay.hidden {
    display: none;
}

.modal-glass {
    background: rgba(255, 255, 255, 0.9);
    width: 500px;
    max-width: 90%;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    text-align: center;
}

.modal-header-apple h2 {
    font-size: 28px;
    margin-bottom: 8px;
}

.input-apple {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    background: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

.full-width {
    width: 100%;
}

.btn-link-apple {
    background: none;
    border: none;
    color: var(--accent-blue);
    font-size: 16px;
    cursor: pointer;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #86868b;
}

/* Calendar Styling */
.calendar-embed-apple {
    background: #fafafa;
    border-radius: 12px;
    margin-bottom: 20px;
    padding: 16px;
    text-align: left;
    border: 1px solid var(--border-light);
}

.calendar-grid-apple {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.cal-month {
    font-weight: 600;
    font-size: 0.95rem;
}

.cal-nav {
    color: var(--accent-blue);
    cursor: pointer;
    display: flex;
    gap: 10px;
}

.cal-days {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.cal-dates {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
}

.cal-date {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 10px 0;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.cal-date.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    border-color: transparent;
}

.cal-date:hover:not(.disabled) {
    border-color: var(--accent-blue);
}

.cal-date.selected {
    background: var(--accent-blue);
    color: white;
    border-color: var(--accent-blue);
}

.cal-time-slots {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border-light);
}

.cal-time-slots p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.slot-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.time-btn {
    padding: 6px 12px;
    border: 1px solid var(--accent-blue);
    color: var(--accent-blue);
    background: none;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
}

.time-btn:hover {
    background: rgba(0, 113, 227, 0.1);
}

.time-btn.selected {
    background: var(--accent-blue);
    color: white;
}


.modal-step {
    display: none;
}

.modal-step.active {
    display: block;
    animation: fadeInUp 0.5s;
}

/* Mobile */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 36px;
    }

    .grid-apple {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
}

/* Calendar Styling - Appended Fix */
.calendar-embed-apple {
    background: #fafafa;
    border-radius: 12px;
    margin-bottom: 20px;
    padding: 16px;
    text-align: left;
    border: 1px solid var(--border-light);
}

.calendar-grid-apple {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.cal-month {
    font-weight: 600;
    font-size: 0.95rem;
}

.cal-nav {
    color: var(--accent-blue);
    cursor: pointer;
    display: flex;
    gap: 10px;
}

.cal-days {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.cal-dates {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
}

.cal-date {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 10px 0;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.cal-date.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    border-color: transparent;
}

.cal-date:hover:not(.disabled) {
    border-color: var(--accent-blue);
}

.cal-date.selected {
    background: var(--accent-blue);
    color: white;
    border-color: var(--accent-blue);
}

.cal-time-slots {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border-light);
}

.cal-time-slots p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.slot-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.time-btn {
    padding: 6px 12px;
    border: 1px solid var(--accent-blue);
    color: var(--accent-blue);
    background: none;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
}

.time-btn:hover {
    background: rgba(0, 113, 227, 0.1);
}

.time-btn.selected {
    background: var(--accent-blue);
    color: white;
}

/* --- NEW PREMIUM UPGRADES --- */

:root {
    --bg-dark: #050507;
    --bg-card-glass: rgba(255, 255, 255, 0.7);
    --text-gold: #D4AF37;
    --text-danger: #FF453A;
    --glow-blue: 0 0 20px rgba(0, 113, 227, 0.6);
}

/* Hero Upgrade */
.hero-premium {
    padding-top: 140px;
    padding-bottom: 100px;
    text-align: center;
    background: radial-gradient(circle at center, #ffffff 0%, #f0f2f5 100%);
    overflow: hidden;
}

.gradient-text-gold {
    background: linear-gradient(135deg, #1d1d1f 30%, #434344 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.btn-primary-glow {
    background: #0071e3;
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 999px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--glow-blue);
    transition: all 0.3s ease;
}

.btn-primary-glow:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(0, 113, 227, 0.8);
}

.link-subtle {
    color: #86868b;
    margin-left: 20px;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
}

.link-subtle:hover {
    color: #1d1d1f;
}

/* Visuals */
.glass-orb {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(0, 113, 227, 0.2);
}

.breathing-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    mix-blend-mode: multiply;
    filter: drop-shadow(0 0 30px rgba(0, 113, 227, 0.5));
    animation: pulseGlow 4s infinite ease-in-out;
}

@keyframes pulseGlow {

    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 30px rgba(0, 113, 227, 0.5));
    }

    50% {
        transform: scale(1.08);
        filter: drop-shadow(0 0 60px rgba(80, 200, 120, 0.6));
    }
}

/* Dark Immersive Section */
.section-dark-immersive {
    background: var(--bg-dark);
    color: #fff;
    padding: 160px 0;
    text-align: center;
}

.text-danger {
    color: var(--text-danger);
    font-weight: 700;
}

.text-highlight {
    font-size: 32px;
    line-height: 1.2;
    font-weight: 600;
    background: linear-gradient(90deg, #fff, #86868b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-top: 40px;
}

/* Bento Grid */
.section-glass {
    background: #f5f5f7;
    padding: 120px 0;
}

.grid-bento {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    grid-template-rows: 300px 300px;
    gap: 24px;
}

.card-glass {
    background: white;
    border-radius: 32px;
    padding: 48px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-glass:hover {
    transform: translateY(-5px);
}

.card-wide {
    grid-column: 1 / -1;
    min-height: 280px;
    flex-direction: row;
    align-items: center;
}

.card-wide .card-content {
    flex: 1;
}

.card-visual-abstract {
    flex: 1;
    height: 100%;
    /* Premium 3D Illustration: Workflow Chaos vs Order */
    background-color: #050507;
    background-image: url('assets/images/workflow_viz.png');
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.card-visual-abstract::after {
    content: '';
    position: absolute;
    inset: 20px;
    border: 1px dashed rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    background: url('data:image/svg+xml;utf8,<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="2" fill="rgba(0,0,0,0.05)"/></svg>') repeat;
}

.card-tall {
    grid-row: span 1;
}

.section-quote-dark {
    background: var(--bg-dark);
    color: white;
    padding: 140px 0;
    text-align: center;
}

.section-cta-glow {
    padding: 160px 0;
    background: white;
}

@media (max-width: 768px) {
    .grid-bento {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .card-wide {
        flex-direction: column;
    }

    .card-visual-abstract {
        display: none;
    }
}

/* Video Section */
.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.video-card {
    text-align: left;
}

.video-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    position: relative;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    margin-bottom: 16px;
    position: relative;
}

.video-thumb:hover {
    transform: scale(1.03);
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-btn::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-left: 14px solid white;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
    margin-left: 4px;
}

.video-card h4 {
    font-size: 18px;
    margin-bottom: 4px;
    color: var(--text-main);
}

.video-sub {
    font-size: 14px;
    color: var(--text-muted);
}

.text-dark {
    color: #1d1d1f;
}

@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
}