:root {
    --primary: #1746C9;
    --primary-gradient: linear-gradient(135deg, #1746C9 0%, #2563eb 100%);
    --bg-dark: #F7F6F2;
    --bg-card: #FFFFFF;
    --text-light: #1A1D26;
    --text-muted: #52585D;
    --border-color: rgba(14, 17, 19, 0.1);
    --font-heading: 'Bebas Neue', 'Oswald', -apple-system, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.5;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: #1A1D26;
    line-height: 1.25;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

.site-container { max-width: 1560px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 56px); }
.gradient-text { background: var(--primary-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); background: rgba(247, 246, 242, 0.95); border-bottom: 1px solid var(--border-color); }
.nav-container { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.site-brand { display: flex; align-items: center; gap: 8px; text-decoration: none; }

.site-nav { display: flex; gap: 28px; align-items: center; }
.nav-link { font-size: 0.9rem; font-weight: 600; color: var(--text-muted); transition: color 0.2s; }
.nav-link:hover, .nav-link.active { color: #1746C9; }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 26px; border-radius: 10px; font-weight: 600; font-size: 0.95rem; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); cursor: pointer; }
.btn-glow { background: var(--primary-gradient); color: #fff; box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.5); }
.btn-glow:hover { transform: translateY(-2px); box-shadow: 0 15px 30px -5px rgba(99, 102, 241, 0.7); }

/* Public Page Headers */
.page-header-section { padding: 90px 24px 50px 24px; text-align: center; }
.badge-tag { display: inline-block; padding: 6px 14px; border-radius: 999px; background: rgba(99, 102, 241, 0.15); color: #a5b4fc; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; border: 1px solid rgba(99, 102, 241, 0.3); margin-bottom: 16px; }
.page-main-title { font-size: 3rem; font-weight: 800; margin: 0 0 16px 0; }
.page-main-desc { font-size: 1.2rem; color: var(--text-muted); max-width: 650px; margin: 0 auto; }
.back-link { color: var(--primary); font-weight: 600; font-size: 0.9rem; }

/* Grid Layouts */
.agy-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.agy-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.agy-grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }

/* Builder Render Elements & Widgets */
.agy-container { width: 100%; box-sizing: border-box; }
.agy-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 16px; padding: 32px; transition: transform 0.3s, border-color 0.3s; }
.agy-card:hover { transform: translateY(-4px); border-color: rgba(99, 102, 241, 0.4); }

.agy-card-icon { width: 56px; height: 56px; border-radius: 12px; background: rgba(99, 102, 241, 0.15); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: #818cf8; margin-bottom: 20px; }
.agy-card-title { font-size: 1.35rem; margin: 0 0 12px 0; font-weight: 700; }
.agy-card-excerpt { color: var(--text-muted); font-size: 0.95rem; margin: 0; }
.agy-card-link { display: inline-block; margin-top: 20px; color: #818cf8; font-weight: 600; font-size: 0.9rem; }

/* Project Cards */
.agy-project-badge { display: inline-block; padding: 4px 10px; border-radius: 6px; font-size: 0.75rem; font-weight: 700; background: rgba(236, 72, 153, 0.15); color: #f472b6; margin-bottom: 12px; }
.agy-project-client { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 12px; }

/* Team Cards */
.agy-team-avatar { width: 70px; height: 70px; border-radius: 50%; background: var(--border-color); display: flex; align-items: center; justify-content: center; font-size: 1.75rem; color: var(--primary); margin-bottom: 16px; }
.agy-team-name { font-size: 1.2rem; margin: 0 0 4px 0; }
.agy-team-pos { color: var(--primary); font-size: 0.85rem; font-weight: 600; margin-bottom: 12px; }
.agy-team-bio { font-size: 0.9rem; color: var(--text-muted); margin: 0; }

/* Testimonials */
.agy-stars { color: #1746C9; margin-bottom: 14px; font-size: 1.1rem; }
.agy-testimonial-text { font-style: italic; color: #e2e8f0; font-size: 1rem; margin: 0 0 20px 0; }
.agy-testimonial-author { font-size: 0.9rem; color: var(--text-muted); }
.agy-testimonial-author strong { color: #fff; }

/* Counter Stats */
.agy-counter-card { background: rgba(30, 41, 59, 0.5); border: 1px solid var(--border-color); border-radius: 14px; padding: 24px; text-align: center; }
.agy-counter-card i { font-size: 2rem; color: var(--primary); margin-bottom: 12px; display: inline-block; }
.agy-counter-number { font-size: 2.5rem; font-weight: 800; font-family: var(--font-heading); color: #fff; line-height: 1; margin-bottom: 6px; }
.agy-counter-label { font-size: 0.9rem; color: var(--text-muted); font-weight: 500; }

/* Detail Pages */
.detail-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; }
.sidebar-box { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 16px; padding: 30px; }
.price-tag { font-size: 1.5rem; font-weight: 800; color: #1746C9; margin-top: 15px; }
.feature-checklist { list-style: none; padding: 0; margin: 20px 0 0 0; }
.feature-checklist li { padding: 8px 0; display: flex; align-items: center; gap: 10px; font-size: 1.05rem; }
.tech-pill { padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,0.05); border: 1px solid var(--border-color); font-size: 0.85rem; }

/* About & Contact */
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.about-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 16px; padding: 32px; }
.about-icon { font-size: 2rem; color: var(--primary); margin-bottom: 16px; }
.contact-layout { display: grid; grid-template-columns: 3fr 2fr; gap: 40px; }
.contact-form-card, .contact-info-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 16px; padding: 36px; }
.contact-info-list { margin-top: 24px; }
.contact-info-item { display: flex; gap: 16px; margin-bottom: 20px; }
.contact-info-item i { font-size: 1.2rem; color: var(--primary); margin-top: 4px; }
.contact-info-item p { margin: 2px 0 0 0; color: var(--text-muted); font-size: 0.95rem; }

/* Footer */
.site-footer { background: #080c14; border-top: 1px solid var(--border-color); padding: 80px 0 0 0; margin-top: 80px; }
.footer-container { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; padding-bottom: 60px; }
.brand-col .footer-desc { color: var(--text-muted); font-size: 0.95rem; margin: 16px 0 24px 0; max-width: 320px; }
.footer-social { display: flex; gap: 14px; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.05); display: flex; align-items: center; justify-content: center; color: var(--text-muted); transition: all 0.2s; }
.footer-social a:hover { background: var(--primary); color: #fff; }
.footer-col h4 { font-size: 1.1rem; margin: 0 0 20px 0; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: var(--text-muted); font-size: 0.9rem; transition: color 0.2s; }
.footer-col ul li a:hover { color: #fff; }
.footer-col p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.footer-bottom { border-top: 1px solid var(--border-color); padding: 24px 0; }
.bottom-container { display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; color: var(--text-muted); }
.bottom-links a { color: var(--text-muted); }

/* Responsive Media Queries */
@media (max-width: 992px) {
    .detail-layout, .contact-layout, .footer-container { grid-template-columns: 1fr; }
    .about-grid, .agy-grid-3, .agy-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .page-main-title { font-size: 2.2rem; }
    .site-nav { display: none; }
}
@media (max-width: 640px) {
    .about-grid, .agy-grid-2, .agy-grid-3, .agy-grid-4 { grid-template-columns: 1fr; }
    .bottom-container { flex-direction: column; gap: 10px; text-align: center; }
}
