@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-primary: #0a0e1a;
    --bg-secondary: #111827;
    --bg-card: #1a2035;
    --bg-card-hover: #1f2847;
    --accent: #f59e0b;
    --accent-light: #fbbf24;
    --accent-dim: rgba(245, 158, 11, 0.12);
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border: #1e293b;
    --border-light: #334155;
    --success: #22c55e;
    --radius: 10px;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    --max-width: 1140px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

/* ═══ LAYOUT ═══ */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
section { padding: 100px 0; }

/* ═══ TYPOGRAPHY ═══ */
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); letter-spacing: -0.02em; }
h3 { font-size: 1.25rem; }
p { color: var(--text-secondary); }

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: 16px;
}
.section-label::before {
    content: '';
    width: 24px;
    height: 2px;
    background: var(--accent);
}

.section-intro {
    max-width: 560px;
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 48px;
}

/* ═══ BUTTONS ═══ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.25s ease;
    border: none;
    cursor: pointer;
}
.btn-primary {
    background: var(--accent);
    color: #0a0e1a;
}
.btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(245, 158, 11, 0.25);
}
.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1.5px solid var(--border-light);
}
.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ═══ NAVIGATION ═══ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    background: rgba(10, 14, 26, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}
.nav.scrolled { border-bottom-color: var(--border); }
.nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
}
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-cta {
    padding: 10px 22px !important;
    background: var(--accent) !important;
    color: #0a0e1a !important;
    border-radius: 7px;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
}
.nav-cta:hover { background: var(--accent-light) !important; }

/* Mobile nav */
.nav-toggle { display: none; background: none; border: none; color: var(--text-primary); font-size: 1.5rem; cursor: pointer; }

@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--bg-secondary);
        border-bottom: 1px solid var(--border);
        padding: 24px;
        gap: 20px;
    }
    .nav-links.open { display: flex; }
}

/* ═══ HERO ═══ */
.hero {
    padding: 160px 0 100px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.06) 0%, transparent 70%);
    pointer-events: none;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--accent-dim);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 24px;
}
.hero-badge .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--success);
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
.hero h1 { margin-bottom: 20px; }
.hero h1 .highlight {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-sub {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin-bottom: 36px;
    line-height: 1.8;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-stats {
    display: flex;
    gap: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}
.hero-stat-value {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
}
.hero-stat-value span { color: var(--accent); }
.hero-stat-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ═══ SERVICES GRID ═══ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 16px;
}
.service-card {
    display: flex;
    gap: 18px;
    padding: 24px;
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: inherit;
    transition: border-color .2s, box-shadow .2s, transform .15s;
}
.service-card:hover {
    border-color: var(--tool-color, var(--accent));
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    color: inherit;
}
.service-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--accent-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}
.service-body { flex: 1; min-width: 0; }
.service-header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.service-card h3 { font-size: 1rem; font-weight: 700; line-height: 1.3; margin-bottom: 0; }
.service-card p { font-size: 0.85rem; margin-bottom: 12px; color: var(--text-muted, rgba(255,255,255,.55)); line-height: 1.5; }
.service-meta { display: flex; justify-content: space-between; align-items: center; }
.service-category { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted, rgba(255,255,255,.45)); background: rgba(255,255,255,.06); padding: 4px 10px; border-radius: 4px; }
.service-arrow { font-size: 1.1rem; color: var(--tool-color, var(--accent)); transition: transform .2s; }
.service-card:hover .service-arrow { transform: translateX(4px); }
.service-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ═══ TECH STACK ═══ */
.stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}
.stack-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px 16px;
    text-align: center;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.2s;
}
.stack-item:hover {
    border-color: var(--accent);
    background: var(--bg-card-hover);
}
.stack-item .icon {
    font-size: 1.5rem;
    margin-bottom: 8px;
    display: block;
}

/* ═══ PROCESS ═══ */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    counter-reset: process;
}
.process-step {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    position: relative;
    counter-increment: process;
}
.process-step::before {
    content: counter(process, decimal-leading-zero);
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
    opacity: 0.3;
    line-height: 1;
    margin-bottom: 16px;
    display: block;
}
.process-step h3 { margin-bottom: 10px; }
.process-step p { font-size: 0.9rem; }

/* ═══ ABOUT ═══ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.about-text p { margin-bottom: 16px; font-size: 1.02rem; }
.about-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 32px;
}
.about-detail {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
}
.about-detail-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.about-detail-value {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ═══ TESTIMONIALS ═══ */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.testimonial {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
}
.testimonial-stars {
    color: var(--accent);
    font-size: 0.9rem;
    margin-bottom: 16px;
}
.testimonial blockquote {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.7;
}
.testimonial-author {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
}
.testimonial-role {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ═══ PRICING ═══ */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
    position: relative;
}
.pricing-card.featured {
    border-color: var(--accent);
    box-shadow: 0 0 40px rgba(245, 158, 11, 0.08);
}
.pricing-badge {
    position: absolute;
    top: -12px;
    right: 24px;
    background: var(--accent);
    color: #0a0e1a;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 5px 14px;
    border-radius: 50px;
}
.pricing-card h3 { margin-bottom: 8px; }
.pricing-card .price {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    margin: 16px 0;
}
.pricing-card .price span { font-size: 0.9rem; font-weight: 400; color: var(--text-muted); }
.pricing-features {
    list-style: none;
    margin: 24px 0;
}
.pricing-features li {
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}
.pricing-features li::before {
    content: '✓';
    color: var(--accent);
    font-weight: 700;
}

/* ═══ CTA SECTION ═══ */
.cta-section {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(245, 158, 11, 0.05) 100%);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 64px 48px;
    text-align: center;
    margin: 0 24px;
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
}
.cta-section h2 { margin-bottom: 16px; }
.cta-section p { max-width: 480px; margin: 0 auto 32px; font-size: 1.05rem; }

/* ═══ FOOTER ═══ */
.footer {
    padding: 60px 0 30px;
    border-top: 1px solid var(--border);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-brand p {
    font-size: 0.88rem;
    margin-top: 12px;
    max-width: 280px;
}
.footer h4 {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 16px;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
    .hero-stats { flex-wrap: wrap; gap: 24px; }
    section { padding: 64px 0; }
    .hero { padding: 120px 0 64px; }
    .cta-section { padding: 40px 24px; margin: 0 16px; }
}

/* ═══ BLOG ═══ */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}
.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.3s;
}
.blog-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
}
.blog-card-img {
    height: 180px;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}
.blog-card-body { padding: 24px; }
.blog-card-body .tag {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent);
    margin-bottom: 10px;
    display: block;
}
.blog-card-body h3 { font-size: 1.1rem; margin-bottom: 8px; }
.blog-card-body p { font-size: 0.88rem; }

/* ═══ ARTICLE PAGES ═══ */
.article-hero { padding: 140px 0 60px; }
.article-hero .breadcrumb {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}
.article-hero .breadcrumb a { color: var(--accent); text-decoration: none; }
.article-content { max-width: 720px; margin: 0 auto; padding: 0 24px 80px; }
.article-content h2 { margin: 40px 0 16px; font-size: 1.5rem; }
.article-content h3 { margin: 32px 0 12px; font-size: 1.2rem; }
.article-content p { margin-bottom: 16px; font-size: 1rem; line-height: 1.8; }
.article-content ul, .article-content ol {
    margin: 16px 0 16px 24px;
    color: var(--text-secondary);
}
.article-content li { margin-bottom: 8px; line-height: 1.7; }
.article-content code {
    background: var(--bg-card);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.9rem;
    color: var(--accent);
}

/* ═══ CONTACT FORM ═══ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
}
.form-group textarea { min-height: 140px; resize: vertical; }
.contact-info-cards { display: flex; flex-direction: column; gap: 16px; }
.contact-info-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}
.contact-info-card h4 {
    font-size: 0.95rem;
    margin-bottom: 6px;
    color: var(--text-primary);
    text-transform: none;
    letter-spacing: 0;
}
.contact-info-card p { font-size: 0.88rem; }
.contact-info-card a { color: var(--accent); text-decoration: none; }

@media (max-width: 768px) {
    .contact-grid { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    .service-card { gap: 14px; }
}

/* ═══ ANIMATIONS ═══ */
.fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Enhanced Interactions (Feb 2026 refresh) ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideRight { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: translateX(0); } }

/* ── Hero staggered animation ── */
.hero .hero-badge { animation: fadeUp .5s ease both; }
.hero h1 { animation: fadeUp .5s ease .1s both; }
.hero .hero-subtitle { animation: fadeUp .5s ease .2s both; }
.hero .hero-actions { animation: fadeUp .5s ease .3s both; }
.hero .hero-stats { animation: fadeUp .5s ease .4s both; }

/* ── Section labels slide in ── */
.section-label { animation: slideRight .5s ease both; }

/* ── Service cards improved hover ── */
/* Service card hover handled in main styles */

/* ── Blog card hover ── */
.blog-card, article { transition: all .25s ease; }
.blog-card:hover, article:hover { transform: translateY(-3px); }

/* ── CTA button pulse ── */
@keyframes subtlePulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(245,158,11,.3); } 50% { box-shadow: 0 0 0 8px rgba(245,158,11,0); } }
.btn-primary { animation: subtlePulse 3s ease infinite 2s; }
.btn-primary:hover { animation: none; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(245,158,11,.3); }

/* ── Guarantee section glow ── */
.guarantee { position: relative; }
.guarantee::before { content: ''; position: absolute; inset: -1px; border-radius: inherit; background: linear-gradient(135deg, var(--accent), transparent, var(--accent)); opacity: .15; pointer-events: none; z-index: 0; }

/* ── Smoother page feel ── */
section { opacity: 0; animation: fadeUp .6s ease forwards; }
section:nth-of-type(1) { animation-delay: 0s; }
section:nth-of-type(2) { animation-delay: .1s; }
section:nth-of-type(3) { animation-delay: .15s; }
section:nth-of-type(4) { animation-delay: .2s; }
section:nth-of-type(5) { animation-delay: .25s; }
section:nth-of-type(6) { animation-delay: .3s; }
section:nth-of-type(7) { animation-delay: .35s; }

/* Focus Visible - Keyboard Accessibility */
*:focus-visible {
  outline: 2px solid var(--accent, #58a6ff);
  outline-offset: 2px;
  border-radius: 3px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent, #58a6ff);
  outline-offset: 2px;
}

.skip-link:focus {
  outline: 2px solid var(--accent, #58a6ff);
  outline-offset: 2px;
}

/* Screen reader only - visually hidden but accessible */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
