/* ---- Page card wrapper ------------------------------------ */
/* pw-outer is the page background on all screen sizes.        */
/* On ≥1140px it becomes the outer "mat" behind the card.     */
.pw-outer {
    min-height: 100vh;
    background:
        radial-gradient(circle at 18% 10%, rgba(20, 196, 210, 0.16) 0%, rgba(20, 196, 210, 0) 26%),
        radial-gradient(circle at 90% 12%, rgba(15, 106, 216, 0.14) 0%, rgba(15, 106, 216, 0) 24%),
        linear-gradient(180deg, #f9fdff 0%, #eef8fb 34%, #f6fbfd 100%);
}

@media (min-width: 1140px) {
    .pw-outer {
        padding: 28px 28px 60px;
        background:
            radial-gradient(ellipse at 22% 0%, rgba(20, 196, 210, 0.07) 0%, transparent 48%),
            radial-gradient(ellipse at 88% 4%, rgba(15, 106, 216, 0.055) 0%, transparent 44%),
            #e7f0f5;
    }

    /* The card – white box floating on the coloured mat */
    .pw-layout {
        max-width: 1600px;
        margin: 0 auto;
        min-height: 0;
        border-radius: 44px;
        box-shadow:
            0 12px 80px rgba(17, 62, 98, 0.18),
            0 1px 0 rgba(255, 255, 255, 0.55);
        background:
            radial-gradient(circle at 18% 10%, rgba(20, 196, 210, 0.10) 0%, rgba(20, 196, 210, 0) 26%),
            radial-gradient(circle at 90% 12%, rgba(15, 106, 216, 0.08) 0%, rgba(15, 106, 216, 0) 24%),
            #ffffff;
    }
}

/* ---- Screenshot placeholders ----------------------------- */
.screenshot-ph {
    border-radius: 20px;
    border: 2px dashed rgba(15, 106, 216, 0.22);
    background: rgba(233, 244, 250, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 380px;
    color: rgba(15, 106, 216, 0.38);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

/* ---- Tokens ----------------------------------------------- */
.pw-layout {
    --pw-ink:        #12314f;
    --pw-muted:      #5d7485;
    --pw-line:       rgba(16, 73, 117, 0.10);
    --pw-accent:     #0f6ad8;
    --pw-accent-2:   #14c4d2;
    --pw-shadow-xl:  0 36px 90px rgba(17, 62, 98, 0.14);
    --pw-shadow-lg:  0 18px 48px rgba(17, 62, 98, 0.12);
    --pw-shadow-md:  0 8px 24px rgba(17, 62, 98, 0.08);
    --pw-content:    1500px;
}

/* ---- Base layout ------------------------------------------ */
.pw-layout {
    font-family: "Manrope", "Segoe UI", Arial, sans-serif;
    color: var(--pw-ink);
    /* background is on pw-outer (small screens) or applied here via media query (card mode) */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.pw-layout * { box-sizing: border-box; }
.pw-layout a { color: inherit; }

.pw-layout > main {
    flex: 1;
}

.pw-layout h1:focus {
    outline: none;
}

.pw-container {
    width: min(100%, var(--pw-content));
    margin: 0 auto;
    padding: 0 28px;
}

/* ---- Header ----------------------------------------------- */
.pw-header {
    z-index: 100;
    padding-top: 12px;
    background: transparent;
    border-radius: 44px 44px 0 0;
}

.pw-header .pw-container {
    height: 68px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.pw-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

.pw-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.pw-nav a {
    color: var(--pw-ink);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    padding: 9px 14px;
    border-radius: 999px;
    background: white;
    border: 1px solid rgba(16, 73, 117, 0.06);
    box-shadow: 0 8px 18px rgba(17, 62, 98, 0.05);
    transition: opacity 0.15s;
}

.pw-nav a:hover { opacity: 0.82; }

.pw-header__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.pw-header__login {
    color: var(--pw-ink);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    padding: 9px 14px;
    border-radius: 999px;
    transition: background 0.15s;
}

.pw-header__login:hover { background: rgba(15, 106, 216, 0.07); }

.pw-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: -0.01em;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: opacity 0.15s, box-shadow 0.15s;
}

.pw-btn--primary {
    color: white !important;
    background: linear-gradient(90deg, var(--pw-accent-2) 0%, var(--pw-accent) 100%);
    box-shadow: 0 12px 24px rgba(15, 106, 216, 0.20);
}

.pw-btn--primary:hover {
    opacity: 0.88;
    box-shadow: 0 16px 32px rgba(15, 106, 216, 0.28);
}

.pw-btn--primary-animated {
    color: white !important;
    background: linear-gradient(90deg, var(--pw-accent-2) 0%, var(--pw-accent) 100%);
    box-shadow: 0 16px 28px rgba(15, 106, 216, 0.20);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.pw-btn--primary-animated:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 36px rgba(15, 106, 216, 0.30);
    filter: brightness(1.06);
}

.pw-btn--secondary {
    color: var(--pw-accent);
    background: linear-gradient(white, white) padding-box, linear-gradient(90deg, var(--pw-accent-2) 0%, var(--pw-accent) 100%) border-box;
    border: 2px solid transparent;
    box-shadow: none;
}

.pw-btn--secondary:hover {
    opacity: 0.88;
}

.pw-btn--secondary-animated {
    --border-angle: 0deg;
    color: var(--pw-accent);
    border: 2px solid transparent;
    background:
        linear-gradient(white, white) padding-box,
        conic-gradient(from var(--border-angle), var(--pw-accent-2), var(--pw-accent), var(--pw-accent-2)) border-box;
    box-shadow: 0 8px 20px rgba(17, 62, 98, 0.05);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.pw-btn--secondary-animated:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(17, 62, 98, 0.12);
    animation: border-spin 1.2s linear 1 none;
}

@property --border-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

@keyframes border-spin {
    to { --border-angle: 360deg; }
}

/* ---- Shared buttons & links ------------------------------- */
.button,
a.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 180px;
    height: 54px;
    padding: 0 24px;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: white;
    text-decoration: none;
    background: linear-gradient(90deg, var(--pw-accent-2) 0%, var(--pw-accent) 100%);
    box-shadow: 0 16px 28px rgba(15, 106, 216, 0.20);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 36px rgba(15, 106, 216, 0.30);
    filter: brightness(1.06);
}

.button.secondary {
    color: var(--pw-ink);
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(255, 255, 255, 0.42);
    box-shadow: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.button.secondary:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 8px 20px rgba(17, 62, 98, 0.10);
    filter: none;
}

.soft-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    padding: 14px 18px;
    border-radius: 999px;
    background: white;
    border: 1px solid rgba(16, 73, 117, 0.08);
    color: var(--pw-ink);
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(17, 62, 98, 0.06);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.soft-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(17, 62, 98, 0.11);
    border-color: rgba(16, 73, 117, 0.16);
}

.soft-link::after {
    content: "➜";
    color: var(--pw-accent);
    font-size: 16px;
    transition: transform 0.18s ease;
}

.soft-link:hover::after {
    transform: translateX(3px);
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    margin-bottom: 18px;
}

/* ---- Section layout --------------------------------------- */
.section {
    width: min(100%, var(--pw-content));
    margin: 34px auto 0;
    padding: 34px 28px;
}

.section-head {
    display: grid;
    grid-template-columns: minmax(0, 440px) 1fr;
    gap: 40px;
    align-items: end;
    margin-bottom: 26px;
}

.section-kicker {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #4f6f80;
    font-weight: 800;
    margin-bottom: 12px;
}

.section h2 {
    margin: 0;
    font-size: 46px;
    line-height: 1.02;
    letter-spacing: -0.05em;
    color: var(--pw-ink);
}

.section-head p {
    margin: 0;
    font-size: 18px;
    line-height: 1.6;
    color: var(--pw-muted);
}

/* ---- Footer ---------------------------------------------- */
.pw-footer {
    background: rgba(255, 255, 255, 0.72);
    border-top: 1px solid var(--pw-line);
    padding: 64px 0 32px;
    margin-top: 52px;
    border-radius: 0 0 44px 44px;
}

.pw-footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}

.pw-footer__brand p {
    color: var(--pw-muted);
    font-size: 14px;
    line-height: 1.6;
    margin: 16px 0 0;
}

.pw-footer__col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pw-footer__col strong {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--pw-muted);
    margin-bottom: 4px;
}

.pw-footer__col a {
    color: var(--pw-ink);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.15s;
}

.pw-footer__col a:hover { color: var(--pw-accent); }

.pw-footer__bottom {
    border-top: 1px solid var(--pw-line);
    padding-top: 24px;
    color: var(--pw-muted);
    font-size: 13px;
}

/* ---- Responsive ------------------------------------------ */
@media (max-width: 900px) {
    .pw-nav { display: none; }
    .pw-header__actions { display: none; }
    .section-head { grid-template-columns: 1fr; gap: 12px; }
    .pw-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
    .pw-container { padding: 0 16px; }
    .section { padding: 24px 16px; }
    .pw-footer__grid { grid-template-columns: 1fr; }
}

/* ---- Mobile hamburger toggle ----------------------------- */
.pw-mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    margin-left: auto;
    border: none;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 4px 14px rgba(17, 62, 98, 0.10);
    cursor: pointer;
    flex-shrink: 0;
}

.pw-mobile-toggle__bar {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: var(--pw-ink);
    transition: transform 0.22s ease, opacity 0.22s ease;
}

/* X icon when open */
.pw-header--nav-open .pw-mobile-toggle__bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.pw-header--nav-open .pw-mobile-toggle__bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.pw-header--nav-open .pw-mobile-toggle__bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 900px) {
    .pw-mobile-toggle { display: flex; }
}

/* ---- Mobile nav panel ------------------------------------ */
.pw-mobile-nav {
    padding: 16px 16px 24px;
    border-top: 1px solid rgba(16, 73, 117, 0.07);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    animation: mobileNavSlideIn 0.6s ease forwards;
}

@keyframes mobileNavSlideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.pw-mobile-nav nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 16px;
}

.pw-mobile-nav nav a {
    display: block;
    padding: 12px 16px;
    border-radius: 14px;
    color: var(--pw-ink);
    text-decoration: none;
    font-size: 17px;
    font-weight: 700;
    transition: background 0.14s;
}

.pw-mobile-nav nav a:hover,
.pw-mobile-nav nav a:active {
    background: rgba(15, 106, 216, 0.07);
}

.pw-mobile-nav__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid rgba(16, 73, 117, 0.07);
}

.pw-mobile-nav__actions .pw-header__login {
    text-align: center;
    border-radius: 14px;
    border: 1px solid rgba(16, 73, 117, 0.10);
    padding: 12px 16px;
}

.pw-mobile-nav__actions .pw-btn {
    width: 100%;
    height: 50px;
    border-radius: 14px;
    font-size: 15px;
}
