/* 
  Glossier Girls - Apple Style Aesthetic 
  Colors:
  Primary: #1A3319 (Deep Forest Green)
  Secondary: #5DBB54 (Fresh Green)
  Accent: #CCDD5D (Lime Yellow)
  Background: #000000 (Black)
  Text: #FFFFFF (White) / #1D1D1F (Dark Gray)
*/

:root {
    --primary: #1A3319;
    --secondary: #5DBB54;
    --accent: #CCDD5D;
    --bg-dark: #000000;
    --bg-light: #F5F5F7; /* Apple's signature light gray */
    --text-light: #FFFFFF;
    --text-dark: #1D1D1F;
    --font-family: 'Alexandria', sans-serif;
    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

.text-center { text-align: center; }
.text-dark { color: var(--text-dark); }
.text-light { color: var(--text-light); }
.mt-xl { margin-top: 64px; }
.mt-lg { margin-top: 48px; }
.pt-xl { padding-top: 120px; }
.pb-xl { padding-bottom: 120px; }
.overflow-hidden { overflow: hidden; }

.section-dark {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.section-light {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.section-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 48px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 980px; /* Apple pill shape */
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-primary {
    background-color: var(--text-light);
    color: var(--bg-dark);
    border: 1px solid transparent;
}

.btn-primary:hover {
    transform: scale(1.02);
    opacity: 0.9;
}

.btn-outline {
    background-color: transparent;
    color: var(--text-light);
    border: 1px solid var(--text-light);
}

.btn-outline:hover {
    background-color: var(--text-light);
    color: var(--bg-dark);
}

.nav-cta.btn-outline {
    padding: 8px 16px;
    font-size: 14px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.nav-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: -0.5px;
}

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

.nav-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    width: 100%;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--accent);
    margin-bottom: 24px;
    padding: 6px 16px;
    border-radius: 20px;
    background: rgba(204, 221, 93, 0.1);
}

.hero-title {
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(180deg, #FFFFFF 0%, #A0A0A0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(18px, 2.5vw, 24px);
    color: #86868B;
    max-width: 700px;
    margin-bottom: 40px;
}

.hero-image-wrapper {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    perspective: 1000px;
}

.hero-img {
    width: 100%;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
    transform: rotateX(5deg) scale(0.95);
}

.hero:hover .hero-img {
    transform: rotateX(0deg) scale(1);
}

/* Marquee Section */
.brands-section {
    padding: 40px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    overflow: hidden;
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

/* Fading edges */
.marquee-container::before, .marquee-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
}

.marquee-container::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-light), transparent);
}

.marquee-container::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-light), transparent);
}

.marquee-content {
    display: inline-flex;
    animation: marquee 30s linear infinite;
    gap: 80px;
    padding-right: 80px;
}

.brand-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    opacity: 0.3;
    transition: var(--transition-fast);
    filter: grayscale(100%);
    cursor: default;
}

.brand-name:hover {
    opacity: 1;
    filter: grayscale(0%);
    color: var(--primary);
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(50%); } /* Arabic direction compensation if needed, or adjust */
}

/* Grid Layouts */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

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

/* Cards */
.card, .step-card, .feature-card {
    background: #FFFFFF;
    border-radius: 24px;
    padding: 48px 32px;
    text-align: center;
    transition: var(--transition-smooth);
    border: 1px solid rgba(0,0,0,0.02);
    box-shadow: 0 4px 24px rgba(0,0,0,0.02);
}

.section-dark .step-card {
    background: #111111;
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: none;
}

.card:hover, .step-card:hover, .feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.section-dark .step-card:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border-color: rgba(255,255,255,0.1);
}

.card-icon, .step-icon, .feature-icon {
    font-size: 48px;
    margin-bottom: 24px;
}

.card-icon { color: var(--secondary); }
.step-icon { color: var(--accent); }
.feature-icon { color: var(--primary); }

.card-step {
    font-size: 12px;
    font-weight: 700;
    color: #86868B;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.card-title, .step-title, .feature-title {
    font-size: 24px;
    margin-bottom: 16px;
}

.step-desc, .feature-desc {
    font-size: 16px;
    color: #86868B;
}

/* Benefits Badge */
.benefits-badge {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--primary);
}

/* Carousel Section */
.carousel-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-slide {
    min-width: 100%;
    padding: 40px;
    background: #111111;
    border-radius: 24px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.05);
    box-sizing: border-box;
}

.stars {
    color: var(--accent);
    font-size: 20px;
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
    gap: 4px;
}

.review-text {
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 32px;
}

.reviewer-name {
    font-weight: 700;
    font-size: 18px;
}

.verified-badge {
    font-size: 14px;
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 4px;
}

.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
}

.nav-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
}

.nav-dot.active {
    background: var(--text-light);
    transform: scale(1.3);
}

/* Table Section */
.table-container {
    overflow-x: auto;
    background: #FFFFFF;
    border-radius: 24px;
    padding: 2px;
}

.apple-table {
    width: 100%;
    border-collapse: collapse;
    text-align: right; /* RTL support */
}

.apple-table th, .apple-table td {
    padding: 24px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.apple-table th {
    font-weight: 700;
    font-size: 18px;
    color: #86868B;
}

.apple-table td {
    font-size: 18px;
    font-weight: 600;
}

.apple-table tr:last-child td {
    border-bottom: none;
}

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

.accordion-item {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.accordion-header {
    width: 100%;
    padding: 32px 0;
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 20px;
    font-weight: 600;
    text-align: right;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition-fast);
}

.accordion-header i {
    transition: transform 0.3s ease;
}

.accordion-header.active i {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.accordion-content p {
    padding-bottom: 32px;
    color: #86868B;
    font-size: 16px;
    line-height: 1.6;
}

/* Footer */
.footer {
    padding: 64px 0 32px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

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

.footer-brand h2 {
    font-size: 24px;
    margin-bottom: 8px;
    color: var(--primary);
}

.footer-brand p {
    color: #86868B;
}

.footer h3 {
    font-size: 14px;
    color: var(--text-dark);
    margin-bottom: 24px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: #86868B;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary);
}

.social-icons {
    display: flex;
    gap: 16px;
}

.social-icons a {
    color: var(--text-dark);
    font-size: 24px;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid rgba(0,0,0,0.05);
    color: #86868B;
    font-size: 12px;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered children */
.fade-up > *:nth-child(1) { transition-delay: 0.1s; }
.fade-up > *:nth-child(2) { transition-delay: 0.2s; }
.fade-up > *:nth-child(3) { transition-delay: 0.3s; }
.fade-up > *:nth-child(4) { transition-delay: 0.4s; }


/* Responsive */
@media (max-width: 992px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    
    .grid-3, .grid-2x2 { grid-template-columns: 1fr; }
    
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .social-icons { justify-content: center; }
    
    .hero { padding-top: 120px; min-height: auto; }
    
    .section-title { margin-bottom: 32px; }
    .pt-xl, .pb-xl { padding-top: 80px; padding-bottom: 80px; }
    
    .benefits-badge { flex-direction: column; gap: 16px; }
}
