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

/* Screen Reader Only Text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Skip Navigation Link */
.skip-link {
    position: absolute;
    top: -50px;
    left: 0;
    background: #007AFF;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    z-index: 1000;
    font-weight: 600;
    border-radius: 0 0 8px 0;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid white;
    outline-offset: -3px;
}

:root {
    --primary-blue: #007AFF;
    --primary-purple: #5856D6;
    --gradient-start: rgba(32, 64, 128, 0.9);
    --gradient-end: rgba(88, 86, 214, 0.9);
    --text-dark: #1d1d1f;
    --text-light: #6e6e73;
    --bg-light: #fbfbfd;
    --card-bg: rgba(255, 255, 255, 0.7);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-light);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: white;
    padding: 80px 20px 120px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><circle cx="200" cy="100" r="150" fill="rgba(255,255,255,0.05)"/><circle cx="1000" cy="400" r="200" fill="rgba(255,255,255,0.05)"/><circle cx="600" cy="500" r="100" fill="rgba(255,255,255,0.05)"/></svg>');
    opacity: 0.5;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero-text {
    flex: 1;
    text-align: left;
}

.hero-phone {
    flex: 0 0 350px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-phone-mockup {
    width: 300px;
    height: 600px;
    background: #1d1d1f;
    border-radius: 45px;
    padding: 14px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.4);
    position: relative;
}

.hero-phone-mockup::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 24px;
    background: #1d1d1f;
    border-radius: 20px;
    z-index: 10;
}

.hero-phone-screen {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 35px;
    overflow: hidden;
}

.hero-phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    display: block;
    filter: brightness(0) invert(1);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero .tagline {
    font-size: 1.5rem;
    margin-bottom: 30px;
    opacity: 0.95;
    font-weight: 500;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
    line-height: 1.8;
}

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

.btn-primary {
    background: white;
    color: var(--primary-blue);
    padding: 16px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.btn-primary:focus-visible {
    outline: 3px solid #1d1d1f;
    outline-offset: 4px;
}

.btn-secondary {
    background: rgba(255,255,255,0.25);
    color: white;
    padding: 16px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.4);
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.35);
    border-color: rgba(255,255,255,0.6);
}

.btn-secondary:focus-visible {
    outline: 3px solid white;
    outline-offset: 4px;
}

/* Enhanced Focus States for Accessibility */
a:focus-visible,
button:focus-visible {
    outline: 3px solid #007AFF;
    outline-offset: 2px;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section Styling */
section {
    padding: 80px 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* Problem Section */
.problem {
    background: linear-gradient(135deg, #f5f5f7 0%, #e8e8ed 100%);
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.problem-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    text-align: center;
}

.problem-card .icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.problem-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.problem-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Features Section */
.features {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: white;
}

.features .section-header h2 {
    color: white;
}

.features .section-header p {
    color: rgba(255,255,255,0.9);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
    background: rgba(255, 255, 255, 0.15);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: block;
    color: rgba(255,255,255,0.9);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: white;
}

.feature-card p {
    color: rgba(255,255,255,0.85);
    line-height: 1.8;
}

/* How It Works */
.how-it-works {
    background: white;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
    box-shadow: 0 4px 15px rgba(0,122,255,0.3);
}

.step h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.step p {
    color: var(--text-light);
    font-size: 0.95rem;
}


/* Comparison Table */
.comparison {
    background: var(--bg-light);
}

.comparison-table {
    max-width: 800px;
    margin: 40px auto;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.comparison-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.comparison-row:first-child {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    color: white;
    font-weight: 600;
}

.comparison-row:last-child {
    border-bottom: none;
}

.checkmark {
    color: #34C759;
    font-weight: 700;
}

.xmark {
    color: #FF3B30;
    font-weight: 700;
}

/* CTA Section */
.final-cta {
    background: linear-gradient(135deg, #1d1d1f 0%, #2d2d2f 100%);
    color: white;
    text-align: center;
    padding: 100px 20px;
}

.final-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.final-cta p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* Footer */
footer {
    background: #1d1d1f;
    color: #a1a1a6;
    padding: 60px 20px 30px;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #a1a1a6;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.footer-links a:focus-visible {
    outline: 2px solid #007AFF;
    outline-offset: 4px;
    border-radius: 4px;
}

.copyright {
    font-size: 0.9rem;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #2d2d2f;
}

/* Screenshots Section */
.screenshots {
    background: white;
    overflow: hidden;
}

.screenshot-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
    margin-top: 50px;
    padding: 20px 0;
}

.screenshot-item {
    text-align: center;
}

.screenshot-frame {
    position: relative;
    margin-bottom: 20px;
}

.screenshot-frame img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.screenshot-frame img:hover {
    transform: translateY(-10px) scale(1.02);
}

.screenshot-placeholder {
    display: none;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

.phone-mockup {
    width: 280px;
    height: 560px;
    background: linear-gradient(135deg, #f5f5f7, #e8e8ed);
    border-radius: 40px;
    padding: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    position: relative;
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 25px;
    background: #1d1d1f;
    border-radius: 0 0 20px 20px;
    z-index: 10;
}

.watch-wrapper {
    font-size: 8px;
    margin: 0 auto;
    width: 30em;
}

.watch-mockup {
    position: relative;
    margin: 0 auto;
    width: 22.8em;
    padding: 7.3em 0;
}

.case {
    position: relative;
    z-index: 2;
    background: #030303 url('screenshots/apple-watch.webp') center center / cover no-repeat;
    width: 21.2em;
    height: 24.7em;
    border-radius: 4em;
    box-shadow: inset 0 0 0 0.1em #bdbdbd, inset 0 0 0.2em 0.2em #bebebe, inset 0 0.3em 0.3em 0.4em #070707, inset 0 -0.3em 0.1em 0.1em #070707, inset 0 0 0 0.9em #fff, inset 0 0 0 1.05em #313131, inset 3.5em -0.5em 2em -2em #a4a4a4, inset -1.2em -0em 0.5em 0em #a4a4a4, inset -0.4em -1.1em 0.5em 0em #a4a4a4;
    overflow: visible;
}

.case:before {
    content: '';
    position: absolute;
    top: 0.3em;
    left: 2.5em;
    right: 2.5em;
    height: 8%;
    background: linear-gradient(to bottom, rgba(255,255,255,0.5) 1%, rgba(255,255,255,0.5) 41%, rgba(255,255,255,0.2) 100%);
    border-radius: 10em 10em 11em 11em / 4em 4em 4em 4em;
    z-index: 10;
}

.crown {
    position: absolute;
    background: #f6f6f6;
    width: 1.5em;
    height: 4.2em;
    top: 5.3em;
    right: -0.9em;
    box-shadow: -0.26em 0 0 -0.1em #060606, inset -0.1em 0 0.1em 0 #747474, inset 0 -0.1em 0 #fefefe, inset 0 0.1em 0 #fefefe, inset 0em 0.2em 0.1em 0em #eeeeee, inset 0.1em 1.1em 0.6em -0.3em #040404, inset 0.1em -1.1em 0.6em -0.3em #040404;
    border-radius: 0.8em 0.6em 0.6em 0.8em / 1em 0.6em 0.6em 1em;
    overflow: hidden;
    z-index: 10;
}

.crown:before {
    content: '';
    position: absolute;
    top: 0.1em;
    right: 0;
    height: 0.1em;
    width: 0.5em;
    background: rgba(0,0,0,0.2);
    box-shadow: 0 0.1em 0 rgba(255, 255, 255, 0.2), 0 0.3em 0 rgba(0, 0, 0, 0.2), 0 0.4em 0 rgba(255, 255, 255, 0.2), 0 0.6em 0 rgba(0, 0, 0, 0.2), 0 0.7em 0 rgba(255, 255, 255, 0.2), 0 0.9em 0 rgba(0, 0, 0, 0.2), 0 1em 0 rgba(255, 255, 255, 0.2), 0 1.2em 0 rgba(0, 0, 0, 0.2), 0 1.3em 0 rgba(255, 255, 255, 0.2), 0 1.5em 0 rgba(0, 0, 0, 0.2), 0 1.6em 0 rgba(255, 255, 255, 0.2), 0 1.8em 0 rgba(0, 0, 0, 0.2), 0 1.9em 0 rgba(255, 255, 255, 0.2), 0 2.1em 0 rgba(0, 0, 0, 0.2), 0 2.2em 0 rgba(255, 255, 255, 0.2), 0 2.4em 0 rgba(0, 0, 0, 0.2), 0 2.5em 0 rgba(255, 255, 255, 0.2), 0 2.7em 0 rgba(0, 0, 0, 0.2), 0 2.8em 0 rgba(255, 255, 255, 0.2), 0 3em 0 rgba(0, 0, 0, 0.2), 0 3.1em 0 rgba(255, 255, 255, 0.2), 0 3.3em 0 rgba(0, 0, 0, 0.2), 0 3.4em 0 rgba(255, 255, 255, 0.2), 0 3.6em 0 rgba(0, 0, 0, 0.2), 0 3.7em 0 rgba(255, 255, 255, 0.2), 0 3.9em 0 rgba(0, 0, 0, 0.2), 0 4em 0 rgba(255, 255, 255, 0.2), 0 4.2em 0 rgba(0, 0, 0, 0.2), 0 4.3em 0 rgba(255, 255, 255, 0.2), 0 4.5em 0 rgba(0, 0, 0, 0.2), 0 4.6em 0 rgba(255, 255, 255, 0.2), 0 4.8em 0 rgba(0, 0, 0, 0.2), 0 4.9em 0 rgba(255, 255, 255, 0.2), 0 5.1em 0 rgba(0, 0, 0, 0.2), 0 5.2em 0 rgba(255, 255, 255, 0.2);
}

.power {
    position: absolute;
    right: -0.3em;
    top: 13em;
    height: 6.5em;
    width: 0.5em;
    background: #e4e4e4;
    border-radius: 0.3em 0.1em 0.1em 0.3em / 0.9em 0.1em 0.1em 0.9em;
    box-shadow: inset 0.1em 0.05em 0 #AFAFAF, inset -0.2em 0.5em 0.2em -0.2em #FFF, inset -0.25em 0.8em 0.2em -0.2em #000, inset 0.1em -0.6em 0.2em -0.2em #000;
    z-index: 10;
}

.strap {
    position: absolute;
    z-index: 1;
    left: 2.5em;
    width: 16.2em;
    height: 7.6em;
}

.strap.strap-top {
    top: 0;
}

.strap.strap-bottom {
    bottom: 0;
    transform: rotate(180deg);
}

.strap:before {
    content: '';
    position: absolute;
    left: -3.2em;
    bottom: -0.3em;
    height: 3.7em;
    width: 3.7em;
    border-radius: 50%;
    box-shadow: 2.2em 2.2em 0 -0.5em #B8B8B8;
}

.strap:after {
    content: '';
    position: absolute;
    right: -3.2em;
    bottom: -0.3em;
    height: 3.7em;
    width: 3.7em;
    border-radius: 50%;
    box-shadow: -2.2em 2.2em 0 -0.5em #A0A0A0;
}

.mesh {
    position: absolute;
    box-shadow: inset 0 0.1em 0 #FFF, 0 -0.7em 0 -0.6em rgba(0, 0, 0, 0.6), 0 -0.75em 0 -0.6em rgba(255, 255, 255, 0.5);
}

.mesh:nth-child(1) {
    z-index: 5;
    bottom: -0.5em;
    left: 0;
    width: 100%;
    height: 2.5em;
    background: linear-gradient(to top, #a1a1a1 1%, #eeeeee 100%);
    border-radius: 2em 2em 0 0 / 2.5em 2.5em 0 0;
    overflow: hidden;
}

.mesh:nth-child(1):before {
    content: '';
    position: absolute;
    bottom: -1em;
    width: 100%;
    height: 5em;
    left: 0;
    box-shadow: inset 0 -2.6em 1em -0.5em rgba(0, 0, 0, 0.3);
    transform: rotate(-4deg);
}

.mesh:nth-child(2) {
    z-index: 4;
    bottom: 1.5em;
    width: 90%;
    left: 5%;
    height: 2.5em;
    background: linear-gradient(to bottom, #d2d2d2 1%, #e9e9e9 100%);
    border-radius: 1.5em 1.5em 0 0 / 2.5em 2.5em 0 0;
    box-shadow: inset 0 0.1em 0 #FFF, 0 -0.4em 0 -0.3em rgba(0, 0, 0, 0.6), 0 -0.75em 0 -0.6em rgba(255, 255, 255, 0.5);
}

.mesh:nth-child(3) {
    z-index: 3;
    bottom: 3.5em;
    width: 82%;
    left: 9%;
    height: 2.3em;
    background: linear-gradient(to bottom, #d7d7d7 1%, #ececec 100%);
    border-radius: 1.1em 1.1em 0 0 / 2.2em 2.2em 0 0;
    box-shadow: inset 0 0.1em 0 #FFF, 0 -0.25em 0 -0.15em rgba(0, 0, 0, 0.6), 0 -0.75em 0 -0.6em rgba(255, 255, 255, 0.5);
}

.mesh:nth-child(4) {
    z-index: 2;
    bottom: 5.1em;
    width: 78%;
    left: 11%;
    height: 2em;
    background: linear-gradient(to bottom, #d5d5d5 1%, #ebebeb 100%);
    border-radius: 1em 1em 0 0 / 1.9em 1.9em 0 0;
    box-shadow: inset 0 0.1em 0 #FFF, 0 -0.25em 0 -0.15em rgba(0, 0, 0, 0.6), 0 -0.75em 0 -0.6em rgba(255, 255, 255, 0.5);
}

.mesh:nth-child(5) {
    z-index: 1;
    bottom: 6.75em;
    width: 74%;
    left: 13%;
    height: 1.2em;
    background: linear-gradient(to bottom, #c3c3c3 1%, #e2e2e2 100%);
    border-radius: 0.7em 0.7em 0 0 / 1.2em 1.2em 0 0;
    box-shadow: inset 0 0.1em 0 #FFF, 0 -0.75em 0 -0.6em rgba(255, 255, 255, 0.5);
}

.mockup-screen {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 32px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
}

.screenshot-caption h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.screenshot-caption p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 280px;
    margin: 0 auto;
}

.screenshot-note {
    text-align: center;
    margin-top: 60px;
    padding: 20px;
    background: #fff3cd;
    border-radius: 10px;
    color: #856404;
    font-size: 0.9rem;
}

/* Responsive */
/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

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

    .hero-phone {
        flex: 0 0 auto;
    }

    .hero-phone-mockup {
        width: 250px;
        height: 500px;
    }

    .hero-icon {
        width: 80px;
        height: 80px;
        margin-bottom: 20px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero .tagline {
        font-size: 1.2rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .comparison-row {
        grid-template-columns: 2fr 1fr 1fr;
        font-size: 0.9rem;
        padding: 15px;
    }

    .screenshot-carousel {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .phone-mockup {
        width: 240px;
        height: 480px;
    }

    .watch-wrapper {
        font-size: 9px;
    }

    .footer-links a {
        padding: 12px 8px;
        display: inline-block;
    }
}
