:root {
    /* iOS/Fluent Color System */
    --system-background: #fbfbfd;
    --system-text-primary: #1d1d1f;
    --system-text-secondary: #86868b;
    --accent-color: #007AFF;
    /* iOS Blue */
    --accent-gradient: linear-gradient(135deg, #007AFF, #5856D6);

    /* Acrylic Materials */
    --glass-background: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);

    /* Typography */
    --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
    :root {
        /* Leaving preparedness for dark mode, but user requested Bright Tone specifically. 
            So we largely ignore this for the specific user request, but good practice to have variables ready 
            if we wanted to support it. For now, we enforce light as requested. */
    }
}

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

body {
    font-family: var(--font-stack);
    background-color: var(--system-background);
    color: var(--system-text-primary);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Fluid Mesh Gradient Background */
.mesh-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background:
        radial-gradient(at 0% 0%, hsla(253, 16%, 7%, 1) 0, transparent 50%),
        radial-gradient(at 50% 0%, hsla(225, 39%, 30%, 1) 0, transparent 50%),
        radial-gradient(at 100% 0%, hsla(339, 49%, 30%, 1) 0, transparent 50%);
    background: #fbfbfd;
    /* Fallback */
}

.mesh-blob {
    position: absolute;
    filter: blur(90px);
    opacity: 0.5;
    animation: drift 25s infinite alternate ease-in-out;
    border-radius: 50%;
}

.mesh-blob.blue {
    background: #c3e4ff;
    width: 60vw;
    height: 60vw;
    top: -10%;
    left: -10%;
}

.mesh-blob.purple {
    background: #e9d5ff;
    width: 50vw;
    height: 50vw;
    bottom: -10%;
    right: -10%;
    animation-delay: -5s;
}

.mesh-blob.mint {
    background: #d1fae5;
    width: 40vw;
    height: 40vw;
    top: 30%;
    left: 30%;
    opacity: 0.3;
    animation-delay: -10s;
}

@keyframes drift {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(30px, 20px);
    }
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
    z-index: 10;
}

.logo {
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--system-text-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.lang-switch {
    display: flex;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    padding: 2px;
}

.lang-btn {
    border: none;
    background: transparent;
    padding: 4px 12px;
    border-radius: 16px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--system-text-secondary);
    transition: all 0.2s ease;
}

.lang-btn.active {
    background: #fff;
    color: #000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.nav-right-group {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-icon-link {
    color: var(--system-text-primary);
    opacity: 0.6;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.nav-icon-link:hover {
    opacity: 1;
    transform: translateY(-1px);
}

/* Main Container */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

/* Hero Typography */
.hero-text {
    text-align: center;
    margin-bottom: 4rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    background: linear-gradient(180deg, #1d1d1f 0%, #434344 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--system-text-secondary);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 400;
}

/* Frosted Glass Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    width: 100%;
}

.glass-card {
    background: var(--glass-background);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--glass-shadow);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
}

.card-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(0, 0, 0, 0.04);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--system-text-secondary);
}

.card-icon {
    width: 56px;
    height: 56px;
    background: #fff;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    color: #000;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.card-desc {
    font-size: 1rem;
    color: var(--system-text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Button & Links */
.action-button {
    background: #000;
    color: #fff;
    border: none;
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.action-button:hover {
    transform: scale(1.02);
    background: #333;
}

.action-button svg {
    width: 20px;
    height: 20px;
}

.secondary-link {
    font-size: 0.9rem;
    color: var(--system-text-secondary);
    text-decoration: none;
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.secondary-link:hover {
    color: var(--system-text-primary);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

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

/* Wizard Layout */
.wizard-container {
    width: 100%;
    max-width: 700px;
    position: relative;
    overflow: hidden;
    /* Hide overflowing steps during transition */
    min-height: 600px;
    /* Prevent height jumping */
    display: flex;
    flex-direction: column;
}

.step-content {
    display: none;
    flex-direction: column;
    align-items: center;
    width: 100%;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: translateX(20px);
}

.step-content.active {
    display: flex;
    opacity: 1;
    transform: translateX(0);
}

/* Intro Animation */
.intro-visual {
    width: 200px;
    height: 200px;
    margin-bottom: 2rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.anim-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.floating-circle {
    fill: var(--accent-color);
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.floating-icon-main {
    animation: pulse 3s ease-in-out infinite;
    transform-origin: center;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

/* Navigation Buttons */
.wizard-nav {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 2rem;
    padding: 0 1rem;
}

.nav-btn {
    padding: 12px 24px;
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    color: var(--system-text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}

.nav-btn.primary {
    background: #000;
    color: #fff;
    border: none;
}

.nav-btn.primary:hover {
    background: #333;
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Step Badge Refined */
.step-badge {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    width: 32px;
    height: 32px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(0, 122, 255, 0.3);
    z-index: 2;
}

/* --- Platform Specific Visibility --- */
.show-windows,
.show-mac,
.show-mobile {
    display: none !important;
}

body[data-platform="windows"] .show-windows {
    display: block !important;
}

body[data-platform="mac"] .show-mac {
    display: block !important;
}

body[data-platform="mobile"] .show-mobile {
    display: block !important;
}

body[data-platform="mobile"] .show-windows,
body[data-platform="mobile"] .show-mac {
    display: none !important;
}

/* Fallback if JS fails or default */
body:not([data-platform]) .show-windows {
    display: block !important;
}

/* --- Terminal Style --- */
.mac-terminal {
    background: #1e1e1e;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    margin-top: 2rem;
    overflow: hidden;
    font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
    width: 100%;
}

.mac-terminal-header {
    background: #2d2d2d;
    padding: 8px 12px;
    display: flex;
    gap: 6px;
    align-items: center;
    border-bottom: 1px solid #333;
}

.mac-terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot-red {
    background: #ff5f56;
}

.dot-yellow {
    background: #ffbd2e;
}

.dot-green {
    background: #27c93f;
}

.mac-terminal-title {
    color: #ccc;
    font-size: 12px;
    flex-grow: 1;
    text-align: center;
    margin-right: 50px;
    /* balance dots */
    font-weight: 500;
}

.mac-terminal-body {
    padding: 20px;
    position: relative;
}

.mac-terminal-desc {
    color: #aaa;
    font-size: 0.9rem;
    margin-bottom: 12px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.4;
}

.mac-terminal-code-box {
    background: #000;
    padding: 12px;
    border-radius: 6px;
    position: relative;
    border: 1px solid #333;
}

.mac-terminal-code {
    color: #00ff00;
    font-size: 0.85rem;
    line-height: 1.5;
    word-break: break-all;
    white-space: pre-wrap;
    display: block;
    margin-right: 40px;
    /* space for copy button */
}

.copy-btn {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.copy-btn.copied {
    background: #27c93f;
    color: #000;
}

/* Mobile Warning */
.mobile-warning {
    color: #FF3B30;
    padding: 1.5rem;
    background: rgba(255, 59, 48, 0.1);
    border-radius: 12px;
    width: 100%;
    border: 1px solid rgba(255, 59, 48, 0.2);
    font-weight: 500;
}