:root {
    --dark-navy: #0d1b2a;
    --navy-blue: #1b263b;
    --teal: #1bc3a5;
    --white: #ffffff;
    --off-white: #f5f7fa;
    --orange: #ff914d;
    --gray-text: #a0aab2;
    --border-color: rgba(255, 255, 255, 0.1);
}

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

body,
html {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--dark-navy);
    color: var(--white);
    line-height: 1.6;
    scroll-behavior: smooth;
}

h1,
h2,
h3 {
    font-weight: 700;
    line-height: 1.2;
}

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

/* Glassmorphism Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(13, 27, 42, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--teal);
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a:not(.btn-primary-small) {
    font-weight: 500;
    color: var(--off-white);
    transition: color 0.3s ease;
}

.nav-links a:not(.btn-primary-small):hover {
    color: var(--teal);
}

/* Buttons */
.btn-primary,
.btn-primary-small,
.btn-secondary,
.btn-store {
    border-radius: 9999px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
}

.btn-primary-small {
    background-color: var(--teal);
    color: var(--dark-navy);
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
}

.btn-primary-small:hover {
    background-color: #16a389;
}

.btn-primary {
    background-color: var(--teal);
    color: var(--dark-navy);
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    display: inline-block;
}

.btn-primary:hover {
    background-color: #16a389;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    display: inline-block;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    border-color: var(--white);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8rem 2rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--teal) 0%, rgba(27, 195, 165, 0) 60%);
    opacity: 0.15;
    z-index: -1;
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

.hero h1 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.2rem;
    color: var(--gray-text);
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 40px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    max-height: 700px;
    object-fit: cover;
}

/* Sections Common */
.section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.bg-darker {
    background-color: var(--navy-blue);
    max-width: 100%;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--gray-text);
}

/* Use Cases Grid */
.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

@media (max-width: 768px) {
    .use-cases-grid {
        grid-template-columns: 1fr;
    }
}

.use-case-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 2.5rem;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.3s ease;
}

.use-case-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.06);
}

.use-case-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.use-case-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.use-case-list li {
    font-size: 1rem;
    color: var(--gray-text);
    line-height: 1.6;
}

.use-case-list li strong {
    color: var(--teal);
    font-weight: 600;
}

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

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2.5rem;
    transition: transform 0.3s ease, background 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    padding: 1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
}

.orange-icon {
    color: var(--orange);
}

.teal-icon {
    color: var(--teal);
}

.white-icon {
    color: var(--white);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--gray-text);
}

/* Scopes Grid */
.scopes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

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

@media (max-width: 768px) {
    .scopes-grid {
        grid-template-columns: 1fr;
    }
}

.scope-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.3s ease;
}

.scope-card:hover {
    transform: scale(1.03);
    background: rgba(255, 255, 255, 0.06);
}

.scope-icon {
    color: var(--teal);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    background: rgba(27, 195, 165, 0.1);
    border-radius: 14px;
}

.scope-icon svg {
    width: 28px !important;
    height: 28px !important;
}

.scope-name {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--white);
    letter-spacing: -0.3px;
}

.scope-desc {
    color: var(--gray-text);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* CTA Section */
.cta-section {
    padding: 8rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, var(--navy-blue) 0%, var(--dark-navy) 100%);
    border-top: 1px solid var(--border-color);
}

.cta-content h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.cta-content p {
    font-size: 1.2rem;
    color: var(--gray-text);
    margin-bottom: 3rem;
}

.store-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn-store {
    background-color: var(--white);
    color: var(--dark-navy);
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-store:hover {
    background-color: var(--off-white);
    transform: translateY(-2px);
}

/* Footer */
footer {
    padding: 3rem 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--teal);
    margin-bottom: 1rem;
}

footer p {
    color: var(--gray-text);
    font-size: 0.9rem;
}

/* Animations using Intersection Observer */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

.slide-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-up.appear {
    opacity: 1;
    transform: translateY(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scale-in.appear {
    opacity: 1;
    transform: scale(1);
}

/* Responsive iPhone & iPad styles */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 6rem;
    }

    .hero-text {
        margin-bottom: 4rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-image {
        width: 100%;
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .nav-links a:not(.btn-primary-small) {
        display: none;
    }

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

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions a {
        width: 100%;
    }

    .store-buttons {
        flex-direction: column;
    }

}

/* Learn More Interactive Experience */
.learn-more-page {
    background-color: var(--dark-navy);
}

.story-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.story-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    gap: 4rem;
}

.story-section:last-child {
    border-bottom: none;
}

.story-intro {
    min-height: 100vh;
    justify-content: center;
    text-align: center;
    flex-direction: column;
}

.story-intro h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(90deg, var(--white), var(--teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.scroll-indicator {
    margin-top: 4rem;
    font-size: 2rem;
    color: var(--teal);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}

.story-content {
    flex: 1;
}

.story-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--teal);
}

.story-content p {
    font-size: 1.2rem;
    color: var(--gray-text);
    line-height: 1.8;
}

.story-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.reverse-layout {
    flex-direction: row-reverse;
}

.mock-device {
    background: #000;
    border: 12px solid #222;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255,255,255,0.1);
    width: 300px;
    height: 600px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mock-device img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mock-card-isolated {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 20px 40px rgba(27, 195, 165, 0.1);
    color: var(--white);
    font-size: 1.2rem;
}

.pulse {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--orange);
    box-shadow: 0 0 0 0 rgba(255, 145, 77, 0.7);
    animation: pulsing 1.5s infinite;
    margin-right: 0.5rem;
}

@keyframes pulsing {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 145, 77, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 15px rgba(255, 145, 77, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 145, 77, 0); }
}

@media (max-width: 900px) {
    .story-section {
        flex-direction: column !important;
        text-align: center;
        padding: 4rem 0;
        gap: 2rem;
    }
}

@media (min-width: 901px) {
    .story-intro {
        padding-top: 12vh;
    }
}