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

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background-color: #000000;
    overflow-x: hidden;
    scroll-behavior: smooth;
    padding-top: 60px; /* Offset for fixed header */
}

/* Container - Based on Figma 1920px design */
.container {
    max-width: 1920px;
    width: 100%;
    margin: 0 auto;
    padding: 0 176px; /* Figma design padding */
}

/* Header Styles - Based on Figma specifications */
.header {
    width: 100%;
    height: 60px; /* Exact height from Figma */
    background: rgba(18, 15, 10, 1);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
}

.header-logo {
    height: 36px;
    display: flex;
    align-items: start;
    justify-content: flex-start;
}

.header-logo img {
    height: 100%;
    object-fit: contain;
}

.header-title {
    font-family: 'Helvetica Neue', sans-serif;
    font-weight: 500;
    font-size: 28px;
    line-height: 49px;
    text-align: right;
    background: linear-gradient(135deg, 
        #FFFECA 0%, 
        #F1BABA 50%, 
        #B76E6E 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/* Main Content */
.main-content {
    padding-top: 20px; /* Space after header */
}

.main-content .container {
    display: flex;
    flex-direction: column;
    gap: 37px; /* Exact spacing from Figma */
    width: 1568px; /* Figma content width */
    margin: 0 auto;
}

/* Hero Card Section - Light gray background */
.hero-card {
    width: 1568px;
    height: 500px;
    background-color: #D9D9D9; /* Light gray from Figma */
    border-radius: 44px;
    position: relative;
}

/* White Semi-transparent Section */
.white-section {
    width: 1568px;
    height: 172px;
    background-color: rgba(255, 255, 255, 0.1); /* 10% opacity white */
    border-radius: 44px;
    padding: 30px 34px;
}

/* Dark Sections - All with #1A1A1A background */
.dark-section {
    width: 1568px;
    background-color: #1A1A1A; /* Dark gray from Figma */
    border-radius: 44px;
    position: relative;
}

/* Section 1 - 2097px height */
.section-1 {
    height: 2097px;
}

/* Section 2 - 790px height */
.section-2 {
    height: 790px;
}

/* Large Section - 12572px height */
.section-large {
    height: 12572px;
}

/* Medium Section - 370px height */
.section-medium {
    height: 370px;
}

/* Small Section - 310px height */
.section-small {
    height: 310px;
}

/* Final Section - 618px height */
.section-final {
    height: 618px;
}

/* Mask Explanation Section Styles */
.mask-explanation-section {
    width: 100%;
    background-color: #1A1A1A;
    overflow: hidden;
    transition: height 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.mask-explanation-header {
    padding: 0 0 16px 0;
}

.section-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.section-title {
    color: #FDFDFD;
    font-size: 28px;
    font-family: 'Helvetica Neue', sans-serif;
    font-weight: 500;
    margin: 0;
}

.toggle-button {
    width: 34px;
    height: 34px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 6px;
}

.toggle-button:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: scale(1.05);
}

.toggle-button:active {
    transform: scale(0.95);
}

.toggle-icon {
    transition: all 0.3s ease;
}

.section-description {
    color: rgba(253, 253, 253, 0.4);
    font-size: 18px;
    font-family: 'Helvetica Neue', sans-serif;
    font-weight: 400;
    margin: 0;
    line-height: 1.4;
}

.mask-options-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-radius: 18px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
    opacity: 1;
}

.mask-options-list.collapsed {
    opacity: 0;
    max-height: 0;
    pointer-events: none;
}

.mask-option {
    display: flex;
    align-items: flex-start;
    gap: 2px;
    background: rgba(255, 255, 255, 0.10);
    margin-bottom: 2px;
    transition: all 0.3s ease;
}

.mask-option:hover {
    background: rgba(255, 255, 255, 0.15);
}

.mask-option:last-child {
    margin-bottom: 0;
}

.mask-code {
    width: 70px;
    min-height: 60px;
    border-right: 2px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FDFDFD;
    font-size: 18px;
    font-family: 'Helvetica Neue', sans-serif;
    font-weight: 500;
    flex-shrink: 0;
    align-self: stretch;
}

.mask-description {
    flex: 1;
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.mask-description span {
    color: #FDFDFD;
    font-size: 18px;
    font-family: 'Helvetica Neue', sans-serif;
    font-weight: 300;
    line-height: 1.4;
    flex: 1;
}

.copy-mask-button {
    width: 22px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 4px;
    flex-shrink: 0;
}

.copy-mask-button:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.copy-mask-button:active {
    transform: scale(0.9);
}

.copy-mask-button svg {
    width: 100%;
    height: 100%;
    transition: all 0.3s ease;
}

.copy-mask-button:hover svg {
    fill: rgba(100, 255, 100, 0.3);
}

/* Section Content Styles */
.hero-content,
.white-content,
.section-content {
    width: 100%;
    height: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px;
}

.hero-placeholder {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.6);
}

/* Combination Form Styles */
.combination-form {
    width: 100%;
    padding: 28px 28px;
    background: rgba(255, 255, 255, 0.10);
    border-radius: 44px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 32px;
}

.combination-title {
    color: #FDFDFD;
    font-size: 28px;
    font-family: 'Helvetica Neue', sans-serif;
    font-weight: 500;
    margin: 0;
}

.combination-inputs {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
}

.input-group {
    flex: 1;
    align-items: center;
    gap: 10px;
    padding: 18px 24px;
    background: rgba(255, 255, 255, 0.10);
    border-radius: 12px;
}

.input-label {
    color: #FDFDFD;
    font-size: 18px;
    font-family: 'Helvetica Neue', sans-serif;
    font-weight: 500;
    white-space: nowrap;
}

.combination-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #FDFDFD;
    font-size: 18px;
    font-family: 'Helvetica Neue', sans-serif;
    font-weight: 500;
}

.combination-input:focus {
    border: none;
    outline: none;
    box-shadow: none;
}

.combination-input::placeholder {
    color: rgba(253, 253, 253, 0.2);
    font-size: 18px;
    font-family: 'Helvetica Neue', sans-serif;
    font-weight: 500;
}

.copy-button {
    padding: 18px 28px;
    background: rgba(255, 255, 255, 0.10);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.copy-button span {
    color: #FDFDFD;
    font-size: 18px;
    font-family: 'Helvetica Neue', sans-serif;
    font-weight: 500;
}

.copy-button:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.copy-button:active {
    transform: translateY(0);
}

/* Final Notes Section Styles */
.final-notes-section .section-content {
    padding: 0;
}

.notes-header {
    width: 100%;
    padding: 30px 34px;
    background: #1A1A1A;
    border-top-left-radius: 44px;
    border-top-right-radius: 44px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 4px;
}

.notes-title-row {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notes-title {
    color: #FDFDFD;
    font-size: 28px;
    font-family: 'Helvetica Neue', sans-serif;
    font-weight: 500;
}

.notes-icon {
    width: 34px;
    height: 34px;
    position: relative;
}

.notes-icon-line {
    width: 25.50px;
    height: 2.13px;
    position: absolute;
    left: 4.25px;
    top: 15.94px;
    background: #FDFDFD;
}

.notes-content {
    width: 100%;
    padding: 0 34px 38px 34px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.note-item {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 24px;
}

.note-number {
    width: 62px;
    height: 62px;
    background: #D3830A;
    border-radius: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.note-number-text {
    color: #FDFDFD;
    font-size: 26px;
    font-family: 'Helvetica Neue', sans-serif;
    font-weight: 500;
}

.note-text {
    flex: 1;
    color: #FDFDFD;
    font-size: 20px;
    font-family: 'Helvetica Neue', sans-serif;
    font-weight: 400;
    line-height: 1.4;
    word-wrap: break-word;
}

.note-spacer {
    min-height: 20px;
    height: auto;
    padding-left: 31px;
    padding-right: 31px;
    display: flex;
    justify-content: flex-start;
    align-items: stretch;
    gap: 10px;
    flex: 1;
}

.note-spacer svg {
    flex-shrink: 0;
    height: 100%;
    width: 2px;
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    /* Final Notes Section - Mobile */
    .notes-header {
        padding: 20px 16px;
        border-radius: 18px 18px 0 0;
    }

    .notes-title {
        font-size: 24px;
    }

    .notes-icon {
        width: 28px;
        height: 28px;
    }

    .notes-icon-line {
        width: 20px;
        height: 2px;
        left: 4px;
        top: 13px;
    }

    .notes-content {
        padding: 0 16px 24px 16px;
        gap: 4px;
    }

    .note-item {
        gap: 16px;
        flex-direction: row;
    }

    .note-number {
        width: 50px;
        height: 50px;
        margin-top: 4px;
    }

    .note-number-text {
        font-size: 22px;
    }

    .note-text {
        font-size: 14px;
        line-height: 1.5;
    }

    .note-spacer {
        min-height: 24px;
        height: auto;
        padding: 0 0 0 25px;
        flex: 1;
    }

    .note-spacer svg {
        width: 2px;
        height: 100%;
    }

    .combination-form {
        padding: 10px;
        border-radius: 18px;
        height: auto;
        min-height: 253px;
    }

    .combination-title {
        font-size: 20px;
        text-align: center;
        margin-bottom: 6px;
    }

    .combination-inputs {
        flex-direction: column;
        gap: 8px;
    }

    .input-group {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 12px 14px;
    }

    .input-label {
        font-size: 14px;
    }

    .combination-input {
        width: 100%;
        font-size: 14px;
    }

    .combination-input::placeholder {
        font-size: 14px;
    }

    .copy-button {
        align-self: stretch;
        padding: 14px 28px;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 8px;
    }

    .copy-button span {
        font-size: 14px;
    }

    /* Mask explanation responsive */
    .mask-explanation-section {
    }

    .section-title {
        font-size: 22px;
    }

    .toggle-button {
        width: 28px;
        height: 28px;
    }

    .section-description {
        font-size: 14px;
    }

    .mask-option {
        gap: 0;
    }

    .mask-code {
        min-height: 40px;
        font-size: 16px;
    }

    .mask-description {
        padding: 12px 16px;
    }

    .mask-description span {
        font-size: 14px;
    }

    .copy-mask-button {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .combination-form {
        margin-left: -16px;
        margin-right: -16px;
        border-radius: 12px;
    }

    .combination-inputs {
        gap: 6px;
    }

    .input-group {
        padding: 10px 12px;
    }

    .copy-button {
        padding: 12px 20px;
    }

    /* Small mobile adjustments for mask explanation */
    .mask-explanation-section {
    }

    .section-title {
        font-size: 20px;
    }

    .toggle-button {
        width: 24px;
        height: 24px;
    }

    .section-description {
        font-size: 13px;
        line-height: 1.3;
    }

    .mask-code {
        min-height: 36px;
        font-size: 14px;
    }

    .mask-description {
        padding: 10px 12px;
    }

    .mask-description span {
        font-size: 13px;
        line-height: 1.3;
    }

    .copy-mask-button {
        width: 18px;
        height: 18px;
    }
}

/* Floating Action Button */
.floating-action-btn {
    position: fixed;
    width: 120px;
    height: 120px;
    bottom: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.fab-inner {
    width: 74px;
    height: 74px;
    background: linear-gradient(135deg, #D38309 0%, #E89509 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(211, 131, 9, 0.4);
    position: relative;
    overflow: hidden;
}

.fab-inner::before {
    content: '';
    position: absolute;
    right: 30px;
    bottom: 20px;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 100%);
    border-radius: 50%;
    transition: opacity 0.3s ease;
}

.fab-inner:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 8px 30px rgba(211, 131, 9, 0.6);
}

.fab-inner:hover::before {
    opacity: 1;
}

.fab-inner:active {
    transform: scale(0.95);
}

.fab-inner svg {
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

/* Responsive Design */
@media screen and (max-width: 1920px) {
    .container {
        padding: 0 40px;
    }

    .main-content .container {
        width: 100%;
        max-width: 1568px;
        padding: 0 20px;
    }

    .hero-card,
    .white-section,
    .dark-section {
        width: 100%;
    }
}

@media screen and (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    .header-logo {
        height: 32px;
        display: flex;
        align-items: start;
        justify-content: flex-start;
    }

    .header-title {
        font-size: 24px;
        line-height: 40px;
    }

    .floating-action-btn {
        bottom: 30px;
        right: 30px;
        width: 100px;
        height: 100px;
    }

    .fab-inner {
        width: 64px;
        height: 64px;
    }
}

@media screen and (max-width: 768px) {
    body {
        padding-top: 60px; /* Adjusted for mobile header height */
    }

    .container {
        padding: 0 20px;
    }

    .header {
        height: 60px;
        padding: 15px 0;
    }

    .header .container {
        flex-direction: row;
        gap: 20px;
        align-items: center;
        justify-content: space-between;
    }

    .header-logo {
        height: 28px;
        display: flex;
        align-items: start;
        justify-content: flex-start;
    }

    .header-title {
        font-size: 20px;
        line-height: 30px;
        order: 2;
        text-align: right;
    }

    .main-content {
        padding-top: 0;
    }

    .main-content .container {
        gap: 20px;
        padding: 0 15px;
    }

    .hero-card {
        height: 400px;
        border-radius: 24px;
    }

    .white-section {
        height: 120px;
        border-radius: 24px;
        padding: 20px;
    }

    .dark-section {
        border-radius: 24px;
    }

    .section-1 {
        height: 800px;
    }

    .section-2 {
        height: 400px;
    }

    .section-large {
        height: 2000px;
    }

    .section-medium {
        height: 200px;
    }

    .section-small {
        height: 180px;
    }

    .section-final {
        height: 300px;
    }

    .floating-action-btn {
        bottom: 30px;
        right: 30px;
        width: 70px;
        height: 70px;
    }

    .fab-inner {
        width: 56px;
        height: 56px;
    }

    .fab-inner svg {
        width: 20px;
        height: 20px;
    }
}

@media screen and (max-width: 480px) {
    body {
        padding-top: 80px; /* Adjusted for small mobile header height */
    }

    .container {
        padding: 0 15px;
    }

    .header {
        height: 60px;
    }

    .header .container {
        gap: 15px;
        justify-content: space-between;
    }

    .header-logo {
        height: 24px;
        display: flex;
        align-items: start;
        justify-content: flex-start;
    }

    .header-title {
        font-size: 18px;
        line-height: 26px;
        text-align: right;
    }

    .main-content .container {
        gap: 15px;
        padding: 0 10px;
    }

    .hero-card {
        height: 300px;
        border-radius: 20px;
    }

    .white-section {
        height: 100px;
        border-radius: 20px;
        padding: 15px;
    }

    .dark-section {
        border-radius: 20px;
    }

    .floating-action-btn {
        bottom: 20px;
        right: 20px;
        width: 60px;
        height: 60px;
    }

    .fab-inner {
        width: 48px;
        height: 48px;
    }

    .fab-inner svg {
        width: 18px;
        height: 18px;
    }
}

.combination-form {
    max-width: 1568px;
    margin: 0 auto;
}

.combination-title {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 28px;
    font-weight: 500;
    color: #fdfdfd;
    margin-bottom: 8px;
    text-align: left;
}

.combination-inputs {
    display: flex;
    gap: 12px;
    align-items: center;
}

.input-field {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    max-width: 633px;
    height: 58px;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.input-field:focus-within {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.input-label {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: #fdfdfd;
    white-space: nowrap;
}

.combination-input {
    background: transparent;
    border: none;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 18px;
    color: #fdfdfd;
    flex: 1;
    outline: none;
}

.combination-input::placeholder {
    color: rgba(253, 253, 253, 0.2);
    font-weight: 500;
}

.copy-button {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 12px;
    padding: 18px 24px;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #fdfdfd;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 58px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 180px;
    flex-shrink: 0;
}

.copy-button:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.copy-button:active {
    transform: translateY(0);
}

.copy-button svg {
    opacity: 0.8;
}

@media (max-width: 768px) {
    .combination-inputs {
        flex-direction: column;
        gap: 16px;
    }

    .input-field {
        min-width: unset;
        max-width: none;
        width: 100%;
    }

    .combination-title {
        font-size: 24px;
    }

    .copy-button {
        min-width: 160px;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .white-content {
        padding: 40px 28px;
    }

    .combination-title {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .input-field {
        min-width: unset;
        padding: 16px 20px;
    }

    .copy-button {
        padding: 16px 20px;
    }
}

@media screen and (max-width: 393px) {
    .header-title {
        font-size: 16px;
        line-height: 24px;
    }

    .hero-card {
        height: 280px;
    }

    .white-section {
        height: 90px;
    }
}

/* Animation for sections */
.hero-card,
.white-section,
.dark-section {
    transition: all 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
}

/* Focus and accessibility improvements */
.fab-inner:focus {
    outline: 2px solid #FFFECA;
    outline-offset: 4px;
}

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