@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

:root {
    --bg: #ffffff;
    --bg-alt: #f8f8f8;
    --text: #111111;
    --text-muted: #666666;
    --border: #e5e5e5;
    --alert: #e85d04;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
}

.container { max-width: 1000px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}
nav .container { display: flex; justify-content: space-between; align-items: center; height: 60px; }
.nav-logo img { height: 28px; width: auto; }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-size: 14px; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }

.hero { padding: 140px 0 80px; text-align: center; }
.hero-logo { margin-bottom: 40px; }
.hero-logo img { max-width: 340px; width: 100%; height: auto; }
.hero h1 { font-size: 40px; font-weight: 600; line-height: 1.2; margin-bottom: 16px; max-width: 600px; margin-left: auto; margin-right: auto; }
.hero p { font-size: 17px; color: var(--text-muted); max-width: 480px; margin: 0 auto 32px; }

.btn { display: inline-block; padding: 12px 24px; font-size: 14px; font-weight: 600; text-decoration: none; border-radius: 6px; transition: all 0.2s; }
.btn-primary { background: var(--text); color: white; }
.btn-primary:hover { opacity: 0.85; }

.stats { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 40px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat h3 { font-size: 28px; font-weight: 600; margin-bottom: 4px; }
.stat p { font-size: 13px; color: var(--text-muted); }

section { padding: 80px 0; }
.section-label { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; }
.section-title { font-size: 28px; font-weight: 600; line-height: 1.3; margin-bottom: 16px; }
.section-text { font-size: 16px; color: var(--text-muted); max-width: 480px; }

.product { background: var(--bg-alt); }
.product-header { text-align: center; margin-bottom: 48px; }
.product-header .section-text { margin: 0 auto; }

.network-container {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 32px;
    align-items: start;
}

.network-visual {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    height: 480px;
    position: relative;
    overflow: hidden;
}

.network-visual canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.network-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.info-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
}

.info-card h4 {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.info-card .value {
    font-size: 24px;
    font-weight: 600;
}

.info-card .value.alert { color: var(--alert); }

.info-card .detail {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

.spec-list { list-style: none; }
.spec-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}
.spec-list li:last-child { border-bottom: none; }
.spec-list li span:last-child { color: var(--text-muted); }

.legend {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
}
.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.legend-dot.sensor { background: var(--text); }
.legend-dot.gateway { background: var(--text); border: 2px solid var(--text); background: var(--bg); }
.legend-dot.alert { background: var(--alert); }

.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 48px; }
.step { text-align: center; }
.step-number { width: 40px; height: 40px; background: var(--bg-alt); border: 1px solid var(--border); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; font-weight: 600; font-size: 15px; }
.step h3 { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.step p { font-size: 13px; color: var(--text-muted); }

.features { background: var(--bg-alt); }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.feature-card { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 24px; }
.feature-icon { width: 28px; height: 28px; margin-bottom: 14px; stroke: var(--text); }
.feature-card h3 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.feature-card p { font-size: 13px; color: var(--text-muted); }

.australian { border-top: 1px solid var(--border); }
.australian-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.australian-points { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.australian-point { background: var(--bg-alt); border-radius: 8px; padding: 20px; }
.australian-point span:first-child { display: block; font-size: 12px; color: var(--text-muted); margin-bottom: 2px; }
.australian-point span:last-child { font-size: 15px; font-weight: 600; }

.detection { border-top: 1px solid var(--border); }
.detection-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.detection-content .section-text { margin-bottom: 24px; }
.detection-source { font-size: 11px; color: var(--text-muted); }
.detection-source a { color: var(--text-muted); text-decoration: none; }
.detection-source a:hover { color: var(--text); }
.detection-timeline {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 48px 32px 72px;
    max-width: 500px;
}
.timeline-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
}
.timeline-icon {
    width: 32px;
    height: 32px;
    stroke: var(--text);
    flex-shrink: 0;
}
.timeline-icon.fire { stroke: var(--alert); }
.timeline-icon.house { transition: stroke 0.3s; }
.timeline-icon.house.active { stroke: var(--alert); }
.timeline-track {
    flex: 1;
    position: relative;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
}
.timeline-progress {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: var(--alert);
    border-radius: 2px;
    width: 0;
}
.timeline-marker {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}
.timeline-marker-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--border);
    margin: 0 auto 8px;
    transition: border-color 0.3s, background 0.3s;
}
.timeline-marker.active .timeline-marker-dot {
    border-color: var(--alert);
    background: var(--alert);
}
.timeline-marker.active .timeline-marker-time {
    color: var(--alert);
}
.timeline-marker-label {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 11px;
    color: var(--text-muted);
}
.timeline-marker-time {
    font-weight: 600;
    font-size: 13px;
    color: var(--text);
    display: block;
    margin-bottom: 2px;
    transition: color 0.3s;
}
.timeline-marker.highlight .timeline-marker-time { color: var(--alert); }
.timeline-marker.highlight .timeline-marker-label { font-weight: 500; }
@media (max-width: 600px) {
    .detection-timeline { padding: 32px 20px 64px; max-width: 100%; }
    .timeline-icon { width: 24px; height: 24px; }
    .timeline-marker-label { font-size: 10px; }
    .timeline-marker-time { font-size: 11px; }
}

.economics { background: var(--bg-alt); border-top: 1px solid var(--border); }
.economics-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.economics-title { font-size: 24px; font-weight: 600; margin: 8px 0 16px; }
.economics-text { color: var(--text-muted); margin-bottom: 24px; font-size: 15px; }
.economics-table { width: 100%; border-collapse: collapse; background: var(--bg); border-radius: 8px; overflow: hidden; border: 1px solid var(--border); }
.economics-table th, .economics-table td { padding: 16px 20px; text-align: left; font-size: 14px; }
.economics-table th { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); background: var(--bg); border-bottom: 1px solid var(--border); }
.economics-table td { border-bottom: 1px solid var(--border); }
.economics-table tr:last-child td { border-bottom: none; }
.economics-table .highlight { color: var(--alert); font-weight: 600; }
.economics-table .method { font-weight: 500; }
.economics-list { list-style: none; padding: 0; margin: 0; }
.economics-list li { padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 14px; color: var(--text-muted); }
.economics-list li:last-child { border-bottom: none; }
.economics-list strong { color: var(--text); }

.impact { background: var(--text); color: white; padding: 80px 0; text-align: center; }
.impact .section-label { color: rgba(255,255,255,0.6); }
.impact .section-title { color: white; }
.impact .section-text { color: rgba(255,255,255,0.8); margin: 0 auto 48px; }
.impact-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; max-width: 1000px; margin: 0 auto; }
.impact-number { display: block; font-size: 48px; font-weight: 600; color: var(--alert); margin-bottom: 8px; }
.impact-label { font-size: 14px; color: rgba(255,255,255,0.7); line-height: 1.4; }
.impact-label small { display: block; font-size: 11px; color: rgba(255,255,255,0.4); margin-top: 4px; }
.impact-source { font-size: 12px; color: rgba(255,255,255,0.4); margin-top: 48px; }

.cta { background: var(--text); color: var(--bg); text-align: center; }
.cta .section-label { color: rgba(255,255,255,0.5); }
.cta .section-title { color: var(--bg); }
.cta .section-text { color: rgba(255,255,255,0.7); margin: 0 auto 24px; }
.cta .btn-primary { background: var(--bg); color: var(--text); }

footer { padding: 40px 0; border-top: 1px solid var(--border); }
.footer-main { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
footer img { height: 24px; opacity: 0.4; }
.footer-text { font-size: 13px; color: var(--text-muted); }
.acknowledgement { padding-top: 24px; border-top: 1px solid var(--border); text-align: center; }
.acknowledgement p { font-size: 12px; color: var(--text-muted); line-height: 1.7; max-width: 700px; margin: 0 auto 16px; }
.acknowledgement svg { display: block; margin: 0 auto; }
.acknowledgement .pay-the-rent { margin-top: 20px; margin-bottom: 0; }
.pay-the-rent a { color: var(--text-muted); text-decoration: underline; }
.pay-the-rent a:hover { color: var(--text); }

@media (max-width: 900px) {
    .network-container { grid-template-columns: 1fr; }
    .network-visual { height: 360px; }
    .network-info { flex-direction: row; flex-wrap: wrap; }
    .network-info .info-card { flex: 1; min-width: 140px; }
    .australian-grid, .detection-grid, .economics-grid { grid-template-columns: 1fr; gap: 40px; }
    .stats-grid, .steps-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: 1fr; }
    .nav-links { gap: 20px; }
}
@media (max-width: 768px) {
    nav { display: none; }
    .hero { padding-top: 80px; }
    .impact-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
    .impact-number { font-size: 40px; }
}
@media (max-width: 600px) {
    .stats-grid, .australian-points { grid-template-columns: 1fr; }
    .hero h1 { font-size: 28px; }
    .footer-main { flex-direction: column; gap: 16px; }
    .network-info { flex-direction: column; }
    .impact-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .impact-stat:last-child { grid-column: 1 / -1; }
    .impact-number { font-size: 36px; }
}
@media (max-width: 420px) {
    .impact-grid { grid-template-columns: 1fr; }
    .impact-stat:last-child { grid-column: auto; }
}
