/* ========== RESET & BASE ========== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', 'PingFang SC', 'Source Han Sans SC', sans-serif;
    color: #1d1d1f;
    background: #07080c;
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

/* ========== NAV ========== */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    height: 48px;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #f5f5f7;
}

.nav-icon-picture {
    display: flex;
    align-items: center;
}

.nav-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.footer-icon-picture {
    display: flex;
    align-items: center;
}

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

.nav-links a {
    font-size: 13px;
    color: #d1d1d6;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #f5f5f7;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #d1d1d6;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #f5f5f7;
}

/* Mobile menu button */
.nav-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-menu-btn span {
    display: block;
    width: 20px;
    height: 1.5px;
    background: #d1d1d6;
    border-radius: 1px;
    transition: all 0.3s;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 48px;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 20px 24px;
    flex-direction: column;
    gap: 20px;
    z-index: 999;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    font-size: 16px;
    color: #d1d1d6;
}

/* ========== SECTIONS ========== */
.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 80px;
    position: relative;
}

.section:not(.hero-section) {
    content-visibility: auto;
    contain-intrinsic-size: 960px;
}

.section-inner {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 60px;
}

.section-inner.center-layout {
    flex-direction: column;
    text-align: center;
}

.section-text {
    flex: 1;
    min-width: 0;
}

.section-title {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 21px;
    line-height: 1.5;
    margin-bottom: 32px;
    opacity: 0.7;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.feature-list li {
    font-size: 17px;
    line-height: 1.5;
    padding-left: 24px;
    position: relative;
    opacity: 0.8;
}

.feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #0071e3;
}

/* ========== HERO ========== */
.hero-section {
    background:
        radial-gradient(circle at top, rgba(55, 92, 255, 0.22), transparent 34%),
        radial-gradient(circle at bottom left, rgba(35, 182, 150, 0.18), transparent 28%),
        linear-gradient(180deg, #07080c 0%, #0d1020 48%, #07080c 100%);
    flex-direction: column;
    text-align: center;
    padding-top: 140px;
    min-height: 100vh;
    overflow: hidden;
}

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

.hero-app-icon {
    width: 80px;
    height: 80px;
    border-radius: 18px;
    margin: 0 auto 24px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}

.hero-title {
    font-size: 72px;
    font-weight: 700;
    color: #f5f5f7;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}

.hero-subtitle {
    font-size: 24px;
    color: #86868b;
    margin-bottom: 40px;
    font-weight: 400;
}

.hero-pills {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 36px;
}

.hero-pill {
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #d7d8dd;
    font-size: 14px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.app-store-badge {
    display: inline-block;
    transition: transform 0.2s, opacity 0.2s;
}

.app-store-badge:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.app-store-badge img {
    height: 48px;
    width: auto;
}

img[data-i18n-src]:not([src]) {
    opacity: 0;
}

.asset-ready {
    opacity: 1;
    transition: opacity 0.24s ease;
}

.hero-device {
    margin-top: 60px;
    position: relative;
    z-index: 1;
}

/* ========== DEVICE FRAME ========== */
.device-frame {
    width: 280px;
    background: #1c1c1e;
    border-radius: 40px;
    padding: 12px;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.device-screen {
    border-radius: 30px;
    overflow: hidden;
    background: #f5f5f7;
    aspect-ratio: 390 / 844;
}

.device-frame.device-small {
    width: 240px;
}

.section-devices {
    display: flex;
    gap: 24px;
    flex-shrink: 0;
}

.section-devices.single-device {
    justify-content: center;
}

/* Screenshots */
.screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ========== CALENDAR SECTION ========== */
.calendar-section {
    background: #f5f5f7;
    color: #1d1d1f;
}

.calendar-section .feature-list li::before {
    background: #0071e3;
}

/* ========== ALARM SECTION ========== */
.alarm-section {
    background: #000;
    color: #f5f5f7;
}

.alarm-section .section-inner {
    flex-direction: column;
    text-align: center;
}

.alarm-showcase {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-top: 48px;
    width: 100%;
}

.alarm-device {
    flex-shrink: 0;
}

.alarm-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
    text-align: left;
}

.alarm-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px;
    transition: background 0.3s, transform 0.3s;
}

.alarm-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.alarm-card-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.alarm-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 6px;
}

.alarm-card p {
    font-size: 15px;
    color: #86868b;
    line-height: 1.5;
}

/* ========== SHIFT SECTION ========== */
.shift-section {
    background: #f5f5f7;
    color: #1d1d1f;
}

/* ========== HOLIDAY SECTION ========== */
.holiday-section {
    background: #000;
    color: #f5f5f7;
}

.holiday-content {
    display: flex;
    align-items: center;
    gap: 48px;
    margin-top: 48px;
}

.holiday-regions {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.region-badge {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 16px 24px;
    font-size: 18px;
    font-weight: 500;
    transition: background 0.3s;
}

.region-badge:hover {
    background: rgba(255, 255, 255, 0.12);
}

.region-badge.coming-soon {
    opacity: 0.5;
    border-style: dashed;
}

/* ========== REPEAT SECTION ========== */
.repeat-section {
    background: #f5f5f7;
    color: #1d1d1f;
}

.repeat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 48px;
    max-width: 800px;
}

.repeat-card {
    background: #fff;
    border-radius: 14px;
    padding: 20px 16px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

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

.repeat-icon {
    font-size: 28px;
}

/* ========== DOWNLOAD SECTION ========== */
.download-section {
    background: linear-gradient(180deg, #000 0%, #0a0a1a 100%);
    color: #f5f5f7;
}

.download-icon {
    width: 96px;
    height: 96px;
    border-radius: 22px;
    margin-bottom: 24px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}

.download-section .section-title {
    color: #f5f5f7;
}

.download-section .section-subtitle {
    color: #86868b;
}

/* ========== FOOTER ========== */
.site-footer {
    background: #000;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 40px 24px;
    color: #86868b;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #d1d1d6;
}

.footer-icon {
    width: 24px;
    height: 24px;
    border-radius: 5px;
}

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

.footer-links a {
    font-size: 13px;
    color: #86868b;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #d1d1d6;
}

.footer-bottom {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .animate-on-scroll,
    .animate-on-scroll.visible,
    .alarm-card,
    .repeat-card,
    .region-badge,
    .app-store-badge {
        transition: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
}

/* ========== ANIMATIONS ========== */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: none !important;
}

.animate-on-scroll[data-animation="fade-in"] {
    opacity: 0;
}

.animate-on-scroll[data-animation="fade-up"] {
    transform: translateY(40px);
}

.animate-on-scroll[data-animation="slide-up"] {
    transform: translateY(80px);
}

.animate-on-scroll[data-animation="slide-left"] {
    transform: translateX(-60px);
}

.animate-on-scroll[data-animation="slide-right"] {
    transform: translateX(60px);
}

.animate-on-scroll[data-animation="fade-left"] {
    transform: translateX(40px);
    opacity: 0;
}

.animate-on-scroll[data-animation="scale-in"] {
    transform: scale(0.9);
}

/* ========== RESPONSIVE ========== */

/* Tablet */
@media (max-width: 1024px) {
    .section-inner {
        flex-direction: column;
        text-align: center;
    }

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

    .feature-list {
        align-items: center;
    }

    .feature-list li {
        text-align: left;
    }

    .section-title {
        font-size: 44px;
    }

    .hero-title {
        font-size: 56px;
    }

    .alarm-showcase {
        flex-direction: column;
    }

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

    .alarm-card {
        text-align: left;
    }

    .holiday-content {
        flex-direction: column;
    }

    .holiday-regions {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

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

/* Mobile */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-menu-btn {
        display: flex;
    }

    .section {
        padding: 100px 20px 60px;
        min-height: auto;
    }

    .section-title {
        font-size: 34px;
    }

    .section-subtitle {
        font-size: 17px;
    }

    .hero-section {
        padding-top: 120px;
        min-height: 100vh;
    }

    .hero-title {
        font-size: 42px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .device-frame {
        width: 220px;
    }

    .device-frame.device-small {
        width: 180px;
    }

    .section-devices {
        gap: 16px;
    }

    .alarm-card {
        padding: 18px;
    }

    .alarm-card h3 {
        font-size: 17px;
    }

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

    .repeat-card {
        padding: 16px 12px;
        font-size: 13px;
    }

    .footer-links {
        gap: 20px;
    }

    .holiday-regions {
        flex-direction: column;
        align-items: center;
    }
}

/* Small phones */
@media (max-width: 375px) {
    .hero-title {
        font-size: 36px;
    }

    .section-title {
        font-size: 28px;
    }

    .device-frame {
        width: 190px;
    }

    .device-frame.device-small {
        width: 160px;
    }
}
