/* === CSS RESET & BASE === */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;600;700&family=Montserrat:wght@300;400;600;700&display=swap');

:root {
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --text: #1e293b;
  --text-muted: #64748b;
  --accent: #d946ef; /* Bright jewel pink/purple */
  --accent-glow: rgba(217, 70, 239, 0.4);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.4);
  --font-heading: 'Cormorant Garamond', serif;
  --font-body: 'Montserrat', sans-serif;
  --container-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
    color: var(--text);
    background: var(--bg);
    width: 100%;
    max-width: 100vw;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* === STRUCTURAL BASELINES === */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

section {
    padding: 90px 0;
    position: relative;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-glass);
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    padding: 1rem 2.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px -10px var(--accent);
    filter: brightness(1.1);
}

.btn-secondary {
    background: #000;
    color: #fff;
    padding: 0.8rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    background: #222;
}

/* === PROGRESS BAR === */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: var(--accent);
    z-index: 2000;
    width: 0%;
    transition: width 0.1s ease-out;
}

/* === NAVIGATION === */
.jewel-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
}

.jewel-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: contain;
}

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

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

.nav-links a.active {
    color: var(--accent);
    font-weight: 600;
}

.mobile-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* === HERO SECTION === */
.legend-hero {
    padding-top: 150px;
    text-align: center;
    background: radial-gradient(circle at center, var(--accent-glow) 0%, rgba(255,255,255,0) 70%);
}

.hero-app-icon {
    width: 180px;
    height: 180px;
    border-radius: 40px;
    margin: 0 auto 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.hero-title {
    font-size: 4.5rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-tagline {
    font-size: 1.4rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 40px;
    font-weight: 300;
}

.rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    padding: 8px 16px;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    font-weight: 600;
}

.rating-badge i {
    color: #fbbf24;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* === DEMO SHOWCASE === */
.demo-showcase {
    background: var(--bg-alt);
    overflow: hidden;
}

.device-frame {
    max-width: 320px;
    margin: 0 auto;
    position: relative;
    border: 12px solid #111;
    border-radius: 40px;
    box-shadow: 0 50px 100px rgba(0,0,0,0.2);
}

.device-frame img {
    border-radius: 28px;
    width: 100%;
}

.play-button-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(217, 70, 239, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    box-shadow: 0 0 30px var(--accent);
    transition: all 0.3s ease;
}

.play-button-overlay:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

/* === FEATURES === */
.feature-list {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.feature-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 40px;
}

.feature-number {
    position: absolute;
    left: -20px;
    top: 0;
    font-size: 12rem;
    font-family: var(--font-heading);
    font-weight: 900;
    color: rgba(217, 70, 239, 0.05);
    z-index: -1;
    line-height: 1;
}

.feature-icon-box {
    width: 80px;
    height: 80px;
    background: var(--bg-alt);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: var(--accent);
    flex-shrink: 0;
}

.feature-content h3 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.feature-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
}

/* === GALLERY === */
.gallery-wall {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    perspective: 1200px;
    padding: 40px 0;
}

.gallery-item {
    transition: transform 0.5s ease;
    transform: rotateY(-15deg);
    cursor: pointer;
}

.gallery-item img {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-glass);
    width: 100%;
}

.gallery-item:hover {
    transform: rotateY(0deg) scale(1.05);
    z-index: 10;
}

/* === REVIEWS === */
.reviews-stack {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.chat-bubble {
    padding: 30px;
    background: var(--bg-alt);
    border-radius: 30px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.chat-bubble::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 40px;
    border-width: 15px 15px 0 0;
    border-style: solid;
    border-color: var(--bg-alt) transparent transparent transparent;
}

.review-stars {
    color: #fbbf24;
    margin-bottom: 10px;
}

.review-text {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 15px;
}

.review-author {
    font-weight: 700;
    font-family: var(--font-heading);
    font-size: 1.2rem;
}

/* === FAQ === */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.faq-trigger {
    width: 100%;
    padding: 25px 0;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    text-align: left;
    color: var(--text);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-content p {
    padding-bottom: 25px;
    color: var(--text-muted);
}

.faq-item.active .faq-content {
    max-height: 200px;
}

.faq-item i {
    transition: transform 0.3s ease;
}

.faq-item.active i {
    transform: rotate(180deg);
}

/* === CTA SECTION === */
.minimal-cta {
    text-align: center;
    padding: 120px 0;
}

.cta-icon {
    width: 100px;
    height: 100px;
    border-radius: 24px;
    margin: 0 auto 30px;
}

.cta-tagline {
    font-size: 1.8rem;
    font-family: var(--font-heading);
    margin-bottom: 40px;
}

/* === FLOATING CTA === */
.floating-cta {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.floating-cta.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === DIVIDERS === */
.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
}

.divider-line {
    height: 1px;
    flex-grow: 1;
    border-top: 1px dashed var(--text-muted);
    opacity: 0.2;
}

.divider-mark {
    color: var(--accent);
    font-size: 20px;
}

/* === FOOTER === */
.photo-footer {
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), url('images/app-screen-14.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
}

.footer-col h4 {
    margin-bottom: 25px;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: rgba(255,255,255,0.7);
}

.footer-col ul li a:hover {
    color: #fff;
    padding-left: 5px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex-grow: 1;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    border: none;
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.newsletter-form button {
    background: var(--accent);
    border: none;
    color: #fff;
    padding: 0 20px;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

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

.social-links a {
    font-size: 1.5rem;
    color: rgba(255,255,255,0.7);
}

.social-links a:hover {
    color: var(--accent);
}

/* === SCROLL REVEAL === */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .hero-title { font-size: 3.5rem; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    section { padding: 60px 0; }
    .hero-title { font-size: 2.8rem; }
    .nav-links { display: none; }
    .mobile-toggle { display: block; }
    .feature-item { flex-direction: column; text-align: center; }
    .feature-number { left: 50%; transform: translateX(-50%); }
    .gallery-wall { grid-template-columns: 1fr; }
    .gallery-item { transform: none; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-bottom { flex-direction: column; gap: 20px; text-align: center; }
    .hero-btns { flex-direction: column; align-items: center; }
}

/* === MOBILE NAV OVERLAY === */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: #fff;
    z-index: 1500;
    padding: 40px;
    transition: right 0.4s ease;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 30px;
    font-size: 1.5rem;
    font-family: var(--font-heading);
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 1400;
    display: none;
}

.mobile-overlay.active {
    display: block;
}
