/* ═══ HOME PAGE ═══ */

/* Hero */
.hero { display: grid; grid-template-columns: 1fr 300px; gap: 0; padding-top: 68px; overflow: hidden; }
.hero-left { padding: 64px 80px; display: flex; flex-direction: column; justify-content: center; position: relative; background: url('/images/header-bg.jpg') center/cover no-repeat; }
.hero-left::before { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.55); }
.hero-left::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px; background: var(--border); }
.hero-left > * { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(32px, 3.5vw, 48px); font-weight: 900; line-height: 1.0; letter-spacing: -2px; margin-bottom: 20px; color: #fff; }
.hero h1 em { font-style: italic; font-weight: 300; color: var(--accent); }
.hero-sub { font-size: 18px; color: rgba(255,255,255,0.75); max-width: 66%; margin-bottom: 32px; line-height: 1.7; }
.hero-actions { display: flex; gap: 16px; align-items: center; }
.hero-left .btn-secondary { color: #fff; border-color: rgba(255,255,255,0.3); }
.hero-left .btn-secondary:hover { border-color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.1); }

/* Hero right */
.hero-right { background: var(--dark); padding: 32px 24px; display: flex; flex-direction: column; justify-content: center; gap: 8px; position: relative; overflow: hidden; }
.hero-right::before { content: ''; position: absolute; bottom: -100px; right: -100px; width: 400px; height: 400px; background: radial-gradient(circle, rgba(232,93,4,0.15) 0%, transparent 60%); }
.hero-stat { text-align: center; padding: 16px; background: #111; border: 1px solid #2d2d2d; border-radius: 4px; position: relative; }
.hero-stat-num { font-size: 32px; font-weight: 900; color: var(--accent); line-height: 1; margin-bottom: 4px; }
.hero-stat-label { font-size: 11px; font-weight: 500; color: #9e9890; letter-spacing: 1px; text-transform: uppercase; }
.hero-framework { text-align: center; padding: 16px; border: 1px solid var(--accent); border-radius: 4px; background: #1a0a00; position: relative; }
.hero-framework-label { font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.hero-framework-text { font-size: 12px; color: #c8bfb4; line-height: 1.5; }

/* USP */
.usp-section { padding: 60px 48px; background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.usp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 36px; }
.usp-item { padding: 36px 28px; border: 1px solid var(--border); border-radius: 4px; background: var(--bg); transition: background 0.3s, box-shadow 0.3s; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.usp-item:hover { background: var(--accent-light); box-shadow: 0 4px 20px rgba(0,0,0,0.1); }
.usp-num { font-size: 44px; font-weight: 900; color: var(--accent); opacity: 0.3; line-height: 1; margin-bottom: 20px; }
.usp-title { font-size: 15px; font-weight: 700; margin-bottom: 10px; color: var(--text); }
.usp-text { font-size: 14px; color: var(--text2); line-height: 1.7; }

/* Services */
.services-section { padding: 60px 48px; background: var(--bg); }
.services-header { display: flex; flex-direction: column; gap: 8px; margin-bottom: 40px; }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.service-card { background: var(--bg); padding: 32px 28px; position: relative; overflow: hidden; transition: background 0.3s, box-shadow 0.3s; cursor: pointer; border: 1px solid var(--border); border-radius: 4px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.service-card:hover { background: var(--bg2); box-shadow: 0 4px 20px rgba(0,0,0,0.1); }
.service-card.featured { background: var(--accent-light); }
.service-card.featured:hover { background: #ffe8d8; }
.service-card::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: var(--accent); transform: scaleX(0); transition: transform 0.3s; }
.service-card:hover::after { transform: scaleX(1); }
.service-icon { margin-bottom: 20px; display: block; color: var(--accent); }
.service-icon svg { width: 32px; height: 32px; }
.service-title { font-size: 20px; font-weight: 900; letter-spacing: -0.5px; margin-bottom: 14px; color: var(--text); }
.service-desc { font-size: 15px; color: var(--text2); line-height: 1.7; margin-bottom: 28px; }
.service-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.stag { font-size: 11px; font-weight: 500; padding: 4px 10px; border: 1px solid var(--border2); border-radius: 3px; color: var(--text3); background: var(--bg); }
.service-arrow { position: absolute; top: 32px; right: 28px; font-size: 20px; color: var(--border2); transition: color 0.2s, transform 0.2s; }
.service-card:hover .service-arrow { color: var(--accent); transform: translate(3px, -3px); }

/* References */
.refs-section { padding: 60px 48px; background: var(--bg2); border-top: 1px solid var(--border); }
.refs-header { display: flex; flex-direction: column; gap: 8px; margin-bottom: 40px; }
.refs-header-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.refs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.ref-card { background: var(--bg); padding: 28px; display: flex; gap: 24px; align-items: flex-start; transition: background 0.3s, box-shadow 0.3s; border: 1px solid var(--border); border-radius: 4px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.ref-card:hover { background: var(--accent-light); box-shadow: 0 4px 20px rgba(0,0,0,0.1); }
.ref-img-area { width: 160px; height: 100px; flex-shrink: 0; background: var(--bg2); border: 1px solid var(--border); border-radius: 4px; display: flex; align-items: center; justify-content: center; color: var(--text3); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; overflow: hidden; }
.ref-img-area img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.ref-info { display: flex; flex-direction: column; gap: 6px; }
.ref-name { font-size: 18px; font-weight: 800; letter-spacing: -0.5px; color: var(--text); }
.ref-desc { font-size: 14px; color: var(--text2); line-height: 1.6; }
.ref-tech { display: flex; flex-wrap: wrap; gap: 6px; }
.rtag { font-size: 10px; font-weight: 600; padding: 3px 8px; background: var(--bg2); border: 1px solid var(--border); border-radius: 2px; color: var(--text3); text-transform: uppercase; letter-spacing: 0.5px; }

/* Tech + News */
.tech-section { padding: 60px 48px; background: var(--bg); border-top: 1px solid var(--border); }
.tech-news-row { display: flex; gap: 32px; align-items: flex-start; }
.tech-col { flex: 2; }
.tech-groups { display: flex; flex-direction: column; gap: 28px; }
.tech-group-title { font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--text3); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.tech-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.news-col { flex: 1; border: 1px solid var(--border); border-radius: 4px; background: var(--bg2); overflow: hidden; }
.news-col-header { padding: 20px 24px 12px; }
.news-col-list { display: flex; flex-direction: column; }
.news-col-item { padding: 14px 24px; border-top: 1px solid var(--border); transition: background 0.3s; cursor: pointer; }
.news-col-item:hover { background: var(--accent-light); }
.news-date { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; color: var(--accent); text-transform: uppercase; margin-bottom: 4px; }
.news-col-text { font-size: 14px; color: var(--text); line-height: 1.5; }

/* Animations */
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.hero-left { animation: fadeUp 0.8s ease forwards; }
.hero-right { animation: fadeUp 0.8s 0.2s ease both; }

/* ── HOME RESPONSIVE ── */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr 260px; }
  .hero-left { padding: 40px 32px; }
  .hero-sub { max-width: 100%; }
  .usp-section { padding: 48px 24px; }
  .usp-grid { grid-template-columns: repeat(2, 1fr); }
  .services-section { padding: 48px 24px; }
  .services-header { margin-bottom: 28px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .refs-section { padding: 48px 24px; }
  .refs-grid { grid-template-columns: 1fr; }
  .tech-section { padding: 48px 24px; }
  .tech-news-row { flex-direction: column; gap: 24px; }
}
@media (max-width: 768px) {
  .hero { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(28px, 6vw, 36px); }
  .hero-sub { font-size: 16px; }
  .hero-right { padding: 24px; flex-direction: row; flex-wrap: wrap; gap: 10px; justify-content: center; }
  .hero-stat, .hero-framework { flex: 1; min-width: 120px; }
  .hero-stat { padding: 12px; }
  .hero-stat-num { font-size: 28px; }
  .hero-framework { display: none; }
  .usp-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .usp-num { font-size: 32px; }
  .usp-item { padding: 24px 20px; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { padding: 24px 20px; }
  .refs-header-row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .ref-card { flex-direction: column; gap: 16px; }
  .ref-img-area { width: 100%; height: 80px; }
}
@media (max-width: 480px) {
  .hero-left { padding: 32px 16px; }
  .hero h1 { font-size: 26px; letter-spacing: -1px; margin-bottom: 12px; }
  .hero-sub { font-size: 15px; margin-bottom: 20px; }
  .hero-actions { flex-direction: column; gap: 10px; }
  .hero-actions .btn-primary, .hero-actions .btn-secondary { width: 100%; justify-content: center; padding: 12px 20px; font-size: 14px; }
  .hero-right { padding: 16px; gap: 8px; }
  .hero-stat-num { font-size: 24px; }
  .usp-section { padding: 32px 16px; }
  .usp-grid { grid-template-columns: 1fr; }
  .services-section { padding: 32px 16px; }
  .service-title { font-size: 20px; }
  .refs-section { padding: 32px 16px; }
  .tech-section { padding: 32px 16px; }
  .news-col-text { font-size: 13px; }
}
