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

.hidden {
    display: none;
}

body {
    font-family: 'Proxima Nova', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
        sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #1a1a2e;
    background-image: radial-gradient(ellipse at 20% 50%, rgba(0, 236, 188, 0.15) 0%, transparent 60%);
    background-attachment: fixed;
    min-height: 100vh;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-wrapper {
    width: 100%;
    max-width: 1400px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.container {
    width: 100%;
    display: flex;
    gap: 200px;
    align-items: center;
}

.hero-text {
    flex: 1;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 148px;
}

.hero-main {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 60px;
    font-weight: 900;
    font-variation-settings: 'opsz' 144;
    line-height: 1.1;
    color: #ffffff;
    margin: 0;
}

.hero-tagline {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    color: rgba(0, 236, 188, 0.8);
    text-transform: uppercase;
    margin: 0;
    margin-top: 42px;
}

.hero-description {
    font-family: 'Proxima Nova', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
        sans-serif !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 1.6 !important;
    color: rgba(255, 255, 255, 0.35) !important;
}

.calculator-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 32px;
    width: 500px;
    flex-shrink: 0;
}

.header {
    text-align: center;
    margin-bottom: 0;
}

.header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 8px;
}

.description-section {
    text-align: center;
    margin-bottom: 24px;
}

.subtitle {
    font-size: 15px;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 0;
    line-height: 1.4;
}

.description {
    font-size: 13px;
    color: #718096;
    line-height: 1.6;
    max-width: 450px;
    margin: 0 auto;
}

.mode-selector {
    margin-bottom: 20px;
}

.mode-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 8px;
}

.mode-toggle {
    display: flex;
    background: #f3f4f6;
    border-radius: 25px;
    padding: 4px;
    gap: 0;
}

.toggle-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: transparent;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-btn:hover {
    color: #374151;
}

.toggle-btn.active {
    background: white;
    color: #1a202c;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.divider {
    height: 1px;
    background: #e2e8f0;
    margin: 24px 0;
}

.input-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.input-section.hidden {
    display: none;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.input-group label {
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
}

.input-group input {
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.2s;
}

.input-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.help-text {
    font-size: 12px;
    color: #718096;
    margin-top: 4px;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 32px 16px;
    background: #f9fafb;
    border-radius: 8px;
    border: 2px dashed #e2e8f0;
}

.figma-logo {
    height: 48px;
    width: auto;
}

.empty-state-text {
    font-size: 14px;
    color: #4a5568;
    text-align: center;
    line-height: 1.6;
    margin: 0;
}

.plugin-link {
    font-size: 14px;
    font-weight: 600;
    color: #667eea;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 6px;
    transition: all 0.2s;
}

.plugin-link:hover {
    color: #5568d3;
    background: #f0f4ff;
}

.calculate-btn {
    width: 100%;
    padding: 14px;
    background: #1a202c;
    color: white;
    border: none;
    border-radius: 32px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 20px;
}

.calculate-btn:hover {
    background: #2d3748;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 32, 44, 0.4);
}

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

.results-section {
    margin-top: 24px;
}

.results-section.hidden {
    display: none;
}

.result-card {
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.result-card.blue {
    background: #ffefef;
}

.result-card.yellow {
    background: #FFF7E2;
}

.result-card.green {
    background: #ECFEF3;
}

.result-card.summary {
    background: #f3f4f6;
}

.result-card.red {
    background: #ffefef;
}

.result-card.red .result-title {
    color: #991b1b;
}

.result-card.red .result-value {
    color: #991b1b;
}

.result-card.red .result-description {
    color: #991b1b;
}

.result-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.result-card.blue .result-title {
    color: #1e40af;
}

.result-card.yellow .result-title {
    color: #92400e;
}

.result-card.green .result-title {
    color: #166534;
}

.result-card.summary .result-title {
    color: #374151;
    display: flex;
    align-items: center;
    gap: 6px;
}

.summary-icon-wrapper {
    display: inline-flex;
    align-items: center;
}

.summary-icon {
    width: 16px;
    height: 16px;
}

.summary-icon.tick-icon {
    color: #166534;
}

.summary-icon.alert-icon {
    color: #991b1b;
}

.result-value {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.result-card.blue .result-value {
    color: #1e3a8a;
}

.result-card.yellow .result-value {
    color: #92400e;
}

.result-card.green .result-value {
    color: #14532d;
}

.result-description {
    font-size: 13px;
    line-height: 1.5;
}

.result-card.blue .result-description {
    color: #1e40af;
}

.result-card.yellow .result-description {
    color: #78350f;
}

.result-card.green .result-description {
    color: #15803d;
}

.summary-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.summary-content p {
    font-size: 13px;
    color: #4b5563;
}

/* Accordions Section */
.accordions-container {
    width: 100%;
    display: flex;
    gap: 200px;
    align-items: flex-start;
    margin-top: 4px !important;
}

.accordions-spacer {
    flex: 1;
    max-width: 600px;
}

.accordions-wrapper {
    width: 500px;
    flex-shrink: 0;
}

.accordions-section {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.accordion {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: white;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    color: #1a202c;
    transition: background 0.2s;
}

.accordion-header:hover {
    background: #f9fafb;
}

.accordion-icon {
    font-size: 20px;
    font-weight: 700;
    color: #6b7280;
    transition: all 0.3s;
    display: inline-block;
}

.accordion.active .accordion-icon {
    transform: rotate(90deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: white;
}

.accordion.active .accordion-content {
    max-height: 1000px;
    transition: max-height 0.5s ease-in;
}

.accordion-content > * {
    padding: 0 24px 24px 24px;
}

.accordion-title-with-icon {
    display: flex;
    align-items: center;
    gap: 8px;
}

.accordion-emoji {
    width: 18px;
    height: 18px;
    color: #1a202c;
    flex-shrink: 0;
}

.accordion-subtitle {
    font-size: 14px;
    font-weight: normal;
    color: #374151;
    margin-bottom: 12px;
    padding-top: 24px !important;
    padding-bottom: 4px;
}

.accordion-subtitle strong {
    font-weight: 600;
}

.accordion-text {
    font-size: 13px;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 12px;
    padding-top: 24px;
    padding-bottom: 4px;
}

.accordion-list {
    list-style: none;
    margin: 0;
}

.accordion-list li {
    font-size: 13px;
    color: #4b5563;
    margin-bottom: 12px;
    padding-left: 0;
    margin-left: 0;
    line-height: 1.6;
}

.accordion-list li:last-child {
    margin-bottom: 0;
}

.list-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.list-label strong {
    color: #000000;
}

.list-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: #000000;
}

/* Responsive Design */
@media (max-width: 1200px) {
    body {
        padding: 40px 20px;
    }

    .page-wrapper {
        gap: 0;
    }

    .container {
        flex-direction: column;
        gap: 60px;
        max-width: 500px;
    }

    .hero-text {
        max-width: 100%;
        text-align: center;
    }

    .hero-main {
        font-size: 40px;
    }

    .hero-tagline {
        font-size: 18px;
        margin-top: 50px;
    }

    .hero-description {
        font-size: 14px !important;
    }

    .calculator-card {
        width: 100%;
    }

    .accordions-container {
        flex-direction: column;
        gap: 0;
        max-width: 500px;
        margin: 4px auto 0 !important;
    }

    .accordions-spacer {
        display: none;
    }

    .accordions-wrapper {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .hero-main {
        font-size: 28px;
    }

    .hero-tagline {
        font-size: 16px;
        margin-top: 32px;
    }

    .calculator-card {
        padding: 24px;
    }

    .header h1 {
        font-size: 24px;
    }

    .result-value {
        font-size: 28px;
    }

    .mode-buttons {
        flex-direction: column;
    }
}

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

.results-section {
    animation: fadeIn 0.3s ease-out;
}
