/* =====================================================
   ZEM CLOUD - Apple-Inspired Design System
   Minimalist, elegant, and focused on content
   ===================================================== */

/* CSS Custom Properties */
:root {
    /* Colors - Apple Minimalist Palette */
    --color-black: #000000;
    --color-white: #ffffff;
    --color-gray-1: #f5f5f7;
    --color-gray-2: #e8e8ed;
    --color-gray-3: #d2d2d7;
    --color-gray-4: #a1a1a6;
    --color-gray-5: #86868b;
    --color-gray-6: #6e6e73;
    --color-gray-7: #424245;
    --color-blue: #0071e3;
    --color-blue-hover: #0077ed;

    /* Backgrounds */
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f7;
    --bg-card: #ffffff;
    --text-primary: #000000;
    --text-secondary: #424245;
    --text-tertiary: #86868b;

    /* Borders */
    --border-color: #d2d2d7;

    /* Primary color alias */
    --color-primary: #0071e3;

    /* Shadows - Minimal */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.18);

    /* Spacing - 8px base unit */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 80px;
    --space-5xl: 96px;

    /* Typography */
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
    --font-size-sm: 14px;
    --font-size-base: 16px;
    --font-size-lg: 17px;
    --font-size-xl: 21px;
    --font-size-2xl: 28px;
    --font-size-3xl: 32px;
    --font-size-4xl: 40px;
    --font-size-5xl: 48px;
    --font-size-6xl: 56px;

    /* Font Weights */
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;

    /* Border Radius - Apple Minimal */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 20px;
    --radius-full: 9999px;

    /* Additional Font Weights */
    --font-weight-bold: 700;

    /* Transitions - Quick and smooth */
    --transition-fast: 200ms ease-in-out;
    --transition-base: 300ms ease-in-out;

    /* Z-Index */
    --z-sticky: 1000;
    --z-modal: 2000;

    /* Container */
    --container-max: 1200px;
    --header-height: 52px;
}

/* Dark Theme */
[data-theme="dark"] {
    --bg-primary: #000000;
    --bg-secondary: #000000;
    --bg-card: #000000;
    --text-primary: #f5f5f7;
    --text-secondary: #e8e8ed;
    --text-tertiary: #a1a1a6;
    --border-color: #38383a;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
}

/* =====================================================
   Reset & Base Styles
   ===================================================== */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Prevent white flash on page load */
    background-color: #000000;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-blue);
    text-decoration: none;
    transition: opacity var(--transition-fast);
}

a:hover {
    opacity: 0.8;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul, ol {
    list-style: none;
}

/* =====================================================
   Typography
   ===================================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-semibold);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: var(--font-size-6xl);
}

h2 {
    font-size: var(--font-size-4xl);
}

h3 {
    font-size: var(--font-size-2xl);
}

p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* =====================================================
   Layout & Container
   ===================================================== */

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

section {
    padding: var(--space-5xl) 0;
}

/* =====================================================
   Header
   ===================================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-sticky);
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    transition: all var(--transition-fast);
}

[data-theme="dark"] .header {
    background-color: rgba(0, 0, 0, 0.95);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

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

.logo {
    display: flex;
    align-items: center;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 22px;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    text-decoration: none;
}

.logo-zen {
    font-weight: 300;
}

.logo-uem {
    font-weight: 700;
}

.logo-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.nav {
    display: flex;
    align-items: center;
    gap: var(--space-2xl);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-link {
    font-size: var(--font-size-sm);
    color: var(--text-primary);
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.theme-toggle {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    opacity: 0.7;
    transition: all var(--transition-fast);
}

.theme-toggle:hover {
    opacity: 1;
    background-color: var(--bg-secondary);
}

.theme-toggle svg {
    width: 16px;
    height: 16px;
}

.theme-toggle .icon-moon {
    display: block;
}

.theme-toggle .icon-sun {
    display: none;
}

[data-theme="dark"] .theme-toggle .icon-moon {
    display: none;
}

[data-theme="dark"] .theme-toggle .icon-sun {
    display: block;
}

.btn-nav {
    padding: var(--space-sm) var(--space-lg);
    font-size: var(--font-size-sm);
}

/* Header CTA - text only, no background */
.nav-actions .btn-primary.btn-nav {
    background: none;
    color: var(--color-blue);
    font-weight: var(--font-weight-semibold);
    padding: var(--space-sm) 0;
}

.nav-actions .btn-primary.btn-nav:hover {
    opacity: 0.8;
    transform: none;
}

.menu-toggle {
    display: none;
    width: 32px;
    height: 32px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 1.5px;
    background-color: var(--text-primary);
    transition: all var(--transition-fast);
}

/* Hamburger to X animation */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

/* =====================================================
   Buttons
   ===================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 12px 24px;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--color-black);
    color: var(--color-white);
}

.btn-primary:hover {
    opacity: 0.85;
    transform: scale(0.98);
}

.btn-secondary {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background-color: var(--color-gray-2);
    color: #1d1d1f;
}

.btn-link {
    background: none;
    color: var(--color-blue);
    padding: 0;
    font-weight: var(--font-weight-medium);
}

.btn-link:hover {
    opacity: 0.7;
}

.btn-full {
    width: 100%;
}

.btn-large {
    padding: 16px 32px;
    font-size: var(--font-size-base);
}

.btn-small {
    padding: 8px 16px;
    font-size: var(--font-size-xs);
}

.btn-danger {
    background-color: #dc3545;
    color: var(--color-white);
}

.btn-danger:hover {
    background-color: #c82333;
    transform: scale(0.98);
}

/* =====================================================
   Hero Section
   ===================================================== */

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: calc(var(--header-height) + var(--space-5xl));
    padding-bottom: var(--space-5xl);
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0;
}

.hero-content {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(48px, 8vw, 72px);
    font-weight: var(--font-weight-semibold);
    letter-spacing: -0.03em;
    margin-bottom: var(--space-lg);
    line-height: 1.1;
}

.hero-logo {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(56px, 10vw, 96px);
    letter-spacing: -0.04em;
}

.hero-logo .logo-zen {
    font-weight: 300;
    color: var(--text-primary);
}

.hero-logo .logo-uem {
    font-weight: 700;
    background: linear-gradient(135deg, #0071e3, #00c7be);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(24px, 5vw, 32px);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
    letter-spacing: -0.02em;
}

.hero-description {
    font-size: var(--font-size-xl);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto var(--space-xl);
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
}

.hero-note {
    font-size: var(--font-size-sm);
    color: var(--text-tertiary);
    margin-top: var(--space-xl);
}

.hero-visual {
    width: 100%;
    max-width: 1000px;
    margin: var(--space-5xl) auto 0;
    padding: 0 var(--space-lg);
    position: relative;
    z-index: 1;
}

.device-mockup {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .device-mockup {
    background: #1d1d1f;
    border-color: rgba(255, 255, 255, 0.08);
}

.mockup-screen {
    aspect-ratio: 16/10;
}

.dashboard-preview {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.dash-header {
    display: flex;
    align-items: center;
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-secondary);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .dash-header {
    background: #2d2d2f;
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.dash-nav {
    display: flex;
    gap: var(--space-sm);
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
}

.nav-dot:first-child {
    background: #ff5f57;
}

.nav-dot:nth-child(2) {
    background: #febc2e;
}

.nav-dot:nth-child(3) {
    background: #28c840;
}

.dash-title {
    margin-left: var(--space-lg);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--text-tertiary);
}

.dash-content {
    flex: 1;
    display: flex;
}

.dash-sidebar {
    width: 60px;
    background: var(--bg-secondary);
    border-right: 1px solid rgba(0, 0, 0, 0.08);
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

[data-theme="dark"] .dash-sidebar {
    background: #2d2d2f;
    border-right-color: rgba(255, 255, 255, 0.08);
}

.sidebar-item {
    width: 100%;
    aspect-ratio: 1;
    background: rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-md);
}

.sidebar-item.active {
    background: var(--color-blue);
}

.dash-main {
    flex: 1;
    padding: var(--space-lg);
}

.stat-cards {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.stat-card {
    flex: 1;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

[data-theme="dark"] .stat-card {
    background: #2d2d2f;
}

.stat-icon {
    width: 40px;
    height: 40px;
    background: var(--color-blue);
    border-radius: var(--radius-md);
    opacity: 0.8;
    flex-shrink: 0;
}

.stat-icon.green {
    background: #34c759;
}

.stat-icon.blue {
    background: #5856d6;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    line-height: 1;
}

.stat-label {
    font-size: var(--font-size-sm);
    color: var(--text-tertiary);
}

.endpoint-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.endpoint-row {
    height: 48px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

[data-theme="dark"] .endpoint-row {
    background: #2d2d2f;
}

/* =====================================================
   Features Section
   ===================================================== */

.features-overview {
    background: var(--bg-primary);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-4xl);
}

.section-title {
    margin-bottom: var(--space-lg);
    line-height: 1.2;
}

.section-subtitle {
    font-size: var(--font-size-xl);
    color: var(--text-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3xl);
}

.feature-card {
    background: var(--bg-primary);
    padding: var(--space-2xl);
    text-align: center;
    transition: all var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-8px);
}

.feature-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    width: 32px;
    height: 32px;
    color: var(--color-blue);
    stroke-width: 1.5;
}

.feature-card h3 {
    margin-bottom: var(--space-md);
    font-size: var(--font-size-xl);
}

.feature-card p {
    font-size: var(--font-size-base);
    line-height: 1.6;
}

.features-cta {
    text-align: center;
    margin-top: var(--space-4xl);
}

/* =====================================================
   How It Works Section
   ===================================================== */

.how-it-works {
    background: var(--bg-secondary);
}

.steps-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2xl);
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    max-width: 300px;
}

.step-number {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-black);
    color: var(--color-white);
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-semibold);
    border-radius: 50%;
    margin-bottom: var(--space-lg);
}

[data-theme="dark"] .step-number {
    background: var(--color-white);
    color: var(--color-black);
}

.step-content h3 {
    margin-bottom: var(--space-md);
}

.step-connector {
    width: 80px;
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

[data-theme="dark"] .step-connector {
    background: rgba(255, 255, 255, 0.1);
}

/* =====================================================
   Pricing Section
   ===================================================== */

.pricing-preview {
    background: var(--bg-primary);
}

.pricing-cards {
    display: flex;
    justify-content: center;
    gap: var(--space-2xl);
}

.pricing-card {
    flex: 1;
    max-width: 380px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    position: relative;
    transition: all var(--transition-base);
}

.pricing-card:hover {
    transform: translateY(-8px);
}

.pricing-card.featured {
    background: var(--color-black);
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .pricing-card.featured {
    background: var(--color-white);
    color: var(--color-black);
    border: 1px solid rgba(0, 0, 0, 0.15);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-black);
    color: white;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    padding: 4px 12px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-card.featured .pricing-badge {
    background: var(--color-blue);
}

.pricing-header {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.pricing-header h3 {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--space-sm);
}

.pricing-description {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.pricing-card.featured .pricing-description {
    color: inherit;
    opacity: 0.8;
}

.pricing-amount {
    text-align: center;
    margin-bottom: var(--space-md);
}

.pricing-amount .currency {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    vertical-align: top;
}

.pricing-amount .price {
    font-size: var(--font-size-5xl);
    font-weight: var(--font-weight-semibold);
    line-height: 1;
}

.pricing-amount .period {
    font-size: var(--font-size-base);
    color: var(--text-secondary);
}

.pricing-card.featured .pricing-amount .period {
    color: inherit;
    opacity: 0.8;
}

.pricing-annual {
    text-align: center;
    font-size: var(--font-size-sm);
    color: var(--text-tertiary);
    margin-bottom: var(--space-xl);
}

.pricing-features {
    margin-bottom: var(--space-xl);
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm) 0;
    font-size: var(--font-size-base);
    color: var(--text-secondary);
}

.pricing-card.featured .pricing-features li {
    color: inherit;
    opacity: 0.9;
}

.pricing-features svg {
    width: 20px;
    height: 20px;
    color: var(--color-blue);
    flex-shrink: 0;
}

.pricing-card.featured .pricing-features svg {
    color: var(--color-blue);
}

.pricing-cta {
    text-align: center;
    margin-top: var(--space-4xl);
}

/* =====================================================
   Trust Section
   ===================================================== */

.trust-section {
    background: var(--bg-secondary);
}

.trust-content {
    display: flex;
    align-items: center;
    gap: var(--space-4xl);
}

.trust-text {
    flex: 1;
}

.trust-text h2 {
    margin-bottom: var(--space-lg);
}

.trust-text > p {
    font-size: var(--font-size-xl);
    line-height: 1.6;
    margin-bottom: var(--space-xl);
}

.trust-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.trust-list li {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: var(--font-size-base);
    color: var(--text-secondary);
}

.trust-list svg {
    width: 24px;
    height: 24px;
    color: var(--color-blue);
    flex-shrink: 0;
}

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

.security-graphic {
    width: 300px;
    height: 300px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shield-icon {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-blue);
    border-radius: var(--radius-lg);
    z-index: 1;
}

.shield-icon svg {
    width: 60px;
    height: 60px;
    stroke: white;
}

.orbit {
    position: absolute;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    animation: orbit 20s linear infinite;
}

[data-theme="dark"] .orbit {
    border-color: rgba(255, 255, 255, 0.1);
}

.orbit-1 {
    width: 180px;
    height: 180px;
}

.orbit-2 {
    width: 240px;
    height: 240px;
    animation-direction: reverse;
    animation-duration: 25s;
}

.orbit-3 {
    width: 300px;
    height: 300px;
    animation-duration: 30s;
}

.orbit-dot {
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: var(--color-blue);
    border-radius: 50%;
}

@keyframes orbit {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* =====================================================
   CTA Section
   ===================================================== */

.cta-section {
    background: var(--bg-primary);
    padding: var(--space-5xl) 0;
}

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

.cta-content h2 {
    font-size: var(--font-size-5xl);
    margin-bottom: var(--space-lg);
}

.cta-content > p {
    font-size: var(--font-size-xl);
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
}

/* =====================================================
   Footer
   ===================================================== */

.footer {
    background: var(--bg-secondary);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding: var(--space-4xl) 0 var(--space-2xl);
}

[data-theme="dark"] .footer {
    border-top-color: rgba(255, 255, 255, 0.08);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(4, 1fr);
    gap: var(--space-2xl);
    margin-bottom: var(--space-3xl);
}

.footer-brand {
    max-width: 280px;
}

.footer-brand .logo {
    margin-bottom: var(--space-md);
}

.footer-brand p {
    font-size: var(--font-size-sm);
    color: var(--text-tertiary);
    line-height: 1.6;
}

.footer-col-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
}

.footer-col h4 {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-tertiary);
    margin: 0;
}

/* Hide accordion toggle on desktop */
.footer-accordion-toggle {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    margin: -8px;
    cursor: pointer;
    color: var(--text-tertiary);
    transition: transform 0.3s ease;
}

.footer-accordion-toggle svg {
    display: block;
    transition: transform 0.3s ease;
}

.footer-accordion-toggle[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.footer-col-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col a {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.footer-col a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .footer-bottom {
    border-top-color: rgba(255, 255, 255, 0.08);
}

.footer-bottom p {
    font-size: var(--font-size-sm);
    color: var(--text-tertiary);
}

.footer-social {
    display: flex;
    gap: var(--space-lg);
}

.footer-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--color-gray-1);
    color: var(--text-primary);
}

[data-theme="dark"] .footer-social a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.footer-social svg {
    width: 20px;
    height: 20px;
}

/* =====================================================
   Mobile Navigation
   ===================================================== */

.mobile-nav {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    z-index: 999;
    padding: var(--space-xl);
    flex-direction: column;
    gap: var(--space-lg);
    transform: translateX(100%);
    transition: transform var(--transition-base);
    overflow-y: auto;
}

.mobile-nav.active {
    transform: translateX(0);
}

.mobile-nav a {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
    padding: var(--space-md) 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

/* =====================================================
   Responsive Design
   ===================================================== */

@media (max-width: 1024px) {
    :root {
        --space-5xl: 80px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-2xl);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-2xl);
    }

    .footer-brand {
        grid-column: span 2;
        max-width: 100%;
        margin-bottom: var(--space-lg);
    }

    .trust-content {
        flex-direction: column;
        text-align: center;
    }

    .trust-list {
        align-items: center;
    }

    .pricing-cards {
        flex-direction: column;
        align-items: center;
        gap: var(--space-xl);
    }

    .pricing-card {
        max-width: 500px;
        width: 100%;
    }

    .hero-visual {
        margin-top: var(--space-4xl);
    }
}

@media (max-width: 768px) {
    :root {
        --font-size-6xl: 40px;
        --font-size-5xl: 32px;
        --font-size-4xl: 28px;
        --font-size-3xl: 24px;
        --space-5xl: 64px;
        --space-4xl: 64px;
        --space-3xl: 48px;
        --space-2xl: 32px;
    }

    section {
        padding: var(--space-4xl) 0;
    }

    .container {
        padding: 0 var(--space-lg);
    }

    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .mobile-nav {
        display: flex;
    }

    .nav-actions {
        display: none;
    }

    .hero {
        padding-top: calc(var(--header-height) + var(--space-xl));
        padding-bottom: var(--space-4xl);
        min-height: auto;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-title {
        font-size: clamp(32px, 8vw, 56px);
        margin-bottom: var(--space-md);
    }

    .hero-subtitle {
        font-size: clamp(20px, 5vw, 28px);
        margin-bottom: var(--space-md);
    }

    .hero-description {
        font-size: var(--font-size-lg);
        margin-bottom: var(--space-lg);
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-sm);
        margin-bottom: var(--space-lg);
    }

    .hero-cta .btn {
        width: 100%;
        padding: 14px 20px;
        font-size: var(--font-size-base);
    }

    .hero-note {
        margin-top: var(--space-lg);
    }

    .hero-visual {
        margin-top: var(--space-3xl);
        max-width: 100%;
    }

    .device-mockup {
        border-radius: var(--radius-md);
    }

    .mockup-screen {
        aspect-ratio: 16/12;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .feature-card {
        padding: var(--space-xl);
    }

    .feature-icon {
        width: 48px;
        height: 48px;
        margin-bottom: var(--space-md);
    }

    .feature-icon svg {
        width: 24px;
        height: 24px;
    }

    .feature-card h3 {
        font-size: var(--font-size-xl);
    }

    .feature-card p {
        font-size: var(--font-size-base);
    }

    .section-title {
        font-size: var(--font-size-3xl);
        margin-bottom: var(--space-md);
    }

    .section-subtitle {
        font-size: var(--font-size-lg);
    }

    .steps-container {
        flex-direction: column;
        gap: var(--space-2xl);
        padding: 0 var(--space-lg);
    }

    .step {
        max-width: 100%;
    }

    .step-number {
        width: 48px;
        height: 48px;
        font-size: var(--font-size-xl);
        margin-bottom: var(--space-md);
    }

    .step-connector {
        width: 1px;
        height: 40px;
    }

    .step-content h3 {
        font-size: var(--font-size-lg);
    }

    .pricing-cards {
        flex-direction: column;
        gap: var(--space-lg);
    }

    .pricing-card {
        max-width: 100%;
        width: 100%;
        padding: var(--space-xl);
    }

    .pricing-header h3 {
        font-size: var(--font-size-xl);
    }

    .pricing-amount .price {
        font-size: var(--font-size-4xl);
    }

    .cta-content h2 {
        font-size: var(--font-size-4xl);
    }

    .cta-content p {
        font-size: var(--font-size-lg);
    }

    .cta-buttons {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .cta-buttons .btn {
        width: 100%;
        padding: 14px 20px;
    }

    .trust-content {
        flex-direction: column;
        gap: var(--space-3xl);
        text-align: center;
    }

    .trust-text h2 {
        font-size: var(--font-size-3xl);
    }

    .trust-text p {
        font-size: var(--font-size-lg);
    }

    .trust-list {
        align-items: center;
        gap: var(--space-lg);
    }

    .security-graphic {
        width: 250px;
        height: 250px;
    }

    .shield-icon {
        width: 80px;
        height: 80px;
    }

    .shield-icon svg {
        width: 48px;
        height: 48px;
    }

    .orbit-1 {
        width: 150px;
        height: 150px;
    }

    .orbit-2 {
        width: 200px;
        height: 200px;
    }

    .orbit-3 {
        width: 250px;
        height: 250px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .footer-brand {
        grid-column: span 1;
        margin-bottom: var(--space-xl);
        padding-bottom: var(--space-xl);
        border-bottom: 1px solid rgba(128, 128, 128, 0.2);
    }

    /* Apple-style accordion for footer on mobile */
    .footer-col {
        border-bottom: 1px solid rgba(128, 128, 128, 0.2);
    }

    .footer-col-header {
        padding: var(--space-md) 0;
        margin-bottom: 0;
        cursor: pointer;
    }

    .footer-col h4 {
        font-size: var(--font-size-xs);
        text-transform: none;
        letter-spacing: 0;
        font-weight: var(--font-weight-semibold);
        color: var(--text-primary);
    }

    .footer-accordion-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .footer-col-links {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
        padding: 0;
        gap: 0;
    }

    .footer-col-links.expanded {
        max-height: 300px;
        opacity: 1;
        padding-bottom: var(--space-md);
    }

    .footer-col-links li {
        padding: var(--space-sm) 0;
    }

    .footer-col a {
        font-size: var(--font-size-xs);
        color: var(--text-secondary);
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
        margin-top: var(--space-xl);
        border-top: none;
    }

    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    :root {
        --font-size-6xl: 32px;
        --font-size-5xl: 28px;
        --font-size-4xl: 24px;
        --font-size-3xl: 20px;
        --font-size-2xl: 22px;
        --font-size-lg: 18px;
        --space-5xl: 48px;
        --space-4xl: 40px;
        --space-3xl: 32px;
        --space-2xl: 24px;
        --space-xl: 20px;
        --space-lg: 16px;
    }

    section {
        padding: var(--space-4xl) 0;
    }

    .container {
        padding: 0 var(--space-md);
    }

    .header-inner {
        padding: 0 var(--space-md);
    }

    .hero {
        padding-top: calc(var(--header-height) + var(--space-lg));
        padding-bottom: var(--space-3xl);
    }

    .hero-title {
        font-size: 32px;
        margin-bottom: var(--space-sm);
    }

    .hero-subtitle {
        font-size: 20px;
        margin-bottom: var(--space-sm);
    }

    .hero-description {
        font-size: var(--font-size-base);
        margin-bottom: var(--space-md);
    }

    .hero-cta .btn {
        padding: 12px 18px;
        font-size: var(--font-size-sm);
    }

    .hero-note {
        font-size: 12px;
    }

    .device-mockup {
        border-radius: var(--radius-sm);
    }

    .mockup-screen {
        aspect-ratio: 16/14;
    }

    .dash-header,
    .dash-sidebar,
    .dash-main {
        padding: var(--space-sm);
    }

    .stat-cards {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .stat-card {
        padding: var(--space-sm);
    }

    .stat-icon {
        width: 32px;
        height: 32px;
    }

    .stat-number {
        font-size: var(--font-size-lg);
    }

    .stat-label {
        font-size: 12px;
    }

    .endpoint-row {
        height: 40px;
    }

    .section-header {
        margin-bottom: var(--space-3xl);
    }

    .section-title {
        font-size: var(--font-size-2xl);
        margin-bottom: var(--space-sm);
    }

    .section-subtitle {
        font-size: var(--font-size-base);
    }

    .feature-card {
        padding: var(--space-lg);
        text-align: center;
    }

    .feature-icon {
        width: 40px;
        height: 40px;
        margin-bottom: var(--space-md);
    }

    .feature-icon svg {
        width: 20px;
        height: 20px;
    }

    .feature-card h3 {
        font-size: var(--font-size-lg);
        margin-bottom: var(--space-sm);
    }

    .feature-card p {
        font-size: var(--font-size-sm);
    }

    .steps-container {
        padding: 0;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: var(--font-size-lg);
        margin-bottom: var(--space-sm);
    }

    .step-content h3 {
        font-size: var(--font-size-lg);
        margin-bottom: var(--space-sm);
    }

    .step-content p {
        font-size: var(--font-size-sm);
    }

    .pricing-card {
        padding: var(--space-lg);
    }

    .pricing-header h3 {
        font-size: var(--font-size-lg);
    }

    .pricing-amount .price {
        font-size: var(--font-size-3xl);
    }

    .pricing-annual {
        font-size: 12px;
    }

    .pricing-features li {
        font-size: var(--font-size-sm);
        gap: var(--space-sm);
    }

    .pricing-features svg {
        width: 16px;
        height: 16px;
    }

    .cta-content h2 {
        font-size: var(--font-size-3xl);
        margin-bottom: var(--space-md);
    }

    .cta-content p {
        font-size: var(--font-size-base);
        margin-bottom: var(--space-lg);
    }

    .cta-buttons {
        gap: var(--space-xs);
    }

    .cta-buttons .btn {
        padding: 12px 18px;
        font-size: var(--font-size-sm);
    }

    .trust-text h2 {
        font-size: var(--font-size-2xl);
        margin-bottom: var(--space-md);
    }

    .trust-text p {
        font-size: var(--font-size-base);
        margin-bottom: var(--space-lg);
    }

    .trust-list {
        gap: var(--space-md);
    }

    .trust-list li {
        font-size: var(--font-size-sm);
        gap: var(--space-sm);
    }

    .trust-list svg {
        width: 20px;
        height: 20px;
    }

    .security-graphic {
        width: 200px;
        height: 200px;
    }

    .shield-icon {
        width: 64px;
        height: 64px;
    }

    .shield-icon svg {
        width: 40px;
        height: 40px;
    }

    .orbit-1 {
        width: 120px;
        height: 120px;
    }

    .orbit-2 {
        width: 160px;
        height: 160px;
    }

    .orbit-3 {
        width: 200px;
        height: 200px;
    }

    .footer-grid {
        margin-bottom: var(--space-lg);
    }

    .footer-brand {
        margin-bottom: var(--space-lg);
        padding-bottom: var(--space-lg);
    }

    .footer-brand p {
        font-size: var(--font-size-xs);
    }

    .footer-col h4 {
        font-size: 12px;
    }

    .footer-col a {
        font-size: 12px;
    }

    .footer-col-links li {
        padding: 6px 0;
    }

    .footer-bottom {
        padding-top: var(--space-lg);
    }

    .footer-bottom p {
        font-size: 11px;
    }

    .footer-social {
        gap: var(--space-md);
    }

    .footer-social a {
        width: 32px;
        height: 32px;
    }

    .footer-social svg {
        width: 16px;
        height: 16px;
    }
}

/* =====================================================
   Animations
   ===================================================== */

.animate-fade-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease-out forwards;
}

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

.animate-fade-up.delay-1 { animation-delay: 0.1s; }
.animate-fade-up.delay-2 { animation-delay: 0.2s; }
.animate-fade-up.delay-3 { animation-delay: 0.3s; }
.animate-fade-up.delay-4 { animation-delay: 0.4s; }

.animate-scale-in {
    opacity: 0;
    transform: scale(0.95);
    animation: scaleIn 0.8s ease-out forwards;
}

@keyframes scaleIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-scale-in.delay-2 { animation-delay: 0.2s; }

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

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

/* =====================================================
   Utility Classes
   ===================================================== */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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