/*
 * Home page. Values copied from design/Main.html.
 */

.home .sec { padding-top: 96px; padding-bottom: 96px; border-top: 1px solid var(--line); }
.home .sec-head { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; margin-bottom: 44px; }
.home .sec-head h2 { font-size: 40px; font-weight: 600; }
.home .sec-head p { color: var(--muted); max-width: 62ch; margin-top: 14px; }
.home .sec-head .why-accent { font-size: 18px; color: var(--accent); margin-top: 10px; }
.home .about-btn { margin-top: 24px; }

.home .g2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; align-items: center; }
.home .g3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.home .g4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
/* Three family cards (products in development hidden): three columns down to phone width. */
.home .g4.fam3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.home .join { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden; }
.home .j3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.home .join > * { background: var(--surface); padding: 28px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.home .join h3, .home .card h3 { font-size: 20px; font-weight: 600; }
.home .join p, .home .card p { color: var(--muted); font-size: 15px; }

.home .card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 28px; display: flex; flex-direction: column; gap: 10px; min-width: 0; text-decoration: none; color: var(--ink); }
.home a.card:hover { border-color: var(--ghost-border); color: var(--ink); }
.home .card.fam { padding: 0; overflow: hidden; gap: 0; }
.home .fam-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.home .link { font-weight: 600; font-size: 15px; text-decoration: none; }
.home .link.accent, .home .accent { color: var(--accent); }

.home .shot { aspect-ratio: 4 / 3; background: radial-gradient(ellipse at 50% 45%, #1A2740 0%, #0D1626 72%); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.home .shot img { width: 100%; height: 100%; object-fit: contain; transition: transform .4s ease; }
.home .pcard:hover .shot img, .home a.card:hover .shot img { transform: scale(1.04); }
.home .shot-art { flex-direction: column; gap: 10px; }
.home .art-text { font: 700 46px/1 var(--font-heading); color: var(--accent); letter-spacing: .06em; text-shadow: 0 0 16px rgba(30, 162, 232, .45); }

.home .pcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.home .pcard .body { padding: 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.home .pcard h3 { font-size: 20px; font-weight: 600; }
.home .pcard p { color: var(--muted); font-size: 15px; flex: 1; }
.home .dev { font-family: "Noto Sans Devanagari", "Mangal", sans-serif; font-size: 14px; color: var(--muted); }
.home .model { font: 500 13px/1.3 var(--font-mono); color: var(--accent); }

/* Hero */
.home .hero { padding-top: 80px; padding-bottom: 80px; }
/* Owner, 28 Nov 2026: the longer introduction made the text column much taller than the controller
   panel; centring left a gap above the panel. Line the panel up with the heading instead. */
.home .hero.g2 { align-items: start; }
.home .hero > .ctrl { margin-top: 52px; position: sticky; top: 104px; }
.home .hero-text { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.home .hero-text h1 { font-size: 60px; font-weight: 700; letter-spacing: -.01em; }
.home .hero-intro { font-size: 18px; max-width: 52ch; }
.home .hero-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.home .hero-facts { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 20px; }
.home .hero-facts > div { display: flex; flex-direction: column; gap: 6px; }
.home .hero-facts b { font-size: 15px; }

/* Illustrative controller panel */
.home .ctrl { padding: 22px; min-width: 0; }
.home .ctrl-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 11px; letter-spacing: .14em; color: var(--label); }
.home .ctrl-leds { display: flex; gap: 14px; }
.home .ctrl-leds > span { display: flex; align-items: center; gap: 6px; }
.home .ctrl-led { width: 8px; height: 8px; border-radius: 50%; background: #24324A; }
.home .ctrl-led.led-run { background: var(--run-green); box-shadow: 0 0 8px var(--run-green); }
.home .ctrl-led.led-lora { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.home .ctrl-main { margin: 18px 0; background: #03070F; border: 1px solid var(--panel-line); border-radius: 6px; padding: 20px 22px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.home .ctrl-key { font-size: 12px; color: var(--label); letter-spacing: .1em; }
.home .ctrl-big { font: 700 68px/1 var(--font-heading); color: var(--accent); letter-spacing: .06em; text-shadow: 0 0 16px rgba(30, 162, 232, .5); }
.home .ctrl-unit { font-size: 13px; color: var(--accent); }
.home .ctrl-cells { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.home .ctrl-cells > div { border: 1px solid var(--panel-line); border-radius: 4px; padding: 10px; display: flex; flex-direction: column; gap: 4px; }
.home .ctrl-cells span { font-size: 10px; letter-spacing: .12em; color: var(--label); }
.home .ctrl-cells b { font-size: 18px; font-weight: 500; }
.home .ctrl-modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 14px; font-size: 11px; letter-spacing: .12em; text-align: center; }
.home .ctrl-modes span { padding: 9px 0; border: 1px solid var(--panel-line); border-radius: 3px; color: #74839E; }
.home .ctrl-modes span.on { border-color: var(--accent); color: var(--accent); }
.home .ctrl-foot { margin-top: 14px; font-size: 11px; color: #74839E; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }

/* Protection tiles */
.home .tile { padding: 20px; display: flex; flex-direction: column; gap: 8px; box-shadow: none; }
.home .tile-code { font-size: 13px; letter-spacing: .1em; color: var(--accent); }
.home .tile b { font-family: var(--font-body); font-size: 16px; }
.home .tile-text { font-family: var(--font-body); font-size: 14px; color: var(--muted); line-height: 1.5; }

/* Partner + sales panels */
.home .ctas { align-items: stretch; gap: 20px; }
.home .cta { padding: 40px; display: flex; flex-direction: column; gap: 14px; font-family: var(--font-body); box-shadow: none; }
.home .cta h2 { font-size: 30px; font-weight: 600; }
.home .cta .btn { align-self: flex-start; margin-top: 10px; }
.home .cta-sales { border-color: #16405E; }
.home .cta-sales .lbl { color: var(--accent); }

@media (max-width: 1080px) {
	.home .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
	.home .g2, .home .g3, .home .j3 { grid-template-columns: minmax(0, 1fr); }
	.home .g2 { gap: 40px; }
	.home .hero > .ctrl { margin-top: 0; position: static; }
	.home .ctas { gap: 20px; }
	.home .sec-head { grid-template-columns: minmax(0, 1fr); gap: 12px; }
	.home .sec { padding-top: 64px; padding-bottom: 64px; }
}
@media (max-width: 560px) {
	.home .g4, .home .g4.fam3 { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
	.home .shot img { transition: none; }
}
