@import url("fonts.css");

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

:root {
    --page-max: 1150px;
    --pad-x: 20px;

    --text: #111;
    --muted: rgb(51, 51, 51);

    --wait-bg: #333333;
    --wait-text: #DADADA;
    --wait-input-bg: #2b2b2b;
}

body {
    font-family: "Aileron", system-ui, sans-serif;
    background: #fff;
    color: var(--text);
    line-height: 1.5;
}

/* =====================
   HERO (fills viewport)
===================== */
.hero {
    min-height: 100vh;      /* fills first screen */
    display: grid;
    place-items: center;    /* center hero-inner */
    padding: 32px var(--pad-x);
}

.hero-inner {
    width: 100%;
    max-width: var(--page-max);
    position: relative;
}

/* Top bar logo (big, offset, does not affect centering) */
.top-bar {
    position: relative;
    top: 0;
    left: 0;
}

.logo {
    width: auto;
    height: 120px;                 /* fairly big */
    transform: translate(100px, 30px); /* offset slightly up-left */
}

/* Main hero content centered */
.hero-content {
    /* ensures content is vertically centered even with absolute header */
    min-height: calc(100vh - 500px);
    display: grid;
    justify-items: center;
    align-content: center;
}

/* Under construction SVG centered; defines “content width” */
.svg-area {
    width: 100%;
    display: grid;
    justify-items: center;
    margin-top: -100px;
}

.center-svg {
    width: min(1150px, 100%);
    height: auto;
    display: block;
    pointer-events: none;
}

/* Text matches svg width + aligns right */
.text-area {
    width: min(1000px, 100%);
    text-align: left;
    margin-top: 80px;
    font-weight: 600;
    color: var(--muted);
}

.heading {
    font-size: 20px;
    margin-left: 30px;
}

.subheading {
    font-size: 20px;
    color: var(--muted);
    margin-left: 35px;
}

/* Small screens: optional readability tweak */
@media (max-width: 520px) {
    .logo {
        height: 72px;
        transform: translate(0, -10px);
    }
    .text-area {
        text-align: left;
    }
}

/* =====================
   WAITLIST (full width)
===================== */
.waitlist-section {
    width: 100%;
    background: var(--wait-bg);
    color: var(--wait-text);
    padding: 46px var(--pad-x) 60px;
}

.waitlist-inner {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

/* =====================
   Waitlist Title
===================== */
.waitlist-title {
    font-size: clamp(2.5rem, 5vw, 3rem);
    text-transform: uppercase;
    font-weight: 900;
    font-style: normal;
    margin-bottom: 5px;
    color: #ffffff;
}

.waitlist-note {
    font-size: 1.1rem;
    font-weight: 700;
    color: rgba(245, 245, 245, 0.75);
}

/* =====================
   Layout
===================== */
.signup-row {
    display: flex;
    justify-content: center;
    margin: 1.5rem 0;
}

/* =====================
   Unified box
===================== */
.signup-box {
    display: flex;
    width: min(800px, 100%);
    border: 2px solid rgba(255, 255, 255);
    background: var(--wait-bg);
    overflow: hidden; /* keeps square edges */
}

/* =====================
   Input
===================== */
.email-input {
    flex: 1;
    padding: 14px 16px;
    font-size: 1rem;
    border: none;
    background: transparent;
    color: var(--wait-text);
}

.email-input::placeholder {
    color: rgba(245, 245, 245, 0.55);
}

.email-input:focus {
    outline: none;
}

/* =====================
   Button (merged border)
===================== */
.btn {
    padding: 10px 30px;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    background: rgba(255, 255, 255);
    color: var(--wait-bg);
    cursor: pointer;
    border-left: 2px solid rgba(255, 255, 255);
    transition: background 0.15s ease, color 0.15s ease;
}

/* subtle hover */
.btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255);
}

/* clear click feedback */
.btn:active,
.btn.is-active {
    background: #111;
    color: #fff;
}

/* keyboard accessibility */
.btn:focus-visible {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
}

/* =====================
   Optional: focus whole box
===================== */
.signup-box:focus-within {
    border-color: rgba(255, 255, 255, 0.65);
}

/* =====================
   Output + Footer
===================== */
.output {
    margin-top: 1rem;
    font-size: 0.75rem;
    color: rgba(245, 245, 245, 0.7);
    white-space: pre-wrap;
}

.socials {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-top: 40px;
}

.socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #bbb; /* used by currentColor */
    text-decoration: none;
}

.socials svg {
    width: 40px;
    height: 40px;
    display: block;
    fill: currentColor; /* key */
}


.footer-logo {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
}

.logo--light {
    width: 60px;
    filter: brightness(0) invert(1);
    opacity: 0.9; /* optional for light gray */
}

/* =====================
   Separator
===================== */
.waitlist-inner::after {
    content: "";
    display: block;
    height: 2px;
    width: 70vw;
    margin: 20px calc(50% - 35vw) 0;
    background: #f5f5f5;
}
