/* ===== CSS Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Minimalist Color Palette - Apple Inspired */
    --primary-black: #1d1d1f;
    --secondary-black: #000000;
    --primary-white: #ffffff;
    --off-white: #fbfbfd;
    --light-gray: #f5f5f7;
    --medium-gray: #86868b;
    --dark-gray: #424245;
    --beige: #f2efe9;
    --accent-beige: #e8e5dd;

    /* Spacing & Sizing */
    --container-max-width: 1200px;
    --border-radius: 18px;
    --transition-speed: 0.4s;
    --transition-ease: cubic-bezier(0.28, 0.11, 0.32, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--off-white);
    color: var(--primary-black);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== Typography ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.015em;
    color: var(--primary-black);
}

p {
    color: var(--dark-gray);
    font-size: 1.0625rem;
    line-height: 1.47059;
    font-weight: 400;
}

/* ===== Navigation ===== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 1.25rem 2rem;
}

nav .container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-black);
    text-decoration: none;
    letter-spacing: -0.02em;
    transition: opacity var(--transition-speed) var(--transition-ease);
}

.logo:hover {
    opacity: 0.7;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--primary-black);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.875rem;
    transition: opacity var(--transition-speed) var(--transition-ease);
    position: relative;
}

.nav-links a:hover {
    opacity: 0.6;
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    position: relative;
    background: var(--primary-white);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 980px;
}

.hero h1 {
    font-size: clamp(3.5rem, 10vw, 7rem);
    margin-bottom: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    color: var(--primary-black);
    animation: fadeInUp 0.8s ease-out;
}

.hero p {
    font-size: clamp(1.3rem, 3vw, 1.75rem);
    color: var(--medium-gray);
    max-width: 700px;
    margin: 0 auto 3rem;
    font-weight: 400;
    line-height: 1.4;
    animation: fadeInUp 0.8s ease-out 0.15s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cta-button {
    display: inline-block;
    padding: 0.875rem 2rem;
    background: var(--primary-black);
    color: var(--primary-white);
    text-decoration: none;
    border-radius: 980px;
    font-weight: 500;
    font-size: 1rem;
    transition: all var(--transition-speed) var(--transition-ease);
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.cta-button:hover {
    background: var(--dark-gray);
    transform: scale(1.02);
}

/* ===== Container & Section ===== */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 7rem 0;
}

.section-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    text-align: center;
    margin-bottom: 4rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--primary-black);
}

/* ===== Applications Grid ===== */
#applications {
    background: var(--light-gray);
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.app-card {
    background: var(--primary-white);
    border-radius: var(--border-radius);
    padding: 3rem 2.5rem;
    text-align: center;
    transition: all var(--transition-speed) var(--transition-ease);
    cursor: pointer;
    text-decoration: none;
    display: block;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.app-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.app-icon {
    width: 120px;
    height: 120px;
    border-radius: 27px;
    margin: 0 auto 2rem;
    transition: transform var(--transition-speed) var(--transition-ease);
}

.app-card:hover .app-icon {
    transform: scale(1.05);
}

.app-card h3 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    color: var(--primary-black);
    font-weight: 600;
    letter-spacing: -0.015em;
}

.app-card p {
    color: var(--medium-gray);
    font-size: 1rem;
    line-height: 1.5;
}

/* ===== App Detail Page ===== */
.app-detail {
    padding-top: 120px;
    min-height: 100vh;
    background: var(--primary-white);
}

.app-header {
    text-align: center;
    padding: 5rem 2rem;
    background: var(--beige);
    border-radius: var(--border-radius);
    margin-bottom: 3rem;
}

.app-header .app-icon {
    width: 150px;
    height: 150px;
    margin: 0 auto 2.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.app-header h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: 1rem;
    font-weight: 600;
    letter-spacing: -0.025em;
}

.app-header .subtitle {
    font-size: 1.5rem;
    color: var(--medium-gray);
    font-weight: 400;
}

.coming-soon {
    text-align: center;
    padding: 5rem 2rem;
    background: var(--light-gray);
    border-radius: var(--border-radius);
    margin: 3rem 0;
}

.coming-soon h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    color: var(--primary-black);
    font-weight: 600;
}

.coming-soon p {
    font-size: 1.125rem;
    color: var(--medium-gray);
    max-width: 600px;
    margin: 0.75rem auto;
}

/* ===== Legal Links ===== */
.legal-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.legal-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: var(--primary-white);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 980px;
    color: var(--primary-black);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: all var(--transition-speed) var(--transition-ease);
}

.legal-link:hover {
    background: var(--primary-black);
    color: var(--primary-white);
    border-color: var(--primary-black);
    transform: scale(1.02);
}

/* ===== Legal Pages ===== */
.legal-page {
    padding-top: 120px;
    min-height: 100vh;
    background: var(--primary-white);
}

.legal-content {
    background: var(--light-gray);
    border-radius: var(--border-radius);
    padding: 4rem 3.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.legal-content h1 {
    font-size: 3rem;
    margin-bottom: 2.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--primary-black);
}

.legal-content h2 {
    font-size: 1.75rem;
    margin: 2.5rem 0 1rem;
    color: var(--primary-black);
    font-weight: 600;
}

.legal-content p {
    margin-bottom: 1.25rem;
    color: var(--dark-gray);
    line-height: 1.6;
    font-size: 1rem;
}

.legal-content strong {
    color: var(--primary-black);
    font-weight: 600;
}

.legal-content ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
    color: var(--dark-gray);
}

.legal-content li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

/* ===== Footer ===== */
footer {
    background: var(--beige);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding: 3.5rem 0;
    text-align: center;
    margin-top: 7rem;
}

footer p {
    color: var(--medium-gray);
    font-size: 0.875rem;
}

footer .footer-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

footer .footer-links a {
    color: var(--dark-gray);
    text-decoration: none;
    font-size: 0.875rem;
    transition: opacity var(--transition-speed) var(--transition-ease);
}

footer .footer-links a:hover {
    opacity: 0.6;
}

/* ===== Tables & Data ===== */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.9375rem;
    background: var(--primary-white);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

th,
td {
    padding: 1.25rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

th {
    background: var(--accent-beige);
    color: var(--primary-black);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background: rgba(0, 0, 0, 0.01);
}

.hr-line {
    border: none;
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
    margin: 3rem 0;
}

.version-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--accent-beige);
    border-radius: 980px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--dark-gray);
    margin-bottom: 2rem;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    nav {
        padding: 1rem 1.5rem;
    }

    nav .container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .apps-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .legal-links {
        flex-direction: column;
        align-items: center;
    }

    .legal-content {
        padding: 2.5rem 2rem;
    }

    .app-header {
        padding: 3rem 1.5rem;
    }
}

/* ===== Smooth Transitions ===== */
@media (prefers-reduced-motion: no-preference) {
    * {
        scroll-behavior: smooth;
    }
}/* ===== App Hero Section ===== */
.app-hero {
    padding-top: 140px;
    padding-bottom: 5rem;
    background: var(--primary-white);
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.hero-text {
    flex: 1;
}

.app-icon-small {
    width: 80px;
    height: 80px;
    border-radius: 18px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hero-text h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.hero-text .subtitle {
    font-size: 1.5rem;
    color: var(--primary-black);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.hero-text .description {
    font-size: 1.125rem;
    color: var(--dark-gray);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    max-height: 600px;
    /* filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15)); */
}

/* ===== Features Section ===== */
.features {
    background: var(--off-white);
    padding: 7rem 0;
}

.section-intro {
    text-align: center;
    max-width: 700px;
    margin: -2rem auto 4rem;
    font-size: 1.25rem;
    color: var(--medium-gray);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.feature-card {
    background: var(--primary-white);
    padding: 2.5rem;
    border-radius: 24px;
    transition: transform var(--transition-speed) var(--transition-ease);
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p {
    font-size: 1rem;
    color: var(--dark-gray);
    line-height: 1.5;
}

/* ===== Showcase Section ===== */
.showcase {
    background: var(--primary-white);
    padding: 7rem 0;
}

.showcase-container {
    display: flex;
    align-items: center;
    gap: 5rem;
}

.showcase-image,
.showcase-text {
    flex: 1;
}

.showcase-image img {
    max-width: 100%;
    height: auto;
    border-radius: 24px;
    /* box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1); */
}

.showcase-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.showcase-text p {
    font-size: 1.125rem;
    color: var(--dark-gray);
}

/* ===== Landscape Showcase ===== */
.landscape-showcase {
    background: var(--beige);
    padding: 5rem 0;
    text-align: center;
}

.landscape-img {
    max-width: 100%;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* ===== Responsive adjustments ===== */
@media (max-width: 900px) {

    .hero-container,
    .showcase-container {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }

    .hero-text .description,
    .section-intro {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-image img,
    .showcase-image img {
        max-height: 400px;
    }

    .showcase-container {
        flex-direction: column-reverse;
        /* Text on top for mobile/tablet usually better? Or stick to image first? */
    }
}
/* ===== Store Buttons ===== */
.store-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.store-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--primary-black);
    color: var(--primary-white);
    padding: 0.6rem 1.25rem;
    border-radius: 10px;
    text-decoration: none;
    transition: transform var(--transition-speed) var(--transition-ease), opacity var(--transition-speed);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.store-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.store-btn-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.store-btn-text span:first-child {
    font-size: 0.65rem;
    font-weight: 400;
}

.store-btn-text .store-name {
    font-size: 1.125rem;
    font-weight: 600;
}

/* ===== iPhone Frame ===== */
.iphone-frame {
    position: relative;
    background: #000;
    border-radius: 40px;
    box-shadow: 0 0 0 11px #1d1d1f, 0 0 0 13px #3a3a3c, 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    display: inline-block;
    overflow: hidden;
    line-height: 0;
    /* Removing bottom space for img */
    max-width: 320px;
    /* Adjust based on image size, or keep auto if image is sized */
    margin: 2rem 0;
}

.iphone-frame img {
    border-radius: 32px;
    /* Slightly less than frame */
    display: block;
    width: 100%;
    height: auto;
}

/* Notch Mockup */
.iphone-frame .notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 24px;
    background: #1d1d1f;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    z-index: 2;
}

/* ===== Wide Landscape ===== */
.container-fluid {
    width: 100%;
    max-width: 95%;
    /* Almost full width */
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
}

.landscape-showcase .landscape-img {
    width: 100%;
    max-width: none;
    /* Override previous restriction if any */
    border-radius: 12px;
    /* Slightly smaller radius for large image */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

@media (max-width: 900px) {
    .store-buttons {
        justify-content: center;
    }
}
