/* Import fonts */
@font-face {
    font-family: "SF-Pro-Display";
    src: url("https://admrl.co/assets/fonts/SFProDisplay-Regular.woff2")
        format("woff2");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "SF-Pro-Display";
    src: url("https://admrl.co/assets/fonts/SFProDisplay-Medium.woff2")
        format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "SF-Pro-Display";
    src: url("https://admrl.co/assets/fonts/SFProDisplay-Semibold.woff2")
        format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "SF-Pro-Display";
    src: url("https://admrl.co/assets/fonts/SFProDisplay-Bold.woff2")
        format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* CSS Variables */
:root {
    --color-blue: #2156e9;
    --color-darkgray: #242424;
    --color-background: #000;
    --color-surface: #0a0b14;
    --color-border: #2a2a2a;
    --font-family:
        "SF-Pro-Display", -apple-system, BlinkMacSystemFont, "Segoe UI",
        system-ui, sans-serif;
    --transition-speed: 0.3s;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--color-background);
    color: white;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.hidden {
    display: none !important;
}

/* Password Modal */
.password-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1rem;
}

.password-content {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 24px;
    padding: 3rem;
    max-width: 520px;
    width: 100%;
    text-align: center;
    animation: slideUp 0.4s ease-out;
}

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

.logo-container {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
}

.logo-container img {
    height: 32px;
    width: auto;
}

.hero-image {
    margin: 2rem 0;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.preview-image {
    width: 100%;
    height: auto;
    display: block;
}

.password-content h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

.security-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(33, 86, 233, 0.1);
    border: 1px solid rgba(33, 86, 233, 0.3);
    border-radius: 8px;
    color: var(--color-blue);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.security-notice svg {
    flex-shrink: 0;
}

.contact-info {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-info strong {
    color: white;
    font-weight: 600;
}

.contact-info a {
    color: var(--color-blue);
    text-decoration: none;
    transition: color var(--transition-speed);
}

.contact-info a:hover {
    color: #4a7cff;
}

#password-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.input-wrapper {
    position: relative;
}

#password-input {
    width: 100%;
    height: 56px;
    padding: 0 1.5rem;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-family: var(--font-family);
    transition: all var(--transition-speed);
}

#password-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

#password-input:focus {
    outline: none;
    border-color: var(--color-blue);
    background: rgba(255, 255, 255, 0.1);
}

.password-strength {
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff5f57, #ffbd2e, #28ca41);
    opacity: 0;
    transition: opacity var(--transition-speed);
    border-radius: 0 0 12px 12px;
}

#password-input:focus + .password-strength {
    opacity: 1;
}

#password-form button {
    height: 56px;
    background: var(--color-blue);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

#password-form button:hover:not(:disabled) {
    background: #1e4fd1;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(33, 86, 233, 0.4);
}

#password-form button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.error-message {
    color: #ff5f57;
    font-size: 0.875rem;
    min-height: 20px;
    text-align: center;
}

.security-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

.security-features .feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

.security-features .feature svg {
    stroke-width: 1.5;
    opacity: 0.8;
}

/* Header */
.proposal-header {
    position: sticky;
    top: 0;
    background: rgba(10, 11, 20, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    z-index: 1000;
    padding: 1.5rem 0;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.logo img {
    height: 28px;
    width: auto;
}

.header-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    height: 48px;
    padding: 0 1.5rem;
    border-radius: 100px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-speed);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.btn-primary {
    background: var(--color-blue);
    color: white;
}

.btn-primary:hover {
    background: #1e4fd1;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(33, 86, 233, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-primary svg,
.btn-secondary svg {
    flex-shrink: 0;
}

/* Info Banner */
.info-banner {
    background: linear-gradient(
        135deg,
        rgba(33, 86, 233, 0.1),
        rgba(10, 11, 20, 0.8)
    );
    border-bottom: 1px solid var(--color-border);
    padding: 2rem 0;
}

.info-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-item .label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.info-item .value {
    color: white;
    font-size: 1.125rem;
    font-weight: 600;
}

/* Calculator Banner */
.calculator-banner {
    background: linear-gradient(
        135deg,
        rgba(34, 197, 94, 0.1),
        rgba(10, 11, 20, 0.8)
    );
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 24px;
    margin: 2rem auto;
    max-width: 1200px;
    padding: 2rem;
}

.calculator-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.calculator-icon {
    font-size: 3rem;
    flex-shrink: 0;
}

.calculator-text {
    flex: 1;
}

.calculator-text h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.calculator-text p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.btn-calculator {
    padding: 1rem 2rem;
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: white;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-speed);
    white-space: nowrap;
}

.btn-calculator:hover {
    background: rgba(34, 197, 94, 0.3);
    border-color: rgba(34, 197, 94, 0.4);
    transform: translateY(-1px);
}

/* Calculator Modal */
.calculator-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 2rem;
}

.calculator-modal-content {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 24px;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease-out;
}

/* Custom scrollbar for modal */
.calculator-modal-content::-webkit-scrollbar {
    width: 8px;
}

.calculator-modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.calculator-modal-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.calculator-modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.calculator-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    border-bottom: 1px solid var(--color-border);
}

.calculator-header h2 {
    font-size: 1.75rem;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all var(--transition-speed);
    line-height: 1;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.calculator-body {
    padding: 2rem;
}

.calculator-section {
    margin-bottom: 2rem;
}

.calculator-section h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: white;
    font-weight: 600;
}

.input-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.4;
}

.input-group input {
    height: 48px;
    padding: 0 1rem;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-family: var(--font-family);
    transition: all var(--transition-speed);
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.input-group input:focus {
    outline: none;
    border-color: var(--color-blue);
    background: rgba(255, 255, 255, 0.1);
}

/* Chrome, Safari, Edge, Opera - remove spinner */
.input-group input[type="number"]::-webkit-outer-spin-button,
.input-group input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox - remove spinner */
.input-group input[type="number"] {
    -moz-appearance: textfield;
}

.readonly-value {
    height: 48px;
    padding: 0 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-family: var(--font-family);
    font-weight: 500;
    display: flex;
    align-items: center;
}

.calculator-results {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

.result-card {
    background: linear-gradient(
        135deg,
        rgba(34, 197, 94, 0.1),
        rgba(10, 11, 20, 0.8)
    );
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.result-card h4 {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.result-value {
    font-size: 3rem;
    font-weight: 600;
    color: #22c55e;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.result-subtitle {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

.result-breakdown {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    transition: all var(--transition-speed);
}

.result-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(4px);
}

.result-item span:first-child {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
}

.result-item span:last-child {
    font-size: 1.25rem;
    font-weight: 600;
    color: #22c55e;
}

.result-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.metric-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all var(--transition-speed);
}

.metric-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
}

.metric-value {
    font-size: 2rem;
    font-weight: 600;
    color: var(--color-blue);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.metric-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

/* Main Content */
.proposal-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.proposal-article {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 24px;
    padding: 3rem;
}

.proposal-article h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    line-height: 1.2;
}

.proposal-article h2 {
    font-size: 2rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    color: var(--color-blue);
    line-height: 1.3;
}

.proposal-article h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

.proposal-article h4 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.proposal-article p {
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.85);
}

.proposal-article ul,
.proposal-article ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.proposal-article li {
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.85);
}

.proposal-article strong {
    color: white;
    font-weight: 600;
}

.proposal-article a {
    color: var(--color-blue);
    text-decoration: none;
    transition: color var(--transition-speed);
}

.proposal-article a:hover {
    color: #4a7cff;
    text-decoration: underline;
}

.proposal-article hr {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 3rem 0;
}

.proposal-article img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    margin: 2rem 0;
    border: 1px solid var(--color-border);
    display: block;
}

.proposal-article blockquote {
    border-left: 4px solid var(--color-blue);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

.proposal-article code {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: "Monaco", "Courier New", monospace;
    font-size: 0.9em;
}

.proposal-article pre {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.proposal-article pre code {
    background: none;
    padding: 0;
}

.proposal-article table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.proposal-article th,
.proposal-article td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.proposal-article th {
    font-weight: 600;
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

/* Footer */
.proposal-footer {
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    margin-top: 4rem;
    padding: 3rem 0 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin: 0;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color var(--transition-speed);
}

.footer-section a:hover {
    color: white;
}

.footer-section img {
    margin-bottom: 1rem;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 2rem 0;
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

.proposal-id {
    font-family: "Monaco", "Courier New", monospace;
}

/* Animations */
@keyframes shake {
    0%,
    100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-10px);
    }
    75% {
        transform: translateX(10px);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.spinner {
    animation: spin 1s linear infinite;
}

/* Print Styles */
@media print {
    body {
        background: white;
        color: black;
    }

    .proposal-header,
    .calculator-banner,
    .btn-primary,
    .btn-secondary,
    .info-banner {
        display: none !important;
    }

    .proposal-article {
        border: none;
        padding: 0;
        background: white;
    }

    .proposal-article h1,
    .proposal-article h2,
    .proposal-article h3,
    .proposal-article p,
    .proposal-article li,
    .proposal-article strong {
        color: black !important;
    }

    .proposal-article a {
        color: #0066cc;
        text-decoration: underline;
    }

    .proposal-footer {
        border-top: 1px solid #ccc;
        background: white;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .proposal-article h1 {
        font-size: 2.5rem;
    }

    .proposal-article h2 {
        font-size: 1.75rem;
    }

    .result-value {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .password-content {
        padding: 2rem 1.5rem;
    }

    .security-features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .header-content {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .header-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .info-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .calculator-banner {
        padding: 1.5rem;
    }

    .calculator-content {
        flex-direction: column;
        text-align: center;
    }

    .calculator-text h3 {
        font-size: 1.25rem;
    }

    .calculator-modal {
        padding: 1rem;
    }

    .calculator-header {
        padding: 1.5rem;
    }

    .calculator-body {
        padding: 1.5rem;
    }

    .input-grid {
        grid-template-columns: 1fr;
    }

    .proposal-main {
        padding: 2rem 1rem;
    }

    .proposal-article {
        padding: 2rem 1.5rem;
    }

    .proposal-article h1 {
        font-size: 2rem;
    }

    .proposal-article h2 {
        font-size: 1.5rem;
    }

    .proposal-article h3 {
        font-size: 1.25rem;
    }

    .result-value {
        font-size: 2rem;
    }

    .metric-value {
        font-size: 1.5rem;
    }

    .result-metrics {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .password-content {
        padding: 1.5rem 1rem;
    }

    .password-content h2 {
        font-size: 1.5rem;
    }

    .calculator-icon {
        font-size: 2rem;
    }

    .proposal-article {
        padding: 1.5rem 1rem;
    }

    .proposal-article h1 {
        font-size: 1.75rem;
    }

    .result-item {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-blue {
    color: var(--color-blue);
}

.mt-2 {
    margin-top: 2rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid var(--color-blue);
    outline-offset: 2px;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection color */
::selection {
    background: var(--color-blue);
    color: white;
}

::-moz-selection {
    background: var(--color-blue);
    color: white;
}
