@import url("https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700&display=swap");

:root {
    --bg-1: #f4f7fb;
    --bg-2: #eef3ff;
    --accent: #0f4c81;
    --accent-strong: #0b2f52;
    --accent-soft: #e3f0ff;
    --text: #1a1f2c;
    --muted: #5c6b85;
    --card: #ffffff;
    --shadow: 0 20px 45px rgba(16, 38, 73, 0.12);
    --radius: 18px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Sora", "Segoe UI", sans-serif;
    color: var(--text);
    background: radial-gradient(1200px 600px at 20% -10%, #d7e9ff 0%, transparent 60%),
        radial-gradient(900px 500px at 85% 10%, #ffe9c7 0%, transparent 55%),
        linear-gradient(180deg, var(--bg-2), var(--bg-1));
    padding: 32px 18px 48px;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'><g fill='none' stroke='%23dbe6f5' stroke-width='1'><circle cx='30' cy='30' r='14'/><circle cx='110' cy='80' r='18'/><circle cx='70' cy='110' r='10'/></g></svg>");
    opacity: 0.35;
    pointer-events: none;
}

.signature-page {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 28px;
    position: relative;
    z-index: 1;
}

.signature-header {
    background: var(--card);
    border-radius: var(--radius);
    padding: 28px 30px;
    box-shadow: var(--shadow);
    display: grid;
    gap: 10px;
    animation: slideUp 0.6s ease-out;
}

.brand {
    font-size: 0.85rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 600;
}

.signature-header h1 {
    margin: 0;
    font-size: clamp(1.6rem, 2.3vw, 2.4rem);
    color: var(--accent-strong);
}

.subtitle {
    margin: 0;
    font-size: 1rem;
    color: var(--muted);
}

.signature-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 26px 26px 30px;
    box-shadow: var(--shadow);
    display: grid;
    gap: 18px;
    animation: fadeIn 0.7s ease-out 0.1s both;
}

.info {
    background: linear-gradient(135deg, #f1f7ff, var(--accent-soft));
    border-radius: 14px;
    padding: 16px 18px;
    border-left: 4px solid var(--accent);
    color: #26344b;
    font-size: 0.98rem;
}

.signature-frame {
    width: 100%;
    border: 0;
    border-radius: 14px;
    background: #f9fbff;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding: 16px;
}

.document-item {
    background: #ffffff;
    border: 0;
    border-radius: 12px;
    padding: 8px;
}

.document-title {
    margin: 0 0 10px;
    font-weight: 600;
    color: #26344b;
}

.document-frame {
    width: 100%;
    height: min(78vh, 760px);
    border: 0;
    border-radius: 12px;
    background: #ffffff;
    display: block;
}

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

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

@media (max-width: 900px) {
    body {
        padding: 24px 14px 36px;
    }

    .signature-header,
    .signature-card {
        padding: 22px 20px;
    }

    .document-frame {
        height: min(74vh, 700px);
    }
}

@media (max-width: 600px) {
    body {
        padding: 10px 6px 20px;
    }

    .signature-page {
        max-width: 100%;
        gap: 12px;
    }

    .signature-header,
    .signature-card {
        border-radius: 10px;
        padding: 14px 10px;
    }

    .signature-frame {
        border: 0;
        border-radius: 8px;
        padding: 6px;
        gap: 10px;
    }

    .document-item {
        border: 0;
        border-radius: 8px;
        padding: 4px;
    }

    .brand {
        letter-spacing: 0.2em;
    }

    .signature-header h1 {
        font-size: 1.5rem;
    }

    .subtitle {
        font-size: 0.95rem;
    }

    .info {
        font-size: 0.92rem;
    }

    .document-frame {
        width: 100%;
        height: min(72vh, 620px);
        border-radius: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}
