/* MEGATORN homepage — premium modern */

.hm-wrap { position: relative; }

/* ---------- Hero ---------- */
.hm-hero {
position: relative;
padding: clamp(40px, 5vw, 72px) 0 clamp(36px, 4vw, 52px);
overflow: hidden;
}
.hm-orb {
position: absolute;
border-radius: 50%;
filter: blur(70px);
opacity: .55;
pointer-events: none;
z-index: 0;
}
.hm-orb.a { width: 460px; height: 460px; top: -160px; left: -120px; background: radial-gradient(circle, rgba(91,124,250,.55), transparent 65%); }
.hm-orb.b { width: 420px; height: 420px; top: -80px; right: -140px; background: radial-gradient(circle, rgba(34,211,238,.45), transparent 65%); }
.hm-hero-grid {
display: grid;
grid-template-columns: 1.05fr .95fr;
gap: clamp(32px, 4.5vw, 64px);
align-items: center;
position: relative;
z-index: 1;
}
.hm-eyebrow {
display: inline-flex;
align-items: center;
gap: 9px;
padding: 7px 15px;
border-radius: 50px;
background: var(--bg-elev-2);
border: 1px solid var(--border-strong);
color: var(--text-secondary);
font-size: .78rem;
font-weight: 600;
letter-spacing: .02em;
margin-bottom: 22px;
}
.hm-eyebrow .dot {
width: 8px; height: 8px; border-radius: 50%;
background: var(--brand-success);
box-shadow: 0 0 0 4px rgba(16,185,129,.18);
animation: hm-pulse 2.4s ease-in-out infinite;
}
@keyframes hm-pulse { 0%,100% { box-shadow: 0 0 0 4px rgba(16,185,129,.18); } 50% { box-shadow: 0 0 0 8px rgba(16,185,129,.05); } }

.hm-hero h1 {
font-size: clamp(2.1rem, 5vw, 3.7rem);
line-height: 1.06;
letter-spacing: -.04em;
font-weight: 800;
margin: 0 0 20px;
}
.hm-hero .hm-lead {
font-size: clamp(1rem, 1.25vw, 1.15rem);
color: var(--text-secondary);
max-width: 560px;
margin: 0 0 30px;
line-height: 1.65;
}
.hm-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 38px; }
.hm-hero-actions .btn { padding: 12px 22px; }

.hm-hero-stats {
display: flex;
flex-wrap: wrap;
gap: clamp(22px, 3vw, 48px);
padding-top: 26px;
border-top: 1px solid var(--border);
}
.hm-hero-stat .v {
font-size: clamp(1.5rem, 2.1vw, 2rem);
font-weight: 800;
letter-spacing: -.03em;
color: var(--text-primary);
line-height: 1;
}
.hm-hero-stat .l {
font-size: .72rem;
text-transform: uppercase;
letter-spacing: .1em;
color: var(--text-muted);
margin-top: 6px;
}

/* ---------- Dashboard mock ---------- */
.hm-mock-wrap { position: relative; }
.hm-mock-wrap::after {
content: '';
position: absolute;
inset: 12% 6% -6% 6%;
background: var(--gradient-brand);
filter: blur(60px);
opacity: .28;
border-radius: 40px;
z-index: 0;
}
.hm-mock {
position: relative;
z-index: 1;
border-radius: 18px;
background: var(--bg-elev-1);
border: 1px solid var(--border-strong);
box-shadow: 0 30px 70px rgba(0,0,0,.4);
overflow: hidden;
transform: perspective(1600px) rotateY(-6deg) rotateX(2deg);
transition: transform .6s var(--ease);
}
.hm-mock:hover { transform: perspective(1600px) rotateY(-2deg) rotateX(1deg); }
.hm-mock-bar {
display: flex;
align-items: center;
gap: 8px;
padding: 13px 16px;
border-bottom: 1px solid var(--border);
background: var(--bg-elev-2);
}
.hm-mock-bar .b { width: 11px; height: 11px; border-radius: 50%; }
.hm-mock-bar .b1 { background: #ff5f57; }
.hm-mock-bar .b2 { background: #febc2e; }
.hm-mock-bar .b3 { background: #28c840; }
.hm-mock-bar .u { margin-left: 10px; font-size: .73rem; color: var(--text-muted); font-family: var(--font-mono); }
.hm-mock-body { padding: 18px; display: grid; gap: 14px; }
.hm-mock-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.hm-mock-tile {
border-radius: 12px;
background: var(--bg-elev-2);
border: 1px solid var(--border);
padding: 13px;
}
.hm-mock-tile .k { font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); }
.hm-mock-tile .n { font-size: 1.3rem; font-weight: 800; color: var(--text-primary); margin-top: 5px; letter-spacing: -.02em; }
.hm-mock-chart {
height: 130px;
border-radius: 12px;
background: linear-gradient(180deg, rgba(91,124,250,.16), rgba(91,124,250,0));
border: 1px solid var(--border);
display: flex;
align-items: flex-end;
gap: 7px;
padding: 14px;
}
.hm-mock-chart span {
flex: 1;
border-radius: 5px 5px 0 0;
background: var(--gradient-brand);
opacity: .9;
transform-origin: bottom;
animation: hm-grow 1.2s var(--ease) both;
}
.hm-mock-chart span:nth-child(1) { animation-delay: .05s; }
.hm-mock-chart span:nth-child(2) { animation-delay: .1s; }
.hm-mock-chart span:nth-child(3) { animation-delay: .15s; }
.hm-mock-chart span:nth-child(4) { animation-delay: .2s; }
.hm-mock-chart span:nth-child(5) { animation-delay: .25s; }
.hm-mock-chart span:nth-child(6) { animation-delay: .3s; }
.hm-mock-chart span:nth-child(7) { animation-delay: .35s; }
.hm-mock-chart span:nth-child(8) { animation-delay: .4s; }
@keyframes hm-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* ---------- Logo marquee ---------- */
.hm-logos {
padding: 22px 0;
border-top: 1px solid var(--border);
border-bottom: 1px solid var(--border);
background: var(--bg-elev-1);
overflow: hidden;
}
.hm-logos p {
text-align: center;
font-size: .74rem;
text-transform: uppercase;
letter-spacing: .16em;
color: var(--text-muted);
margin: 0 0 14px;
}
.hm-marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.hm-marquee-track { display: flex; gap: 56px; width: max-content; animation: hm-scroll 26s linear infinite; }
.hm-marquee:hover .hm-marquee-track { animation-play-state: paused; }
@keyframes hm-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.hm-marquee .lg {
display: inline-flex;
align-items: center;
gap: 9px;
font-weight: 700;
font-size: 1.05rem;
color: var(--text-secondary);
white-space: nowrap;
}
.hm-marquee .lg i { font-size: 1.3rem; color: var(--brand-primary); }

/* ---------- Sections ---------- */
.hm-section { padding: clamp(36px, 4vw, 56px) 0; }
.hm-section-head { max-width: 680px; margin-bottom: 30px; }
.hm-section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.hm-kicker {
display: inline-block;
font-size: .75rem;
font-weight: 700;
letter-spacing: .15em;
text-transform: uppercase;
color: var(--brand-primary);
margin-bottom: 13px;
}
.hm-section-head h2 {
font-size: clamp(1.55rem, 3.2vw, 2.45rem);
letter-spacing: -.035em;
margin: 0 0 15px;
}
.hm-section-head p { color: var(--text-secondary); margin: 0; font-size: 1.02rem; }

/* ---------- Bento ---------- */
.hm-bento {
display: grid;
grid-template-columns: repeat(6, 1fr);
grid-auto-rows: minmax(160px, auto);
gap: 16px;
}
.hm-cell {
position: relative;
border-radius: 18px;
background: var(--bg-elev-1);
border: 1px solid var(--border);
padding: 26px;
overflow: hidden;
transition: transform var(--timing) var(--ease), border-color var(--timing) var(--ease), box-shadow var(--timing) var(--ease);
}
.hm-cell::before {
content: '';
position: absolute;
inset: 0;
border-radius: 18px;
padding: 1px;
background: var(--gradient-brand);
-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
-webkit-mask-composite: xor;
mask-composite: exclude;
opacity: 0;
transition: opacity var(--timing) var(--ease);
pointer-events: none;
}
.hm-cell:hover { transform: translateY(-5px); box-shadow: 0 20px 44px rgba(0,0,0,.28); }
.hm-cell:hover::before { opacity: 1; }
.hm-cell .ic {
width: 48px; height: 48px;
border-radius: 13px;
display: inline-flex; align-items: center; justify-content: center;
background: var(--gradient-soft);
border: 1px solid var(--border-strong);
color: var(--brand-primary);
font-size: 1.4rem;
margin-bottom: 16px;
}
.hm-cell h3 { font-size: 1.08rem; margin: 0 0 9px; letter-spacing: -.01em; }
.hm-cell p { font-size: .88rem; color: var(--text-secondary); margin: 0; line-height: 1.6; }
.hm-cell.feature {
grid-column: span 3;
background:
radial-gradient(560px 300px at 100% 0%, rgba(91,124,250,.16), transparent 60%),
var(--bg-elev-1);
}
.hm-cell.third { grid-column: span 1; }
.hm-cell.half { grid-column: span 3; }
.hm-cell.big {
grid-column: span 3;
grid-row: span 2;
display: flex;
flex-direction: column;
justify-content: space-between;
background:
radial-gradient(520px 340px at 0% 100%, rgba(34,211,238,.14), transparent 60%),
var(--bg-elev-1);
}
.hm-cell.big .big-num {
font-size: clamp(2rem, 4vw, 3rem);
font-weight: 800;
letter-spacing: -.04em;
background: var(--gradient-brand);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
line-height: 1;
}

/* ---------- Process ---------- */
.hm-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.hm-step { position: relative; padding-top: 8px; }
.hm-step .num {
display: inline-flex; align-items: center; justify-content: center;
width: 42px; height: 42px;
border-radius: 12px;
background: var(--bg-elev-2);
border: 1px solid var(--border-strong);
color: var(--brand-primary);
font-weight: 800;
font-size: 1rem;
margin-bottom: 16px;
}
.hm-step h4 { font-size: 1rem; margin: 0 0 7px; }
.hm-step p { font-size: .86rem; color: var(--text-secondary); margin: 0; line-height: 1.6; }
.hm-step::after {
content: '';
position: absolute;
top: 28px; left: 56px; right: -12px;
height: 1px;
background: linear-gradient(90deg, var(--border-strong), transparent);
}
.hm-step:last-child::after { display: none; }

/* ---------- Testimonial ---------- */
.hm-quote {
border-radius: 22px;
background:
radial-gradient(600px 300px at 50% 0%, rgba(91,124,250,.12), transparent 60%),
var(--bg-elev-1);
border: 1px solid var(--border);
padding: clamp(32px, 5vw, 56px);
text-align: center;
max-width: 860px;
margin: 0 auto;
}
.hm-quote .qm { font-size: 2.2rem; color: var(--brand-primary); line-height: 1; margin-bottom: 14px; }
.hm-quote p {
font-size: clamp(1.1rem, 2.1vw, 1.45rem);
color: var(--text-primary);
font-weight: 500;
line-height: 1.55;
margin: 0 0 22px;
letter-spacing: -.01em;
}
.hm-quote .who { color: var(--text-muted); font-size: .88rem; }

/* ---------- CTA ---------- */
.hm-cta {
position: relative;
border-radius: 26px;
padding: clamp(40px, 6vw, 76px) clamp(26px, 4vw, 60px);
overflow: hidden;
background:
radial-gradient(700px 340px at 12% 0%, rgba(91,124,250,.3), transparent 60%),
radial-gradient(620px 320px at 100% 100%, rgba(34,211,238,.24), transparent 55%),
var(--bg-elev-1);
border: 1px solid var(--border-strong);
text-align: center;
}
.hm-cta h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin: 0 0 15px; letter-spacing: -.035em; }
.hm-cta p { color: var(--text-secondary); max-width: 560px; margin: 0 auto 30px; font-size: 1.02rem; }
.hm-cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hm-cta-actions .btn { padding: 12px 24px; }

/* ---------- Blog cards ---------- */
.hm-post-card {
display: block;
border-radius: 18px;
background: var(--bg-elev-1);
border: 1px solid var(--border);
padding: 24px;
transition: transform var(--timing) var(--ease), border-color var(--timing) var(--ease), box-shadow var(--timing) var(--ease);
height: 100%;
}
.hm-post-card:hover { transform: translateY(-5px); border-color: var(--border-strong); box-shadow: 0 18px 40px rgba(0,0,0,.24); }
.hm-post-card h3 { font-size: 1.05rem; margin: 12px 0 9px; letter-spacing: -.01em; }
.hm-post-card p { font-size: .88rem; color: var(--text-secondary); margin: 0 0 16px; line-height: 1.6; }
.hm-post-card .meta { font-size: .78rem; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }

.hm-grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }

@media (max-width: 992px) {
.hm-hero-grid { grid-template-columns: 1fr; }
.hm-mock { transform: none; }
.hm-bento { grid-template-columns: repeat(2, 1fr); }
.hm-cell.feature, .hm-cell.half, .hm-cell.big { grid-column: span 2; }
.hm-cell.third { grid-column: span 1; }
.hm-steps { grid-template-columns: repeat(2, 1fr); }
.hm-step::after { display: none; }
}
@media (max-width: 576px) {
.hm-bento { grid-template-columns: 1fr; }
.hm-cell.feature, .hm-cell.half, .hm-cell.big, .hm-cell.third { grid-column: span 1; }
.hm-steps { grid-template-columns: 1fr; }
.hm-mock-row { grid-template-columns: 1fr; }
}