:root {
    /* Precise macOS/iOS App Palette */
    --primary: #007aff;
    /* Apple Blue */
    --primary-hover: #0062cc;
    --primary-light: #e5f1ff;

    --accent-teal: #5ac8fa;
    /* Apple Teal */
    --accent-orange: #ff9500;
    /* Apple Orange */
    --accent-glow: rgba(90, 200, 250, 0.2);

    --bg-base: #f5f5f7;
    /* Apple Neutral Background */
    --bg-white: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.75);

    --text-main: #1d1d1f;
    /* SF Pro Black */
    --text-body: #424245;
    /* SF Pro Grey */
    --text-muted: #86868b;
    /* SF Pro Muted */
    --text-white: #ffffff;

    --border-light: rgba(0, 0, 0, 0.1);
    --border-medium: rgba(0, 0, 0, 0.2);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12);
    --shadow-premium: 0 24px 64px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 30px rgba(90, 200, 250, 0.4);

    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;

    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 28px;
    --radius-full: 9999px;

    --transition-speed: 0.3s;
}

/* Dark Mode Overrides */
.dark-mode {
    --bg-base: #000000;
    --bg-white: #1c1c1e;
    --bg-glass: rgba(28, 28, 30, 0.8);
    
    --text-main: #ffffff;
    --text-body: #ebebf5;
    --text-muted: #8e8e93;
    
    --border-light: rgba(255, 255, 255, 0.12);
    --border-medium: rgba(255, 255, 255, 0.24);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.8);
    --shadow-premium: 0 24px 64px rgba(0, 0, 0, 1.0);
    
    --primary-light: rgba(0, 122, 255, 0.15);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-base);
    color: var(--text-body);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

/* Typography */
h1,
h2,
h3,
h4 {
    color: var(--text-main);
    font-weight: 700;
    line-height: 1.1;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.25rem);
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-body);
    margin-top: 1rem;
}

/* Layout */
.container {
    margin: 0 auto;
    max-width: 1200px;
    padding: 0 32px;
}

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

section {
    padding: 120px 0;
}

.section-header {
    margin-bottom: 64px;
    max-width: 800px;
}

.eyebrow {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 800;
    color: var(--accent-orange);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
    position: relative;
    padding-left: 40px;
}

.eyebrow::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 30px;
    height: 2px;
    background: var(--accent-orange);
    transform: translateY(-50%);
}

/* Premium Header */
.site-header {
    background: var(--bg-glass);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-bottom: 1px solid var(--border-light);
    height: 80px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    align-items: center;
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.logo {
    align-items: center;
    color: var(--text-main);
    display: flex;
    font-size: 1.25rem;
    font-weight: 800;
    gap: 12px;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.logo:hover {
    transform: scale(1.02);
}

.logo img {
    height: 36px;
    width: 36px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

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

.nav-links a {
    color: var(--text-body);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent-teal));
    transition: width 0.2s ease;
}

.nav-links a:hover {
    color: var(--text-main);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Buttons */
.btn {
    align-items: center;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: inline-flex;
    font-size: 0.9375rem;
    font-weight: 700;
    gap: 10px;
    justify-content: center;
    padding: 14px 28px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #00aaff);
    color: var(--text-white);
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 122, 255, 0.45);
}

.btn-secondary {
    background-color: var(--primary-light);
    color: var(--primary);
}

.btn-secondary:hover {
    background-color: var(--border-light);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 1.5px solid var(--border-medium);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--primary);
    background: var(--bg-white);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    padding: 100px 0 140px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 50%;
    height: 60%;
    background: radial-gradient(circle, rgba(212, 163, 115, 0.08) 0%, transparent 70%);
    z-index: 0;
}

.hero-grid {
    align-items: center;
    display: grid;
    gap: 80px;
    grid-template-columns: 1.1fr 0.9fr;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 600px;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-body);
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 20px;
    margin-bottom: 48px;
}

.hero-badges {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-muted);
}

.badge-item i {
    color: var(--accent-teal);
    filter: drop-shadow(0 0 5px rgba(13, 148, 136, 0.3));
}

.demo-frame {
    background: var(--bg-white);
    padding: 0;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-premium);
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.demo-video {
    width: 100%;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    display: block;
    background: #000;
}

/* Comparison Slider */
.comparison-section {
    background: var(--bg-base);
    padding: 140px 0;
}

.comparison-container {
    max-width: 1000px;
    margin: 40px auto 0;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-premium);
    aspect-ratio: 16 / 10;
    border: 1px solid var(--border-light);
    background: var(--bg-white);
    display: flex;
    flex-direction: column;
    transition: opacity 0.3s ease;
}

.window-header {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    height: 40px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    border-bottom: 1px solid var(--border-light);
    flex-shrink: 0;
}

.window-dots {
    display: flex;
    gap: 8px;
}

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

.dot.red {
    background: #ff5f57;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #28c940;
}

.window-title {
    flex: 1;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-right: 48px;
    /* Offset to center title relative to window */
}

.comparison-tabs {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
}

.tab-btn {
    background: var(--bg-white);
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-full);
    padding: 10px 24px;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.tab-btn i {
    width: 16px;
    height: 16px;
}

.tab-btn:hover {
    border-color: var(--border-medium);
    color: var(--text-main);
}

.tab-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(124, 92, 78, 0.2);
}

.comparison-slider {
    position: relative;
    width: 100%;
    height: calc(100% - 40px);
    cursor: ew-resize;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
}

.image-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.image-layer img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    -webkit-user-drag: none;
}

.layer-after {
    z-index: 2;
    clip-path: inset(0 50% 0 0);
}

.slider-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: white;
    z-index: 10;
    transform: translateX(-50%);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.8), 0 0 30px var(--primary);
}

.slider-button {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 44px;
    height: 44px;
    background: white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(2, 132, 199, 0.3);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.slider-button::before {
    content: '◀';
    margin-right: 2px;
    font-size: 10px;
}

.slider-button::after {
    content: '▶';
    margin-left: 2px;
    font-size: 10px;
}

/* Feature Cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.feature-card {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 48px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    transition: all 0.4s ease;
    box-shadow: var(--shadow-sm);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-light), var(--bg-white));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    color: var(--primary);
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.8), 0 4px 10px rgba(0, 122, 255, 0.1);
}

/* Workflow - Sticky Scroll */
.workflow-container {
    display: flex;
    gap: 60px;
    position: relative;
}

.workflow-visual {
    flex: 0.8;
    height: calc(100vh - 160px);
    position: sticky;
    top: 120px;
    display: flex;
    align-items: center;
}

.visual-stack {
    width: 100%;
    aspect-ratio: 16 / 10;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 0;
    box-shadow: var(--shadow-premium);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-light);
}

.workflow-img {
    width: 100%;
    height: calc(100% - 40px);
    object-fit: cover;
    border-radius: 0;
    position: absolute;
    top: 40px;
    left: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.workflow-img.active {
    opacity: 1;
}

.workflow-content {
    flex: 0.2;
    padding: 35vh 0 20vh; /* Adjusted to align first step to center */
}

.step-block {
    margin-bottom: 40vh;
    opacity: 0.3;
    transition: all 0.5s ease;
    padding: 20px 0;
}

.step-block.active {
    opacity: 1;
}

.step-indicator {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--accent-orange);
    text-transform: uppercase;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.step-indicator::after {
    content: '';
    height: 2px;
    flex: 1;
    background: var(--border-light);
}

/* Pricing Cards */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 40px;
    max-width: 900px;
    margin: 0 auto 60px;
}

.pricing-card {
    background: var(--bg-white);
    padding: 56px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    transition: all 0.4s ease;
}

.pricing-card.featured {
    background: var(--bg-white);
    color: var(--text-main);
    border: 2px solid var(--primary);
    transform: scale(1.05);
    box-shadow: var(--shadow-premium), 0 0 40px rgba(0, 122, 255, 0.15);
    position: relative;
    z-index: 1;
}

.pricing-card.featured h3,
.pricing-card.featured .price {
    color: var(--text-main);
}

.pricing-card.featured p,
    border: 2px solid var(--primary);
    box-shadow: var(--shadow-premium);
    z-index: 10;
}

.popular-badge {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), #00aaff);
    color: white;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.price {
    font-size: 3.5rem;
    font-weight: 800;
    margin: 24px 0;
    display: flex;
    align-items: baseline;
    gap: 8px;
    color: var(--text-main);
}

.price span {
    font-size: 1rem;
    color: var(--text-muted);
}

.feature-list {
    list-style: none;
    margin: 32px 0 48px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 0.9375rem;
}

.check-icon {
    color: #10b981;
    width: 20px;
    height: 20px;
}

.info-icon {
    color: var(--text-muted);
    width: 20px;
    height: 20px;
}

/* Theme Toggle Button */
.theme-toggle {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    color: var(--text-main);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.theme-toggle:hover {
    background: var(--bg-base);
    border-color: var(--border-medium);
    transform: scale(1.05);
}

.theme-toggle i {
    width: 20px;
    height: 20px;
}

.sun-icon {
    display: none;
}

.moon-icon {
    display: block;
}

.dark-mode .sun-icon {
    display: block;
}

.dark-mode .moon-icon {
    display: none;
}

/* Table Support */
.compare-container table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

th,
td {
    padding: 24px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

th {
    background: var(--primary-light);
    font-weight: 700;
    color: var(--primary);
}

/* Support Form */
.support-wrapper {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 80px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-premium);
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid var(--border-light);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 700;
    font-size: 0.875rem;
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 16px;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-glow);
}

/* Content Shell for Policy/Doc pages */
.content-shell {
    padding: 64px;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.content-shell h3 {
    margin-top: 48px;
    margin-bottom: 16px;
    font-size: 1.5rem;
}

.content-shell h3:first-child {
    margin-top: 0;
}

.content-shell p {
    margin-bottom: 24px;
    color: var(--text-body);
}

.content-shell ul {
    margin-bottom: 32px;
    padding-left: 24px;
    list-style-type: disc;
}

.content-shell li {
    margin-bottom: 8px;
    color: var(--text-body);
}

@media (max-width: 768px) {
    .content-shell {
        padding: 32px 24px;
    }
}

/* Footer */
footer {
    padding: 80px 0;
    border-top: 1px solid var(--border-light);
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Q&A Page Styles */
.qa-hero {
    padding: 80px 0 40px;
    background-color: var(--bg-base);
    position: relative;
}

.search-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto 32px;
}

.search-container i.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    width: 20px;
    height: 20px;
}

.search-container .qa-search-input {
    width: 100%;
    padding: 18px 20px 18px 56px;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-md);
    background: var(--bg-white);
    color: var(--text-main);
    font-family: inherit;
    font-size: 1.125rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-sm);
}

.search-container .qa-search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--shadow-md), 0 0 0 4px var(--primary-light);
}

.category-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 48px;
}

.category-tab {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    padding: 10px 24px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.category-tab:hover {
    border-color: var(--border-medium);
    color: var(--text-main);
}

.category-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.2);
}

.qa-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 80px;
}

.qa-item {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.qa-item:hover {
    border-color: var(--border-medium);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.qa-item.active {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.qa-trigger {
    width: 100%;
    padding: 24px 32px;
    background: transparent;
    border: none;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: inherit;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-main);
    gap: 24px;
}

.qa-trigger i.chevron-icon {
    flex-shrink: 0;
    color: var(--text-muted);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s;
    width: 20px;
    height: 20px;
}

.qa-item.active .qa-trigger i.chevron-icon {
    transform: rotate(180deg);
    color: var(--primary);
}

.qa-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.qa-content-inner {
    padding: 0 32px 32px;
    font-size: 0.975rem;
    color: var(--text-body);
    line-height: 1.7;
}

.qa-content-inner p {
    margin-bottom: 16px;
}

.qa-content-inner p:last-child {
    margin-bottom: 0;
}

.qa-content-inner ul {
    margin-top: 12px;
    margin-bottom: 16px;
    padding-left: 20px;
}

.qa-content-inner li {
    margin-bottom: 8px;
}

.qa-no-results {
    text-align: center;
    padding: 48px;
    color: var(--text-muted);
    font-size: 1.125rem;
    display: none;
}

.qa-item.hidden {
    display: none !important;
}

/* Animations */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 992px) {

    .hero-grid,
    .workflow-container {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .hero-content {
        text-align: center;
        margin: 0 auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .workflow-visual {
        height: 400px;
        position: relative;
        top: 0;
    }

    .workflow-content {
        padding: 0;
    }

    .step-block {
        margin-bottom: 80px;
        opacity: 1;
    }

    .pricing-card.featured {
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .footer-grid {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }
}