/* ========================================
   1. CUSTOM PROPERTIES
   ======================================== */
:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-tertiary: #161616;
    --bg-input: #1a1a1a;
    --accent: #7c3aed;
    --accent-hover: #6d28d9;
    --accent-light: #a78bfa;
    --accent-glow: rgba(124, 58, 237, 0.12);
    --text-primary: #e8e8e8;
    --text-secondary: #999999;
    --text-heading: #ffffff;
    --border: #222222;
    --border-hover: #333333;
    --border-input: #333333;
    --tier-free: #22c55e;
    --tier-personal: #3b82f6;
    --tier-enterprise: #f59e0b;
}

/* ========================================
   2. RESET & BASE STYLES
   ======================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 1rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--accent-light);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--accent);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* ========================================
   3. UTILITY CLASSES
   ======================================== */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

.section-alt {
    background: var(--bg-secondary);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 0.75rem;
    text-align: center;
    letter-spacing: -0.02em;
}

.section-subtitle {
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 3rem;
    font-size: 1.05rem;
}

/* ========================================
   4. BUTTONS
   ======================================== */
.btn {
    display: inline-block;
    padding: 0.6rem 1.4rem;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    border: none;
    text-align: center;
    line-height: 1.4;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.btn-accent {
    background: var(--accent);
    color: #ffffff;
}

.btn-accent:hover {
    background: var(--accent-hover);
    color: #ffffff;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent-light);
}

.btn-large {
    padding: 0.85rem 2rem;
    font-size: 1rem;
}

.btn-full {
    display: block;
    width: 100%;
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
}

/* ========================================
   5. HEADER
   ======================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 10, 0.95);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 3.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-heading);
    font-weight: 700;
    font-size: 1.25rem;
}

.logo:hover {
    color: var(--text-heading);
}

.logo-icon {
    width: 24px;
    height: 24px;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-nav .nav-link {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.4rem 0.75rem;
}

.header-nav .nav-link:hover {
    color: var(--text-heading);
}

/* ========================================
   6. HERO SECTION
   ======================================== */
.hero {
    padding: 3rem 0 0;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #ffffff 30%, var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-tagline {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.7;
}

.hero-image {
    width: 100%;
    margin-top: 3rem;
}

.hero-img {
    width: 100%;
    aspect-ratio: 32 / 9;
    object-fit: cover;
    object-position: center;
    display: block;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

/* ========================================
   7. BENEFITS SECTION
   ======================================== */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    margin-top: 2rem;
    background: var(--border);
}

.benefit-item {
    padding: 2rem;
    background: var(--bg-secondary);
    transition: background 0.2s;
}

.benefit-item:hover {
    background: var(--bg-tertiary);
}

.benefit-icon {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 0.75rem;
    line-height: 1;
}

.benefit-item h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 0.5rem;
}

.benefit-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.benefit-compare {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: var(--accent-light);
    opacity: 0.7;
}

/* ========================================
   8. DESCRIPTION SECTION
   ======================================== */
.description-columns {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: start;
    margin-top: 2rem;
}

.description-text p {
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.description-text p:last-child {
    margin-bottom: 0;
}

.highlight-list {
    padding-top: 0.25rem;
}

.highlight-list li {
    padding: 0.65rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
}

.highlight-list li:last-child {
    border-bottom: none;
}

.highlight-list li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--accent-light);
    font-weight: 700;
}

/* ========================================
   9. PRICING SECTION
   ======================================== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.pricing-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: border-color 0.2s;
}

.pricing-card:not(.pricing-card-disabled):hover {
    border-color: var(--border-hover);
}

.pricing-card-highlighted {
    border-color: var(--accent);
    background: linear-gradient(180deg, var(--accent-glow), var(--bg-tertiary) 40%);
}

.pricing-badge {
    position: absolute;
    top: 0;
    right: 1.5rem;
    background: var(--accent);
    color: #ffffff;
    padding: 0.25rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.pricing-tier-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 0.5rem;
}

.pricing-price {
    margin-bottom: 1rem;
    display: flex;
    align-items: baseline;
    gap: 0.15rem;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-heading);
    letter-spacing: -0.02em;
}

.price-period {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.pricing-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.pricing-features {
    margin-bottom: 2rem;
    flex: 1;
}

.pricing-features li {
    padding: 0.4rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.88rem;
    color: var(--text-primary);
}

.pricing-features li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--accent-light);
    font-weight: 700;
}

.pricing-features li:first-child {
    font-weight: 600;
    color: var(--text-heading);
    padding-left: 0;
}

.pricing-features li:first-child::before {
    content: "";
}

.pricing-card-disabled {
    opacity: 0.4;
    pointer-events: none;
}

.btn-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* ========================================
   10. TIER DETAILS SECTION
   ======================================== */
.tier-details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.tier-detail-block {
    padding-left: 1.5rem;
}

.tier-detail-block p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 0.9rem;
}

.tier-detail-block ul li {
    padding: 0.35rem 0;
    padding-left: 1.25rem;
    position: relative;
    font-size: 0.88rem;
    color: var(--text-primary);
}

.tier-detail-block ul li::before {
    content: "\2022";
    position: absolute;
    left: 0;
    font-weight: 700;
}

.tier-free {
    border-left: 3px solid var(--tier-free);
}

.tier-free .tier-detail-name {
    color: var(--tier-free);
}

.tier-free ul li::before {
    color: var(--tier-free);
}

.tier-personal {
    border-left: 3px solid var(--tier-personal);
}

.tier-personal .tier-detail-name {
    color: var(--tier-personal);
}

.tier-personal ul li::before {
    color: var(--tier-personal);
}

.tier-enterprise {
    border-left: 3px solid var(--tier-enterprise);
}

.tier-enterprise .tier-detail-name {
    color: var(--tier-enterprise);
}

.tier-enterprise ul li::before {
    color: var(--tier-enterprise);
}

.tier-detail-name {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.tier-detail-disabled {
    opacity: 0.4;
}

/* ========================================
   11. FOOTER
   ======================================== */
.site-footer {
    background: var(--bg-tertiary);
    border-top: 1px solid var(--border);
    padding: 2.5rem 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-brand .logo-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-heading);
}

.footer-tagline {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.footer-link-group h4 {
    display: none;
}

.footer-link-group a {
    color: var(--text-secondary);
    font-size: 0.85rem;
    padding: 0.25rem 0;
    transition: color 0.2s;
}

.footer-link-group a:hover {
    color: var(--accent-light);
}

.footer-bottom {
    text-align: center;
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 0.8rem;
    opacity: 0.6;
}

/* ========================================
   12. REGISTRATION & CONTACT PAGES
   ======================================== */
.register-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 3.5rem - 6rem);
    padding: 3rem 0;
}

.register-card {
    max-width: 440px;
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    padding: 2.5rem;
}

.register-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
}

.register-subtitle {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.register-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.375rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.form-input {
    background: var(--bg-input);
    border: 1px solid var(--border-input);
    color: var(--text-primary);
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
    font-family: inherit;
    width: 100%;
    outline: none;
    transition: border-color 0.2s;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

select.form-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

.form-input:focus {
    border-color: var(--accent);
}

.form-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.5;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-card {
    max-width: 540px;
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    padding: 2.5rem;
}

.contact-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
}

.register-form .btn {
    margin-top: 0.5rem;
}

.register-footer-text {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ========================================
   13. RESPONSIVE — TABLET
   ======================================== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .section {
        padding: 3.5rem 0;
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .description-columns {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 440px;
        margin: 0 auto;
    }

    .pricing-card-highlighted {
        order: -1;
    }

    .tier-details-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .contact-card {
        padding: 2rem;
    }

    .header-nav .nav-link {
        display: none;
    }
}

/* ========================================
   14. RESPONSIVE — MOBILE
   ======================================== */
@media (max-width: 480px) {
    .hero {
        padding: 2.5rem 0 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-tagline {
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .register-card,
    .contact-card {
        padding: 1.5rem;
    }

    .header-nav .btn {
        padding: 0.45rem 0.9rem;
        font-size: 0.85rem;
    }
}
