:root {
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --bg-primary: #ffffff;
    --bg-light-alt: #f5f5f7;
    --accent-blue: #0071e3;
    --accent-hover: #0077ed;
    --glass-bg: rgba(255, 255, 255, 0.72);
    --glass-border: rgba(255, 255, 255, 0.3);
    --shadow-sm: 0 4px 12px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.08);
    --shadow-hover: 0 20px 40px rgba(0,0,0,0.12);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Ambient Background Lights */
.ambient-light {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -1;
    opacity: 0.3;
    animation: pulse 12s infinite alternate;
}

.bg-blue {
    top: 10%; left: -10%;
    width: 50vw; height: 50vw;
    background: radial-gradient(circle, rgba(0,113,227,0.2) 0%, rgba(255,255,255,0) 70%);
}

.bg-purple {
    bottom: 10%; right: -10%;
    width: 40vw; height: 40vw;
    background: radial-gradient(circle, rgba(147,51,234,0.15) 0%, rgba(255,255,255,0) 70%);
    animation-delay: -6s;
}

@keyframes pulse {
    0% { transform: scale(1) translate(0, 0); opacity: 0.2; }
    100% { transform: scale(1.1) translate(20px, -20px); opacity: 0.4; }
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 70px;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(24px);
    -webkit-backdrop-filter: saturate(180%) blur(24px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.navbar.hidden {
    transform: translateY(-100%);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 40px; height: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.03em;
}

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

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.nav-link:hover { opacity: 1; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 980px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: pointer;
}

.btn-nav {
    background-color: var(--text-primary);
    color: #fff;
    padding: 8px 20px;
    font-size: 14px;
}

.btn-nav:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}

.btn-primary {
    background-color: var(--accent-blue);
    color: white;
    box-shadow: 0 4px 14px rgba(0, 113, 227, 0.3);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 113, 227, 0.4);
}

.btn-secondary {
    background-color: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
}

.btn-secondary:hover {
    background-color: rgba(255,255,255,0.25);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 17px;
    font-weight: 600;
}

.shine-effect {
    position: relative;
    overflow: hidden;
}

.shine-effect::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    animation: shine 4s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}

/* Full Width Background Hero Section */
.hero {
    padding: 140px 24px 80px;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background-image: url('images/stocks.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(0,20,40,0.8) 100%);
    z-index: 1;
}

.hero-container {
    max-width: 900px;
    z-index: 10;
    position: relative;
}

.hero-title {
    color: #ffffff;
    font-size: clamp(52px, 7vw, 96px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.04em;
    margin-bottom: 24px;
    text-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

.gradient-text {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-subtitle {
    font-size: clamp(16px, 1.8vw, 20px);
    color: rgba(255, 255, 255, 0.85);
    max-width: 750px;
    margin: 0 auto 56px;
    font-weight: 400;
    text-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

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

.hero-trust-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.15);
}

.badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 10px 24px;
    border-radius: 980px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    font-size: 15px;
    font-weight: 500;
    color: #ffffff;
}

/* Sections */
.section {
    padding: 80px 24px;
}

.bg-light-alt {
    background-color: var(--bg-light-alt);
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

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

.section-title {
    font-size: 56px;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 22px;
    color: var(--text-secondary);
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* NEW: Why Choose Us (Features Grid) */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.feature-card {
    background: #fff;
    padding: 48px 32px;
    border-radius: 32px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.03);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 24px;
    display: inline-block;
}

.feature-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.feature-card p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* NEW: Process Steps */
.process-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.step {
    background: #fff;
    padding: 40px;
    border-radius: 24px;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.step-number {
    font-size: 80px;
    font-weight: 900;
    color: var(--bg-light-alt);
    position: absolute;
    top: 10px;
    right: 20px;
    line-height: 1;
    z-index: 0;
}

.step h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.step p {
    font-size: 16px;
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
}

/* Grid Showcase (Stocks) */
.grid-showcase {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 320px;
    gap: 24px;
}

.showcase-card {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow-md);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.showcase-card.tall { grid-column: span 1; grid-row: span 2; }
.showcase-card.wide { grid-column: span 2; }

.card-img-wrapper {
    width: 100%; height: 100%;
    overflow: hidden;
}

.card-img-wrapper img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.showcase-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-hover);
    z-index: 2;
}

.showcase-card:hover .card-img-wrapper img {
    transform: scale(1.1);
}

.frosted-glass {
    position: absolute;
    bottom: 24px; left: 24px; right: 24px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    padding: 20px 24px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.5);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.showcase-card:hover .frosted-glass {
    transform: translateY(0);
    opacity: 1;
}

.frosted-glass h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}

.frosted-glass p {
    font-size: 15px;
    color: var(--text-secondary);
}

/* Slider Track for Transactions */
.slider-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 40px 0;
}

.slider-wrapper::before, .slider-wrapper::after {
    content: "";
    position: absolute;
    top: 0; width: 150px; height: 100%; z-index: 2;
}

.slider-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-primary) 0%, transparent 100%);
}

.slider-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-primary) 0%, transparent 100%);
}

.slider-track {
    display: flex;
    width: max-content;
    animation: scrollSlider 40s linear infinite;
    gap: 40px;
}

.slider-track:hover {
    animation-play-state: paused;
}

@keyframes scrollSlider {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 20px)); }
}

.slide {
    width: 320px; height: 480px;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
    position: relative;
}

.slide img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide:hover img {
    transform: scale(1.08);
}

/* NEW: FAQ Section */
.faq-container {
    max-width: 800px;
}

.faq-item {
    background: #fff;
    border-radius: 20px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 24px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: color 0.3s;
}

.faq-question:hover {
    color: var(--accent-blue);
}

.faq-question .icon {
    font-size: 24px;
    font-weight: 300;
    transition: transform 0.4s ease;
}

.faq-question.active .icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-answer p {
    padding: 0 32px 32px;
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
}

/* Classic Apple-Style Footer */
.footer-section {
    background-color: #f5f5f7;
    padding-top: 80px;
    color: #1d1d1f;
}

.footer-cta {
    max-width: 1000px;
    margin: 0 auto 80px;
    text-align: center;
    padding: 0 24px;
}

.footer-cta h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.footer-cta p {
    font-size: 20px;
    color: #86868b;
    margin-bottom: 40px;
}

.footer-cta .btn-primary {
    background-color: #1d1d1f;
    color: #fff;
    box-shadow: none;
    border-radius: 980px;
    padding: 14px 32px;
}

.footer-cta .btn-primary:hover {
    background-color: #333336;
    transform: scale(1.02);
}

.footer-main {
    background-color: #f5f5f7;
    padding: 0 24px 40px;
}

.footer-container {
    max-width: 980px;
    margin: 0 auto;
}

.footer-info {
    font-size: 12px;
    color: #86868b;
    line-height: 1.6;
    margin-bottom: 20px;
    border-bottom: 1px solid #d2d2d7;
    padding-bottom: 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.footer-col h4 {
    font-size: 12px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 12px;
}

.footer-col a {
    display: block;
    color: #424245;
    text-decoration: none;
    font-size: 12px;
    margin-bottom: 10px;
    transition: color 0.2s;
}

.footer-col a:hover {
    text-decoration: underline;
    color: #1d1d1f;
}

.footer-divider {
    height: 1px;
    background-color: #d2d2d7;
    margin: 20px 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #86868b;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-legal {
    display: flex;
    gap: 10px;
    align-items: center;
}

.footer-legal a {
    color: #424245;
    text-decoration: none;
}

.footer-legal a:hover {
    text-decoration: underline;
    color: #1d1d1f;
}

.footer-legal .sep {
    color: #d2d2d7;
}

/* Advanced Reveal Animations */
.reveal-text {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
}

.reveal-text > * {
    display: inline-block;
    transform: translateY(100%);
    opacity: 0;
    animation: revealUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.reveal-element {
    opacity: 0;
    transform: translateY(40px);
    animation: fadeUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.fade-up {
    opacity: 0;
    transform: translateY(50px);
    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);
}

.delay-1 { animation-delay: 0.15s; transition-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; transition-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; transition-delay: 0.45s; }

@keyframes revealUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Premium Trade-In Banner */
.trade-in-banner {
    background: #000000;
    border-radius: 48px;
    padding: 100px 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 40px 80px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
    color: #ffffff;
}

.trade-in-glow {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 41, 117, 0.4) 0%, rgba(140, 68, 255, 0.3) 40%, transparent 70%);
    filter: blur(80px);
    z-index: 0;
    animation: tradeGlow 8s infinite alternate;
}

@keyframes tradeGlow {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.2) translate(-50px, 50px); }
}

.trade-in-content {
    max-width: 500px;
    z-index: 2;
    position: relative;
}

.trade-title {
    font-size: 64px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.04em;
}

.trade-gradient {
    background: linear-gradient(90deg, #ff2a75 0%, #ff80a6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.trade-in-content p {
    font-size: 22px;
    color: #a1a1a6;
    margin-bottom: 40px;
    line-height: 1.4;
}

.btn-trade-in {
    background-color: #ffffff;
    color: #000000;
    padding: 18px 36px;
    border-radius: 980px;
    font-size: 18px;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(255,255,255,0.15);
    display: inline-flex;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-trade-in:hover {
    transform: translateY(-4px) scale(1.05);
    background-color: #f5f5f7;
    box-shadow: 0 15px 40px rgba(255,255,255,0.25);
}

.trade-in-visual {
    position: relative;
    z-index: 2;
    transform: rotate(-5deg);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.trade-in-banner:hover .trade-in-visual {
    transform: rotate(0deg) scale(1.05);
}

.trade-device-img {
    width: 320px;
    border-radius: 32px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    border: 4px solid rgba(255,255,255,0.1);
}

.trade-floating-badge {
    position: absolute;
    bottom: -20px;
    left: -40px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 16px 24px;
    border-radius: 24px;
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    animation: floatBadge 4s ease-in-out infinite;
}

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

/* Floating Action Button */
.floating-btn {
    position: fixed;
    bottom: 40px;
    right: 40px;
    background-color: var(--accent-blue);
    color: white;
    padding: 16px 28px;
    border-radius: 980px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0, 113, 227, 0.4);
    z-index: 9999;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.floating-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 113, 227, 0.6);
}

.floating-icon {
    font-size: 22px;
}

/* Responsive */
@media (max-width: 992px) {
    .features-grid, .process-steps { grid-template-columns: 1fr; }
    .grid-showcase { grid-template-columns: repeat(2, 1fr); }
    .showcase-card.wide { grid-column: span 2; }
    .trade-in-banner { flex-direction: column; text-align: center; padding: 80px 40px; gap: 60px; }
    .trade-in-glow { top: 0; right: 0; width: 100%; height: 100%; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero-title { font-size: 48px; }
    .grid-showcase { grid-template-columns: 1fr; grid-auto-rows: 400px; }
    .showcase-card.tall, .showcase-card.wide { grid-column: span 1; grid-row: span 1; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-bottom { flex-direction: column; gap: 20px; text-align: center; }
    .footer-cta-box h2 { font-size: 40px; }
    .floating-btn { bottom: 20px; right: 20px; padding: 14px 20px; font-size: 14px; }
    .trade-title { font-size: 48px; }
    .trade-device-img { width: 260px; }
    .trade-floating-badge { left: -20px; font-size: 16px; padding: 12px 20px; bottom: -10px; }
}
