/* ==================================================
   Homepage About / Statement section — full rebuild.
   Big centered brand statement (matching the "Great design is
   invisible" reference) followed by the 4 feature items stacked in a
   single vertical column beneath it. Same isolated-rebuild pattern as
   the other home-* sections: hard reset every descendant first.
   ================================================== */
:root {
    --ha-font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
    --ha-orange: #ff5e14;
    --ha-ink: #14161a;
    --ha-muted: #9a9ea8;
    --ha-line: rgba(255, 255, 255, 0.1);
}

.amzy-statement,
.amzy-statement * {
    all: revert;
    box-sizing: border-box;
}

.amzy-statement {
    display: block;
    background: linear-gradient(135deg, #16181d 0%, #23262c 100%);
    padding: 110px 0;
    font-family: var(--ha-font);
}

.amzy-statement .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Big centered statement --- */
.amzy-statement-intro {
    text-align: center;
    margin-bottom: 88px;
}

.amzy-statement-text {
    display: block;
    font-family: var(--ha-font);
    font-weight: 700;
    font-size: clamp(30px, 4.4vw, 52px);
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: #fff;
    margin: 0 0 22px;
}

.amzy-statement-brand {
    display: block;
    font-family: var(--ha-font);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--ha-orange);
}

/* --- Feature timeline: a dotted horizontal line above four columns,
   matching the reference's changelog-style layout. --- */
.amzy-statement-track {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-bottom: 36px;
}

.amzy-statement-track::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 4px;
    height: 1px;
    background: var(--ha-line);
}

.amzy-statement-dot {
    position: relative;
    z-index: 1;
    justify-self: start;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.28);
    animation: amzyDotActive 9.6s ease infinite;
}

.amzy-statement-dot.is-active {
    background: var(--ha-orange);
    border-color: var(--ha-orange);
    box-shadow: 0 0 0 5px rgba(255, 94, 20, 0.15);
}

/* Cycle which dot is "active" in a loop -- each dot's animation starts
   a quarter-cycle later than the one before it via the negative delay. */
.amzy-statement-track .amzy-statement-dot:nth-child(1) { animation-delay: 0s; }
.amzy-statement-track .amzy-statement-dot:nth-child(2) { animation-delay: -2.4s; }
.amzy-statement-track .amzy-statement-dot:nth-child(3) { animation-delay: -4.8s; }
.amzy-statement-track .amzy-statement-dot:nth-child(4) { animation-delay: -7.2s; }

@keyframes amzyDotActive {
    0%, 20% {
        background: var(--ha-orange);
        border-color: var(--ha-orange);
        box-shadow: 0 0 0 5px rgba(255, 94, 20, 0.15);
    }
    30%, 100% {
        background: transparent;
        border-color: rgba(255, 255, 255, 0.28);
        box-shadow: 0 0 0 5px rgba(255, 94, 20, 0);
    }
}

.amzy-statement-cols {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.amzy-statement-col h3 {
    font-family: var(--ha-font);
    font-weight: 600;
    font-size: 16px;
    color: #fff;
    margin: 0 0 8px;
    animation: amzyTitleActive 9.6s ease infinite;
}

/* Same loop, kept in sync with the dots above via matching delays. */
.amzy-statement-cols .amzy-statement-col:nth-child(1) h3 { animation-delay: 0s; }
.amzy-statement-cols .amzy-statement-col:nth-child(2) h3 { animation-delay: -2.4s; }
.amzy-statement-cols .amzy-statement-col:nth-child(3) h3 { animation-delay: -4.8s; }
.amzy-statement-cols .amzy-statement-col:nth-child(4) h3 { animation-delay: -7.2s; }

@keyframes amzyTitleActive {
    0%, 20% { color: var(--ha-orange); }
    30%, 100% { color: #fff; }
}

@media (prefers-reduced-motion: reduce) {
    .amzy-statement-dot,
    .amzy-statement-col h3 {
        animation: none;
    }
}

.amzy-statement-col p {
    font-family: var(--ha-font);
    font-size: 13px;
    line-height: 1.55;
    color: var(--ha-muted);
    margin: 0 0 16px;
}

.amzy-statement-index {
    display: block;
    font-family: var(--ha-font);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.32);
}

/* Explicit Font Awesome declaration -- the all:revert boundary above
   strips the icon font/content the "fas" class would otherwise supply
   from a separate stylesheet, so it's restated here directly. */
.amzy-statement i {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-style: normal;
}

/* --- Tablet --- */
@media (max-width: 992px) {
    .amzy-statement { padding: 84px 0; }
    .amzy-statement-intro { margin-bottom: 56px; }
    .amzy-statement-cols { gap: 18px; }
    .amzy-statement-col h3 { font-size: 14.5px; }
    .amzy-statement-col p { font-size: 12px; }
}

/* --- Mobile: statement + brand line only, feature list hidden so the
   section stays short with no internal vertical scroll. --- */
@media (max-width: 768px) {
    .amzy-statement { padding: 64px 0; }
    .amzy-statement-intro { margin-bottom: 0; }
    .amzy-statement-text { font-size: 26px; margin-bottom: 14px; }
    .amzy-statement-brand { font-size: 11px; letter-spacing: 2.5px; }
    .amzy-statement-features { display: none; }
}
