/* ===================================
   CSS Variables & Reset
   =================================== */

:root {
    /* Apple-Style Premium Palette */
    --primary-color: #1d1d1f;
    --primary-dark: #000000;
    --primary-light: #424245;
    --secondary-color: #1d1d1f;
    --accent-color: #0071e3;
    --accent-hover: #0077ed;

    /* Clean backgrounds */
    --bg-primary: #ffffff;
    --bg-secondary: #fbfbfd;
    --bg-tertiary: #f5f5f7;

    /* Refined text colors */
    --text-primary: #1d1d1f;
    --text-secondary: #424245;
    --text-muted: #86868b;

    --border-color: rgba(0, 0, 0, 0.1);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.12);

    /* Apple-style smooth transitions */
    --transition-fast: 0.2s cubic-bezier(0.25, 0.1, 0.25, 1);
    --transition-medium: 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    --transition-slow: 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);

    /* Apple SF Pro system font stack.
       On macOS/iOS -apple-system & BlinkMacSystemFont resolve to SF Pro Display/Text.
       Inter is a near-pixel-perfect fallback for Windows/Android/Linux. */
    --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Helvetica, Arial, sans-serif;
    --font-text:    -apple-system, BlinkMacSystemFont, "SF Pro Text",    "Inter", "Segoe UI", Helvetica, Arial, sans-serif;
    --font-mono:    "SF Mono", "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
}

[data-theme="dark"] {
    /* Apple-Style Dark Mode */
    --primary-color: #f5f5f7;
    --primary-dark: #ffffff;
    --primary-light: #a1a1a6;
    --secondary-color: #f5f5f7;
    --accent-color: #2997ff;
    --accent-hover: #409cff;

    --bg-primary: #000000;
    --bg-secondary: #1d1d1f;
    --bg-tertiary: #2d2d2d;

    --text-primary: #f5f5f7;
    --text-secondary: #a1a1a6;
    --text-muted: #6e6e73;

    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.6);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    /* Enable SF Pro's optical sizing so display sizes auto-adjust */
    font-optical-sizing: auto;
    text-rendering: optimizeLegibility;
}

/* Tabular numbers for stats/figures */
.stat-number, .metric-value, time, .numeric,
.product-hero-title, h1, h2 {
    font-feature-settings: "kern", "liga", "cv11", "ss01";
}

body {
    font-family: var(--font-text);
    font-weight: 400;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.47059;
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "kern", "liga", "ss01";
    transition: background-color var(--transition-medium), color var(--transition-medium);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.08349;
    letter-spacing: -0.025em;
    color: var(--text-primary);
    font-feature-settings: "kern", "liga", "cv11";
}

h1 { font-weight: 700; letter-spacing: -0.035em; }
h2 { font-weight: 600; letter-spacing: -0.028em; }
h3 { font-weight: 600; letter-spacing: -0.022em; }
h4 { font-weight: 600; letter-spacing: -0.018em; }

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

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

ul {
    list-style: none;
}

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

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

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 7rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
}

.section-title::after {
    display: none; /* Clean Apple-style - no underlines */
}

.section-header:hover .section-title::after {
    width: 0;
}

.section-description {
    font-size: 1.25rem;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Buttons - Apple Style */
.btn {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    border-radius: 980px; /* Apple pill shape */
    font-weight: 500;
    font-size: 1rem;
    text-align: center;
    transition: all var(--transition-fast);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn::before {
    display: none; /* Remove ripple effect for cleaner look */
}

.btn:active::before {
    display: none;
}

.btn-primary {
    background: var(--accent-color);
    color: #ffffff;
    box-shadow: none;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: scale(1.02);
    box-shadow: none;
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-secondary {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    border: none;
}

.btn-secondary:hover {
    background-color: var(--bg-tertiary);
    filter: brightness(0.95);
    color: var(--text-primary);
    transform: scale(1.02);
}

.btn-secondary:active {
    transform: scale(0.98);
}

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

.btn-outline:hover {
    background-color: var(--accent-color);
    color: #ffffff;
    transform: scale(1.02);
}

.btn-outline:active {
    transform: scale(0.98);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes successPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease-out;
}

.fade-in:nth-child(1) { animation-delay: 0.1s; }
.fade-in:nth-child(2) { animation-delay: 0.2s; }
.fade-in:nth-child(3) { animation-delay: 0.3s; }

.success-animation {
    animation: successPulse 0.5s ease-in-out;
}

/* ===================================
   Header & Navigation - Apple Style
   =================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: none;
    z-index: 1000;
    transition: all var(--transition-medium);
    box-shadow: none;
}

[data-theme="dark"] .header {
    background: rgba(29, 29, 31, 0.72);
}

.header.scrolled {
    border-bottom: 1px solid var(--border-color);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 3rem;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: var(--text-primary);
    background-clip: unset;
}

.logo-img {
    height: 45px;
    width: auto;
    display: block;
}

.footer-logo-img {
    height: 80px;
    width: auto;
    margin-bottom: 1rem;
}

.nav-list {
    display: flex;
    gap: 1.75rem;
    align-items: center;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text-primary);
    opacity: 0.8;
    position: relative;
    padding: 0.5rem 0;
    transition: opacity var(--transition-fast);
}

.nav-link::after {
    display: none; /* Clean Apple-style - no underlines */
}

.nav-link:hover {
    opacity: 1;
    color: var(--text-primary);
}

.nav-link:hover::after {
    width: 0;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Theme Toggle */
.theme-toggle {
    background-color: transparent;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    opacity: 0.6;
    transition: all var(--transition-fast);
}

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

.sun-icon,
.moon-icon {
    position: absolute;
    transition: all var(--transition-fast);
}

[data-theme="light"] .moon-icon {
    opacity: 0;
    transform: rotate(180deg);
}

[data-theme="dark"] .sun-icon {
    opacity: 0;
    transform: rotate(180deg);
}

/* Mobile Menu Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    background-color: transparent;
    padding: 0.5rem;
}

.hamburger {
    width: 1.5rem;
    height: 2px;
    background-color: var(--text-primary);
    transition: all var(--transition-fast);
}

/* ===================================
   Hero Section - Apple Style
   =================================== */

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.hero-bg-shape {
    display: none; /* Clean background - no decorative shapes */
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: var(--text-primary);
    background-clip: unset;
    animation: fadeInUp 0.8s var(--transition-medium);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-description {
    font-size: clamp(1.125rem, 2.5vw, 1.375rem);
    font-weight: 400;
    letter-spacing: -0.01em;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.5;
    animation: fadeInUp 0.8s var(--transition-medium) 0.15s backwards;
}

/* ===================================
   Software Section
   =================================== */

#software {
    background: var(--bg-primary);
}

.software-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.software-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    padding: 2.5rem;
    border-radius: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .software-card {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.software-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-medium);
}

.software-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-color);
}

.software-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
}

.software-card:hover::before {
    transform: scaleX(1);
}

.software-card.featured {
    border: 2px solid var(--primary-color);
}

.featured-badge {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 980px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: #ffffff;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-title {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.card-subtitle {
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.card-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.card-features {
    margin-bottom: 2rem;
}

.card-features li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
}

.card-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}

/* Expandable Card Content */
.card-content-wrapper {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
}

.card-content-wrapper.expanded {
    max-height: 500px;
}

.card-description-short {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.expand-btn {
    background: none;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 0.5rem 0;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition-fast);
}

.expand-btn:hover {
    color: var(--primary-dark);
    transform: translateX(4px);
}

.expand-btn svg {
    width: 16px;
    height: 16px;
    transition: transform var(--transition-fast);
}

.expand-btn.active svg {
    transform: rotate(180deg);
}

/* Product Cards — Flagship + Bento Grid */

/* Accent colors per product */
[data-accent="trinity"]  { --card-accent: #10b981; --card-glow: rgba(16, 185, 129, 0.08); }
[data-accent="spark"]    { --card-accent: #ffb90c; --card-glow: rgba(255, 185, 12, 0.08); }
[data-accent="tex"]      { --card-accent: #F08050; --card-glow: rgba(240, 128, 80, 0.08); }
[data-accent="stencil"]  { --card-accent: #a6a6a6; --card-glow: rgba(166, 166, 166, 0.08); }

[data-theme="dark"] [data-accent="trinity"]  { --card-glow: rgba(16, 185, 129, 0.12); }
[data-theme="dark"] [data-accent="spark"]    { --card-glow: rgba(255, 185, 12, 0.12); }
[data-theme="dark"] [data-accent="tex"]      { --card-glow: rgba(240, 128, 80, 0.12); }
[data-theme="dark"] [data-accent="stencil"]  { --card-glow: rgba(166, 166, 166, 0.12); }

.product-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--bg-tertiary);
    border-radius: 1.5rem;
    overflow: hidden;
    transition: all var(--transition-medium);
    border-bottom: 3px solid var(--card-accent);
}

[data-theme="dark"] .product-card {
    background: var(--bg-secondary);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

/* Flagship — full-width, horizontal layout */
.product-card--flagship {
    display: flex;
    align-items: center;
    gap: 3rem;
    padding: 3rem;
    margin-top: 3rem;
    background: var(--bg-tertiary);
    background-image: radial-gradient(ellipse at 80% 50%, var(--card-glow) 0%, transparent 70%);
}

[data-theme="dark"] .product-card--flagship {
    background-color: var(--bg-secondary);
    background-image: radial-gradient(ellipse at 80% 50%, var(--card-glow) 0%, transparent 70%);
}

.product-card--flagship .product-card__text {
    flex: 1;
    min-width: 0;
}

.product-card--flagship .product-card__visual {
    flex: 0 0 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card--flagship .product-card__visual img {
    max-width: 100%;
    max-height: 220px;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card--flagship:hover .product-card__visual img {
    transform: scale(1.05);
}

.product-card__badge {
    display: inline-block;
    background: var(--card-accent);
    color: #ffffff;
    padding: 0.25rem 0.875rem;
    border-radius: 980px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.product-card__name {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.375rem;
    letter-spacing: -0.02em;
}

.product-card__tagline {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 1rem;
}

.product-card__desc {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 500px;
}

.product-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--card-accent);
    font-weight: 600;
    font-size: 1rem;
    transition: gap var(--transition-fast);
}

.product-card:hover .product-card__link {
    gap: 0.625rem;
}

.product-card__link svg {
    transition: transform var(--transition-fast);
}

.product-card:hover .product-card__link svg {
    transform: translateX(2px);
}

/* Secondary cards — 3-up grid */
.product-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.product-card--secondary {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background-image: radial-gradient(ellipse at 50% 0%, var(--card-glow) 0%, transparent 60%);
}

[data-theme="dark"] .product-card--secondary {
    background-color: var(--bg-secondary);
    background-image: radial-gradient(ellipse at 50% 0%, var(--card-glow) 0%, transparent 60%);
}

.product-card--secondary .product-card__visual {
    width: 100%;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.product-card--secondary .product-card__visual img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card--secondary:hover .product-card__visual img {
    transform: scale(1.05);
}

.product-card--secondary .product-card__name {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.product-card--secondary .product-card__tagline {
    margin-bottom: 0.75rem;
}

.product-card__desc-sm {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    flex: 1;
}

.product-card--secondary .product-card__link {
    font-size: 0.9375rem;
    margin-top: auto;
}

/* Responsive — Product Cards */
@media (max-width: 1024px) {
    .product-card--flagship {
        padding: 2.5rem;
    }

    .product-card--flagship .product-card__visual {
        flex: 0 0 200px;
    }
}

@media (max-width: 768px) {
    .product-card--flagship {
        flex-direction: column;
        padding: 2rem;
        gap: 2rem;
        text-align: center;
    }

    .product-card--flagship .product-card__visual {
        flex: none;
        width: 100%;
    }

    .product-card--flagship .product-card__visual img {
        max-height: 160px;
    }

    .product-card__badge {
        margin-left: auto;
        margin-right: auto;
    }

    .product-card__desc {
        max-width: none;
    }

    .product-card__link {
        justify-content: center;
    }

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

    .product-card--secondary {
        padding: 1.5rem;
    }

    .product-card--secondary .product-card__visual {
        height: 120px;
    }
}

/* ===================================
   Product Pages - Modern Design System
   =================================== */

/* Product-Specific Color Palettes */
.trinity-page {
    --product-primary: #10b981;
    --product-accent: #34d399;
    --product-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --product-glow: rgba(16, 185, 129, 0.3);
    --product-dark: #059669;
}

.spark-page {
    --product-primary: #ffb90c;
    --product-accent: #ffc933;
    --product-gradient: linear-gradient(135deg, #ffb90c 0%, #e6a700 100%);
    --product-glow: rgba(255, 185, 12, 0.3);
    --product-dark: #8a6d00;
}

.stencil-page {
    --product-primary: #6b6b65;
    --product-accent: #a6a6a6;
    --product-gradient: linear-gradient(135deg, #6b6b65 0%, #4a4a46 100%);
    --product-glow: rgba(107, 107, 101, 0.3);
    --product-dark: #4a4a46;
}

/* Stencil page — override shared green carbon-card styles with neutral grays */
.stencil-page .carbon-emissions-section {
    background: linear-gradient(180deg,
        rgba(107, 107, 101, 0.03) 0%,
        rgba(107, 107, 101, 0.08) 50%,
        rgba(107, 107, 101, 0.03) 100%);
}

.stencil-page .carbon-emissions-section::before {
    background: radial-gradient(circle at 30% 50%, rgba(107, 107, 101, 0.1) 0%, transparent 70%);
}

.stencil-page .carbon-badge {
    background: linear-gradient(135deg, #6b6b65 0%, #4a4a46 100%);
    box-shadow: 0 4px 12px rgba(107, 107, 101, 0.25);
}

.stencil-page .carbon-feature-card::before {
    background: linear-gradient(90deg, #6b6b65 0%, #4a4a46 100%);
}

.stencil-page .carbon-feature-card:hover {
    box-shadow: 0 12px 32px rgba(107, 107, 101, 0.15);
    border-color: #6b6b65;
}

[data-theme="dark"] .stencil-page .carbon-feature-card:hover {
    border-color: #a6a6a6;
    box-shadow: 0 12px 32px rgba(166, 166, 166, 0.15);
}

.stencil-page .carbon-icon {
    background: linear-gradient(135deg, rgba(107, 107, 101, 0.1) 0%, rgba(74, 74, 70, 0.1) 100%);
}

.stencil-page .carbon-icon svg {
    color: #6b6b65;
}

.stencil-page .carbon-feature-card:hover .carbon-icon {
    background: linear-gradient(135deg, #6b6b65 0%, #4a4a46 100%);
    box-shadow: 0 4px 12px rgba(107, 107, 101, 0.3);
}

.stencil-page .carbon-feature-list li::before {
    color: #6b6b65;
}

/* Product Hero Section - Apple Style Centered Layout */
.product-hero-section {
    padding: 8rem 0 4rem;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    position: relative;
    overflow: hidden;
}

.product-hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.product-hero-label {
    display: inline-block;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 0.5rem 1.25rem;
    border-radius: 980px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
}

.product-hero-title {
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.product-hero-subtitle {
    font-size: clamp(1.125rem, 2.5vw, 1.375rem);
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-weight: 400;
    line-height: 1.5;
    max-width: 650px;
}

.product-hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.product-hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 3rem;
}

.product-hero-image img {
    max-width: 500px;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.1));
}

/* Product Features Section - Apple Style Clean Grid */
.product-features-section {
    padding: 6rem 0;
    background-color: var(--bg-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.feature-card {
    background: var(--bg-tertiary);
    border: none;
    border-radius: 1.5rem;
    padding: 2.5rem;
    transition: all var(--transition-medium);
    position: relative;
    box-shadow: none;
}

[data-theme="dark"] .feature-card {
    background: var(--bg-secondary);
}

.feature-card:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-xl);
}

[data-theme="dark"] .feature-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Feature number badge - hidden for clean look */
.feature-number {
    display: none;
}

/* Feature icon - subtle accent */
.feature-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    background: var(--product-primary, var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: #ffffff;
    transition: all var(--transition-fast);
}

.feature-card:hover .feature-icon {
    transform: scale(1.05);
}

.feature-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.9375rem;
    position: relative;
    z-index: 1;
}

/* Carbon Emissions Section */
.carbon-emissions-section {
    padding: 6rem 0;
    background: linear-gradient(180deg,
        rgba(16, 185, 129, 0.03) 0%,
        rgba(16, 185, 129, 0.08) 50%,
        rgba(16, 185, 129, 0.03) 100%);
    position: relative;
    overflow: hidden;
}

.carbon-emissions-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -10%;
    width: 120%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.carbon-badge {
    display: inline-block;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.carbon-intro {
    max-width: 900px;
    margin: 2rem auto 3rem;
    text-align: center;
}

.carbon-intro p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
    font-weight: 400;
}

.carbon-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.carbon-feature-card {
    background: var(--bg-primary);
    border: 2px solid transparent;
    border-radius: 1.25rem;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.carbon-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.carbon-feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(16, 185, 129, 0.15);
    border-color: #10b981;
}

.carbon-feature-card:hover::before {
    transform: scaleX(1);
}

[data-theme="dark"] .carbon-feature-card {
    background: var(--bg-secondary);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .carbon-feature-card:hover {
    border-color: #10b981;
    box-shadow: 0 12px 32px rgba(16, 185, 129, 0.25);
}

.carbon-feature-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.carbon-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.carbon-icon svg {
    color: #10b981;
    transition: transform 0.3s ease;
}

.carbon-feature-card:hover .carbon-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.carbon-feature-card:hover .carbon-icon svg {
    color: white;
    transform: scale(1.1) rotate(5deg);
}

.carbon-feature-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.4;
}

.carbon-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.carbon-feature-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.9375rem;
}

.carbon-feature-list li:last-child {
    margin-bottom: 0;
}

.carbon-feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: #10b981;
    font-weight: 700;
    font-size: 1rem;
}

.carbon-feature-list li strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Responsive - Carbon Emissions */
@media (max-width: 768px) {
    .carbon-emissions-section {
        padding: 4rem 0;
    }

    .carbon-features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .carbon-feature-card {
        padding: 1.5rem;
    }

    .carbon-feature-title {
        font-size: 1rem;
    }

    .carbon-intro p {
        font-size: 1rem;
    }
}

/* Technical Capabilities Section */
.technical-capabilities-section {
    padding: 6rem 0;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.capability-category {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.capability-category:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

[data-theme="dark"] .capability-category {
    background: var(--bg-secondary);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .capability-category:hover {
    border-color: var(--primary-color);
}

.capability-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.capability-header svg {
    color: var(--primary-color);
    flex-shrink: 0;
}

.capability-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.capability-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.capability-list li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.9375rem;
}

.capability-list li:last-child {
    margin-bottom: 0;
}

.capability-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
}

/* Responsive - Technical Capabilities */
@media (max-width: 768px) {
    .capabilities-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .capability-category {
        padding: 1.5rem;
    }

    .capability-title {
        font-size: 1.125rem;
    }
}

/* PDF Editing Section */
.pdf-editing-section {
    padding: 6rem 0;
    background: linear-gradient(180deg,
        rgba(128, 155, 154, 0.03) 0%,
        rgba(128, 155, 154, 0.08) 50%,
        rgba(128, 155, 154, 0.03) 100%);
    position: relative;
    overflow: hidden;
}

.pdf-editing-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -10%;
    width: 120%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(128, 155, 154, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.pdf-badge {
    display: inline-block;
    background: linear-gradient(135deg, #809b9a 0%, #6a817f 100%);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(128, 155, 154, 0.25);
}

.pdf-intro {
    max-width: 900px;
    margin: 2rem auto 3rem;
    text-align: center;
}

.pdf-intro p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
    font-weight: 400;
}

.pdf-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.pdf-feature-card {
    background: var(--bg-primary);
    border: 2px solid transparent;
    border-radius: 1.25rem;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.pdf-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #809b9a 0%, #6a817f 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pdf-feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(128, 155, 154, 0.15);
    border-color: #809b9a;
}

.pdf-feature-card:hover::before {
    transform: scaleX(1);
}

[data-theme="dark"] .pdf-feature-card {
    background: var(--bg-secondary);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .pdf-feature-card:hover {
    border-color: #809b9a;
    box-shadow: 0 12px 32px rgba(128, 155, 154, 0.25);
}

.pdf-feature-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.pdf-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, rgba(128, 155, 154, 0.1) 0%, rgba(106, 129, 127, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.pdf-icon svg {
    color: #809b9a;
    transition: transform 0.3s ease;
}

.pdf-feature-card:hover .pdf-icon {
    background: linear-gradient(135deg, #809b9a 0%, #6a817f 100%);
    box-shadow: 0 4px 12px rgba(128, 155, 154, 0.3);
}

.pdf-feature-card:hover .pdf-icon svg {
    color: white;
    transform: scale(1.1) rotate(5deg);
}

.pdf-feature-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.4;
}

.pdf-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pdf-feature-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.9375rem;
}

.pdf-feature-list li:last-child {
    margin-bottom: 0;
}

.pdf-feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: #809b9a;
    font-weight: 700;
    font-size: 1rem;
}

.pdf-feature-list li strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Responsive - PDF Editing Section */
@media (max-width: 768px) {
    .pdf-editing-section {
        padding: 4rem 0;
    }

    .pdf-features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .pdf-feature-card {
        padding: 1.5rem;
    }

    .pdf-feature-title {
        font-size: 1rem;
    }

    .pdf-intro p {
        font-size: 1rem;
    }
}

/* How It Works Section - Simplified 3 Steps */
.how-it-works-section {
    padding: 6rem 0;
    background-color: var(--bg-primary);
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
    margin-bottom: 4rem;
    position: relative;
}

.steps-container::before {
    content: '';
    position: absolute;
    top: 3rem;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg,
        var(--product-primary, var(--primary-color)) 0%,
        var(--product-accent, var(--secondary-color)) 100%);
    z-index: 0;
}

.step-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.4));
    backdrop-filter: blur(10px);
    padding: 2.5rem 2rem;
    border-radius: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

[data-theme="dark"] .step-item {
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.8), rgba(30, 30, 30, 0.4));
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.step-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
}

.step-number {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: var(--product-gradient, linear-gradient(135deg, var(--primary-color), var(--secondary-color)));
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 24px var(--product-glow, rgba(0, 123, 255, 0.3));
}

.step-content {
    flex-grow: 1;
}

.step-title {
    font-size: 1.375rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 700;
}

.step-description {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.9375rem;
}

/* Benefits Section - Integrated Stats */
.benefits-section {
    padding: 6rem 0;
    background:
        radial-gradient(circle at 80% 20%, rgba(0, 123, 255, 0.05) 0%, transparent 50%),
        var(--bg-secondary);
}

.benefits-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.benefits-list {
    display: grid;
    gap: 1.5rem;
}

.benefit-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.75rem;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

[data-theme="dark"] .benefit-item {
    background: rgba(30, 30, 30, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.benefit-item:hover {
    transform: translateX(8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    border-color: var(--product-primary, var(--primary-color));
}

.benefit-icon {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    border-radius: 0.875rem;
    background: var(--product-gradient, linear-gradient(135deg, var(--primary-color), var(--secondary-color)));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.benefit-text h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 700;
}

.benefit-text p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.9375rem;
}

.benefits-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: sticky;
    top: 7rem;
}

.stat-highlight {
    background: var(--product-gradient, linear-gradient(135deg, var(--primary-color), var(--secondary-color)));
    padding: 2.5rem;
    border-radius: 1.25rem;
    text-align: center;
    color: #ffffff;
    box-shadow: 0 16px 32px var(--product-glow, rgba(0, 123, 255, 0.3));
    position: relative;
    overflow: hidden;
}

.stat-highlight::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent);
    animation: rotate 20s linear infinite;
}

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

.stat-highlight .stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.stat-highlight .stat-label {
    font-size: 1.125rem;
    font-weight: 500;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

/* Expandable Section - Apple Style */
.expandable-section {
    padding: 3rem 0;
    background: var(--bg-secondary);
}

.expand-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0 auto;
    padding: 1rem 2rem;
    background: var(--bg-tertiary);
    border: none;
    border-radius: 980px;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.expand-toggle:hover {
    background: var(--bg-primary);
    box-shadow: var(--shadow-md);
}

.expand-toggle svg {
    transition: transform var(--transition-fast);
}

.expandable-section.expanded .expand-toggle svg {
    transform: rotate(180deg);
}

.expandable-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
}

.expandable-section.expanded .expandable-content {
    max-height: 10000px;
}

.expandable-section-inner {
    padding: 4rem 0 2rem;
}

.expandable-section-inner .section-header {
    margin-bottom: 2rem;
}

/* Stats Section - Simplified Apple Style */
.stats-section {
    padding: 4rem 0;
    background: var(--bg-primary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.stat-card-simple {
    text-align: center;
    padding: 2rem;
}

.stat-card-simple .stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--product-primary, var(--accent-color));
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.stat-card-simple .stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* 3-column steps layout */
.steps-container.steps-3 {
    grid-template-columns: repeat(3, 1fr);
}

.steps-container.steps-3::before {
    right: 15%;
    left: 15%;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-card-simple .stat-number {
        font-size: 2.5rem;
    }

    .steps-container.steps-3 {
        grid-template-columns: 1fr;
    }

    .steps-container.steps-3::before {
        display: none;
    }
}

/* Integration Section - Stencil AI */
.integration-section {
    background: var(--bg-secondary);
    text-align: center;
    padding: 5rem 0;
}

.integration-content {
    max-width: 600px;
    margin: 0 auto;
}

.integration-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.integration-badge img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.integration-badge .stencil-product-img {
    width: 240px;
    height: 240px;
}

.integration-badge span {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--text-muted);
}

.integration-content h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.integration-content p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

/* CTA Section - Apple Style Clean */
.cta-section {
    padding: 6rem 0;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    display: none;
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.cta-description {
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.cta-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-lg {
    padding: 1.125rem 2.75rem;
    font-size: 1.125rem;
    font-weight: 600;
}

/* CTA section uses standard button styles (neutral background) */

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

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

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
    align-items: start;
}

.pricing-grid.pricing-grid-2 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 800px;
}

.pricing-card {
    background: var(--bg-primary);
    border-radius: 1.5rem;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

[data-theme="dark"] .pricing-card {
    background: var(--bg-tertiary);
}

.pricing-card:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
    border: 2px solid var(--accent-color);
    transform: scale(1.05);
    z-index: 1;
}

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

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-color);
    color: white;
    padding: 0.375rem 1rem;
    border-radius: 980px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.pricing-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.pricing-tier {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

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

.pricing-price {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.price-amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
}

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

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

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

.pricing-card .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
}

/* ===================================
   About Section
   =================================== */

.about-section {
    background: var(--bg-primary);
}

.about-content {
    display: grid;
    gap: 3rem;
}

.about-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.mission-values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.value-item {
    background-color: var(--bg-tertiary);
    padding: 2rem;
    border-radius: 1.5rem;
    border: none;
}

.value-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.values-list li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
}

.values-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-card {
    background: var(--bg-tertiary);
    padding: 2rem;
    border-radius: 1.5rem;
    text-align: center;
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-medium);
    box-shadow: none;
}

[data-theme="dark"] .stat-card {
    background: var(--bg-secondary);
}

.stat-card::before {
    display: none;
}

.stat-card:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.stat-card:hover::before {
    display: none;
}

.stat-number {
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
    transition: all var(--transition-medium);
    color: var(--accent-color);
    letter-spacing: -0.02em;
}

.stat-card:hover .stat-number {
    transform: scale(1.05);
}

.stat-label {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ===================================
   Contact Section
   =================================== */

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

.contact-content {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.contact-form-wrapper {
    max-width: 600px;
    width: 100%;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    padding: 0.875rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    font-family: inherit;
    font-size: 1rem;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    display: none;
}

.error-message.show {
    display: block;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    align-items: center;
}

.info-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    flex-shrink: 0;
}

.info-content h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.info-content a {
    color: var(--primary-color);
}

.info-content a:hover {
    text-decoration: underline;
}

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

.social-links {
    margin-top: 1rem;
    text-align: center;
}

.social-links h3 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.social-icon:hover {
    background: var(--accent-color);
    color: #ffffff;
    transform: translateY(-2px);
}

/* ===================================
   Newsletter Section
   =================================== */

.newsletter-section {
    background: #1d1d1f;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    display: none;
}

.newsletter-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-title {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 1rem;
}

.newsletter-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.newsletter-input-wrapper {
    display: flex;
    width: 100%;
    max-width: 600px;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border-radius: 0.75rem;
    padding: 0.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.newsletter-input-wrapper:focus-within {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.16);
    border-color: rgba(255, 255, 255, 0.5);
}

.newsletter-input-wrapper input {
    flex: 1;
    padding: 0.875rem 1rem;
    border: none;
    border-radius: 0.375rem;
    font-size: 1rem;
    background-color: transparent;
    color: var(--text-primary);
    outline: none;
}

.newsletter-input-wrapper input::placeholder {
    color: var(--text-muted);
}

.newsletter-input-wrapper input:focus {
    background-color: rgba(0, 123, 255, 0.05);
}

.btn-newsletter {
    padding: 0.875rem 1.5rem;
    background-color: var(--accent-color);
    color: #ffffff;
    border: none;
    border-radius: 980px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.btn-newsletter:hover {
    background-color: var(--accent-hover);
    transform: scale(1.02);
    box-shadow: none;
}

.btn-newsletter:active {
    transform: scale(0.98);
}

.newsletter-error {
    color: #ff6b6b;
    font-size: 0.875rem;
    display: none;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
}

.newsletter-error.show {
    display: block;
}

.newsletter-success {
    color: #51cf66;
    font-size: 0.875rem;
    display: none;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
}

.newsletter-success.show {
    display: block;
    animation: fadeIn 0.5s ease-in;
}

.newsletter-privacy {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.5rem;
}

.privacy-link {
    color: #ffffff;
    text-decoration: underline;
    transition: opacity var(--transition-fast);
}

.privacy-link:hover {
    opacity: 0.8;
}

/* ===================================
   Footer - Apple Style
   =================================== */

.footer {
    background-color: var(--bg-tertiary);
    border-top: none;
    padding: 3rem 0 1.5rem;
}

[data-theme="dark"] .footer {
    background-color: #000000;
    color: #a1a1a6;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-weight: 600;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: var(--text-primary);
    background-clip: unset;
}

[data-theme="dark"] .footer-brand h3 {
    color: #f5f5f7;
    -webkit-text-fill-color: #f5f5f7;
}

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

[data-theme="dark"] .footer-brand p {
    color: #86868b;
}

.footer-links {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
}

.footer-column h4 {
    font-size: 0.75rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

[data-theme="dark"] .footer-column h4 {
    color: #f5f5f7;
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-column a {
    color: var(--text-secondary);
    font-size: 0.875rem;
    transition: color var(--transition-fast);
}

[data-theme="dark"] .footer-column a {
    color: #a1a1a6;
}

/* Footer Product Icons */
.footer-product-icons {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 0.5rem;
    min-height: 100px;
}

.footer-product-link {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.footer-product-link:hover {
    transform: scale(1.05);
    opacity: 0.8;
}

.footer-product-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.footer-product-icon.stencil-product-img {
    width: 96px;
    height: 96px;
}

.footer-column a:hover {
    color: var(--accent-color);
}

[data-theme="dark"] .footer-column a:hover {
    color: #ffffff;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.8125rem;
}

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

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

/* Tablet Breakpoint (768px - 1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.25rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .section {
        padding: 4rem 0;
    }

    .software-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

    .contact-content {
        gap: 3rem;
    }

    .footer-links {
        gap: 1.5rem;
    }
}

/* Mobile Breakpoint (< 768px) */
@media (max-width: 768px) {
    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 3rem;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: saturate(180%) blur(20px);
        -webkit-backdrop-filter: saturate(180%) blur(20px);
        border-bottom: 1px solid var(--border-color);
        padding: 1.5rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-medium);
        box-shadow: var(--shadow-lg);
    }

    [data-theme="dark"] .nav-menu {
        background: rgba(29, 29, 31, 0.95);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-list {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .hamburger:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-toggle.active .hamburger:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .hamburger:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* Hero */
    .hero-section {
        min-height: auto;
        padding: 8rem 1.5rem 4rem;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    /* Sections */
    .section {
        padding: 4rem 0;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .section-description {
        font-size: 1rem;
    }

    /* Software Grid */
    .software-grid {
        grid-template-columns: 1fr;
    }

    /* Pricing Grid */
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .pricing-card.featured {
        transform: none;
    }

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

    /* Contact */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Newsletter */
    .newsletter-title {
        font-size: 2rem;
    }

    .newsletter-description {
        font-size: 1rem;
    }

    .newsletter-input-wrapper {
        flex-direction: column;
        gap: 0.75rem;
    }

    .btn-newsletter {
        width: 100%;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    /* About Stats */
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Product Pages Mobile */
    .product-hero-content {
        padding: 0 1rem;
    }

    .product-hero-title {
        font-size: 2.25rem;
    }

    .product-hero-subtitle {
        font-size: 1rem;
    }

    .product-hero-image img {
        max-width: 300px;
    }

    .product-hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .product-hero-actions .btn {
        width: 100%;
    }

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

    .steps-container {
        grid-template-columns: 1fr;
    }

    .steps-container::before {
        display: none;
    }

    .benefits-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .benefits-stats {
        position: static;
        flex-direction: row;
        justify-content: center;
    }

    .stat-highlight .stat-number {
        font-size: 3rem;
    }

    .cta-title {
        font-size: 2rem;
    }

    .cta-description {
        font-size: 1.125rem;
    }

    .cta-actions {
        flex-direction: column;
    }

    .cta-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.875rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9375rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 2.5rem;
    }
}

/* ===================================
   Scroll Progress Indicator
   =================================== */

.scroll-progress {
    position: fixed;
    top: 3rem; /* Below header */
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    z-index: 999;
    pointer-events: none;
}

.scroll-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--accent-color);
    transition: width 0.05s linear;
    border-radius: 0 2px 2px 0;
}

/* ===================================
   Back to Top Button
   =================================== */

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--accent-color);
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity var(--transition-fast),
                visibility var(--transition-fast),
                transform var(--transition-fast),
                background-color var(--transition-fast);
    z-index: 998;
    box-shadow: var(--shadow-lg);
}

.back-to-top:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.back-to-top:active {
    transform: translateY(0);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Mobile adjustments for back to top */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 2.75rem;
        height: 2.75rem;
    }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ===================================
   License Recovery Page
   =================================== */

.recover-section {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    padding-top: 8rem;
    padding-bottom: 4rem;
}

.recover-form-wrapper {
    max-width: 480px;
    margin: 0 auto;
    background: var(--bg-secondary);
    padding: 3rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.recover-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.recover-btn {
    width: 100%;
    position: relative;
}

.recover-btn .btn-loading {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.recover-btn.loading .btn-text {
    display: none;
}

.recover-btn.loading .btn-loading {
    display: flex;
}

.recover-btn .spinner {
    animation: spin 1s linear infinite;
}

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

.recover-success {
    display: none;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 0.75rem;
    color: #10b981;
    font-size: 0.95rem;
    line-height: 1.5;
}

.recover-success svg {
    flex-shrink: 0;
}

.recover-success.show {
    display: flex;
    animation: fadeInUp 0.4s ease;
}

.recover-help {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.recover-help p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.recover-help a {
    color: var(--accent-color);
    font-weight: 500;
    transition: color var(--transition-fast);
}

.recover-help a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* Mobile adjustments for recover page */
@media (max-width: 768px) {
    .recover-section {
        padding-top: 6rem;
    }

    .recover-form-wrapper {
        padding: 2rem;
        margin: 0 1rem;
    }
}

/* ===================================
   Legal Pages (Privacy, Terms, Cookies)
   =================================== */

.legal-section {
    padding-top: 8rem;
    padding-bottom: 4rem;
}

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

.legal-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.legal-header h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.legal-updated {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.legal-body {
    line-height: 1.8;
}

.legal-intro {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 0.75rem;
    border-left: 4px solid var(--accent-color);
}

.legal-section-block {
    margin-bottom: 2.5rem;
}

.legal-section-block h2 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.legal-section-block h3 {
    font-size: 1.15rem;
    color: var(--text-primary);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.legal-section-block p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.legal-section-block ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
    list-style: disc;
}

.legal-section-block ul li {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.legal-section-block a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.legal-section-block a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.legal-contact {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin: 1rem 0;
}

.legal-contact p {
    margin-bottom: 0.25rem;
}

.legal-contact a {
    color: var(--accent-color);
}

/* Cookie Table */
.cookie-table-wrapper {
    overflow-x: auto;
    margin: 1.5rem 0;
}

.cookie-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.cookie-table th,
.cookie-table td {
    padding: 0.875rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.cookie-table th {
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-weight: 600;
    white-space: nowrap;
}

.cookie-table td {
    color: var(--text-secondary);
}

.cookie-table tbody tr:hover {
    background: var(--bg-secondary);
}

/* Mobile adjustments for legal pages */
@media (max-width: 768px) {
    .legal-section {
        padding-top: 6rem;
    }

    .legal-content {
        padding: 0 1rem;
    }

    .legal-header h1 {
        font-size: 1.75rem;
    }

    .legal-intro {
        font-size: 1rem;
        padding: 1rem;
    }

    .legal-section-block h2 {
        font-size: 1.25rem;
    }

    .cookie-table {
        font-size: 0.8rem;
    }

    .cookie-table th,
    .cookie-table td {
        padding: 0.625rem 0.5rem;
    }
}

/* ===================================
   Product Pages — Apple-Inspired Layout
   =================================== */

/* Tex Product Color Palette */
.tex-page {
    --product-primary: #F08050;
    --product-accent: #f4a080;
    --product-gradient: linear-gradient(135deg, #F08050 0%, #d06830 100%);
    --product-glow: rgba(240, 128, 80, 0.3);
    --product-dark: #d06830;
}

/* Generous section spacing for product pages */
.trinity-page .section,
.spark-page .section,
.stencil-page .section,
.tex-page .section {
    padding: clamp(5rem, 8vw, 8rem) 0;
}

.trinity-page .product-hero-section,
.spark-page .product-hero-section,
.stencil-page .product-hero-section,
.tex-page .product-hero-section {
    padding: 8rem 0 4rem;
}

/* Immersive Feature — Alternating Image/Text Blocks */
.immersive-feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 6rem;
}

.immersive-feature:last-child {
    margin-bottom: 0;
}

.immersive-feature--reverse {
    direction: rtl;
}

.immersive-feature--reverse > * {
    direction: ltr;
}

.immersive-feature__image {
    margin: 0;
}

.immersive-feature__text {
    padding: 1rem 0;
}

.immersive-feature__accent {
    width: 40px;
    height: 3px;
    background: var(--product-primary);
    border-radius: 2px;
    margin-bottom: 1.5rem;
}

.immersive-feature__text h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.immersive-feature__text ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.immersive-feature__text ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1rem;
}

.immersive-feature__text ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--product-primary);
}

/* Product Placeholder for Screenshots */
.product-placeholder {
    background: var(--bg-tertiary);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.9375rem;
    font-weight: 500;
    aspect-ratio: 16 / 9;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .product-placeholder {
    background: var(--bg-secondary);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.product-placeholder--dark {
    background: #2d2d2d;
    color: #86868b;
    aspect-ratio: 16 / 10;
    min-height: 300px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .product-placeholder--dark {
    background: #2d2d2d;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* Product Tool Ribbon */
.product-tools-section {
    background: var(--bg-tertiary);
}

.product-tools {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.product-tool {
    text-align: center;
    max-width: 200px;
}

.product-tool svg {
    color: var(--product-primary);
    margin-bottom: 1rem;
}

.product-tool h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.product-tool p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Product Showcase Strip — Always Dark */
.product-showcase-section {
    background: #1d1d1f;
    overflow: hidden;
}

.product-showcase-wrap {
    width: 100%;
}

.product-showcase-section .section-header {
    padding: 0 2rem;
    margin-bottom: 3rem;
    text-align: center;
}

.product-showcase-section .section-title {
    color: #ffffff;
}

.product-showcase {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 1rem 2rem 2rem;
    cursor: grab;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.product-showcase::-webkit-scrollbar {
    display: none;
}

.product-showcase.dragging {
    cursor: grabbing;
    scroll-snap-type: none;
}

.product-showcase__item {
    flex-shrink: 0;
    width: 80%;
    max-width: 900px;
    scroll-snap-align: center;
}

.product-showcase__item img {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    border-radius: 0.75rem;
}

/* Product CTA Section — Product Gradient */
.product-cta-section {
    background: var(--product-gradient);
}

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

.product-cta h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.product-cta p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.product-cta__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.product-cta__btn-filled {
    background: #ffffff;
    color: var(--product-dark);
    padding: 1rem 2.5rem;
    border-radius: 980px;
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.product-cta__btn-filled:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.02);
    color: var(--product-dark);
}

.product-cta__btn-outline {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.5);
    padding: 1rem 2.5rem;
    border-radius: 980px;
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.product-cta__btn-outline:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transform: scale(1.02);
}

/* Reveal Animation System */
.reveal-hidden {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.25, 0.1, 0.25, 1),
                transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.reveal-hidden.reveal-up {
    transform: translateY(40px);
}

.reveal-hidden.reveal-left {
    transform: translateX(-60px);
}

.reveal-hidden.reveal-right {
    transform: translateX(60px);
}

.reveal-visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* Responsive — Product Pages (Apple Layout) */
@media (max-width: 768px) {
    .immersive-feature {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 4rem;
    }

    .immersive-feature--reverse {
        direction: ltr;
    }

    .product-tools {
        gap: 2rem;
    }

    .product-tool {
        flex: 1 1 140px;
    }

    .product-showcase__item {
        width: 90%;
    }

    .product-cta__actions {
        flex-direction: column;
    }

    .product-cta__btn-filled,
    .product-cta__btn-outline {
        width: 100%;
    }
}

/* Reduced Motion — Reveal Animations */
@media (prefers-reduced-motion: reduce) {
    .reveal-hidden {
        transform: none !important;
    }
}

/* ===================================
   Homepage — Bundle Section
   =================================== */

.home-bundle-section {
    background: var(--bg-tertiary);
}

.home-bundle {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 3rem;
    align-items: center;
    background: var(--bg-primary);
    border-radius: 1.5rem;
    padding: 3rem;
    box-shadow: var(--shadow-md);
    margin-top: 3rem;
    border: 2px solid transparent;
    overflow: hidden;
}

[data-theme="dark"] .home-bundle {
    background: var(--bg-secondary);
}

.home-bundle__badge {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    padding: 0.375rem 1rem;
    border-radius: 980px;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    z-index: 1;
}

.home-bundle__visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.home-bundle__icons {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.home-bundle__icons img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.home-bundle__plus {
    font-size: 2rem;
    font-weight: 300;
    color: var(--text-muted);
    line-height: 1;
}

.home-bundle__icon-label {
    font-size: 0.8125rem;
    color: var(--text-muted);
    font-weight: 500;
    text-align: center;
}

.home-bundle__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.home-bundle__desc {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.home-bundle__features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.home-bundle__features li {
    position: relative;
    padding-left: 1.25rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.home-bundle__features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-color);
}

.home-bundle__cta {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    min-width: 180px;
}

.home-bundle__pricing {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    justify-content: center;
}

.home-bundle__price-old {
    font-size: 1.25rem;
    font-weight: 500;
    color: #dc2626;
    text-decoration: line-through;
    text-decoration-thickness: 2px;
}

.home-bundle__price-new {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    line-height: 1;
}

.home-bundle__price-period {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.home-bundle__btn {
    width: 100%;
}

.home-bundle__note {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

@media (max-width: 1024px) {
    .home-bundle {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .home-bundle__visual {
        justify-content: center;
    }

    .home-bundle__features {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .home-bundle__cta {
        min-width: auto;
    }
}

@media (max-width: 768px) {
    .home-bundle {
        padding: 2rem;
        gap: 2rem;
    }

    .home-bundle__icons img {
        width: 60px;
        height: 60px;
    }

    .home-bundle__badge {
        top: 1rem;
        right: 1rem;
    }
}

/* ===================================
   Homepage — Downloads Section
   =================================== */

.home-downloads-section {
    background: var(--bg-primary);
}

.home-downloads-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.home-download-card {
    background: var(--bg-tertiary);
    border-radius: 1.25rem;
    padding: 2rem;
    text-align: center;
    transition: all var(--transition-medium);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

[data-theme="dark"] .home-download-card {
    background: var(--bg-secondary);
}

.home-download-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.home-download-card__icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.home-download-card__icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.home-download-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.home-download-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

.home-download-card__platform {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin: 0.25rem 0 0.75rem;
}

.home-download-card__btn {
    margin-top: auto;
    width: 100%;
}

@media (max-width: 1024px) {
    .home-downloads-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .home-downloads-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ===================================================================
   Downloads Page
   =================================================================== */

/* --- Hero --- */
.dl-hero {
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.dl-hero .section-title {
    font-size: clamp(3rem, 7vw, 4.5rem);
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
}

.dl-hero .section-description {
    font-size: clamp(1.125rem, 2vw, 1.3rem);
    margin-bottom: 1.5rem;
}

.dl-platform-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    border-radius: 980px;
    background: var(--bg-tertiary);
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .dl-platform-badge {
    background: var(--bg-secondary);
}

/* --- Grid --- */
.dl-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 1rem;
}

.dl-grid--3col {
    grid-template-columns: repeat(3, 1fr);
}

/* --- Full-width card (below grid) --- */
.dl-card--full {
    margin-top: 1.5rem;
    flex-direction: row;
    align-items: center;
    background-image: radial-gradient(ellipse at 80% 50%, var(--card-glow) 0%, transparent 70%);
    padding: 0.75rem 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.dl-card--full .dl-card__visual {
    flex: 0 0 80px;
    height: auto;
    padding: 0.75rem 0;
}

.dl-card--full .dl-card__info {
    flex: 1;
    padding: 0.75rem 1.5rem;
}

.dl-card--full .dl-card__name {
    font-size: 1.25rem;
}

.dl-card--full .dl-card__tagline {
    margin-bottom: 0.25rem;
}

.dl-card--full .dl-card__desc,
.dl-card--full .dl-card__meta {
    display: none;
}

.dl-card--full .dl-card__actions {
    flex: 0 0 auto;
    padding: 0.75rem 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

/* --- Card --- */
.dl-card {
    background: var(--bg-tertiary);
    border-radius: 1.5rem;
    overflow: hidden;
    border-bottom: 3px solid var(--card-accent);
    background-image: radial-gradient(ellipse at 50% 0%, var(--card-glow) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    transition: all var(--transition-medium);
}

[data-theme="dark"] .dl-card {
    background-color: var(--bg-secondary);
    background-image: radial-gradient(ellipse at 50% 0%, var(--card-glow) 0%, transparent 60%);
}

.dl-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

/* --- Card Visual --- */
.dl-card__visual {
    width: 100%;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 2rem 0;
}

.dl-card__visual img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.dl-card:hover .dl-card__visual img {
    transform: scale(1.05);
}

.dl-card__visual .trinity-product-img {
    max-height: 140px;
}

.dl-card__visual .stencil-product-img {
    max-height: 140px;
    width: auto;
}

/* --- Card Info --- */
.dl-card__info {
    padding: 1.25rem 2rem 0;
    flex: 1;
}

.dl-card__name-row {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 0.25rem;
}

.dl-card__name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin: 0;
}

/* --- Version Badge --- */
.dl-card__version {
    display: inline-block;
    padding: 0.125rem 0.625rem;
    border-radius: 980px;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    background: var(--card-accent);
    color: #ffffff;
    white-space: nowrap;
}

/* --- Tagline --- */
.dl-card__tagline {
    font-size: 0.9375rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 0.75rem;
}

/* --- Description --- */
.dl-card__desc {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

/* --- Meta --- */
.dl-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 0.25rem;
}

.dl-card__platform,
.dl-card__format {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.dl-card__platform svg,
.dl-card__format svg {
    opacity: 0.7;
    flex-shrink: 0;
}

/* --- Actions --- */
.dl-card__actions {
    padding: 1.25rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    margin-top: auto;
}

/* --- Download Button --- */
.dl-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 980px;
    font-weight: 500;
    font-size: 0.9375rem;
    background: var(--accent-color);
    color: #ffffff;
    transition: all var(--transition-fast);
    text-decoration: none;
    white-space: nowrap;
}

.dl-card__btn:hover {
    background: var(--accent-hover);
    transform: scale(1.02);
}

.dl-card__btn:active {
    transform: scale(0.98);
}

.dl-card__btn svg {
    flex-shrink: 0;
}

.dl-card__btn--license {
    background: transparent;
    color: var(--card-accent);
    border: 1.5px solid var(--card-accent);
}

.dl-card__btn--license:hover {
    background: var(--card-accent);
    color: #ffffff;
    filter: none;
}

.dl-card__btn--coming-soon {
    background: var(--bg-tertiary);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    cursor: default;
    pointer-events: none;
}

[data-theme="dark"] .dl-card__btn--coming-soon {
    background: var(--bg-tertiary);
}

/* --- Learn More Link --- */
.dl-card__learn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    color: var(--card-accent);
    font-weight: 600;
    font-size: 0.9375rem;
    transition: gap var(--transition-fast);
    text-decoration: none;
    white-space: nowrap;
}

.dl-card__learn:hover {
    gap: 0.625rem;
}

.dl-card__learn svg {
    transition: transform var(--transition-fast);
}

.dl-card__learn:hover svg {
    transform: translateX(2px);
}

/* --- Notice --- */
.dl-notice {
    text-align: center;
    padding: 2rem;
    border-radius: 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    max-width: 640px;
    margin: 0 auto;
}

[data-theme="dark"] .dl-notice {
    background: var(--bg-secondary);
}

.dl-notice p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

.dl-notice a {
    color: var(--accent-color);
    font-weight: 500;
    text-decoration: none;
}

.dl-notice a:hover {
    text-decoration: underline;
}

/* --- Downloads Page Responsive --- */
@media (max-width: 1024px) {
    .dl-grid--3col {
        grid-template-columns: repeat(2, 1fr);
    }

    .dl-grid--3col .dl-card:last-child {
        grid-column: 1 / -1;
        max-width: 50%;
        justify-self: center;
    }
}

@media (max-width: 768px) {
    .dl-hero {
        min-height: auto;
        padding: 7rem 2rem 3rem;
    }

    .dl-grid,
    .dl-grid--3col {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
    }

    .dl-grid--3col .dl-card:last-child {
        max-width: none;
    }

    .dl-card--full {
        flex-direction: column;
    }

    .dl-card--full .dl-card__visual {
        flex: none;
        width: 100%;
        height: 130px;
        padding: 1.5rem 1.5rem 0;
    }

    .dl-card--full .dl-card__info {
        padding: 1rem 1.5rem 0;
    }

    .dl-card--full .dl-card__actions {
        padding: 1rem 1.5rem 1.5rem;
    }

    .dl-card__visual {
        height: 130px;
    }

    .dl-card__info {
        padding: 1rem 1.5rem 0;
    }

    .dl-card__actions {
        padding: 1rem 1.5rem 1.5rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .dl-card__btn {
        width: 100%;
        justify-content: center;
    }
}

/* ===================================
   Billing Portal
   =================================== */

/* --- Page Layout --- */
.billing-section {
    padding-top: clamp(8rem, 10vw, 12rem);
    min-height: 60vh;
}

.billing-view {
    max-width: 500px;
    margin: 0 auto;
}

.billing-form-wrapper {
    margin-top: 2rem;
}

.billing-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.billing-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* --- Button Loading States --- */
.btn-loading {
    display: none;
}

.btn.loading .btn-text {
    display: none;
}

.btn.loading .btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.spinner {
    animation: spin 1s linear infinite;
}

/* --- Success Message --- */
.billing-success {
    display: none;
    padding: 1.25rem 1.5rem;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: 0.75rem;
    color: var(--text-primary);
    font-size: 0.9375rem;
    line-height: 1.55;
    margin-top: 1.25rem;
}

.billing-success svg {
    color: #10b981;
    flex-shrink: 0;
    margin-top: 2px;
}

.billing-success.show {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    align-items: flex-start;
    animation: billingSuccessIn 350ms cubic-bezier(0.25, 0.1, 0.25, 1) both;
}

.billing-success__body {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.billing-success__title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.billing-success__text {
    color: var(--text-secondary);
}

.billing-success__hint {
    color: var(--text-muted);
    font-size: 0.8125rem;
    padding-top: 0.25rem;
    border-top: 1px solid rgba(16, 185, 129, 0.2);
    margin-top: 0.25rem;
}

@keyframes billingSuccessIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .billing-success.show { animation: none; }
}

/* --- Dashboard Header --- */
.billing-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.billing-header-left {
    display: flex;
    flex-direction: column;
}

.billing-email {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* --- Subscriptions Grid --- */
.subscriptions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
}

.subscription-card {
    background: var(--bg-tertiary);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .subscription-card {
    background: var(--bg-secondary);
}

.subscription-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.subscription-product {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    align-items: center;
}

.subscription-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.subscription-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
}

.subscription-plan {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.subscription-status {
    padding: 0.25rem 0.75rem;
    border-radius: 980px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.status-active {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.status-canceling {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.status-past-due {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.status-expired,
.status-cancelled {
    background: var(--bg-tertiary);
    color: var(--text-muted);
}

[data-theme="dark"] .status-expired,
[data-theme="dark"] .status-cancelled {
    background: var(--bg-primary);
}

.subscription-details {
    display: flex;
    flex-direction: row;
    gap: 2rem;
}

.subscription-detail {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.detail-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.detail-value {
    font-size: 0.9375rem;
    color: var(--text-primary);
    font-weight: 500;
}

/* --- Payment History / Invoices --- */
.payment-history-section {
    margin-top: 3rem;
}

.payment-history-section .section-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.invoices-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.invoice-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.invoice-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.invoice-date {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.invoice-description {
    font-size: 0.9375rem;
    color: var(--text-primary);
}

.invoice-amount {
    font-weight: 600;
    color: var(--text-primary);
}

.invoice-download {
    color: var(--accent-color);
    flex-shrink: 0;
}

/* --- Licenses Section --- */
.licenses-section {
    margin-top: 3rem;
}

.licenses-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.licenses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.license-card {
    background: var(--bg-tertiary);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .license-card {
    background: var(--bg-secondary);
}

.license-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.license-product {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    align-items: center;
}

.license-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.license-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
}

.license-key {
    font-size: 0.8125rem;
    color: var(--text-muted);
    font-family: monospace;
}

.license-status {
    padding: 0.25rem 0.75rem;
    border-radius: 980px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.license-details {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    margin-bottom: 1.25rem;
}

.license-detail {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.license-devices {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

.devices-title {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.devices-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.device-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0.625rem 0.75rem;
    background: var(--bg-primary);
    border-radius: 0.5rem;
}

.device-info {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    align-items: center;
}

.device-icon {
    color: var(--text-muted);
    flex-shrink: 0;
}

.device-name {
    font-size: 0.875rem;
    color: var(--text-primary);
}

.device-last-seen {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.no-devices {
    padding: 0.75rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* --- Button Variants (Billing) --- */
.billing-section .btn-secondary,
.billing-view .btn-secondary {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.billing-section .btn-secondary:hover,
.billing-view .btn-secondary:hover {
    background: var(--bg-tertiary);
    filter: none;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
}

.btn-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.btn-danger:hover {
    background: #ef4444;
    color: white;
}

/* --- Toast Notifications --- */
.toast-container {
    position: fixed;
    top: 5rem;
    right: 1.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toast {
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 300px;
    max-width: 450px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

.toast-visible {
    opacity: 1;
    transform: translateX(0);
}

.toast-success {
    background: #10b981;
    color: white;
}

.toast-error {
    background: #ef4444;
    color: white;
}

.toast-warning {
    background: #f59e0b;
    color: white;
}

.toast-info {
    background: var(--accent-color);
    color: white;
}

.toast-close {
    background: transparent;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 1.25rem;
    opacity: 0.7;
    margin-left: auto;
    padding: 0;
    line-height: 1;
}

.toast-close:hover {
    opacity: 1;
}

/* --- Empty / Error / Loading States --- */
.billing-loading,
.invoices-loading,
.licenses-loading {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

.billing-loading svg,
.invoices-loading svg,
.licenses-loading svg {
    display: block;
    margin: 0 auto 1rem;
}

.billing-empty,
.billing-error,
.licenses-empty,
.licenses-error {
    text-align: center;
    padding: 3rem;
}

.billing-empty svg,
.billing-error svg,
.licenses-empty svg,
.licenses-error svg {
    display: block;
    margin: 0 auto 1rem;
    color: var(--text-muted);
}

.billing-empty h3,
.billing-error h3,
.licenses-empty h3,
.licenses-error h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.billing-empty p,
.billing-error p,
.licenses-empty p,
.licenses-error p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.billing-error-box {
    text-align: center;
    padding: 2.5rem;
    background: var(--bg-tertiary);
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

[data-theme="dark"] .billing-error-box {
    background: var(--bg-secondary);
}

.billing-error-box svg {
    display: block;
    margin: 0 auto 1rem;
    color: var(--text-muted);
}

.billing-error-box p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* --- Help Text --- */
.billing-help {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.billing-help a {
    color: var(--accent-color);
    text-decoration: none;
}

.billing-help a:hover {
    text-decoration: underline;
}

/* --- Billing Portal Responsive --- */
@media (max-width: 768px) {
    .subscriptions-grid {
        grid-template-columns: 1fr;
    }

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

    .billing-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .subscription-details {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .license-details {
        flex-wrap: wrap;
        gap: 1rem;
    }
}

/* --- Dashboard View Width Override --- */
#dashboardView.billing-view {
    max-width: none;
}

/* =============================================================
   Guide Promo Section — product → user-guide link
   Themed per product via CSS custom properties set inline:
     --gp-accent, --gp-accent-dark, --gp-accent-soft
   ============================================================= */
.guide-promo {
    --gp-accent: #2bcbba;
    --gp-accent-dark: #24a89b;
    --gp-accent-soft: rgba(43, 203, 186, 0.08);
    --gp-bg: #ffffff;
    --gp-ink: #0a0a0a;
    --gp-ink-soft: #525252;
    --gp-line: rgba(0, 0, 0, 0.08);
    padding: clamp(4rem, 8vw, 7rem) 0;
    background: var(--gp-bg);
    color: var(--gp-ink);
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .guide-promo {
    --gp-bg: #0a0a0a;
    --gp-ink: #ffffff;
    --gp-ink-soft: #a3a3a3;
    --gp-line: rgba(255, 255, 255, 0.1);
}

.guide-promo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--gp-accent) 50%, transparent 100%);
    opacity: 0.85;
}

.guide-promo__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: clamp(2rem, 6vw, 4rem);
    align-items: center;
}

.guide-promo__eyebrow {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--gp-accent-dark);
    text-transform: uppercase;
    letter-spacing: 0.22em;
    margin-bottom: 1rem;
}

.guide-promo__title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.025em;
    color: var(--gp-ink);
    margin: 0 0 1.25rem;
}

.guide-promo__accent {
    background: linear-gradient(135deg, var(--gp-accent) 0%, var(--gp-accent-dark) 60%, #0a0a0a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.guide-promo__desc {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--gp-ink-soft);
    max-width: 52ch;
    margin: 0 0 2rem;
}

.guide-promo__desc code {
    font-family: var(--font-mono);
    font-size: 0.85em;
    padding: 0.1em 0.35em;
    background: var(--gp-accent-soft);
    border: 1px solid var(--gp-accent);
    border-radius: 3px;
    color: var(--gp-accent-dark);
}

.guide-promo__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.5rem;
    background: var(--gp-accent);
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    text-decoration: none;
    border: 1px solid var(--gp-accent);
    border-radius: 0;
    transition: background 200ms ease, gap 200ms ease;
}

.guide-promo__cta:hover {
    background: var(--gp-accent-dark);
    border-color: var(--gp-accent-dark);
    color: #ffffff;
    gap: 1rem;
}

.guide-promo__cta svg {
    transition: transform 200ms ease;
}

.guide-promo__cta:hover svg {
    transform: translateX(3px);
}

.guide-promo__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    border-top: 1px solid var(--gp-line);
    border-left: 1px solid var(--gp-line);
}

.guide-promo__tile {
    display: block;
    padding: 1.25rem 1.1rem;
    border-right: 1px solid var(--gp-line);
    border-bottom: 1px solid var(--gp-line);
    text-decoration: none;
    color: var(--gp-ink);
    position: relative;
    transition: background 200ms ease, padding-left 200ms ease;
}

.guide-promo__tile::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    height: 1px;
    width: 0;
    background: linear-gradient(90deg, var(--gp-accent) 0%, transparent 100%);
    transition: width 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.guide-promo__tile:hover {
    background: var(--gp-accent-soft);
    padding-left: 1.5rem;
    color: var(--gp-ink);
}

.guide-promo__tile:hover::before {
    width: 100%;
}

.guide-promo__tile-num {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--gp-accent-dark);
    letter-spacing: 0.15em;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.guide-promo__tile-title {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
}

@media (max-width: 900px) {
    .guide-promo__inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 500px) {
    .guide-promo__grid {
        grid-template-columns: 1fr;
    }
}
