/* RAZORTRIM Community Scheme - Minimalist Design */

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

:root {
    --bg-black: #000000;
    --text-white: #ffffff;
    --text-grey: #cccccc;
    --text-light-grey: #999999;
    --border-white: #ffffff;
    --border-grey: #333333;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-black);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Accessibility */
:focus {
    outline: 2px solid var(--text-white);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    letter-spacing: -0.01em;
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
}

p {
    margin-bottom: 1rem;
    font-size: clamp(1rem, 2.5vw, 1.125rem);
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    padding: 4rem 0;
}

.section--hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 0;
}

.section--secondary {
    padding: 3rem 0;
}

/* Hero Section */
.hero {
    max-width: 800px;
    margin: 0 auto;
}

.hero__logo {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 900;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    color: var(--text-white);
}

.hero__title {
    margin-bottom: 1.5rem;
    color: var(--text-white);
}

.hero__subtitle {
    color: var(--text-grey);
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero__counter {
    margin: 2rem 0;
}

.counter {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 600;
    color: var(--text-white);
    display: inline-block;
    transition: var(--transition);
}

.counter--updating {
    transform: scale(1.05);
    color: var(--text-white);
}

.hero__actions {
    margin: 2rem 0;
}

.hero__secondary {
    margin-top: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border: 2px solid var(--border-white);
    background: transparent;
    color: var(--text-white);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 0;
    text-align: center;
    min-width: 200px;
}

.btn:hover,
.btn:focus {
    background: var(--text-white);
    color: var(--bg-black);
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.btn--secondary {
    border: none;
    background: transparent;
    color: var(--text-white);
    text-decoration: underline;
    text-underline-offset: 4px;
    min-width: auto;
    padding: 0.5rem 0;
}

.btn--secondary:hover,
.btn--secondary:focus {
    background: transparent;
    color: var(--text-grey);
    text-decoration: none;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal--show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal__content {
    background-color: var(--bg-black);
    border: 2px solid var(--border-white);
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
}

.modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .modal__close {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.75rem;
        top: 0.75rem;
        right: 0.75rem;
    }
}

.modal__close:hover,
.modal__close:focus {
    color: var(--text-grey);
}

.modal__title {
    margin-bottom: 1.5rem;
}

.modal__options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Content Sections */
.how-it-works {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.step {
    text-align: center;
    padding: 1rem;
}

.step__icon {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 1rem;
    border: 2px solid var(--border-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
}

.step__title {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.step__description {
    color: var(--text-grey);
    font-size: 0.875rem;
}

/* Support Section */
.support-list {
    list-style: none;
    margin-top: 1rem;
}

.support-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-grey);
    color: var(--text-grey);
}

.support-list li:last-child {
    border-bottom: none;
}

/* FAQ */
.faq {
    margin-top: 2rem;
}

.faq__item {
    border-bottom: 1px solid var(--border-grey);
    padding: 1rem 0;
}

.faq__item:last-child {
    border-bottom: none;
}

.faq__question {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-white);
}

.faq__answer {
    color: var(--text-grey);
    font-size: 0.875rem;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-grey);
    padding: 2rem 0;
    text-align: center;
}

.footer__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer__links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer__link {
    color: var(--text-light-grey);
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition);
}

.footer__link:hover,
.footer__link:focus {
    color: var(--text-white);
}

.footer__disclaimer {
    color: var(--text-light-grey);
    font-size: 0.75rem;
    opacity: 0.8;
    max-width: 600px;
    line-height: 1.4;
}

.privacy-notice {
    color: var(--text-light-grey);
    font-size: 0.875rem;
    margin-top: 1rem;
    opacity: 0.9;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease-out;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--text-white);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .section {
        padding: 2rem 0;
    }
    
    .hero__actions {
        margin: 1.5rem 0;
    }
    
    .modal__content {
        padding: 1.5rem;
    }
    
    .footer__links {
        gap: 1rem;
    }
    
    .how-it-works {
        gap: 1.5rem;
    }
    
    .modal__options {
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .btn {
        width: 100%;
        min-width: auto;
    }
    
    .modal__content {
        width: 95%;
        padding: 1rem;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --text-grey: #ffffff;
        --text-light-grey: #ffffff;
        --border-grey: #ffffff;
    }
}

/* Bank Details Modal */
.bank-details {
    text-align: left;
}

.bank-details__field {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-grey);
}

.bank-details__field:last-of-type {
    border-bottom: none;
    margin-bottom: 1rem;
}

.bank-details__label {
    font-weight: 600;
    color: var(--text-white);
    min-width: 120px;
}

.bank-details__value {
    color: var(--text-white);
    font-family: 'Courier New', monospace;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 2px;
    user-select: all;
}

.bank-details__instructions h3 {
    color: var(--text-white);
    font-size: 1rem;
    margin: 1.5rem 0 0.5rem 0;
}

.bank-details__instructions ol {
    margin: 0;
    padding-left: 1.5rem;
    color: var(--text-grey);
    font-size: 0.875rem;
    line-height: 1.5;
}

.bank-details__actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center;
}

@media (max-width: 768px) {
    .modal__content {
        width: 95%;
        max-height: 90vh;
        overflow-y: auto;
        margin: 2rem auto;
    }
    
    .bank-details__field {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 1rem 0;
    }
    
    .bank-details__label {
        min-width: auto;
        font-size: 0.875rem;
    }
    
    .bank-details__value {
        width: 100%;
        text-align: left;
        padding: 0.75rem;
        font-size: 1rem;
        word-break: break-all;
    }
    
    .bank-details__instructions h3 {
        font-size: 1.125rem;
        margin: 2rem 0 1rem 0;
    }
    
    .bank-details__instructions ol {
        font-size: 1rem;
        line-height: 1.6;
        padding-left: 1.25rem;
    }
    
    .bank-details__instructions li {
        margin-bottom: 0.5rem;
    }
    
    .bank-details__actions {
        flex-direction: column;
        gap: 1rem;
        margin-top: 2rem;
    }
    
    .bank-details__actions .btn {
        padding: 1rem 2rem;
        font-size: 1rem;
        min-height: 48px;
    }
}

@media (max-width: 480px) {
    .modal__content {
        width: 98%;
        padding: 1.5rem 1rem;
        margin: 1rem auto;
    }
    
    .modal__title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .bank-details p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .bank-details__field {
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .bank-details__label {
        font-size: 1rem;
        margin-bottom: 0.25rem;
    }
    
    .bank-details__value {
        padding: 1rem;
        font-size: 1.125rem;
        background: rgba(255, 255, 255, 0.15);
        border-radius: 4px;
        letter-spacing: 0.5px;
    }
    
    .bank-details__instructions {
        margin-top: 1.5rem;
    }
    
    .bank-details__instructions h3 {
        font-size: 1.25rem;
        margin: 1.5rem 0 1rem 0;
    }
    
    .bank-details__instructions ol {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .bank-details__instructions li {
        margin-bottom: 0.75rem;
    }
    
    .bank-details__actions .btn {
        padding: 1.25rem 2rem;
        font-size: 1.125rem;
        min-height: 52px;
        border-radius: 4px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}
