/* ---------- Colours ---------- */
:root {
    --black: #0B0B0B;
    --white: #FFFFFF;
    --muted: rgba(255, 255, 255, 0.72);
    --line: rgba(255, 255, 255, 0.16);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--black);
    color: var(--white);
    font-family: 'DM Sans', sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

/* clear outline when using the keyboard (Tab key) */
a:focus-visible {
    outline: 2px solid #8a8a8a;
    outline-offset: 3px;
}

/* ---------- Header ---------- */
.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 24px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.logo {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 20px;
    letter-spacing: 1px;
}

/* white pill with links */
.nav {
    display: flex;
    align-items: center;
    gap: 28px;
    background: var(--white);
    padding: 8px 8px 8px 24px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(255, 255, 255, 0.08);
}

.nav-link {
    position: relative;
    color: var(--black);
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* small line under the link: grows on hover, stays on the page you are on */
.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -5px;
    height: 2px;
    background: var(--black);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.nav-link:hover::after,
.nav-link.is-active::after {
    transform: scaleX(1);
}

.nav-btn {
    background: var(--black);
    color: var(--white);
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    padding: 14px 20px;
    border-radius: 12px;
    transition: transform 0.2s;
}

.nav-btn span,
.float-card span {
    display: inline-block;
    transition: transform 0.25s;
}

.nav-btn:hover {
    transform: scale(1.05);
}

.nav-btn:hover span,
.float-card:hover span {
    transform: translate(2px, -2px);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* soft white glow behind the text */
.hero::before {
    content: "";
    position: absolute;
    width: 760px;
    height: 760px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.07), transparent 65%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* the ripple canvas (drawn by the script in home.html) fades in once ready */
#ripples {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    opacity: 0;
    transition: opacity 2.4s ease;
}

#ripples.is-ready {
    opacity: 1;
}

/* ---------- Hero text ---------- */
.hero-content {
    text-shadow: 0 0 18px var(--black), 0 0 40px var(--black);
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px;
}

/* soft dark patch behind the text so it stays easy to read over the dots */
.hero-content::before {
    content: "";
    position: absolute;
    top: -40px;
    bottom: -40px;
    left: -140px;
    right: -140px;
    z-index: -1;
    background: radial-gradient(ellipse at center, rgba(11, 11, 11, 0.82) 0%, rgba(11, 11, 11, 0.55) 45%, transparent 72%);
    pointer-events: none;
}

/* each line slides up one after the other when the page opens */
.hero-content > * {
    opacity: 0;
    animation: rise 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.hero-content > *:nth-child(1) { animation-delay: 0.1s; }
.hero-content > *:nth-child(2) { animation-delay: 0.25s; }
.hero-content > *:nth-child(3) { animation-delay: 0.4s; }
.hero-content > *:nth-child(4) { animation-delay: 0.55s; }
.hero-content > *:nth-child(5) { animation-delay: 0.7s; }

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

.badge {
    display: inline-block;
    border: 1px solid var(--white);
    color: var(--white);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 3px;
    padding: 8px 18px;
    border-radius: 50px;
    margin-bottom: 28px;
}

/* small pulsing dot, like a "live" light */
.badge::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--white);
    margin-right: 10px;
    vertical-align: middle;
    animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.55); }
    70%      { box-shadow: 0 0 0 9px rgba(255, 255, 255, 0); }
}

.hero-content h1 {
    font-family: 'Syne', sans-serif;
    font-weight: 200;
    font-size: clamp(30px, 5vw, 90px);
    line-height: 1.05;
    letter-spacing: 2px;
}

.logo-center {
    margin-top: 28px;
    font-size: 24px;
}

.description {
    max-width: 560px;
    margin: 24px auto 0;
    font-size: 17px;
    line-height: 1.7;
    color: var(--muted);
}

/* SaaS / PaaS / Automation tags */
.chips {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.chips li {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50px;
    padding: 8px 16px;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
}

/* ---------- Floating card (bottom right) ---------- */
.float-card {
    position: absolute;
    right: 40px;
    bottom: 40px;
    z-index: 3;
    background: var(--white);
    color: var(--black);
    font-family: 'Syne', sans-serif;
    font-weight: 600;
    font-size: 18px;
    padding: 22px 30px;
    border-radius: 14px;
    transition: transform 0.25s, box-shadow 0.25s;
}

.float-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 40px rgba(255, 255, 255, 0.18);
}

/* ---------- About page ---------- */
.page {
    position: relative;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 140px 24px 80px;
    overflow: hidden;
}

.page::before {
    content: "";
    position: absolute;
    width: 900px;
    height: 900px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 65%);
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.page-inner {
    position: relative;
    max-width: 980px;
    width: 100%;
    text-align: center;
}

.page h1 {
    font-family: 'Syne', sans-serif;
    font-weight: 400;
    font-size: clamp(30px, 5vw, 64px);
    line-height: 1.1;
}

.lead {
    max-width: 620px;
    margin: 24px auto 0;
    font-size: 18px;
    line-height: 1.7;
    color: var(--muted);
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 48px;
    text-align: left;
}

.card {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 18px;
    padding: 26px;
    transition: border-color 0.3s, transform 0.3s;
}

.card:hover {
    border-color: rgba(255, 255, 255, 0.55);
    transform: translateY(-4px);
}

.card-no {
    font-family: 'Syne', sans-serif;
    font-size: 13px;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.5);
}

.card h2 {
    font-family: 'Syne', sans-serif;
    font-weight: 600;
    font-size: 26px;
    margin: 14px 0 10px;
}

.card p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--muted);
}

.back-link {
    display: inline-block;
    margin-top: 40px;
    font-family: 'Syne', sans-serif;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--muted);
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--white);
}

/* ---------- Mobile ---------- */
@media (max-width: 700px) {
    .header {
        padding: 18px 20px;
    }

    .nav-link {
        display: none;
    }

    .nav {
        padding: 6px;
    }

    .description {
        font-size: 15px;
    }

    .float-card {
        right: 20px;
        bottom: 20px;
        font-size: 15px;
        padding: 16px 20px;
    }
}

/* people who turn off animations in their device settings */
@media (prefers-reduced-motion: reduce) {
    .hero-content > * {
        animation: none;
        opacity: 1;
    }

    .badge::before {
        animation: none;
    }

    #ripples {
        transition: none;
    }
}
