/* Global Variables */
:root {
    --primary-bg: #ffffff;
    --text-main: #1d1d1f;
    --text-sec: #86868b;
    --accent-blue: #0071e3;

    /* Pastel Palette for App UI */
    --soft-blue: #B8D4F1;
    --lavender: #D4C4FB;
    --soft-pink: #F8C4D8;
    --card-bg: rgba(255, 255, 255, 0.45);
    --card-border: rgba(255, 255, 255, 0.5);
    --radius-l: 20px;
}

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

body {
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--text-main);
    background: var(--primary-bg);
    overflow-x: hidden;
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.logo {
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-sec);
}

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

.github-link {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 20px;
    gap: 40px;
}

.hero-content {
    flex: 1;
    max-width: 550px;
    z-index: 10;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #1d1d1f 0%, #434344 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-sec);
    margin-bottom: 30px;
    font-weight: 400;
}

/* Theme Switcher */
.theme-switcher {
    margin: 30px 0;
    padding: 15px;
    background: #f5f5f7;
    border-radius: 20px;
    display: inline-block;
}

.theme-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-sec);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.theme-buttons {
    display: flex;
    gap: 12px;
}

.theme-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.theme-btn:hover {
    transform: scale(1.1);
}

.theme-btn.active {
    border-color: var(--text-main);
    transform: scale(1.1);
}


.cta-buttons {
    display: flex;
    gap: 15px;
}

.app-store-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #000;
    color: #fff;
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.2s;
}

.app-store-btn:hover {
    transform: translateY(-2px);
}

.app-store-btn ion-icon {
    font-size: 1.4rem;
}

/* Phone Showcase */
.phone-showcase {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.iphone-frame {
    width: 320px;
    height: 650px;
    background: #000;
    border-radius: 50px;
    padding: 12px;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
    z-index: 5;
    transform: rotate(-5deg);
    transition: transform 0.5s ease;
}

.iphone-frame:hover {
    transform: rotate(0deg) scale(1.02);
}

.notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 30px;
    background: #000;
    z-index: 20;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

.screen-content {
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 38px;
    overflow: hidden;
    position: relative;
}

/* Embedded App UI Styles (Scoped) */
.app-container {
    width: 100%;
    height: 100%;
    position: relative;
    background: linear-gradient(135deg, var(--soft-blue), var(--lavender));
    overflow-y: auto;
    overflow-x: hidden;
    font-family: 'Inter', sans-serif;
    color: #333;
}

.app-container::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar inside phone */

.background-gradient {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(135deg, var(--soft-blue), var(--soft-pink));
}

.particle {
    position: absolute;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    filter: blur(50px);
}

.p1 {
    top: -20px;
    left: -20px;
}

.p2 {
    bottom: 20%;
    right: -20%;
    background: var(--lavender);
}

.weather-header {
    padding: 60px 20px 20px;
    text-align: center;
    position: relative;
    z-index: 10;
}

.location-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.weather-icon-large {
    font-size: 50px;
    margin-bottom: -5px;
}

.temperature {
    font-size: 72px;
    font-weight: 600;
    letter-spacing: -2px;
    line-height: 1;
}

.condition {
    font-size: 1.1rem;
    color: rgba(0, 0, 0, 0.6);
    font-weight: 500;
}

.high-low {
    font-size: 0.9rem;
    color: rgba(0, 0, 0, 0.5);
    font-weight: 500;
    margin-top: 4px;
}

.content-scroll {
    padding: 10px 15px 40px;
    position: relative;
    z-index: 10;
}

.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-l);
    padding: 15px;
    margin-bottom: 15px;
}

.section-header h2 {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.5);
    margin-bottom: 10px;
}

.chart-container {
    height: 100px;
    width: 100%;
    margin-bottom: 10px;
}

.hourly-list {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 5px;
}

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

.hourly-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 40px;
    font-size: 0.8rem;
}

.daily-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 0.9rem;
    font-weight: 500;
}

.daily-row:last-child {
    border: none;
}

.temp-bar-container {
    flex: 1;
    display: flex;
    gap: 8px;
    margin-left: 10px;
    align-items: center;
}

.bar-track {
    flex: 1;
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 2px;
    position: relative;
}

.bar-fill {
    position: absolute;
    height: 100%;
    background: linear-gradient(90deg, #99D9FF, #FFD999);
    border-radius: 2px;
}

.metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.metric-card {
    min-height: 110px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-bottom: 0;
}

.metric-header {
    display: flex;
    gap: 4px;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.6);
}

.metric-value {
    margin-top: 5px;
}

.big-value {
    font-size: 1.8rem;
    font-weight: 600;
}

.unit {
    font-size: 0.9rem;
    color: rgba(0, 0, 0, 0.6);
}

.sub-text {
    font-size: 0.8rem;
    color: rgba(0, 0, 0, 0.6);
}

/* Background Decoration */
.blob-bg {
    position: absolute;
    top: 20%;
    right: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(184, 212, 241, 0.4) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: 0;
    filter: blur(80px);
}

/* Widgets Section */
.widgets-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    text-align: center;
    background: #fbfbfd;
    /* Slight sep */
    border-radius: 30px;
    margin-bottom: 40px;
}

.section-intro h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.section-intro p {
    font-size: 1.1rem;
    color: var(--text-sec);
    margin-bottom: 40px;
}

.widget-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.widget-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.widget-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-sec);
}

/* iOS Widget Styles */
.ios-widget {
    background: linear-gradient(135deg, var(--soft-blue), var(--lavender));
    /* Default theme */
    border-radius: 22px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    color: #333;
    position: relative;
    overflow: hidden;
    text-align: left;
    transition: transform 0.3s ease;
}

.ios-widget:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.small {
    width: 160px;
    height: 160px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.small .widget-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 600;
}

.small .widget-body {
    display: flex;
    align-items: center;
    gap: 8px;
}

.small .widget-temp {
    font-size: 2.5rem;
    font-weight: 500;
}

.small .widget-icon {
    font-size: 2rem;
}

.small .widget-condition {
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.8;
}

.medium {
    width: 340px;
    height: 160px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.medium .widget-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.medium .widget-city {
    font-size: 1.2rem;
    font-weight: 700;
    display: block;
}

.medium .widget-status {
    font-size: 1.8rem;
    font-weight: 500;
}

.medium .right {
    font-size: 0.9rem;
    opacity: 0.8;
}

.widget-hourly {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.hour-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.75rem;
    gap: 4px;
}

.hour-col .ico {
    font-size: 1.2rem;
}

/* Lock Screen Circle */
.lock-screen-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 600;
}

.circle-top,
.circle-bottom {
    font-size: 0.7rem;
    text-transform: uppercase;
    opacity: 0.6;
}

.circle-main {
    font-size: 1.5rem;
    font-weight: 700;
}


/* Features Grid */
.features {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: #fbfbfd;
    border-radius: 24px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 240px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 2px solid rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -100%;
    right: -100%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 113, 227, 0.1) 0%, transparent 70%);
    transition: all 0.6s ease;
    opacity: 0;
}

.feature-card:hover {
    transform: translateY(-8px);
    background: #fff;
    border-color: rgba(0, 113, 227, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-card:hover::before {
    top: 0;
    right: 0;
    opacity: 1;
}

.feature-card.large {
    grid-column: span 2;
    background: linear-gradient(135deg, #e8f2ff 0%, #f0f8ff 100%);
}

@media (max-width: 768px) {
    .feature-card.large {
        grid-column: span 1;
    }
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.feature-card p {
    font-size: 1rem;
    color: var(--text-sec);
    line-height: 1.6;
}

.feature-icon {
    font-size: 3rem;
    margin-top: 20px;
    color: var(--text-main);
}

.feature-card ion-icon {
    font-size: 3.5rem;
    align-self: flex-start;
    margin-top: 20px;
    color: #0071e3;
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 12px rgba(0, 113, 227, 0.2));
}

.feature-card:hover ion-icon {
    transform: scale(1.15) translateY(-4px);
    filter: drop-shadow(0 8px 16px rgba(0, 113, 227, 0.3));
}

.mini-gradient {
    height: 60px;
    width: 100%;
    margin-top: 20px;
    border-radius: 12px;
    background: linear-gradient(90deg, #F8C4D8, #D4C4FB, #B8D4F1);
}

/* Footer */
footer {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    color: var(--text-sec);
    font-size: 0.9rem;
}

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

/* Responsive */
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 120px;
    }

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

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

    .cta-buttons {
        justify-content: center;
    }

    .phone-showcase {
        width: 100%;
        margin-top: 40px;
    }

    .footer {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
}

/* Feature Showcase Sections */
.feature-showcase {
    padding: 120px 20px;
    position: relative;
    overflow: hidden;
}

.section-dark {
    background: #000;
    color: #fff;
}

.section-light {
    background: #fff;
    color: var(--text-main);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 80px;
}

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

/* Time Machine Styles */
.split-view-container {
    padding: 20px 0;
}

.split-view-container .text-content {
    flex: 1;
}

.split-view-container h2 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff 0%, #a1a1a6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.split-view-container p {
    font-size: 1.25rem;
    color: #86868b;
    margin-bottom: 50px;
    line-height: 1.6;
}

.tm-stat-row {
    display: flex;
    align-items: center;
    gap: 40px;
}

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

.stat .label {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: #86868b;
    font-weight: 600;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.stat .value {
    font-size: 1.4rem;
    font-weight: 600;
}

.vs-badge {
    background: #333;
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
}

/* Image Showcase Styles */
/* Image Showcase Styles */
/* Image Showcase Styles */
.image-wrapper {
    flex: 1.2;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    perspective: 1000px;
}

/* iPhone Frame */
.iphone-frame {
    position: relative;
    background: #000;
    border-radius: 50px;
    box-shadow: 0 0 0 11px #1c1c1e, 0 0 0 13px #333, 0 50px 100px rgba(0, 0, 0, 0.5);
    padding: 0;
    border: 12px solid #000;
    display: inline-block;
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    overflow: hidden;
}

.iphone-frame .app-screenshot {
    display: block;
    border-radius: 38px;
    max-width: 300px;
    height: auto;
    border: none;
    box-shadow: none;
    transition: none;
    width: 100%;
}

/* Tilt Variants */
.tilt-left {
    transform: rotateY(15deg) rotateX(5deg) rotateZ(-4deg);
}

.tilt-right {
    transform: rotateY(-15deg) rotateX(5deg) rotateZ(4deg);
}

.no-tilt {
    transform: rotate(0deg);
}

/* Hover Effects */
.iphone-frame:hover {
    transform: scale(1.02) translateY(-10px) rotate(0deg) !important;
    /* Reset tilt on hover for focus */
    box-shadow: 0 0 0 11px #1c1c1e, 0 0 0 13px #333, 0 60px 120px rgba(0, 0, 0, 0.6);
    z-index: 10;
}

/* Dynamic Island */
.dynamic-island {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 85px;
    height: 24px;
    background: #000;
    border-radius: 20px;
    z-index: 20;
}

.glow-effect {
    box-shadow: 0 0 0 11px #1c1c1e, 0 0 0 13px #333, 0 0 80px rgba(100, 100, 255, 0.2), 0 50px 100px rgba(0, 0, 0, 0.5);
}

.shadow-strong {
    box-shadow: 0 0 0 11px #1c1c1e, 0 0 0 13px #333, 0 40px 80px rgba(0, 0, 0, 0.4);
}

.shadow-medium {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Customization Section Updates */
.column-layout {
    flex-direction: column;
    text-align: center;
    gap: 60px;
}

.center-image {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    perspective: 1000px;
    /* Add perspective for the tilt */
}

.center-image img {
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Gallery Section */
.section-grey {
    background: #f5f5f7;
    color: #1d1d1f;
}

.gallery-container {
    flex-direction: column;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    width: 100%;
    margin-top: 40px;
}

.gallery-item {
    display: flex;
    justify-content: center;
    align-items: center;
}

.gallery-item img {
    width: 100%;
    max-width: 500px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Responsive Adjustments */
@media (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* Notifications Section */
.notif-container {
    flex-direction: row-reverse;
    /* Text on right, visual on left */
}

.notif-container .text-content {
    flex: 1;
}

.notif-container h2 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff 0%, #a1a1a6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.notif-container p {
    font-size: 1.25rem;
    color: #86868b;
    margin-bottom: 40px;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.15rem;
    margin-bottom: 18px;
    color: #d1d1d6;
}

.feature-list ion-icon {
    color: #0a84ff;
    font-size: 1.5rem;
}

.notif-stack {
    flex: 1;
    height: 450px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.notif-card {
    position: absolute;
    width: 340px;
    height: 90px;
    background: rgba(28, 28, 30, 0.7);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 18px;
    color: #fff;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s;
}

/* Stacking effect - refined */
.notif-card.p1 {
    z-index: 3;
    transform: translateY(0) scale(1);
    background: rgba(44, 44, 46, 0.9);
}

.notif-card.p2 {
    z-index: 2;
    transform: translateY(24px) scale(0.94);
    opacity: 0.6;
}

.notif-card.p3 {
    z-index: 1;
    transform: translateY(48px) scale(0.88);
    opacity: 0.3;
}

.notif-stack:hover .notif-card.p1 {
    transform: translateY(-40px);
}

.notif-stack:hover .notif-card.p2 {
    transform: translateY(0px) scale(1);
    opacity: 1;
}

.notif-stack:hover .notif-card.p3 {
    transform: translateY(40px) scale(0.96);
    opacity: 0.8;
}

.icon-box {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: #3a3a3c;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-box ion-icon {
    font-size: 1.4rem;
}

.icon-box.rain {
    background: #0a84ff;
}

.icon-box.alert {
    background: #ff453a;
}

.notif-card .text h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.notif-card .text p {
    font-size: 0.85rem;
    color: #aeaeb2;
    margin: 0;
    line-height: 1.3;
}

.notif-card .time {
    margin-left: auto;
    font-size: 0.8rem;
    color: #636366;
    align-self: flex-start;
    margin-top: 2px;
    font-weight: 500;
}

/* Responsive Styles for new sections */
@media (max-width: 900px) {
    .container {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 20px;
    }

    .bento-item {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
        min-height: 220px;
    }

    .notif-container {
        flex-direction: column;
    }

    .split-view-container h2,
    .notif-container h2 {
        font-size: 2.5rem;
    }

    .comparison-view {
        width: 100%;
        height: 350px;
    }

    .weather-info .icon {
        font-size: 3.5rem;
    }

    .weather-info .temp {
        font-size: 2.5rem;
    }
}
/* Full Feature List */
.feature-grid-detailed {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    padding: 40px 0;
}

@media (max-width: 1200px) {
    .feature-grid-detailed {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .feature-grid-detailed {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .feature-grid-detailed {
        grid-template-columns: 1fr;
    }
}

.feature-item {
    text-align: center;
    padding: 40px 24px;
    border-radius: 20px;
    background: #f9f9fb;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0071e3, #0a84ff);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    background: #fff;
    border-color: #e0e0e0;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    transform: translateY(-8px);
}

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

.feature-item ion-icon {
    font-size: 3.5rem;
    color: #0a84ff;
    margin-bottom: 24px;
    background: rgba(10, 132, 255, 0.1);
    padding: 20px;
    border-radius: 24px;
    transition: all 0.3s ease;
    display: inline-flex;
}

.feature-item:hover ion-icon {
    background: rgba(0, 113, 227, 0.15);
    transform: scale(1.1);
}

.feature-item h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1d1d1f;
    transition: color 0.3s ease;
}

.feature-item:hover h3 {
    color: #0071e3;
}

.feature-item p {
    font-size: 0.95rem;
    color: #86868b;
    line-height: 1.7;
}

/* FAQ Section */
.faq-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    border-left: 5px solid #0071e3;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.faq-item:hover {
    box-shadow: 0 8px 24px rgba(0, 113, 227, 0.12);
    transform: translateX(8px);
}

.faq-header {
    padding: 24px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: background 0.3s ease;
    user-select: none;
}

.faq-header:hover {
    background: rgba(0, 113, 227, 0.03);
}

.faq-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0;
    text-align: left;
}

.faq-toggle {
    font-size: 1.6rem;
    color: #0071e3;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    min-width: 32px;
    flex-shrink: 0;
    margin-left: 16px;
}

.faq-header.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-content {
    padding: 0 28px 24px 28px;
    border-top: 1px solid #f0f0f0;
    animation: slideDown 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.faq-content p {
    font-size: 0.95rem;
    color: #515154;
    line-height: 1.75;
    margin: 0;
}

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

@media (max-width: 768px) {
    .faq-item {
        margin-bottom: 12px;
    }
    
    .faq-header {
        padding: 20px 24px;
    }
    
    .faq-header h3 {
        font-size: 1rem;
    }
    
    .faq-content {
        padding: 0 24px 20px 24px;
    }
}

/* Privacy Policy */
.privacy-content h4 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.privacy-content p {
    font-size: 1.1rem;
    color: #aeaeb2;
    margin-bottom: 30px;
    line-height: 1.8;
}

/* Responsive for new sections */
@media (max-width: 768px) {
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-grid-detailed {
        grid-template-columns: 1fr;
    }
}
