/* ── landing.css v2 — premium dark theme ── */
:root {
    --gold: #D4A853;
    --gold-light: #E8CC8A;
    --accent: #6366F1;
    --accent-glow: rgba(99, 102, 241, 0.3);
    --dark: #0A0A0F;
    --dark2: #131320;
    --dark3: #1C1C2E;
    --text: #E2E8F0;
    --muted: #94A3B8;
    --border: rgba(255, 255, 255, 0.08);
    --glass: rgba(255, 255, 255, 0.04);
    --glass-hover: rgba(255, 255, 255, 0.08);
    --radius: 16px;
    --radius-sm: 10px;
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 16px; line-height: 1.6;
    color: var(--text); background: var(--dark);
    -webkit-font-smoothing: antialiased;
    padding-top: var(--safe-top);
    padding-bottom: var(--safe-bottom);
}

a { color: inherit; text-decoration: none; }

/* ── Animations ── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px var(--accent-glow); }
    50% { box-shadow: 0 0 40px var(--accent-glow), 0 0 60px rgba(212,168,83,0.15); }
}
.ag-anim { animation: fadeUp 0.6s ease-out both; }
.ag-anim-d1 { animation-delay: 0.1s; }
.ag-anim-d2 { animation-delay: 0.2s; }
.ag-anim-d3 { animation-delay: 0.3s; }

/* ── Header ── */
.ag-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(10,10,15,0.8); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: background 0.3s;
}
.ag-header__inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; gap: 32px;
    padding: 14px 24px;
}
.ag-logo {
    display: flex; align-items: center; gap: 10px;
    font-weight: 800; font-size: 0.85rem; color: #fff; flex-shrink: 0;
}
.ag-logo__icon {
    width: 38px; height: 38px; border-radius: 10px;
    overflow: hidden; flex-shrink: 0;
}
.ag-nav { display: flex; gap: 4px; margin-left: auto; }
.ag-nav a {
    padding: 8px 16px; border-radius: 8px; font-size: 0.88rem;
    font-weight: 500; color: var(--muted); transition: all 0.2s;
}
.ag-nav a:hover { background: var(--glass); color: #fff; }
.ag-header__phone {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 14px; border-radius: 10px;
    background: rgba(99,102,241,0.15); color: #fff;
    font-weight: 700; font-size: 0.82rem; white-space: nowrap; flex-shrink: 0;
    transition: all 0.2s; border: 1px solid rgba(99,102,241,0.3);
}
.ag-header__phone:hover {
    background: rgba(99,102,241,0.25);
    box-shadow: 0 0 20px var(--accent-glow);
}

/* ── Hero ── */
.ag-hero {
    position: relative; min-height: 85vh; display: flex; align-items: center;
    justify-content: center; overflow: hidden;
    padding: 100px 24px 40px;
}
.ag-hero__bg {
    position: absolute; inset: 0;
    background: url('assets/hero-premium.jpg') center/cover no-repeat;
    filter: brightness(0.4);
}
.ag-hero__gradient {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(99,102,241,0.2) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 30%, rgba(212,168,83,0.1) 0%, transparent 50%),
                linear-gradient(180deg, rgba(10,10,15,0.3) 0%, var(--dark) 100%);
}
.ag-hero__content {
    position: relative; z-index: 1; max-width: 720px;
    text-align: center; animation: fadeUp 0.8s ease-out;
}
.ag-hero__badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 18px; border-radius: 50px;
    background: rgba(99,102,241,0.15); border: 1px solid rgba(99,102,241,0.3);
    color: var(--accent); font-size: 0.8rem; font-weight: 600;
    margin-bottom: 32px; text-transform: uppercase; letter-spacing: 0.08em;
}
.ag-hero__badge i { font-size: 0.7rem; animation: glow 2s infinite; }
.ag-hero__title {
    font-size: 4rem; font-weight: 900; line-height: 1.1; color: #fff;
    margin-bottom: 20px; letter-spacing: -0.02em;
}
.ag-hero__title span {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.ag-hero__lead {
    font-size: 1.15rem; line-height: 1.7; color: var(--muted);
    margin-bottom: 40px; max-width: 540px; margin-left: auto; margin-right: auto;
}
.ag-hero__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── Buttons ── */
.ag-btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 16px 32px; border-radius: 14px;
    font-size: 0.95rem; font-weight: 700; cursor: pointer;
    transition: all 0.25s; border: none; text-decoration: none;
    position: relative; overflow: hidden;
}
.ag-btn:active { transform: scale(0.96); }
.ag-btn--primary {
    background: linear-gradient(135deg, var(--accent), #8B5CF6);
    color: #fff; box-shadow: 0 4px 24px rgba(99,102,241,0.4);
}
.ag-btn--primary:hover {
    box-shadow: 0 8px 32px rgba(99,102,241,0.6);
    transform: translateY(-2px);
}
.ag-btn--outline {
    background: transparent; color: #fff;
    border: 2px solid rgba(255,255,255,0.2);
}
.ag-btn--outline:hover {
    border-color: rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.05);
}
.ag-btn--lg { padding: 18px 40px; font-size: 1.05rem; }

/* ── Sections ── */
.ag-section { padding: 80px 24px; }
.ag-section__inner { max-width: 1200px; margin: 0 auto; }
.ag-section__label {
    display: inline-flex; align-items: center; gap: 10px;
    color: var(--gold); font-size: 0.78rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 16px;
}
.ag-section__label::before {
    content: ''; display: block; width: 24px; height: 2px;
    background: var(--gold); border-radius: 2px;
}
.ag-section__title {
    font-size: 2.6rem; font-weight: 900; line-height: 1.2; color: #fff;
    margin-bottom: 16px; letter-spacing: -0.02em;
}
.ag-section__desc {
    font-size: 1.05rem; color: var(--muted); margin-bottom: 48px; max-width: 600px;
}

/* ── Stats ── */
.ag-stats {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.ag-stat {
    background: var(--glass); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 28px 20px; text-align: center;
    backdrop-filter: blur(10px); transition: all 0.3s;
}
.ag-stat:hover {
    background: var(--glass-hover);
    border-color: rgba(99,102,241,0.2);
    transform: translateY(-4px);
}
.ag-stat__num {
    font-size: 2.8rem; font-weight: 900;
    background: linear-gradient(135deg, #fff, var(--accent));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; margin-bottom: 8px; line-height: 1;
}
.ag-stat__label { font-size: 0.85rem; color: var(--muted); font-weight: 500; }

/* ── Steps ── */
.ag-steps {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.ag-step {
    background: var(--glass); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 32px 24px;
    backdrop-filter: blur(10px); transition: all 0.3s;
    position: relative; overflow: hidden;
}
.ag-step::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--gold));
    opacity: 0; transition: opacity 0.3s;
}
.ag-step:hover::before { opacity: 1; }
.ag-step:hover {
    background: var(--glass-hover);
    border-color: rgba(99,102,241,0.2);
    transform: translateY(-4px);
}
.ag-step__num {
    font-size: 3rem; font-weight: 900; line-height: 1;
    background: linear-gradient(135deg, rgba(99,102,241,0.3), rgba(139,92,246,0.1));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; margin-bottom: 16px;
}
.ag-step h3 { font-size: 1.1rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.ag-step p { font-size: 0.88rem; color: var(--muted); line-height: 1.6; }

/* ── Objects preview ── */
.ag-section--dark { background: var(--dark2); }
.ag-preview-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px;
}
.ag-preview-card {
    background: var(--glass); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden;
    transition: all 0.3s; cursor: pointer;
}
.ag-preview-card:hover {
    transform: translateY(-6px);
    border-color: rgba(99,102,241,0.3);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.ag-preview-card__img {
    height: 180px; background: var(--dark3);
    display: flex; align-items: center; justify-content: center;
    color: var(--border); font-size: 2rem;
}
.ag-preview-card__body { padding: 20px; }
.ag-preview-card__price {
    font-size: 1.3rem; font-weight: 800; color: var(--gold); margin-bottom: 4px;
}
.ag-preview-card__addr { font-size: 0.82rem; color: var(--muted); line-height: 1.4; }

/* ── CTA ── */
.ag-cta {
    position: relative; overflow: hidden;
    padding: 100px 24px; text-align: center;
    background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(139,92,246,0.08));
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.ag-cta__glow {
    position: absolute; width: 500px; height: 500px; border-radius: 50%;
    background: radial-gradient(circle, rgba(99,102,241,0.15), transparent 70%);
    top: 50%; left: 50%; transform: translate(-50%, -50%);
    pointer-events: none;
}
.ag-cta__inner { position: relative; z-index: 1; max-width: 600px; margin: 0 auto; }
.ag-cta h2 {
    font-size: 2.4rem; font-weight: 900; color: #fff;
    margin-bottom: 16px; letter-spacing: -0.02em;
}
.ag-cta p { font-size: 1.1rem; color: var(--muted); margin-bottom: 36px; }

/* ── Footer ── */
.ag-footer {
    background: rgba(0,0,0,0.3); border-top: 1px solid var(--border);
    padding: 48px 24px;
}
.ag-footer__inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap;
}
.ag-footer__col strong { color: #fff; font-size: 1rem; display: block; margin-bottom: 8px; }
.ag-footer__col p { font-size: 0.85rem; color: var(--muted); margin-bottom: 4px; }
.ag-footer__disclaimer { opacity: 0.5; font-size: 0.75rem !important; margin-top: 12px; }
.ag-footer__phone {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--gold); font-weight: 700; font-size: 1.1rem; margin-bottom: 16px;
}
.ag-footer__socials { display: flex; gap: 12px; }
.ag-footer__socials a {
    width: 42px; height: 42px; border-radius: 50%;
    background: var(--glass); border: 1px solid var(--border);
    color: var(--muted); display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; transition: all 0.2s;
}
.ag-footer__socials a:hover {
    background: rgba(99,102,241,0.15); border-color: rgba(99,102,241,0.3);
    color: var(--accent);
}

/* ── Mobile ── */
@media (max-width: 768px) {
    .ag-hero__title { font-size: 2.4rem; }
    .ag-section__title { font-size: 1.8rem; }
    .ag-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .ag-steps { grid-template-columns: 1fr; gap: 16px; }
    .ag-preview-grid { grid-template-columns: 1fr; }
    .ag-nav { display: none; }
    .ag-logo { font-size: 0.75rem; gap: 8px; }
    .ag-hero { padding: 80px 16px 32px; min-height: 75vh; }
    .ag-section { padding: 48px 16px; }
    .ag-stat__num { font-size: 2rem; }
    .ag-cta h2 { font-size: 1.8rem; }
}
@media (max-width: 480px) {
    .ag-hero__title { font-size: 1.8rem; }
    .ag-hero__actions { flex-direction: column; align-items: center; }
    .ag-btn { width: 100%; justify-content: center; }
    .ag-header__phone { padding: 8px 10px; font-size: 0.78rem; gap: 4px; }
}
