html,
body {
    margin: 0 !important;
    padding: 0 !important;
}

body {
    font-family: 'Noto Sans SC', system-ui, sans-serif;
    overflow-x: hidden;
    background: #ffffff;
}

#navbar {
    margin-top: 0 !important;
}

footer {
    margin-bottom: 0 !important;
}

body > :first-child {
    margin-top: 0 !important;
}

body > :last-child {
    margin-bottom: 0 !important;
}

:root {
    --module-max-width: 1440px;
    --brand-50: #fff7ed;
    --brand-100: #ffedd5;
    --brand-200: #fed7aa;
    --brand-300: #fdba74;
    --brand-400: #fb923c;
    --brand-500: #f97316;
    --brand-600: #ea580c;
    --brand-700: #c2410c;
    --brand-800: #9a3412;
    --brand-900: #7c2d12;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #fff7ed;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--brand-500), var(--brand-600));
    border-radius: 5px;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-bg {
    background: linear-gradient(135deg, #fff7ed 0%, #ffffff 50%, #ffedd5 100%);
    position: relative;
    overflow: hidden;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(249,115,22,0.12) 0%, transparent 70%);
    animation: hero-float-bg 10s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.hero-bg::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(234,88,12,0.08) 0%, transparent 70%);
    animation: hero-float-bg 8s ease-in-out infinite reverse;
    pointer-events: none;
    z-index: 0;
}

@keyframes hero-float-bg {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -20px) scale(1.1); }
}

/* Particle animations */
.particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(249, 115, 22, 0.3);
    animation: rise 15s infinite ease-in;
}

.particle-0 { left: 10%; width: 8px; height: 8px; animation-delay: 0s; }
.particle-1 { left: 30%; width: 12px; height: 12px; animation-delay: 2s; }
.particle-2 { left: 50%; width: 6px; height: 6px; animation-delay: 4s; }
.particle-3 { left: 70%; width: 10px; height: 10px; animation-delay: 6s; }
.particle-4 { left: 90%; width: 8px; height: 8px; animation-delay: 8s; }

@keyframes rise {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateY(-10vh) scale(1.5); opacity: 0; }
}

/* Hero phone card aspect ratio */
.hero-phone-aspect {
    padding-bottom: 115%;
}

/* Hero progress bar - deprecated, kept for compatibility */
.hero-progress-78 {
    width: 78%;
}

/* Hero phone glow ring animation */
@keyframes glow-pulse {
    0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.08); }
}

@keyframes glow-pulse-slow {
    0%, 100% { opacity: 0.1; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.3; transform: translate(-50%, -50%) scale(1.12); }
}

.hero-glow-ring {
    animation: glow-pulse 3s ease-in-out infinite;
}

.hero-glow-ring-slow {
    animation: glow-pulse-slow 4s ease-in-out infinite;
}

/* ============================================
   NAVIGATION
   ============================================ */

nav#navbar {
    transition: all 0.3s ease;
}

.nav-scrolled {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
}

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

.btn-shine::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.3), transparent);
    transform: rotate(30deg);
    transition: all 0.6s;
    opacity: 0;
}

.btn-shine:hover::after {
    animation: shine 0.8s ease-in-out;
}

@keyframes shine {
    0% { transform: translateX(-100%) rotate(30deg); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateX(100%) rotate(30deg); opacity: 0; }
}

/* ============================================
   STATS TICKER
   ============================================ */

.loop-track {
    display: flex;
    animation: scroll-loop 30s linear infinite;
}

@keyframes scroll-loop {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================
   CARDS & SECTIONS
   ============================================ */

.step-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -15px rgba(249, 115, 22, 0.25);
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.number-roll {
    display: inline-block;
    font-variant-numeric: tabular-nums;
}

section {
    position: relative;
}

/* ============================================
   RESPONSIVE GRID HELPERS
   ============================================ */

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }

/* ============================================
   SECTION HEADINGS
   ============================================ */

.section-heading { text-align: center; margin-bottom: 56px; }
.section-heading h2 { font-size: 2.25rem; font-weight: 800; color: #111827; letter-spacing: -0.02em; margin-bottom: 12px; }
.section-heading p { color: #6b7280; font-size: 1.05rem; max-width: 600px; margin: 0 auto; }

.heading-decor { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 20px; }
.heading-decor::before,
.heading-decor::after { content: ''; width: 40px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--brand-500), var(--brand-400)); }
.heading-decor::after { background: linear-gradient(90deg, var(--brand-400), var(--brand-500)); }
.heading-decor i { color: var(--brand-500); font-size: 1rem; }

/* ============================================
   NEWS CARDS
   ============================================ */

.news-card {
    display: block;
    overflow: hidden;
    text-decoration: none;
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px -15px rgba(249, 115, 22, 0.2);
    border-color: #fed7aa;
}

.news-card-img {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.news-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-card:hover .news-card-img img {
    transform: scale(1.08);
}

.news-card-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.03));
    pointer-events: none;
}

.news-card-body {
    padding: 24px;
}

.news-card-date {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #9ca3af;
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.news-card-title {
    color: #111827;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.3s;
}

.news-card:hover .news-card-title {
    color: var(--brand-600);
}

.news-card-desc {
    color: #6b7280;
    font-size: 0.88rem;
    line-height: 1.7;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn-amber {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--brand-400), var(--brand-500));
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(249, 115, 22, 0.35);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-amber:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(249, 115, 22, 0.5);
}

.btn-white {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 50px;
    background: #ffffff;
    color: var(--brand-600);
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 8px 28px rgba(0,0,0,0.15);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(0,0,0,0.25);
}

/* ============================================
   HERO BADGE
   ============================================ */

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(255,255,255,0.9);
    border: 1px solid var(--brand-200);
    border-radius: 50px;
    color: var(--brand-700);
    font-size: 0.85rem;
    font-weight: 600;
}

.hero-badge .hero-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand-500);
    box-shadow: 0 0 12px var(--brand-500);
    animation: hero-dot-pulse 2s ease-in-out infinite;
}

@keyframes hero-dot-pulse {
    0%, 100% { box-shadow: 0 0 8px var(--brand-500); }
    50% { box-shadow: 0 0 20px var(--brand-500), 0 0 40px rgba(249, 115, 22, 0.4); }
}

/* ============================================
   ANIMATION UTILITIES
   ============================================ */

.animate-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-delay-1 { transition-delay: 0.1s; }
.animate-delay-2 { transition-delay: 0.2s; }
.animate-delay-3 { transition-delay: 0.3s; }
.animate-delay-4 { transition-delay: 0.4s; }

/* Floating badge animation delays */
.anim-float-delay-1 { animation-delay: 1s; }
.anim-float-delay-2 { animation-delay: 2s; }

/* News more button wrapper */
.news-more-wrap {
    text-align: center;
    margin-top: 52px;
}
