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

:root {
    --background: #ffffff;
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --accent: #0071e3;
    --card-background: #f5f5f7;
    --nav-height: 48px;
    --site-gutter: 48px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

@media (prefers-color-scheme: dark) {
    :root {
        --background: #002400;
        --text-primary: #f5f5f7;
        --text-secondary: #86868b;
        --accent: #2997ff;
        --card-background: #1d1d1f;
    }
}

html {
    scroll-behavior: smooth;
    height: 100%;
    background-color: var(--background);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 105vh;
    min-height: 105svh;
    min-height: 105lvh;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: 8px;
    left: -999px;
    padding: 10px 16px;
    background: var(--background);
    color: var(--text-primary);
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 999px;
    text-decoration: none;
    z-index: 2000;
}

.skip-link:focus {
    left: var(--site-gutter);
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: opacity 0.3s ease;
}

@media (prefers-color-scheme: dark) {
    .nav {
        background-color: rgba(0, 0, 0, 0.8);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--site-gutter);
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
}

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

.nav-links a {
    font-size: 14px;
    color: var(--text-primary);
    text-decoration: none;
    transition: opacity 0.2s;
}

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

/* Hero Section */
.hero {
    margin-top: var(--nav-height);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 var(--site-gutter);
    position: relative;
    overflow: hidden;
    pointer-events: none;
    /* Allow hovering icons behind */
    z-index: 5;
}

.app-grid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    pointer-events: none;
    /* Icons handle their own events */
}

/* Back layer sits behind hero text */
.app-grid-back {
    z-index: 3;
}

/* Front layer sits in front of hero text */
.app-grid-front {
    z-index: 10;
}

.scroll-fade-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background-page);
    opacity: 0;
    z-index: 100;
    pointer-events: none;
    transition: opacity 0.3s ease;
}



.hero-content {
    position: relative;
    z-index: 5;
    pointer-events: auto;
    /* Keep hero interactive */
    transition: opacity 0.3s ease;
}

.hero-title {
    font-size: clamp(48px, 8vw, 96px);
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.0;
    margin-bottom: 24px;
    text-shadow: none;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.hero-badge {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 980px;
    background: linear-gradient(160deg, #ffffff, #dcdce0);
    color: #6b6b70;
    font-size: 17px;
    font-weight: 500;
    letter-spacing: 0.03em;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.1),
        0 4px 12px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

@media (prefers-color-scheme: dark) {
    .hero-badge {
        background: linear-gradient(160deg, #3a3a3e, #2a2a2e);
        color: #a0a0a5;
        border: 1px solid rgba(255, 255, 255, 0.12);
        box-shadow:
            0 1px 3px rgba(0, 0, 0, 0.3),
            0 4px 12px rgba(0, 0, 0, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
}

.hero-cta {
    display: inline-block;
    padding: 14px 28px;
    background-color: var(--accent);
    color: white;
    border-radius: 980px;
    font-size: 17px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 113, 227, 0.3);
}

/* Floating App Icons in Background */
.floating-icon {
    position: absolute;
    border-radius: 30%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: transform 0.5s ease, box-shadow 0.3s ease, filter 0.3s ease, opacity 0.3s ease;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 12;
    /* Above hero but below overlay edges */
    will-change: transform, opacity, filter;
    transform: translate3d(-50%, -50%, 0);
    background: none !important;
    pointer-events: auto;
}

.floating-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 22%;
    display: block;
}

/* Disable interactions when scrolled */
.app-grid-background.is-scrolled .floating-icon {
    pointer-events: none;
    cursor: default;
}

.floating-icon:hover {
    transform: translate3d(-50%, -50%, 0) scale(1.15) !important;
    z-index: 20;
    /* Higher than dark overlay */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

/* Ensure no hover scaling when scrolled (even if JS fails to update pointer-events) */
.app-grid-background.is-scrolled .floating-icon:hover {
    transform: translate3d(-50%, -50%, 0) scale(1) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* ==========================================
   Shared Section Styles
   ========================================== */

/* Shared caption/label typography */
.caption-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.section {
    padding: 140px 0;
    position: relative;
    z-index: 100;
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--site-gutter);
}

.section-title {
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 700;
    letter-spacing: -0.015em;
    margin-bottom: 64px;
}

/* All sections are transparent — blurred floating icons show through */

/* ==========================================
   Horizontal Scroll (shared)
   ========================================== */
.horizontal-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 10px 0 20px;
    /* Align first card with section title */
    padding-left: var(--site-gutter);
    /* Simplified padding as we use spacer */
    padding-right: max(var(--site-gutter), calc((100vw - 1200px) / 2 + var(--site-gutter)));
}

.horizontal-scroll.is-animating {
    scroll-snap-type: none !important;
}

.scroll-spacer {
    flex: 0 0 auto;
    width: max(var(--site-gutter), calc((100vw - 1200px) / 2 + var(--site-gutter)));
    scroll-snap-align: start;
    margin-left: calc(-1 * var(--site-gutter));
    /* Offset parent padding */
}

.horizontal-scroll::before,
.horizontal-scroll::after {
    content: '';
    flex: 0 0 auto;
    width: 1px;
    /* Minimal width to trigger padding-like behavior with snap */
    margin-left: -1px;
}

.horizontal-scroll::-webkit-scrollbar {
    display: none;
}

/* Highlights scroll needs extra leading/trailing space so first/last cards center */
.highlights-scroll {
    /* Override default horizontal-scroll padding to center first & last cards */
    padding-left: calc(50vw - min(calc((100vw - 120px) / 2), 360px));
    padding-right: calc(50vw - min(calc((100vw - 120px) / 2), 360px));
    padding-top: 16px;
    padding-bottom: 32px;
    scroll-snap-type: x mandatory;
}

/* ==========================================
   Section 1: Recent Highlights
   ========================================== */
.highlight-card {
    flex: 0 0 auto;
    width: min(calc(100vw - 120px), 720px);
    border-radius: 20px;
    overflow: hidden;
    scroll-snap-align: center;
    background: var(--card-background);
    text-decoration: none;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
    position: relative;
    transform: scale(0.95);
    opacity: 1;
    /* Ensure unfocused cards don't lose opacity */
}

.highlight-card.is-disabled {
    cursor: default;
    pointer-events: none;
}


.section-highlights .section-title {
    text-align: left;
}

.highlight-card.is-focused {
    transform: scale(1);
}

@media (hover: hover) and (pointer: fine) {
    .highlight-card:hover {
        transform: scale(1.02);
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    }
}

@media (hover: hover) and (pointer: fine) and (prefers-color-scheme: dark) {
    .highlight-card:hover {
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    }
}

/* Plus indicator */
.highlight-card-plus {
    position: absolute;
    bottom: 16px;
    right: 16px;
    padding: 8px 8px 8px 14px;
    border-radius: 999px;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.highlight-card-plus-chevron {
    display: inline-block;
    transform: translateY(-0.5px);
    font-size: 14px;
    line-height: 1;
    margin-left: 2px;
}

@media (prefers-color-scheme: dark) {
    .highlight-card-plus {
        background: var(--accent);
    }
}

@media (hover: hover) and (pointer: fine) {
    .highlight-card:hover .highlight-card-plus {
        transform: translateY(-1px);
        box-shadow: 0 10px 24px rgba(0, 113, 227, 0.35);
    }
}

.highlight-card-image {
    width: 100%;
    aspect-ratio: 16/9;
    background-size: cover;
    background-position: center;
}

.highlight-card-content {
    padding: 20px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.highlight-card-tag {
    color: var(--accent);
}

.highlight-card-title {
    font-size: 21px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.highlight-card-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-top: 2px;
}

/* ==========================================
   Section 2: Tools
   ========================================== */
.tools-card {
    background: var(--card-background);
    border-radius: 24px;
    padding: 40px;
    overflow: visible;
}

.tools-container {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
    align-items: stretch;
    /* Allow tools display to fill vertical space */
    min-height: 450px;
}

.tools-list {
    position: sticky;
    top: calc(var(--nav-height) + 40px);
}

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

.tools-group-title {
    color: var(--text-secondary);
    margin-bottom: 12px;
    padding-left: 2px;
}

.tools-group-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tool-name {
    font-size: 16px;
    font-weight: 400;
    padding: 8px 2px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.25s ease;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    font: inherit;
    appearance: none;
}

.tool-name:hover {
    color: var(--text-primary);
}

.tool-name.active {
    color: var(--text-primary);
    font-weight: 600;
}

/* Capsule toggle +/- circle icons */
.tool-toggle {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    transition: all 0.25s ease;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    /* plus.circle outline — gray */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2386868b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='8' x2='12' y2='16'/%3E%3Cline x1='8' y1='12' x2='16' y2='12'/%3E%3C/svg%3E");
}

.tool-name.active .tool-toggle {
    /* minus.circle.fill — accent filled */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='10' fill='%230071e3'/%3E%3Cline x1='8' y1='12' x2='16' y2='12' stroke='white' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

@media (prefers-color-scheme: dark) {
    .tool-name.active .tool-toggle {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='10' fill='%232997ff'/%3E%3Cline x1='8' y1='12' x2='16' y2='12' stroke='white' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    }
}

/* Tools display area */
.tools-display {
    position: relative;
    height: 100%;
    /* Stretch to container height */
    min-height: 400px;
    overflow: visible;
}

/* Floating icons grid (non-uniform layout, positioned by JS) */
.tools-grid {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 400px;
    margin: 0 auto;
    transition: opacity 0.35s ease, transform 0.35s ease;
    overflow: visible;
}

.tools-grid.is-hidden {
    opacity: 0;
    transform: scale(0.96);
    pointer-events: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}

.tool-icon-item {
    position: absolute;
    top: 0;
    left: 0;
    cursor: pointer;
    will-change: transform;
    background: none !important;
    border-radius: 22%;
    overflow: visible;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.25));
    transition: filter 0.3s ease;
}

.tool-icon-item:hover {
    z-index: 10;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

.tool-icon-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 22%;
    display: block;
}

/* Tools detail view */
.tools-detail {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 0.35s ease, transform 0.35s ease;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.tools-detail.is-visible {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
    position: relative;
}

.tools-detail-icon {
    width: 160px;
    height: 160px;
    border-radius: 22%;
    object-fit: cover;
    filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.2));
    margin-bottom: 28px;
}

.tools-detail-name {
    font-size: 32px;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 8px;
}

.tools-detail-desc {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 440px;
    line-height: 1.6;
}

/* ==========================================
   Section 3: About Me
   ========================================== */
.section-about .section-title {
    text-align: left;
}

.about-scroll {
    scroll-snap-type: none;
    overflow-y: visible;
    padding-top: 24px;
    padding-bottom: 40px;
}

.about-card-wrap {
    flex: 0 0 auto;
    min-width: 200px;
    max-width: 340px;
    width: clamp(200px, 30vw, 340px);
    aspect-ratio: 3/4;
    border-radius: 24px;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.about-card {
    width: 100%;
    height: 100%;
    border-radius: 24px;
    overflow: hidden;
    background: var(--card-background);
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 32px 24px 24px;
    position: relative;
}

@media (hover: hover) and (pointer: fine) {
    .about-card-wrap:hover {
        transform: scale(1.02);
        box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
    }
}

@media (hover: hover) and (pointer: fine) and (prefers-color-scheme: dark) {
    .about-card-wrap:hover {
        box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
    }
}

@media (hover: none) and (pointer: coarse) {
    .highlight-card:hover,
    .about-card-wrap:hover,
    .phone-app-icon:hover,
    .hero-cta:hover {
        transform: none !important;
        box-shadow: none !important;
    }

    .highlight-card:hover .highlight-card-plus {
        transform: none !important;
        box-shadow: none !important;
    }

    .highlight-card:active,
    .about-card-wrap:active,
    .phone-app-icon:active,
    .hero-cta:active {
        transform: none !important;
        box-shadow: none !important;
    }
}

.about-card-has-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.about-card-has-bg .about-card-text {
    color: white;
}

.about-card-text {
    position: relative;
    z-index: 1;
    max-width: 60%;
}

.about-card-label {
    opacity: 0.8;
    margin-bottom: 4px;
}

.about-card-value {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
}

.about-card-sub {
    font-size: 14px;
    opacity: 0.7;
    margin-top: 4px;
    line-height: 1.4;
}

/* ==========================================
   Section 4: Testimonials (TBD)
   ========================================== */
.testimonials-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 260px;
    border: 2px dashed rgba(0, 0, 0, 0.12);
    border-radius: 24px;
}

@media (prefers-color-scheme: dark) {
    .testimonials-placeholder {
        border-color: rgba(255, 255, 255, 0.1);
    }
}

.testimonials-coming-soon {
    font-size: 24px;
    font-weight: 500;
    color: var(--text-secondary);
    opacity: 0.5;
}

.testim.phone-app-icon-label {
    font-size: 8px;
    /* Proportional font size */
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    width: 100%;
    opacity: 1;
    /* Make standard labels clearly visible */
}

/* ==========================================
   Section 5: Connect — Phone Frame
   ========================================== */
.section-connect {
    overflow: hidden;
    /* Hide the bottom half of the phone */
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    height: 600px;
    /* Increased from 500px for larger phone */
    justify-content: flex-end;
    /* Align phone to absolute bottom */
}


.section-connect .section-title {
    position: absolute;
    bottom: 510px;
    /* Directly above 50% phone peak (half of ~1000 is 500) */
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    z-index: 5;
    pointer-events: none;
}

.phone-frame {
    width: 480px;
    margin: 0 auto;
    position: relative;
    background: transparent;
    border: none;
    overflow: visible;
    z-index: 10;
    will-change: transform;
    /* Resting state is fully below container */
    transform: translateY(100%);
}

.phone-bezel {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 2;
    pointer-events: none;
}

.phone-screen-container {
    position: absolute;
    top: 2.2%;
    /* Fine-tune based on PhoneBezel.png aspect ratio */
    left: 5.2%;
    right: 5.2%;
    bottom: 2.2%;
    border-radius: 57px;
    overflow: hidden;
    z-index: 1;
}

.phone-screen-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.phone-icons-grid {
    position: relative;
    z-index: 3;
    padding: 90px 33px 30px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    justify-items: center;
}

.phone-app-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: white;
    transition: transform 0.2s ease;
}

.phone-app-icon:hover {
    transform: scale(1.1);
}

.phone-app-icon-img {
    width: 66px;
    /* ~1/7.5th of 480px Display */
    height: 66px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.phone-app-icon-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.phone-app-icon-img svg {
    width: 45px;
    height: 45px;
}

@media (prefers-color-scheme: dark) {
    .phone-app-github .phone-app-icon-img {
        background: linear-gradient(135deg, #f5f5f7, #d1d1d6);
        color: #1a1a1a;
    }
}

.phone-app-linkedin .phone-app-icon-img {
    background: linear-gradient(135deg, #0077b5, #00a0dc);
    color: white;
}

.phone-app-twitter .phone-app-icon-img {
    background: linear-gradient(135deg, #1d1d1f, #000);
    color: white;
}

@media (prefers-color-scheme: dark) {
    .phone-app-twitter .phone-app-icon-img {
        background: linear-gradient(135deg, #f5f5f7, #d1d1d6);
        color: #1a1a1a;
    }
}

.phone-app-icon-label {
    font-size: 11px;
    /* Slightly larger than original 10px */
    font-weight: 500;
    opacity: 0.95;
    color: white;
}

/* ==========================================
   Responsive: Mobile (≤ 768px)
   ========================================== */
@media (max-width: 768px) {
    :root {
        --site-gutter: 20px;
    }

    /* Nav */
    .nav-links {
        gap: 20px;
    }

    .nav-links a {
        font-size: 12px;
    }

    /* Hero */
    .hero-cta {
        padding: 12px 24px;
        font-size: 15px;
    }

    .hero-badge {
        padding: 12px 24px;
        font-size: 15px;
    }

    /* Sections */
    .section {
        padding: 72px 0;
    }

    .section-title {
        margin-bottom: 32px;
    }

    /* Highlights — narrower cards to show peek of adjacent cards */
    .highlight-card {
        width: min(calc(100vw - 96px), 720px);
    }

    .highlights-scroll {
        padding-left: calc(50vw - min(calc((100vw - 96px) / 2), 360px));
        padding-right: calc(50vw - min(calc((100vw - 96px) / 2), 360px));
    }

    .highlight-card-title {
        font-size: 18px;
    }

    .highlight-card-desc {
        font-size: 14px;
    }

    /* Tools */
    .tools-card {
        padding: 24px;
        border-radius: 20px;
    }

    .tools-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .tools-list {
        position: static;
        display: flex;
        gap: 16px;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-bottom: 8px;
        margin-left: -24px;
        margin-right: -24px;
        padding-left: 24px;
        padding-right: 24px;
    }

    .tools-list::-webkit-scrollbar {
        display: none;
    }

    .tools-group {
        margin-bottom: 0;
        flex: 0 0 auto;
    }

    .tools-group-items {
        display: flex;
        gap: 4px;
    }

    .tool-name {
        white-space: nowrap;
        padding: 6px 14px;
        font-size: 14px;
        border-radius: 980px;
        background: rgba(0, 0, 0, 0.04);
    }

    .tool-name.active {
        background: var(--accent);
        color: white;
    }

    .tool-toggle {
        display: none;
    }

    .tools-display {
        min-height: 280px;
    }

    .tools-grid {
        min-height: 280px;
    }

    .tools-detail-icon {
        width: 120px;
        height: 120px;
    }

    .tools-detail-name {
        font-size: 24px;
    }

    /* About */
    .section-about {
        overflow: visible;
        padding-bottom: 100px;
    }

    .about-scroll {
        scroll-snap-type: x mandatory;
        padding-left: 0;
        padding-right: 0;
        scroll-padding-left: 0;
        scroll-padding-right: 0;
        overscroll-behavior-x: contain;
        scroll-snap-stop: always;
        gap: 48px;
        padding-top: 50px;
        padding-bottom: 60px;
        margin-top: -20px;
    }

    .about-scroll::before,
    .about-scroll::after {
        content: '';
        flex: 0 0 auto;
        width: calc(50vw - (68vw / 2));
    }

    .about-card-wrap {
        width: 68vw;
        scroll-snap-align: center;
        transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1), box-shadow 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    }

    .about-card-wrap.about-card-centered {
        transform: scale(1.08);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    }

    .about-card-wrap:hover {
        transform: none;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    }

    .highlight-card,
    .highlight-card.is-focused {
        transform: none;
    }

    /* Connect */
    .section-connect {
        height: 400px;
    }

    .section-connect .section-title {
        bottom: 340px;
        font-size: 32px;
    }

    .phone-frame {
        width: 280px;
    }

    .phone-screen-container {
        border-radius: 36px;
    }

    .phone-icons-grid {
        padding: 55px 20px 20px;
        gap: 14px;
    }

    .phone-app-icon-img {
        width: 46px;
        height: 46px;
        border-radius: 11px;
    }

    .phone-app-icon-label {
        font-size: 9px;
    }
}

/* Responsive: Mobile Dark Mode (≤ 768px) */
@media (max-width: 768px) and (prefers-color-scheme: dark) {
    .tool-name {
        background: rgba(255, 255, 255, 0.06);
    }

    .tool-name.active {
        background: var(--accent);
        color: white;
    }
}

/* ==========================================
   Responsive: Small Phones (≤ 600px)
   ========================================== */
@media (max-width: 600px) {
    .about-card {
        width: 70vw;
    }

    .phone-frame {
        width: 260px;
    }

    .phone-screen-container {
        border-radius: 32px;
    }

    .phone-icons-grid {
        padding: 48px 16px 16px;
        gap: 10px;
    }

    .phone-app-icon-img {
        width: 42px;
        height: 42px;
        border-radius: 10px;
    }
}
