@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-color: #f8fafc;
    --text-main: #334155;
    --text-muted: #64748b;
    --heading-color: #0f172a;
    --primary: #2563eb;
    --primary-glow: rgba(37, 99, 235, 0.3);
    --secondary-bg: #eff6ff;
    --white: #ffffff;
    --border: #e2e8f0;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-button: 12px;
    --font-stack: 'Inter', sans-serif;
    --nav-height: 85px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-stack); background-color: var(--bg-color); color: var(--text-main); line-height: 1.6; -webkit-font-smoothing: antialiased; }

/* Sticky Glassmorphism Nav */
.navbar { background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(226, 232, 240, 0.8); position: fixed; width: 100%; top: 0; z-index: 1000; transition: all 0.3s ease; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.nav-inner { display: flex; justify-content: space-between; align-items: center; height: var(--nav-height); }
.brand-logo { font-size: 1.6rem; font-weight: 800; color: var(--heading-color); text-decoration: none; display: flex; align-items: center; gap: 8px; letter-spacing: -0.5px; }
.brand-logo span { color: var(--primary); }
ul.nav-menu { display: flex; gap: 32px; list-style: none; margin-left: auto; margin-right: 32px; }
ul.nav-menu a { color: var(--text-muted); text-decoration: none; font-weight: 600; font-size: 0.95rem; transition: color 0.2s; position: relative; }
ul.nav-menu a:hover { color: var(--primary); }
ul.nav-menu a.active { color: var(--primary); }
ul.nav-menu a.active::after { content:''; position:absolute; bottom:-6px; left:0; width:100%; height:2px; background:var(--primary); border-radius:2px; }

/* Buttons */
.btn-primary { background: var(--primary); color: var(--white); padding: 12px 26px; border-radius: var(--radius-button); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; transition: all 0.3s ease; box-shadow: 0 4px 14px var(--primary-glow); }
.btn-primary:hover { background: #1d4ed8; transform: translateY(-2px); box-shadow: 0 6px 20px var(--primary-glow); }
.btn-outline { background: transparent; color: var(--heading-color); border: 2px solid var(--border); padding: 10px 24px; border-radius: var(--radius-button); font-weight: 600; text-decoration: none; transition: all 0.3s ease; }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-secondary { background: var(--secondary-bg); color: var(--primary); padding: 12px 24px; border-radius: var(--radius-button); font-weight: 600; text-decoration: none; display: inline-block; transition: all 0.3s ease; margin-top: auto; }
.btn-secondary:hover { background: #dbeafe; color: #1e40af; transform: translateY(-2px); }

/* Main Wrapper */
.main-wrapper { padding-top: calc(var(--nav-height) + 40px); padding-bottom: 80px; min-height: 80vh; }

/* Stunning Hero Section */
.hero-section { background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%); color: var(--white); padding: 100px 30px 140px; border-radius: var(--radius-lg); text-align: center; position: relative; overflow: hidden; box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.3); }
.hero-content { position: relative; z-index: 2; max-width: 800px; margin: 0 auto; }
.hero-title { font-size: 3.5rem; font-weight: 800; color: var(--white); margin-bottom: 24px; line-height: 1.15; letter-spacing: -1px; }
.hero-subtitle { font-size: 1.25rem; color: #94a3b8; margin-bottom: 30px; line-height: 1.6; }
/* Abstract Hero Decoration */
.hero-section::before { content: ''; position: absolute; top: -50%; left: -10%; width: 50%; height: 200%; background: radial-gradient(circle, rgba(37,99,235,0.2) 0%, transparent 70%); transform: rotate(30deg); z-index: 1; pointer-events: none; }
.hero-section::after { content: ''; position: absolute; top: -20%; right: -20%; width: 60%; height: 150%; background: radial-gradient(circle, rgba(56,189,248,0.15) 0%, transparent 60%); z-index: 1; pointer-events: none; }

/* Grid System Overlapping Hero */
.grid-system { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; margin-top: -80px; position: relative; z-index: 10; padding: 0 20px; }
.card-item { background: var(--white); border: 1px solid rgba(255,255,255,0.8); border-radius: var(--radius-md); padding: 32px; box-shadow: 0 10px 40px -5px rgba(15, 23, 42, 0.08); display: flex; flex-direction: column; transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.card-item:hover { transform: translateY(-8px); box-shadow: 0 20px 40px -5px rgba(15, 23, 42, 0.12); }
.card-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--secondary-bg); color: var(--primary); display: flex; align-items: center; justify-content: center; margin-bottom: 24px; }
.card-icon svg { width: 24px; height: 24px; }
.card-title { font-size: 1.3rem; font-weight: 700; margin-bottom: 12px; color: var(--heading-color); letter-spacing: -0.3px; }
.card-text { font-size: 1rem; color: var(--text-muted); margin-bottom: 24px; }

/* Article Sections */
.article-row { display: flex; gap: 60px; margin-top: 60px; margin-bottom: 60px; align-items: center; background: var(--white); padding: 40px; border-radius: var(--radius-lg); border: 1px solid var(--border); box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.03); }
.article-text { flex: 1.2; }
.article-text h2 { font-size: 2rem; font-weight: 800; color: var(--heading-color); letter-spacing: -0.5px; margin-bottom: 20px; }
.article-text p { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 20px; }
.article-img { flex: 1; text-align: center; }
.article-img img { width: 100%; border-radius: var(--radius-md); box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.1); }

/* Modern E-commerce Products */
.products-wrapper { margin-top: 40px; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.prod-panel { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; display: flex; flex-direction: column; transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(15, 23, 42, 0.03); }
.prod-panel:hover { box-shadow: 0 20px 40px -5px rgba(15, 23, 42, 0.08); transform: translateY(-5px); border-color: var(--primary); }
.prod-panel img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: var(--radius-md); margin-bottom: 24px; background: #e2e8f0; }
.prod-title { font-weight: 800; font-size: 1.4rem; color: var(--heading-color); margin-bottom: 12px; letter-spacing: -0.3px; }
.prod-desc { color: var(--text-muted); font-size: 1rem; margin-bottom: 24px; min-height: 50px; }
.prod-price { font-size: 1.8rem; font-weight: 800; color: var(--heading-color); margin-bottom: 24px; display: flex; align-items: baseline; gap: 8px; }
.prod-price span { font-size: 1rem; color: var(--text-muted); font-weight: 500; }

/* Forms */
.form-box { background: var(--white); padding: 40px; border-radius: var(--radius-lg); border: 1px solid var(--border); box-shadow: 0 10px 40px -5px rgba(15,23,42,0.06); }
.form-control { width: 100%; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-button); margin-bottom: 24px; font-family: var(--font-stack); font-size: 1rem; transition: border-color 0.2s, box-shadow 0.2s; background: #f8fafc; }
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-glow); background: var(--white); }
.form-label { display: block; font-weight: 600; margin-bottom: 10px; color: var(--heading-color); }

/* Toast */
.toast-msg { position: fixed; bottom: 40px; left: 50%; transform: translate(-50%, 20px); background: #10b981; color: white; padding: 16px 32px; border-radius: 50px; opacity: 0; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); pointer-events: none; z-index: 9999; font-weight: 600; box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3); }
.toast-msg.show { opacity: 1; transform: translate(-50%, 0); }

/* Footer */
footer { background: var(--white); border-top: 1px solid var(--border); padding: 80px 0 40px; margin-top: auto; }
.footer-wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 60px; }
.footer-header { color: var(--heading-color); font-size: 1.1rem; margin-bottom: 24px; font-weight: 700; }
.footer-wrap a { color: var(--text-muted); text-decoration: none; display: block; margin-bottom: 12px; transition: color 0.2s; font-weight: 500; }
.footer-wrap a:hover { color: var(--primary); }

@media (max-width: 900px) {
    .article-row { flex-direction: column; padding: 24px; }
    .hero-title { font-size: 2.5rem; }
    .grid-system { transform: none; margin-top: 40px; }
}
@media (max-width: 768px) {
    .footer-wrap { grid-template-columns: 1fr; gap: 40px; }
}
