/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #1d1d1f;
    background-color: #ffffff;
    overflow-x: hidden;
}

a {
    color: #1d1d1f;
    text-decoration: none;
}

ul {
    list-style: none;
}

/* Layout */
.site-main {
    min-height: calc(100vh - 140px);
}

/* Header and Navigation */
.site-header {
    padding: 20px 0;
    border-bottom: 1px solid #e5e5e5;
    position: relative;
    z-index: 10;
    background-color: #ffffff;
}

.site-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: inline-block;
    line-height: 0;
}

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

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

.nav-links a {
    font-size: 14px;
    color: #1d1d1f;
    transition: opacity 0.2s;
    position: relative;
}

.nav-links a:hover {
    opacity: 1;
}

/* Language Toggle */
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 20px;
    background-color: #f5f5f7;
    transition: all 0.2s;
    margin-left: 20px;
}

.lang-toggle:hover {
    background-color: #e8e8ed;
}

.globe-icon {
    width: 20px;
    height: 20px;
    color: #1d1d1f;
    flex-shrink: 0;
}

.lang-badge {
    font-size: 12px;
    font-weight: 500;
    color: #1d1d1f;
    line-height: 1;
}

/* Footer — styles moved to animation section below */

/* Hero Section */
.hero {
    max-width: 800px;
    margin: 120px auto 80px;
    padding: 0 40px;
    text-align: center;
    position: relative;
    overflow: visible;
}

.hero-animation {
    position: absolute;
    top: -60%;
    left: -40%;
    width: 180%;
    height: 220%;
    z-index: -100;
    pointer-events: none;
    opacity: 0.6;
}

.hero-animation svg {
    width: 100%;
    height: 100%;
    display: block;
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero h1 {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.subheadline {
    font-size: 20px;
    color: #6e6e73;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Intro Section */
.intro {
    max-width: 800px;
    margin: 80px auto;
    padding: 0 40px;
    text-align: center;
}

.intro p {
    font-size: 20px;
    line-height: 1.5;
    color: #1d1d1f;
}

/* Page Header */
.page-header {
    max-width: 1200px;
    margin: 80px auto 60px;
    padding: 0 40px;
}

.page-header h1 {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Buttons — base styles moved to animation section */

.btn-primary {
    background-color: #1d1d1f;
    color: #ffffff;
}

.btn-secondary {
    background-color: #f5f5f7;
    color: #1d1d1f;
}

/* Apps Grid */
.apps-grid {
    max-width: 1200px;
    margin: 0 auto 120px;
    padding: 0 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.app-card {
    padding: 40px;
    background-color: #f5f5f7;
    border-radius: 12px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

.app-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.app-icon {
    width: 80px;
    height: 80px;
    background-color: #e8e8ed;
    border-radius: 16px;
    margin-bottom: 24px;
}

.app-card h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
}

.app-description {
    font-size: 16px;
    color: #6e6e73;
    margin-bottom: 20px;
    line-height: 1.5;
}

.app-features {
    margin-bottom: 28px;
}

.app-features li {
    font-size: 14px;
    color: #1d1d1f;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.app-features li:before {
    content: "•";
    position: absolute;
    left: 0;
}

/* About Content */
.about-content {
    max-width: 800px;
    margin: 0 auto 120px;
    padding: 0 40px;
}

.about-content p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 24px;
    color: #1d1d1f;
}

/* Services Content */
.services-content {
    max-width: 800px;
    margin: 0 auto 120px;
    padding: 0 40px;
}

/* Individual service block reveal */
.service {
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.service.revealed {
    opacity: 1;
    transform: translateY(0);
}

.service:last-child {
    margin-bottom: 0;
}

.service h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 16px;
}

.service p {
    font-size: 18px;
    line-height: 1.6;
    color: #1d1d1f;
    margin-bottom: 12px;
}

/* Contact Content */
.contact-content {
    max-width: 800px;
    margin: 0 auto 120px;
    padding: 0 40px;
}

.contact-content>p {
    font-size: 18px;
    margin-bottom: 40px;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-item h3 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6e6e73;
    margin-bottom: 8px;
}

.contact-item a {
    font-size: 20px;
    transition: opacity 0.2s;
}

.contact-item a:hover {
    opacity: 0.6;
}

/* Articles Section */
.articles-section {
    max-width: 800px;
    margin: 0 auto 120px;
    padding: 0 40px;
}

.articles-section h2 {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 60px;
}

.articles-list {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

/* Individual article entry reveal */
.article-entry {
    padding-bottom: 48px;
    border-bottom: 1px solid #e5e5e5;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.article-entry.revealed {
    opacity: 1;
    transform: translateY(0);
}

.article-entry:last-child {
    border-bottom: none;
}

.article-type {
    display: inline-block;
    font-size: 12px;
    color: #6e6e73;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-right: 12px;
}

.article-date {
    font-size: 14px;
    color: #86868b;
}

.article-entry h3 {
    font-size: 28px;
    font-weight: 600;
    margin: 12px 0;
}

.article-entry h3 a {
    color: #1d1d1f;
    transition: opacity 0.2s;
}

.article-entry h3 a:hover {
    opacity: 0.6;
}

.article-entry .description {
    font-size: 16px;
    line-height: 1.6;
    color: #6e6e73;
}

/* Article Page */
.article-page {
    max-width: 700px;
    margin: 60px auto 120px;
    padding: 0 40px;
}

.article-page h1 {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.article-meta {
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e5e5;
}

.article-meta .article-date {
    font-size: 14px;
    color: #86868b;
}

.article-page h2 {
    font-size: 28px;
    font-weight: 600;
    margin-top: 48px;
    margin-bottom: 20px;
}

.article-page h3 {
    font-size: 21px;
    font-weight: 600;
    margin-top: 32px;
    margin-bottom: 16px;
}

.article-page p {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 24px;
    color: #1d1d1f;
}

.article-page ul,
.article-page ol {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 24px;
    padding-left: 32px;
}

.article-page li {
    margin-bottom: 12px;
}

.article-page pre {
    background-color: #f5f5f7;
    border-radius: 8px;
    padding: 20px;
    overflow-x: auto;
    margin-bottom: 24px;
}

.article-page code {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: 15px;
    line-height: 1.6;
    color: #1d1d1f;
}

.article-page p code {
    background-color: #f5f5f7;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 16px;
}

.key-idea {
    background-color: #f5f5f7;
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 40px;
}

.key-idea h2 {
    font-size: 21px;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 12px;
}

.key-idea p {
    margin-bottom: 0;
}

/* ===========================
   CONVERSION FUNNEL STYLES
   =========================== */

/* Inquiry Form Section */
.inquiry-form-section {
    max-width: 700px;
    margin: 0 auto 60px;
}

.inquiry-form-section h2 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 12px;
}

.form-subtitle {
    font-size: 16px;
    color: #6e6e73;
    margin-bottom: 32px;
}

.inquiry-form {
    background-color: #f5f5f7;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #1d1d1f;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    font-family: inherit;
    color: #1d1d1f;
    background-color: #ffffff;
    border: 1px solid #d2d2d7;
    border-radius: 8px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #1d1d1f;
    box-shadow: 0 0 0 3px rgba(29, 29, 31, 0.08);
}

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

.form-submit-section {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 28px;
}

.response-time-note {
    font-size: 14px;
    color: #6e6e73;
}

.form-message {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 15px;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Contact Page Sections */
.contact-divider {
    max-width: 700px;
    margin: 60px auto;
    height: 1px;
    background-color: #e5e5e5;
}

.direct-contact-section {
    max-width: 700px;
    margin: 0 auto;
}

/* Service Enhancements */
.service-pricing {
    margin: 20px 0;
    padding: 16px;
    background-color: #f5f5f7;
    border-radius: 8px;
}

.pricing-note {
    font-size: 15px;
    color: #1d1d1f;
    margin: 0;
    font-weight: 500;
}

.service-cta {
    margin-top: 20px;
}

/* Process Section */
.process-section {
    max-width: 1000px;
    margin: 80px auto 120px;
    padding: 0 40px;
}

.process-section h2 {
    font-size: 32px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 48px;
}

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

.process-step {
    text-align: center;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.process-step.revealed {
    opacity: 1;
    transform: translateY(0);
}

.step-number {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    background-color: #1d1d1f;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 600;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.process-step.revealed .step-number {
    animation: stepPop 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.process-step h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.process-step p {
    font-size: 14px;
    color: #6e6e73;
    line-height: 1.5;
}

.timeline-note {
    text-align: center;
    font-size: 14px;
    color: #6e6e73;
    font-style: italic;
}

/* Tech Stack Badges */
.tech-stack {
    margin: 20px 0;
}

.tech-label {
    font-size: 13px;
    color: #6e6e73;
    font-weight: 500;
    margin-bottom: 8px;
}

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 500;
    color: #1d1d1f;
    background-color: #e8e8ed;
    border-radius: 12px;
}

.project-duration {
    font-size: 14px;
    color: #6e6e73;
    margin: 12px 0;
}

/* CTA Section */
.cta-section {
    max-width: 700px;
    margin: 80px auto 120px;
    padding: 60px 40px;
    background-color: #f5f5f7;
    border-radius: 16px;
    text-align: center;
}

.cta-section h2 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 16px;
}

.cta-section p {
    font-size: 18px;
    color: #6e6e73;
    margin-bottom: 28px;
}

/* CTA Buttons (used in apps.php and elsewhere) */
.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

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

/* Trust Section */
.trust-section {
    max-width: 900px;
    margin: 60px auto;
    padding: 0 40px;
}

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

.trust-badge {
    text-align: center;
    padding: 24px;
    background-color: #f5f5f7;
    border-radius: 12px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

.trust-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.trust-number {
    font-size: 40px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 8px;
}

.trust-badge p {
    font-size: 14px;
    color: #6e6e73;
    margin: 0;
}

/* Page Transitions */
main {
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    transform: translateY(0);
}

.page-transition-exit {
    opacity: 0;
    transform: translateY(12px);
}

.page-transition-enter {
    opacity: 1;
    animation: pageSlideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes pageSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* =========================================
   Hero Entrance Animations
   ========================================= */

@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.97);
        filter: blur(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    animation: heroFadeUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

/* Staggered hero children — eyebrow, h1, subtitle, buttons each arrive separately */
.hero-content>.home-eyebrow {
    animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.hero-content>h1 {
    animation: heroFadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.25s both;
}

.hero-content>.subheadline {
    animation: heroFadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

.hero-content>.hero-buttons {
    animation: heroFadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.55s both;
}

/* Hero blob scale-in */
@keyframes blobScaleIn {
    from {
        opacity: 0;
        transform: scale(0.6);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-animation {
    animation: blobScaleIn 2s cubic-bezier(0.16, 1, 0.3, 1) 0s both;
}

/* =========================================
   Scroll Reveal Animations
   ========================================= */

/* Fade up — default reveal */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Fade-in scale — for feature cards and CTA sections */
.reveal-scale {
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
}

/* Staggered children */
.reveal-stagger>* {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-stagger.revealed>*:nth-child(1) {
    transition-delay: 0s;
}

.reveal-stagger.revealed>*:nth-child(2) {
    transition-delay: 0.08s;
}

.reveal-stagger.revealed>*:nth-child(3) {
    transition-delay: 0.16s;
}

.reveal-stagger.revealed>*:nth-child(4) {
    transition-delay: 0.24s;
}

.reveal-stagger.revealed>*:nth-child(5) {
    transition-delay: 0.32s;
}

.reveal-stagger.revealed>*:nth-child(6) {
    transition-delay: 0.40s;
}

.reveal-stagger.revealed>*:nth-child(7) {
    transition-delay: 0.48s;
}

.reveal-stagger.revealed>*:nth-child(8) {
    transition-delay: 0.56s;
}

.reveal-stagger.revealed>* {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   Animated Stat Number Counter
   ========================================= */

.home-stat strong {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 2px;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.home-stat strong.counted {
    animation: countPop 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes countPop {
    0% {
        transform: scale(0.6);
        opacity: 0;
    }

    60% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

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

.btn {
    display: inline-block;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.btn:active::after {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    background-color: #424245;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(29, 29, 31, 0.25);
}

.btn-secondary:hover {
    background-color: #e8e8ed;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

/* =========================================
   Animated Underline for Nav Links
   ========================================= */

.nav-links a {
    font-size: 14px;
    color: #1d1d1f;
    transition: opacity 0.2s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background-color: #1d1d1f;
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.nav-links a:hover {
    opacity: 1;
}

/* Don't apply underline to the CTA button */
.nav-links .nav-cta::after {
    display: none;
}

/* =========================================
   Section Divider Animation
   ========================================= */

.home-divider {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #d2d2d7, transparent);
    transform: scaleX(0);
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.home-divider.revealed {
    transform: scaleX(1);
}

/* =========================================
   Dark Card Shimmer (Book section)
   ========================================= */

.home-book-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(100, 140, 255, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(200, 100, 255, 0.10) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 180, 100, 0.06) 0%, transparent 40%);
    animation: shimmerDrift 10s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes shimmerDrift {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }

    50% {
        transform: translate(3%, -2%) rotate(1.5deg) scale(1.02);
    }

    100% {
        transform: translate(-2%, 4%) rotate(-1deg) scale(0.98);
    }
}

/* =========================================
   Interactive Card Tilt (JS-driven)
   ========================================= */

.tilt-card {
    transition: transform 0.15s ease-out, box-shadow 0.3s;
    will-change: transform;
}

@keyframes stepPop {
    0% {
        transform: scale(0);
    }

    60% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

/* =========================================
   Footer Fade-In
   ========================================= */

.site-footer {
    padding: 40px;
    text-align: center;
    border-top: 1px solid #e5e5e5;
    color: #6e6e73;
    font-size: 14px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-footer.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   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;
    }

    html {
        scroll-behavior: auto;
    }

    .reveal,
    .reveal-scale,
    .reveal-stagger>*,
    .site-footer,
    .service,
    .article-entry,
    .process-step {
        opacity: 1;
        transform: none;
    }

    .home-divider {
        transform: scaleX(1);
    }

    .hero-content,
    .hero-content>.home-eyebrow,
    .hero-content>h1,
    .hero-content>.subheadline,
    .hero-content>.hero-buttons {
        animation: none;
        opacity: 1;
        transform: none;
        filter: none;
    }

    .hero-animation {
        animation: none;
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 40px;
    }

    .subheadline {
        font-size: 18px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
    }

    .nav-links {
        gap: 16px;
        flex-wrap: wrap;
        justify-content: flex-end;
        font-size: 13px;
    }

    .site-nav {
        padding: 0 20px;
    }

    .page-header,
    .apps-grid,
    .about-content,
    .services-content,
    .contact-content,
    .intro,
    .articles-section,
    .article-page {
        padding: 0 20px;
    }

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

    .article-page h1 {
        font-size: 32px;
    }

    .article-page h2 {
        font-size: 24px;
    }

    .articles-section h2 {
        font-size: 36px;
    }

    /* Conversion funnel responsive styles */
    .inquiry-form {
        padding: 24px;
    }

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

    .form-submit-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .process-steps {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .trust-badges {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cta-section {
        padding: 40px 24px;
        margin: 60px auto 80px;
    }

    .cta-section h2 {
        font-size: 24px;
    }

    .cta-section p {
        font-size: 16px;
    }

    .process-section,
    .trust-section {
        padding: 0 20px;
    }
}

/* =========================================
   Homepage — Minimal One-Screen Layout
   ========================================= */

/* Inline trust stats row */
.home-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    max-width: 600px;
    margin: 0 auto 64px;
    padding: 0 40px;
    flex-wrap: wrap;
}

.home-stat {
    font-size: 14px;
    color: #6e6e73;
    text-align: center;
}

.home-stat strong {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 2px;
}

.home-stat-sep {
    width: 1px;
    height: 32px;
    background-color: #e5e5e5;
}

/* Explore cards grid */
.home-explore-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto 80px;
    padding: 0 40px;
}

.home-explore-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 32px 28px;
    background-color: #f5f5f7;
    border-radius: 16px;
    transition: background-color 0.3s, transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s;
    text-decoration: none;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

.home-explore-card:hover {
    background-color: #e8e8ed;
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.explore-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #86868b;
}

.home-explore-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1d1d1f;
    line-height: 1.3;
    flex-grow: 1;
    margin: 0;
}

.explore-link {
    font-size: 14px;
    font-weight: 500;
    color: #1d1d1f;
    margin-top: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Arrow slides right on card hover */
.home-explore-card:hover .explore-link {
    gap: 8px;
    transition: gap 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 768px) {
    .home-stats {
        gap: 16px;
        margin-bottom: 48px;
    }

    .home-stat-sep {
        display: none;
    }

    .home-explore-grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
        margin-bottom: 60px;
    }
}

/* =========================================
   Homepage Layout Improvements (legacy classes kept for other pages)
   ========================================= */

/* Section divider — styles in animation section above */

/* Shared eyebrow label for homepage sections */
.home-eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #86868b;
    margin-bottom: 12px;
}

/* Trust section eyebrow alignment */
.trust-section .home-eyebrow {
    text-align: center;
    margin-bottom: 32px;
}

/* Services Preview */
.home-services-section {
    max-width: 900px;
    margin: 80px auto;
    padding: 0 40px;
}

.home-services-section h2 {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 40px;
    color: #1d1d1f;
}

.home-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.home-service-item {
    padding: 32px 28px;
    background-color: #f5f5f7;
    border-radius: 12px;
    transition: background-color 0.3s, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

.home-service-item:hover {
    background-color: #eeeef0;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.home-service-item h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #1d1d1f;
}

.home-service-item p {
    font-size: 15px;
    line-height: 1.6;
    color: #6e6e73;
    margin: 0;
}

/* Apps Preview */
.home-apps-section {
    max-width: 900px;
    margin: 80px auto;
    padding: 0 40px;
}

.home-apps-section h2 {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 40px;
    color: #1d1d1f;
}

.home-apps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.home-app-card {
    display: block;
    padding: 32px 28px;
    background-color: #f5f5f7;
    border-radius: 12px;
    transition: background-color 0.3s, transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

.home-app-card:hover {
    background-color: #e8e8ed;
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.home-app-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #1d1d1f;
}

.home-app-card p {
    font-size: 15px;
    line-height: 1.6;
    color: #6e6e73;
    margin: 0;
}

/* Section link (e.g. "View all services →") */
.home-section-link {
    font-size: 15px;
    font-weight: 500;
    color: #1d1d1f;
    text-decoration: none;
    transition: opacity 0.2s, letter-spacing 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.home-section-link:hover {
    opacity: 0.6;
    letter-spacing: 0.02em;
}

/* Responsive */
@media (max-width: 768px) {
    .home-divider {
        padding: 0 20px;
    }

    .home-services-section,
    .home-apps-section {
        padding: 0 20px;
        margin: 60px auto;
    }

    .home-services-section h2,
    .home-apps-section h2 {
        font-size: 32px;
    }

    .home-services-grid {
        grid-template-columns: 1fr;
    }

    .home-apps-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   Homepage Book Feature Section
   ========================================= */

.home-book-section {
    max-width: 800px;
    margin: 0 auto 80px;
    padding: 0 40px;
}

.home-book-card {
    background-color: #1d1d1f;
    border-radius: 20px;
    padding: 56px 52px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.home-book-eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #86868b;
    margin-bottom: 16px;
}

.home-book-card h2 {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: #f5f5f7;
    margin-bottom: 16px;
}

.home-book-desc {
    font-size: 17px;
    line-height: 1.6;
    color: #86868b;
    max-width: 560px;
    margin: 0 auto 36px;
}

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

/* Light button (for use on dark backgrounds) */
.btn-light {
    background-color: #f5f5f7;
    color: #1d1d1f;
}

.btn-light:hover {
    background-color: #ffffff;
}

/* Ghost button (for use on dark backgrounds) */
.btn-ghost {
    background-color: transparent;
    color: #f5f5f7;
    border: 1px solid #3d3d3f;
}

.btn-ghost:hover {
    background-color: #2d2d2f;
    border-color: #6e6e73;
}

/* =========================================
   Book Page
   ========================================= */

.book-section {
    max-width: 800px;
    margin: 60px auto 20px;
    padding: 0 40px;
}

.book-content {
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 60px;
}

.book-meta {
    margin-bottom: 16px;
}

.book-title {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 12px;
    color: #1d1d1f;
}

.book-subtitle-text {
    font-size: 18px;
    color: #6e6e73;
    margin-bottom: 32px;
    font-style: italic;
    line-height: 1.5;
}

.book-outcome {
    margin-top: 24px;
    font-size: 16px;
    color: #1d1d1f;
    line-height: 1.7;
}

.book-stores-section {
    max-width: 800px;
    margin: 60px auto 100px;
    padding: 0 40px;
}

.book-stores-section h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1d1d1f;
}

.book-stores-intro {
    color: #6e6e73;
    font-size: 15px;
    margin-bottom: 32px;
}

.book-stores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
}

.store-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 24px 16px;
    background-color: #f5f5f7;
    border-radius: 12px;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s;
    text-align: center;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

.store-card:hover {
    background-color: #e8e8ed;
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.store-flag {
    font-size: 28px;
    line-height: 1;
}

.store-country {
    font-size: 14px;
    font-weight: 600;
    color: #1d1d1f;
    line-height: 1.3;
}

.store-domain {
    font-size: 12px;
    color: #86868b;
}

@media (max-width: 768px) {

    .book-section,
    .book-stores-section {
        padding: 0 20px;
    }

    .book-title {
        font-size: 26px;
    }

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

/* =========================================
   Dual-Path Revenue Section (Homepage)
   ========================================= */

.dual-path-section {
    max-width: 900px;
    margin: 80px auto;
    padding: 0 40px;
}

.dual-path-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 24px;
}

.path-card {
    padding: 44px 40px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s;
}

.path-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.path-card--dark {
    background-color: #1d1d1f;
}

.path-card--light {
    background-color: #f5f5f7;
    border: 1px solid #e5e5e5;
}

.path-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.path-card--dark .path-label {
    color: #86868b;
}

.path-card--light .path-label {
    color: #86868b;
}

.path-card h3 {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.path-card--dark h3 {
    color: #f5f5f7;
}

.path-card--light h3 {
    color: #1d1d1f;
}

.path-card p {
    font-size: 15px;
    line-height: 1.65;
    flex-grow: 1;
}

.path-card--dark p {
    color: #86868b;
}

.path-card--light p {
    color: #6e6e73;
}

.path-note {
    font-size: 13px;
    font-weight: 500;
}

.path-card--dark .path-note {
    color: #6e6e73;
}

.path-card--light .path-note {
    color: #86868b;
}

.path-card .btn {
    align-self: flex-start;
    margin-top: 8px;
}

@media (max-width: 768px) {
    .dual-path-section {
        padding: 0 20px;
        margin: 60px auto;
    }

    .dual-path-grid {
        grid-template-columns: 1fr;
    }

    .path-card {
        padding: 32px 28px;
    }
}

/* =========================================
   Apply Intro Section (Contact page)
   ========================================= */

.apply-intro-section {
    max-width: 700px;
    margin: 0 auto 48px;
    padding: 0 40px;
}

.apply-for-list p {
    font-size: 17px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 16px;
}

.apply-for-list ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
    list-style: none;
    padding: 0;
}

.apply-for-list ul li {
    font-size: 16px;
    color: #1d1d1f;
    padding-left: 24px;
    position: relative;
    line-height: 1.5;
}

.apply-for-list ul li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #86868b;
    font-size: 14px;
}

@media (max-width: 768px) {
    .apply-intro-section {
        padding: 0 20px;
    }
}

/* =========================================
   Book: What You'll Learn (Book page)
   ========================================= */

.book-what-you-learn {
    padding-top: 40px;
}

.book-what-you-learn h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #1d1d1f;
}

.book-learn-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 36px;
}

.book-learn-list li {
    font-size: 16px;
    color: #1d1d1f;
    line-height: 1.5;
    padding-left: 26px;
    position: relative;
}

.book-learn-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #1d1d1f;
    font-weight: 700;
}

.book-primary-cta {
    display: inline-block;
}

.book-price-note {
    margin-top: 12px;
    font-size: 13px;
    color: #86868b;
}

/* Service starting price */
.service-starting-price {
    display: inline-block;
    font-size: 15px;
    font-weight: 600;
    color: #1d1d1f;
    background-color: #f5f5f7;
    border-radius: 6px;
    padding: 4px 12px;
    margin-bottom: 16px;
}

/* Footer contact line */
.footer-contact {
    margin-bottom: 8px;
    font-size: 14px;
    color: #6e6e73;
}

.footer-contact a {
    color: #1d1d1f;
    font-weight: 500;
    transition: opacity 0.2s;
}

.footer-contact a:hover {
    opacity: 0.6;
}

/* =========================================
   Testimonials Section
   ========================================= */

.testimonials-section {
    max-width: 900px;
    margin: 80px auto;
    padding: 0 40px;
}

.testimonials-section h2 {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 40px;
    color: #1d1d1f;
}

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

.testimonial-card {
    background-color: #f5f5f7;
    border-radius: 16px;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.testimonial-quote {
    font-size: 16px;
    line-height: 1.7;
    color: #1d1d1f;
    flex-grow: 1;
    position: relative;
}

.testimonial-quote::before {
    content: '\201C';
    font-size: 48px;
    line-height: 1;
    color: #d2d2d7;
    display: block;
    margin-bottom: 8px;
    font-family: Georgia, serif;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-top: 16px;
    border-top: 1px solid #e5e5e5;
}

.testimonial-name {
    font-size: 15px;
    font-weight: 600;
    color: #1d1d1f;
}

.testimonial-role {
    font-size: 13px;
    color: #86868b;
}

@media (max-width: 768px) {
    .testimonials-section {
        padding: 0 20px;
        margin: 60px auto;
    }

    .testimonials-section h2 {
        font-size: 32px;
        margin-bottom: 28px;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}