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

:root {
    /* Light mode (default) */
    --black: #1d1d1f;
    --gray-900: #333336;
    --gray-600: #6e6e73;
    --gray-400: #a1a1a6;
    --gray-200: #d2d2d7;
    --gray-100: #f5f5f7;
    --white: #ffffff;
    --surface: #f5f5f7;
    --surface-elevated: #ffffff;
    --accent: #0071e3;
    --accent-hover: #0077ed;
    --green: #34c759;
    --border: rgba(0, 0, 0, 0.1);
    --header-bg: rgba(255, 255, 255, 0.8);
    --header-bg-scroll: rgba(255, 255, 255, 0.95);
    --hero-gradient-start: #ffffff;
    --hero-gradient-end: #f5f5f7;
    --shadow-color: rgba(0, 0, 0, 0.15);
    --logo-invert: 0;
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
    :root {
        --black: #e5e5e7;
        --gray-900: #d1d1d6;
        --gray-600: #a1a1a6;
        --gray-400: #6e6e73;
        --gray-200: #3a3a3c;
        --gray-100: #1c1c1e;
        --white: #000000;
        --surface: #1c1c1e;
        --surface-elevated: #2c2c2e;
        --accent: #0a84ff;
        --accent-hover: #409cff;
        --green: #30d158;
        --border: rgba(255, 255, 255, 0.1);
        --header-bg: rgba(0, 0, 0, 0.8);
        --header-bg-scroll: rgba(0, 0, 0, 0.95);
        --hero-gradient-start: #000000;
        --hero-gradient-end: #1c1c1e;
        --shadow-color: rgba(0, 0, 0, 0.5);
        --logo-invert: 1;
    }
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--white);
    color: var(--black);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3 {
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: 1.25rem;
}

.accent {
    font-family: 'Instrument Serif', Georgia, serif;
    font-style: italic;
    font-weight: 400;
}

.gradient-highlight {
    background: linear-gradient(90deg, var(--accent), var(--green), #5856d6, #ff6b6b, var(--accent));
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientWave 4s ease-in-out infinite;
}

@keyframes gradientWave {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 980px;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent-hover);
}

.btn-secondary {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--gray-200);
}

.btn-secondary:hover {
    background: var(--surface);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--header-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    padding: 4px 0;
}

.logo img {
    height: 22px;
    width: auto;
    filter: invert(var(--logo-invert));
}

.nav a {
    color: var(--gray-600);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav a:hover {
    color: var(--black);
}

/* Hero */
.hero {
    min-height: 100vh;
    padding: 100px 0 40px;
    text-align: center;
    background: linear-gradient(180deg, var(--hero-gradient-start) 0%, var(--hero-gradient-end) 100%);
    overflow: visible;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero .container {
    overflow: visible;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--surface-elevated);
    border: 1px solid var(--border);
    border-radius: 980px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-600);
    margin-bottom: 24px;
}

.eyebrow-dot {
    width: 8px;
    height: 8px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}

.hero h1 {
    margin-bottom: 24px;
    color: var(--black);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto 24px;
    line-height: 1.6;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Hero Arrow */
.hero-arrow {
    margin: 20px auto 10px;
    width: 24px;
    height: 70px;
}

.hero-arrow svg {
    width: 100%;
    height: 100%;
}

.arrow-line {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: drawArrow 1.5s ease-out forwards;
}

.arrow-head {
    opacity: 0;
    animation: fadeIn 0.3s ease-out 1.2s forwards, bounceArrow 2s ease-in-out infinite 1.5s;
}

@keyframes drawArrow {
    to { stroke-dashoffset: 0; }
}

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

@keyframes bounceArrow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* Hero Device */
.hero-device {
    position: relative;
    margin: 0 auto;
    max-width: 500px;
}

.mac-mini {
    width: 100%;
    height: auto;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 30px 60px var(--shadow-color));
    animation: floatDevice 5s ease-in-out infinite;
}

@keyframes floatDevice {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.device-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140%;
    height: 140%;
    background: radial-gradient(ellipse at center, rgba(0, 113, 227, 0.1) 0%, transparent 70%);
    z-index: 1;
}

.device-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    padding: 10px 20px;
    background: var(--surface-elevated);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-600);
    box-shadow: 0 4px 12px var(--shadow-color);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

/* Task Notifications */
.notification-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 100;
}

.task-notification {
    position: absolute;
    background: var(--surface-elevated);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px 20px;
    width: 300px;
    box-shadow: 0 8px 32px var(--shadow-color), 0 0 0 1px var(--border);
    pointer-events: auto;
    opacity: 0;
    transform-origin: center center;
}

.task-notification.left {
    right: calc(100% + 30px);
    top: 0;
}

.task-notification.right {
    left: calc(100% + 30px);
    top: 10%;
}

.task-notification.left-bottom {
    right: calc(100% + 30px);
    top: 40%;
}

.task-notification.right-bottom {
    left: calc(100% + 30px);
    top: 50%;
}

/* Genie animation */
@keyframes genieIn {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(30px);
        filter: blur(8px);
    }
    60% {
        opacity: 1;
        filter: blur(0);
    }
    80% {
        transform: scale(1.02) translateY(-2px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0);
    }
}

@keyframes genieOut {
    0% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0);
    }
    100% {
        opacity: 0;
        transform: scale(0.5) translateY(20px);
        filter: blur(8px);
    }
}

.notification-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.notification-icon {
    width: 32px;
    height: 32px;
    background: var(--surface);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.notification-icon.success {
    background: rgba(52, 199, 89, 0.15);
}

.notification-meta {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--black);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
}

.notification-title .check-badge {
    width: 14px;
    height: 14px;
    background: var(--green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.5rem;
    color: #fff;
    flex-shrink: 0;
}

.notification-time {
    font-size: 0.6875rem;
    color: var(--gray-400);
    text-align: left;
}

.notification-body {
    font-size: 0.8125rem;
    color: var(--gray-600);
    line-height: 1.5;
    text-align: left;
}

/* Sections */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-tag {
    display: inline-block;
    padding: 6px 14px;
    background: var(--surface);
    border-radius: 980px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.section-header h2 {
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--gray-600);
}

/* How it works */
.how-it-works {
    padding: 120px 0;
    background: var(--white);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.step-card {
    text-align: center;
    padding: 40px 32px;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--black);
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 600;
    border-radius: 50%;
    margin-bottom: 24px;
}

.step-card h3 {
    margin-bottom: 12px;
}

.step-card p {
    color: var(--gray-600);
    line-height: 1.6;
}

/* Use cases */
.use-cases {
    padding: 120px 0;
    background: var(--surface);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.case-card {
    background: var(--surface-elevated);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s;
}

.case-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px var(--shadow-color);
}

.case-icon {
    font-size: 2rem;
    margin-bottom: 20px;
}

.case-card h3 {
    margin-bottom: 12px;
}

.case-card p {
    color: var(--gray-600);
    line-height: 1.6;
}

/* Security */
.security {
    padding: 120px 0;
    background: var(--white);
}

.security-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.security-content h2 {
    margin-bottom: 24px;
}

.security-content > p {
    font-size: 1.125rem;
    color: var(--gray-600);
    margin-bottom: 32px;
    line-height: 1.6;
}

.security-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.security-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    color: var(--gray-900);
}

.check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--green);
    color: #fff;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 600;
}

.security-visual {
    display: flex;
    justify-content: center;
}

.security-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px;
    width: 100%;
    max-width: 360px;
}

.security-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
    font-weight: 600;
}

.security-icon {
    font-size: 1.5rem;
}

.security-card-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.security-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-label {
    color: var(--gray-600);
    font-size: 0.875rem;
}

.stat-value {
    font-weight: 500;
    font-size: 0.9375rem;
}

.stat-value.online {
    color: var(--green);
}

/* CTA Section */
.cta-section {
    padding: 120px 0;
    background: var(--surface);
}

.cta-inner {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-inner h2 {
    margin-bottom: 16px;
}

.cta-inner > p {
    font-size: 1.125rem;
    color: var(--gray-600);
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    padding: 60px 0 40px;
    background: var(--white);
    border-top: 1px solid var(--border);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
}

.footer-brand img {
    height: 24px;
    margin-bottom: 12px;
    filter: invert(var(--logo-invert));
}

.footer-brand p {
    color: var(--gray-600);
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    color: var(--gray-600);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--black);
}

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

.footer-bottom p {
    color: var(--gray-400);
    font-size: 0.8125rem;
}

/* Responsive */
@media (max-width: 1200px) {
    .task-notification {
        width: 260px;
        padding: 14px 16px;
    }
    
    .task-notification.left,
    .task-notification.left-bottom {
        right: calc(100% + 20px);
    }
    
    .task-notification.right,
    .task-notification.right-bottom {
        left: calc(100% + 20px);
    }
}

@media (max-width: 968px) {
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .cases-grid {
        grid-template-columns: 1fr;
    }

@media (min-width: 769px) and (max-width: 968px) {
    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
    
    .security-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .security-visual {
        order: -1;
    }
    
    .task-notification {
        display: none;
    }
}

@media (max-width: 768px) {
    .header .container {
        height: 56px;
    }
    
    .nav {
        display: none;
    }
    
    .hero {
        padding: 120px 0 60px;
    }
    
    .hero-ctas {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-large {
        width: 100%;
        max-width: 300px;
    }
    
    .footer-inner {
        flex-direction: column;
        gap: 32px;
    }
    
    .footer-links {
        flex-wrap: wrap;
        gap: 16px 32px;
    }
}

/* Download Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 24px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    background: var(--surface-elevated);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 48px 40px;
    max-width: 460px;
    width: 100%;
    text-align: center;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.2);
}

.modal-overlay.active .modal-card {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: var(--surface);
    border-radius: 50%;
    font-size: 1.25rem;
    color: var(--gray-600);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
    line-height: 1;
}

.modal-close:hover {
    background: var(--gray-200);
    color: var(--black);
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--black);
}

.modal-body {
    font-size: 0.9375rem;
    color: var(--gray-600);
    line-height: 1.5;
    margin-bottom: 24px;
}

/* Download modal buttons */
.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    text-align: left;
    text-decoration: none;
    border-radius: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--black);
    transition: background 0.15s ease, border-color 0.15s ease;
}

.download-btn:hover {
    background: var(--gray-100, #f5f5f7);
    border-color: var(--gray-400, #d1d1d6);
}

.dl-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    color: var(--gray-600);
}

.dl-text {
    flex: 1;
    line-height: 1.3;
}

.dl-text strong {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
}

.dl-text span {
    font-size: 0.8125rem;
    color: var(--gray-500);
}

.rec-badge {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--gray-500);
    background: var(--gray-100, #f5f5f7);
    border: 1px solid var(--border);
    padding: 1px 7px;
    border-radius: 10px;
    vertical-align: middle;
    margin-left: 4px;
    line-height: 1.5;
}

.dl-arrow {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--gray-400);
    transition: transform 0.15s ease;
}

.download-btn:hover .dl-arrow {
    transform: translateX(2px);
    color: var(--gray-600);
}

.modal-note {
    font-size: 0.75rem;
    color: var(--gray-500);
    opacity: 0.7;
    margin-top: 16px;
}
