/* Ausmarthome — modern under-construction landing page */

:root {
    --bg: #f4f8fb;
    --surface: #ffffff;
    --ink: #0d1b2e;
    --muted: #5b6b7e;
    --sky: #38aef3;
    --teal: #16b8a6;
    --line: rgba(13, 27, 46, 0.12);
    --grad: linear-gradient(92deg, var(--sky), var(--teal));
    --display: "Sora", system-ui, -apple-system, sans-serif;
    --body: "Manrope", system-ui, -apple-system, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    font-family: var(--body);
    color: var(--ink);
    background:
        radial-gradient(900px 560px at 88% -8%, rgba(56, 174, 243, 0.12), transparent 60%),
        radial-gradient(760px 520px at 4% 112%, rgba(22, 184, 166, 0.12), transparent 58%),
        var(--bg);
}

::selection {
    background: var(--teal);
    color: #fff;
}

a {
    color: inherit;
}

/* thin gradient bar on top of the viewport */
.accent-line {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--grad);
    z-index: 20;
}

/* ---------------- header ---------------- */

.site-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: clamp(18px, 3vw, 34px) clamp(24px, 5vw, 64px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.brand:hover {
    opacity: 0.75;
}

.brand__mark {
    width: 38px;
    height: 38px;
}

.brand__name {
    font-family: var(--display);
    font-weight: 600;
    font-size: 1.06rem;
    letter-spacing: 0.01em;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid var(--line);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--muted);
    white-space: nowrap;
}

.pill__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--grad);
    animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.25; }
}

/* ---------------- hero ---------------- */

.hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: clamp(2rem, 6vh, 4rem) 1.5rem;
}

.hero__eyebrow {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--muted);
    animation: rise 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.hero__title {
    margin-top: 1.3rem;
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(2.6rem, 6.4vw, 4.9rem);
    line-height: 1.06;
    letter-spacing: -0.02em;
    animation: rise 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) both;
    animation-delay: 0.08s;
}

.grad {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero__intro {
    max-width: 40ch;
    margin-top: 1.4rem;
    font-size: clamp(1rem, 1.35vw, 1.13rem);
    line-height: 1.72;
    color: var(--muted);
    animation: rise 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) both;
    animation-delay: 0.16s;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: 2.6rem;
    padding: 0.95rem 1.7rem;
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink);
    border: 1px solid var(--line);
    box-shadow: 0 6px 18px rgba(13, 27, 46, 0.07);
    font-family: var(--body);
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.22s ease, box-shadow 0.22s ease,
                background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
    animation: rise 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) both;
    animation-delay: 0.24s;
}

.btn:hover {
    transform: translateY(-2px);
    border-color: transparent;
    background: var(--grad);
    color: #fff;
    box-shadow: 0 12px 26px rgba(22, 184, 166, 0.3);
}

.btn__arrow {
    transition: transform 0.22s ease;
}

.btn:hover .btn__arrow {
    transform: translateX(3px);
}

/* connected-home illustration */
.hero__art-wrap {
    width: min(860px, 94vw);
    margin-top: clamp(2.4rem, 5vw, 4rem);
    animation: rise 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) both;
    animation-delay: 0.32s;
}

.hero__art {
    display: block;
    width: 100%;
    height: auto;
}

.flow {
    stroke-dasharray: 2 14;
    animation: flow 4.5s linear infinite;
}

@keyframes flow {
    to { stroke-dashoffset: -48; }
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------------- footer ---------------- */

.site-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: clamp(18px, 2.6vw, 30px) clamp(24px, 5vw, 64px);
    border-top: 1px solid var(--line);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--muted);
}

/* ---------------- a11y ---------------- */

a:focus-visible,
.btn:focus-visible {
    outline: 2px solid var(--sky);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .pill__dot,
    .hero__eyebrow,
    .hero__title,
    .hero__intro,
    .btn,
    .hero__art-wrap,
    .flow {
        animation: none;
    }
    .flow {
        stroke-dasharray: none;
    }
}

@media (max-width: 640px) {
    .pill {
        display: none;
    }
}
