/* ==========================================================================
   ORBIT – Apple-Inspired Product Website Stylesheet
   Pure Apple aesthetic: Titanium, Obsidian Glass, Clean SF Pro Typography
   Bilingual (DE/EN) + Adaptive Dark & Light Modes + Mobile Viewport Tuning
   ========================================================================== */

:root {
    --bg-black: #000000;
    --bg-surface: #0a0a0c;
    --bg-elevated: #121215;
    --bg-glass: rgba(22, 22, 26, 0.72);
    
    --text-primary: #f5f5f7;
    --text-secondary: #86868b;
    --text-tertiary: #636366;
    
    --border-hairline: rgba(255, 255, 255, 0.08);
    --border-specular: rgba(255, 255, 255, 0.16);
    --border-hover: rgba(255, 255, 255, 0.28);
    
    --accent-blue: #2997ff;
    --accent-blue-hover: #0077ed;
    --accent-cyan: #38bdf8;
    --accent-emerald: #30d158;
    
    --font-stack: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --ease-apple: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Adaptive Light Theme Overrides
   ========================================================================== */
html.light-theme,
body.light-theme {
    --bg-black: #f5f5f7;
    --bg-surface: #ffffff;
    --bg-elevated: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.85);
    
    --text-primary: #1d1d1f;
    --text-secondary: #6e6e73;
    --text-tertiary: #86868b;
    
    --border-hairline: rgba(0, 0, 0, 0.08);
    --border-specular: rgba(0, 0, 0, 0.14);
    --border-hover: rgba(0, 0, 0, 0.26);
    
    --accent-blue: #0071e3;
    --accent-blue-hover: #0077ed;

    background-color: #f5f5f7;
    color: #1d1d1f;
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-black);
    color: var(--text-primary);
    font-family: var(--font-stack);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
}

body {
    overflow-x: hidden;
    width: 100%;
    line-height: 1.47059;
    background-color: var(--bg-black);
}

body.theme-transitioning {
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Container */
.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

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

/* Typography Standards */
h1, h2, h3 {
    color: var(--text-primary);
    letter-spacing: -0.025em;
    font-weight: 700;
}

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

/* Apple Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 980px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.25s var(--ease-apple);
    outline: none;
    white-space: nowrap;
}

/* Apple Solid Primary Button */
.btn-primary {
    background-color: #ffffff;
    color: #000000;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.12);
}

.btn-primary:hover {
    background-color: #e5e5ea;
    transform: scale(1.02);
}

body.light-theme .btn-primary {
    background-color: #000000;
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

body.light-theme .btn-primary:hover {
    background-color: #1d1d1f;
}

/* Apple Subtle Blue Link / Secondary Button */
.btn-secondary {
    background: transparent;
    color: var(--accent-blue);
    font-size: 16px;
    gap: 6px;
}

.btn-secondary:hover {
    color: var(--text-primary);
    transform: translateY(1px);
}

.btn-large {
    padding: 16px 36px;
    font-size: 17px;
    font-weight: 600;
}

.apple-logo-icon {
    width: 17px;
    height: 17px;
    fill: currentColor;
    flex-shrink: 0;
}

.chevron-down {
    width: 14px;
    height: 14px;
    fill: currentColor;
    transition: transform 0.2s ease;
}

.btn-secondary:hover .chevron-down {
    transform: translateY(2px);
}

/* ==========================================================================
   Navigation Bar (Apple Frosted Glass)
   ========================================================================== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    height: 52px;
    background: rgba(8, 8, 10, 0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border-hairline);
    transition: border-color 0.25s ease, background 0.25s ease;
}

body.light-theme .navbar {
    background: rgba(255, 255, 255, 0.82);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    flex-shrink: 0;
}

.brand-logo-squircle {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.brand-glyph {
    width: 28px;
    height: 28px;
    display: block;
}

.brand-name {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Language Switcher Pill */
.lang-switch {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-hairline);
    border-radius: 980px;
    padding: 2px;
}

body.light-theme .lang-switch {
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.08);
}

.lang-btn {
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 980px;
    cursor: pointer;
    transition: all 0.2s var(--ease-apple);
    outline: none;
}

.lang-btn.active {
    background: #ffffff;
    color: #000000;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

body.light-theme .lang-btn.active {
    background: #000000;
    color: #ffffff;
}

/* Theme Toggle Button */
.theme-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-hairline);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s var(--ease-apple);
    outline: none;
}

body.light-theme .theme-toggle-btn {
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.08);
    color: #1d1d1f;
}

.theme-toggle-btn:hover {
    transform: scale(1.06);
    border-color: var(--border-hover);
}

.theme-toggle-btn svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
}

body:not(.light-theme) .icon-sun { display: block; }
body:not(.light-theme) .icon-moon { display: none; }
body.light-theme .icon-sun { display: none; }
body.light-theme .icon-moon { display: block; }

/* Beta Button in Nav */
.btn-nav.btn-beta {
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 500;
    background: #ffffff;
    color: #000000;
    border-radius: 980px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn-nav.btn-beta:hover {
    background: #e5e5ea;
    transform: scale(1.02);
}

body.light-theme .btn-nav.btn-beta {
    background: #000000;
    color: #ffffff;
}

body.light-theme .btn-nav.btn-beta:hover {
    background: #27272a;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    position: relative;
    padding-top: 60px;
    padding-bottom: 80px;
    overflow: hidden;
}

.hero-ambient-light {
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 550px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.035) 0%, transparent 70%);
    pointer-events: none;
}

body.light-theme .hero-ambient-light {
    background: radial-gradient(circle, rgba(0, 113, 227, 0.06) 0%, transparent 70%);
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    display: inline-block;
}

.hero-title {
    font-size: clamp(38px, 6vw, 76px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    max-width: 900px;
    margin-bottom: 20px;
}

.hero-lead {
    font-size: clamp(16px, 2.2vw, 21px);
    color: var(--text-secondary);
    line-height: 1.45;
    max-width: 680px;
    margin-bottom: 36px;
    font-weight: 400;
}

.hero-cta-group {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 44px;
}

/* Apple Segmented Control Tabs */
.segmented-control {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    background: rgba(28, 28, 32, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-hairline);
    border-radius: 980px;
    margin-bottom: 40px;
    overflow-x: auto;
    max-width: 96vw;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.segmented-control::-webkit-scrollbar {
    display: none;
}

body.light-theme .segmented-control {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.08);
}

.segment-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 980px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s var(--ease-apple);
}

.segment-btn svg {
    width: 15px;
    height: 15px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    flex-shrink: 0;
}

.segment-btn:hover {
    color: var(--text-primary);
}

.segment-btn:hover svg {
    opacity: 1;
}

.segment-btn.active {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

body.light-theme .segment-btn.active {
    background: #ffffff;
    color: #1d1d1f;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.segment-btn.active svg {
    opacity: 1;
}

.hero-device-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.device-caption {
    margin-top: 28px;
    font-size: 14px;
    color: var(--text-secondary);
}

.device-caption span:first-child {
    color: var(--text-primary);
    font-weight: 600;
}

/* ==========================================================================
   Realistic iPhone 18 Pro Chassis (Black Titanium & Silver Titanium)
   ========================================================================== */
.iphone-18-pro {
    position: relative;
    width: 320px;
    height: 660px;
    margin: 0 auto;
}

/* Hardware Physical Buttons */
.btn-hw {
    position: absolute;
    background: #18181b;
    border: 0.5px solid #2e2e33;
    z-index: 1;
    transition: background 0.3s ease, border-color 0.3s ease;
}

body.light-theme .btn-hw {
    background: #c0c0c6;
    border-color: #a4a4ab;
}

.btn-action {
    left: -3px;
    top: 96px;
    width: 3px;
    height: 26px;
    border-radius: 2px 0 0 2px;
}

.btn-vol-up {
    left: -3px;
    top: 138px;
    width: 3px;
    height: 48px;
    border-radius: 2px 0 0 2px;
}

.btn-vol-down {
    left: -3px;
    top: 198px;
    width: 3px;
    height: 48px;
    border-radius: 2px 0 0 2px;
}

.btn-power {
    right: -3px;
    top: 144px;
    width: 3px;
    height: 72px;
    border-radius: 0 2px 2px 0;
}

.btn-camera-control {
    right: -2px;
    bottom: 120px;
    width: 2.5px;
    height: 64px;
    background: #121214;
    border-radius: 0 1.5px 1.5px 0;
    border: 0.5px solid #26262a;
}

body.light-theme .btn-camera-control {
    background: #b5b5bc;
    border-color: #9898a0;
}

/* Outer Titanium Chassis */
.iphone-chassis {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #252529 0%, #17171a 30%, #0f0f11 100%);
    border-radius: 54px;
    padding: 10px; /* Slim bezel */
    box-shadow: 
        0 0 0 1.5px rgba(255, 255, 255, 0.12),
        0 24px 60px rgba(0, 0, 0, 0.85),
        0 50px 120px rgba(0, 0, 0, 0.7);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

body.light-theme .iphone-chassis {
    background: linear-gradient(180deg, #e4e4e9 0%, #cacace 40%, #b2b2b8 100%);
    box-shadow: 
        0 0 0 1px rgba(0, 0, 0, 0.08),
        0 20px 50px rgba(0, 0, 0, 0.15),
        0 40px 90px rgba(0, 0, 0, 0.1);
}

/* OLED Screen Glass */
.iphone-screen {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000000;
    border-radius: 45px;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

body.light-theme .iphone-screen {
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

/* Diagonal Glass Sheen Reflection */
.screen-glass-sheen {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(130deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.01) 32%, transparent 48%);
    pointer-events: none;
    z-index: 12;
}

/* Dynamic Island */
.dynamic-island {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 94px;
    height: 26px;
    background: #000000;
    border-radius: 14px;
    z-index: 15;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.06);
}

.island-lens {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #1e293b 0%, #030712 75%);
    box-shadow: inset 0 0 2px rgba(56, 189, 248, 0.3);
}

.island-sensor {
    position: absolute;
    left: 12px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #020202;
}

.screen-content {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.28s var(--ease-apple), transform 0.28s var(--ease-apple);
}

/* ==========================================================================
   Apple-Style Sticky Storytelling Section
   ========================================================================== */
.sticky-story-section {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(180deg, var(--bg-black) 0%, #08080a 50%, var(--bg-black) 100%);
    transition: background 0.3s ease;
}

body.light-theme .sticky-story-section {
    background: linear-gradient(180deg, #f5f5f7 0%, #ebebef 50%, #f5f5f7 100%);
}

.sticky-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: flex-start;
}

.sticky-device-col {
    position: sticky;
    top: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sticky-device-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sticky-step-pills {
    display: flex;
    gap: 8px;
    margin-top: 24px;
}

.step-pill {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-hairline);
    border-radius: 980px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-tertiary);
    cursor: pointer;
    transition: all 0.25s var(--ease-apple);
}

.step-pill.active {
    background: rgba(255, 255, 255, 0.16);
    border-color: var(--border-specular);
    color: var(--text-primary);
}

body.light-theme .step-pill {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.08);
    color: #6e6e73;
}

body.light-theme .step-pill.active {
    background: #ffffff;
    color: #1d1d1f;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.sticky-content-col {
    display: flex;
    flex-direction: column;
    gap: 140px;
    padding: 60px 0 160px;
}

.story-card {
    padding: 40px;
    background: rgba(18, 18, 22, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-hairline);
    border-radius: 28px;
    transition: all 0.35s var(--ease-apple);
    opacity: 0.35;
    transform: translateY(20px);
}

.story-card.active-story {
    opacity: 1;
    transform: translateY(0);
    border-color: var(--border-specular);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

body.light-theme .story-card {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
}

body.light-theme .story-card.active-story {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.story-kicker {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: var(--accent-blue);
    margin-bottom: 12px;
}

.story-card h2 {
    font-size: clamp(26px, 3.5vw, 36px);
    line-height: 1.15;
    margin-bottom: 20px;
}

.story-card p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.story-card p:last-child {
    margin-bottom: 0;
}

.story-subtext {
    color: var(--text-tertiary);
    font-size: 15px;
}

/* ==========================================================================
   Interactive Calculator Section
   ========================================================================== */
.calculator-section {
    padding: 90px 0;
    position: relative;
}

.section-header {
    margin-bottom: 50px;
}

.section-kicker {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--accent-blue);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(32px, 4.5vw, 52px);
    margin-bottom: 16px;
}

.section-lead {
    font-size: 18px;
    max-width: 620px;
    margin: 0 auto;
}

.calc-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    padding: 44px;
    background: var(--bg-surface);
    border: 1px solid var(--border-hairline);
    border-radius: 32px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    transition: background 0.3s ease, border-color 0.3s ease;
}

body.light-theme .calc-card {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.06);
}

.calc-inputs {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.calc-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.calc-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.calc-label-row label {
    color: var(--text-secondary);
    font-weight: 500;
}

.calc-value {
    color: var(--text-primary);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* Range Sliders */
.calc-card input[type=range] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: #27272a;
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

body.light-theme .calc-card input[type=range] {
    background: #e2e2e7;
}

.calc-card input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    transition: transform 0.15s ease;
}

body.light-theme .calc-card input[type=range]::-webkit-slider-thumb {
    background: #0071e3;
    box-shadow: 0 2px 6px rgba(0, 113, 227, 0.3);
}

.calc-card input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.calc-results {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 36px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-hairline);
    border-radius: 24px;
}

body.light-theme .calc-results {
    background: #f8f8fa;
    border-color: rgba(0, 0, 0, 0.06);
}

.result-badge {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: var(--text-tertiary);
    margin-bottom: 8px;
}

.result-amount-box {
    margin-bottom: 28px;
}

.result-number {
    font-size: clamp(36px, 4vw, 52px);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
    display: block;
}

.result-unit {
    font-size: 14px;
    color: var(--text-secondary);
}

.result-breakdown {
    display: flex;
    flex-direction: column;
    gap: 14px;
    border-top: 1px solid var(--border-hairline);
    padding-top: 20px;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.breakdown-label {
    color: var(--text-secondary);
}

.breakdown-val {
    color: var(--text-primary);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.status-green {
    color: var(--accent-emerald) !important;
}

/* ==========================================================================
   iPadOS Section
   ========================================================================== */
.ipados-section {
    padding: 90px 0;
}

.ipad-showcase-wrapper {
    display: flex;
    justify-content: center;
    margin: 50px 0 60px;
}

.ipad-pro-13 {
    position: relative;
    width: 620px;
    max-width: 90vw;
    aspect-ratio: 2064 / 2752;
}

.ipad-top-btn {
    position: absolute;
    top: -3px;
    right: 60px;
    width: 48px;
    height: 3px;
    background: #1c1c20;
    border-radius: 2px 2px 0 0;
}

.ipad-vol-btn-1 {
    position: absolute;
    top: 60px;
    right: -3px;
    width: 3px;
    height: 42px;
    background: #1c1c20;
    border-radius: 0 2px 2px 0;
}

.ipad-vol-btn-2 {
    position: absolute;
    top: 112px;
    right: -3px;
    width: 3px;
    height: 42px;
    background: #1c1c20;
    border-radius: 0 2px 2px 0;
}

.ipad-chassis {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #222226 0%, #131316 100%);
    border-radius: 36px;
    padding: 14px;
    box-shadow: 
        0 0 0 1.5px rgba(255, 255, 255, 0.1),
        0 30px 90px rgba(0, 0, 0, 0.9);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

body.light-theme .ipad-chassis {
    background: linear-gradient(180deg, #e4e4e9 0%, #c4c4cb 50%, #a8a8b0 100%);
    box-shadow: 
        0 0 0 1px rgba(0, 0, 0, 0.08),
        0 30px 80px rgba(0, 0, 0, 0.15);
}

.ipad-screen {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 26px;
    overflow: hidden;
}

.ipad-front-cam {
    position: absolute;
    top: 50%;
    left: 8px;
    transform: translateY(-50%);
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #1e293b 0%, #030712 80%);
    z-index: 10;
}

.ipad-screen-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ipad-features-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.ipad-feature-col {
    padding: 32px;
    background: var(--bg-surface);
    border: 1px solid var(--border-hairline);
    border-radius: 24px;
    transition: all 0.3s ease;
}

body.light-theme .ipad-feature-col {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.04);
}

.feature-icon-svg {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--accent-blue);
}

body.light-theme .feature-icon-svg {
    background: rgba(0, 113, 227, 0.08);
}

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

.ipad-feature-col h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.ipad-feature-col p {
    font-size: 14px;
    line-height: 1.5;
}

.ipad-feature-col code {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
    color: var(--text-primary);
}

body.light-theme .ipad-feature-col code {
    background: rgba(0, 0, 0, 0.06);
}

/* ==========================================================================
   Bento Grid Section (Privacy & Architecture)
   ========================================================================== */
.bento-section {
    padding: 90px 0;
}

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

.bento-card {
    padding: 36px;
    background: var(--bg-surface);
    border: 1px solid var(--border-hairline);
    border-radius: 28px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: all 0.3s ease;
}

body.light-theme .bento-card {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.bento-span-2 {
    grid-column: span 2;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
}

.bento-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: var(--accent-blue);
    margin-bottom: 12px;
}

.bento-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.bento-card p {
    font-size: 14px;
    line-height: 1.55;
}

.privacy-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.ptag {
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-hairline);
    border-radius: 980px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
}

body.light-theme .ptag {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.08);
    color: #1d1d1f;
}

.bento-visual {
    flex-shrink: 0;
}

.secure-enclave-glyph {
    width: 64px;
    height: 64px;
    color: var(--text-tertiary);
    opacity: 0.6;
}

/* ==========================================================================
   Download / CTA Section
   ========================================================================== */
/* ==========================================================================
   Apple-Style Transparent Pricing & 14-Day Free Trial Section
   ========================================================================== */
.pricing-section {
    padding: 100px 0 60px;
    position: relative;
}

.pricing-guarantee {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 860px;
    margin: 0 auto 52px;
    padding: 20px 28px;
    background: rgba(48, 209, 88, 0.08);
    border: 1px solid rgba(48, 209, 88, 0.3);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.3s ease;
}

body.light-theme .pricing-guarantee {
    background: rgba(48, 209, 88, 0.12);
    border-color: rgba(48, 209, 88, 0.35);
}

.guarantee-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(48, 209, 88, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #30d158;
}

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

.guarantee-text strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.guarantee-text p {
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--text-secondary);
    margin: 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    align-items: stretch;
}

.pricing-card {
    position: relative;
    background: linear-gradient(180deg, #121215 0%, #0b0b0e 100%);
    border: 1px solid var(--border-hairline);
    border-radius: 28px;
    padding: 40px 32px 36px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    transition: all 0.35s var(--ease-apple);
}

.pricing-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
}

body.light-theme .pricing-card {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.04);
}

body.light-theme .pricing-card:hover {
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.18);
}

/* Featured / Pop Card (Lifetime Pass) */
.pricing-card-featured {
    border-color: rgba(41, 151, 255, 0.45);
    background: linear-gradient(180deg, #151824 0%, #0c0d14 100%);
    box-shadow: 0 25px 70px rgba(41, 151, 255, 0.12), 0 20px 40px rgba(0, 0, 0, 0.5);
}

body.light-theme .pricing-card-featured {
    border-color: rgba(0, 113, 227, 0.4);
    background: linear-gradient(180deg, #f7faff 0%, #ffffff 100%);
    box-shadow: 0 20px 50px rgba(0, 113, 227, 0.08);
}

.pcard-popular-tag {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #2997ff, #0071e3);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 5px 14px;
    border-radius: 980px;
    text-transform: uppercase;
    box-shadow: 0 4px 14px rgba(41, 151, 255, 0.4);
    white-space: nowrap;
}

.pcard-header {
    margin-bottom: 24px;
}

.pcard-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.pcard-badge-basis {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-tertiary);
    border: 1px solid var(--border-hairline);
}

body.light-theme .pcard-badge-basis {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-secondary);
}

.pcard-badge-pop {
    background: rgba(41, 151, 255, 0.15);
    color: var(--accent-blue);
    border: 1px solid rgba(41, 151, 255, 0.3);
}

.pcard-badge-trial {
    background: rgba(48, 209, 88, 0.15);
    color: #30d158;
    border: 1px solid rgba(48, 209, 88, 0.35);
}

.pcard-title {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.pcard-desc {
    font-size: 14px;
    line-height: 1.45;
    color: var(--text-secondary);
    min-height: 40px;
}

.pcard-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-hairline);
}

.price-val {
    font-size: 44px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    line-height: 1;
}

.price-cycle {
    font-size: 13.5px;
    color: var(--text-secondary);
}

.pcard-features {
    list-style: none;
    margin: 0;
    padding: 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pcard-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    line-height: 1.45;
    color: var(--text-primary);
}

.pcard-features li.f-muted {
    color: var(--text-tertiary);
}

.check-icon {
    width: 18px;
    height: 18px;
    color: #30d158;
    flex-shrink: 0;
    margin-top: 1px;
}

.cross-icon {
    width: 18px;
    height: 18px;
    color: var(--text-tertiary);
    flex-shrink: 0;
    margin-top: 1px;
}

.btn-pcard {
    width: 100%;
    margin-top: 32px;
    padding: 13px 20px;
    font-size: 15px;
    font-weight: 600;
}

.cta-section {
    padding: 100px 0;
}

.cta-box {
    padding: 70px 32px;
    background: linear-gradient(180deg, #121215 0%, #0a0a0c 100%);
    border: 1px solid var(--border-specular);
    border-radius: 36px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7);
    transition: background 0.3s ease, border-color 0.3s ease;
}

body.light-theme .cta-box {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
}

.cta-kicker {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--accent-blue);
    margin-bottom: 12px;
}

.cta-title {
    font-size: clamp(34px, 5vw, 56px);
    margin-bottom: 16px;
}

.cta-lead {
    font-size: 18px;
    max-width: 540px;
    margin: 0 auto 36px;
}

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

.cta-meta {
    font-size: 13px;
    color: var(--text-tertiary);
}

/* ==========================================================================
   Apple-Style Footer
   ========================================================================== */
.footer {
    padding: 60px 0 40px;
    background: #08080a;
    border-top: 1px solid var(--border-hairline);
    font-size: 12px;
    color: var(--text-tertiary);
    transition: background 0.3s ease, border-color 0.3s ease;
}

body.light-theme .footer {
    background: #f0f0f2;
    border-top-color: rgba(0, 0, 0, 0.08);
}

.footer-top {
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-hairline);
    margin-bottom: 36px;
}

.footer-note {
    line-height: 1.6;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 14px;
}

.footer-col a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.2s ease;
}

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

.footer-about {
    line-height: 1.55;
    color: var(--text-secondary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid var(--border-hairline);
}

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

.footer-legal-links a {
    color: var(--text-tertiary);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* ==========================================================================
   Apple-Style TestFlight Modal Sheet
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease-apple);
}

.modal-overlay.is-active {
    opacity: 1;
    pointer-events: auto;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.modal-sheet {
    position: relative;
    width: 100%;
    max-width: 480px;
    margin: 20px;
    padding: 44px 36px 36px;
    background: #141418;
    border: 1px solid var(--border-specular);
    border-radius: 32px;
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.85);
    transform: scale(0.94) translateY(20px);
    transition: transform 0.35s var(--ease-apple);
    text-align: center;
}

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

body.light-theme .modal-sheet {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.25);
}

.modal-close-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.16);
    color: var(--text-primary);
}

body.light-theme .modal-close-btn {
    background: rgba(0, 0, 0, 0.06);
    color: #1d1d1f;
}

body.light-theme .modal-close-btn:hover {
    background: rgba(0, 0, 0, 0.12);
}

.modal-close-btn svg {
    width: 16px;
    height: 16px;
}

.modal-app-icon {
    width: 52px;
    height: 52px;
    border-radius: 13px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    overflow: hidden;
}

.modal-glyph {
    width: 52px;
    height: 52px;
    display: block;
}

.modal-kicker {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: var(--accent-blue);
    margin-bottom: 8px;
}

.modal-title {
    font-size: 26px;
    margin-bottom: 14px;
}

.modal-description {
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-secondary);
    margin-bottom: 28px;
}

.modal-notify-form {
    margin-bottom: 24px;
}

.input-row {
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-hairline);
    border-radius: 980px;
    padding: 4px;
}

body.light-theme .input-row {
    background: #f4f4f6;
    border-color: rgba(0, 0, 0, 0.1);
}

.input-row input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 10px 18px;
    font-size: 14px;
    color: var(--text-primary);
    outline: none;
}

.btn-notify {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: #ffffff;
    color: #000000;
    border: none;
    border-radius: 980px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s var(--ease-apple);
    white-space: nowrap;
}

.btn-notify:hover {
    background: #e5e5ea;
}

body.light-theme .btn-notify {
    background: #000000;
    color: #ffffff;
}

.btn-notify svg {
    width: 14px;
    height: 14px;
}

.form-feedback {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: var(--accent-emerald);
    margin-top: 12px;
}

.form-feedback.is-visible {
    display: flex;
}

.form-feedback svg {
    width: 16px;
    height: 16px;
}

.modal-testflight-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-hairline);
    border-radius: 980px;
    font-size: 12px;
    color: var(--text-tertiary);
}

body.light-theme .modal-testflight-badge {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.08);
    color: #6e6e73;
}

.modal-testflight-badge svg {
    width: 15px;
    height: 15px;
    color: var(--accent-blue);
    flex-shrink: 0;
}

/* ==========================================================================
   Scroll-Reveal Entrance
   ========================================================================== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease-apple), transform 0.7s var(--ease-apple);
}

.scroll-reveal.is-visible,
.hero-section .scroll-reveal {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Responsive Breakpoints & Mobile Optimization
   ========================================================================== */
@media (max-width: 992px) {
    .nav-links {
        display: none;
    }

    .sticky-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .sticky-device-col {
        position: relative;
        top: 0;
    }
    
    .sticky-content-col {
        gap: 60px;
        padding: 30px 0 80px;
    }
    
    .story-card {
        opacity: 1;
        transform: none;
        padding: 32px;
    }
    
    .calc-card {
        grid-template-columns: 1fr;
        padding: 32px;
    }
    
    .bento-grid {
        grid-template-columns: 1fr;
    }
    
    .bento-span-2 {
        grid-column: span 1;
        flex-direction: column;
        align-items: flex-start;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 520px;
        margin: 0 auto;
    }

    .pricing-guarantee {
        flex-direction: column;
        text-align: center;
        padding: 24px 20px;
    }
    
    .ipad-features-row {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .nav-container {
        padding: 0 12px;
        padding-left: max(12px, env(safe-area-inset-left));
        padding-right: max(12px, env(safe-area-inset-right));
    }
    
    .brand {
        gap: 8px;
    }

    .brand-name {
        font-size: 14px;
    }
    
    .nav-actions {
        gap: 6px;
    }

    .lang-switch {
        padding: 2px;
    }

    .lang-btn {
        padding: 2px 6px;
        font-size: 10px;
    }

    .theme-toggle-btn {
        width: 28px;
        height: 28px;
    }
    
    .btn-nav.btn-beta {
        padding: 5px 9px;
        font-size: 11px;
    }

    .hero-section {
        padding-top: 32px;
        padding-bottom: 50px;
    }
    
    .hero-title {
        font-size: 32px;
        line-height: 1.1;
        margin-bottom: 14px;
    }
    
    .hero-lead {
        font-size: 15px;
        line-height: 1.45;
        margin-bottom: 24px;
    }
    
    .hero-cta-group {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
        margin: 0 auto 36px;
        gap: 12px;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }

    .segmented-control {
        width: 100%;
        max-width: 100%;
        margin-bottom: 30px;
        padding: 3px;
        justify-content: flex-start;
    }

    .segment-btn {
        padding: 6px 12px;
        font-size: 12px;
        gap: 6px;
    }
    
    .iphone-18-pro {
        width: 280px;
        height: 585px;
    }
    
    .iphone-chassis {
        border-radius: 46px;
        padding: 8px;
    }
    
    .iphone-screen {
        border-radius: 38px;
    }

    .sticky-step-pills {
        justify-content: center;
        flex-wrap: wrap;
        gap: 6px;
    }

    .step-pill {
        padding: 6px 12px;
        font-size: 11px;
    }

    .calc-card {
        padding: 20px;
        border-radius: 24px;
    }
    
    .calc-results {
        padding: 20px;
        border-radius: 18px;
    }

    .ipad-pro-13 {
        width: 100%;
        max-width: 330px;
    }

    .ipad-chassis {
        border-radius: 24px;
        padding: 8px;
    }

    .ipad-screen {
        border-radius: 18px;
    }

    .bento-card {
        padding: 24px;
    }

    .bento-visual {
        display: none;
    }

    .pricing-section {
        padding: 60px 0 40px;
    }

    .pricing-card {
        padding: 32px 20px 28px;
        border-radius: 24px;
    }

    .price-val {
        font-size: 38px;
    }

    .cta-box {
        padding: 40px 18px;
        border-radius: 28px;
    }

    .input-row {
        flex-direction: column;
        border-radius: 16px;
        padding: 8px;
    }
    
    .btn-notify {
        width: 100%;
        justify-content: center;
        padding: 12px;
    }
    
    .modal-sheet {
        padding: 32px 18px 24px;
        margin-bottom: max(0px, env(safe-area-inset-bottom));
    }
    
    .footer {
        padding-bottom: max(32px, calc(20px + env(safe-area-inset-bottom)));
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (max-width: 380px) {
    .brand-name {
        display: none;
    }

    .nav-actions {
        gap: 4px;
    }

    .btn-nav.btn-beta {
        padding: 4px 7px;
        font-size: 10px;
    }
    
    .hero-title {
        font-size: 27px;
    }
    
    .iphone-18-pro {
        width: 255px;
        height: 535px;
    }
}


